From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44619) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2Alz-0001z3-F9 for guix-patches@gnu.org; Thu, 13 Feb 2020 04:27:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2Aly-0003CO-69 for guix-patches@gnu.org; Thu, 13 Feb 2020 04:27:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2Aly-0003CF-2X for guix-patches@gnu.org; Thu, 13 Feb 2020 04:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j2Alx-0005pE-Uu for guix-patches@gnu.org; Thu, 13 Feb 2020 04:27:01 -0500 Subject: [bug#39587] [PATCH] gnu: Add haproxy. Resent-Message-ID: From: Jelle Licht In-Reply-To: <20200213090615.29979-1-brice@waegenei.re> References: <20200213090615.29979-1-brice@waegenei.re> Date: Thu, 13 Feb 2020 10:26:48 +0100 Message-ID: <87lfp6vnvr.fsf@jlicht.xyz> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Brice Waegeneire , 39587@debbugs.gnu.org Hi Brice, Brice Waegeneire writes: > [...] > + > +(define-public haproxy > + (package > + (name "haproxy") > + (version "2.1.3") > + (source (origin > + (method url-fetch) > + (uri (string-append "https://www.haproxy.org/download/" > + (version-major+minor version) > + "/src/haproxy-" version ".tar.gz")) > + (sha256 > + (base32 > + "0n8bw3d6gikr8c56ycrvksp1sl0b4yfzp19867cxkl3l0daqwrxv")))) > + (build-system gnu-build-system) > + (arguments > + `(#:make-flags > + (let* ((out (assoc-ref %outputs "out"))) > + (list (string-append "PREFIX=" out) > + (string-append "SBINDIR=" out "/bin") Is there any particular reason to pass '/bin' instead of the (default) '/sbin' here? > + (string-append "DOCDIR=" out "/share/" ,name) > + "TARGET=linux-glibc" > + "USE_LUA=1" > + "USE_OPENSSL=1" > + "USE_ZLIB=1" > + "USE_PCRE_2=1")) > + #:tests? #f ; no tests It seems there are some tests included with haproxy using something called 'VTest', in `scripts/run-regtests.sh' for example. > + #:phases > + (modify-phases %standard-phases > + (delete 'configure)))) > + (inputs > + `(("lua" ,lua) > + ("openssl" ,openssl) > + ("pcre2" ,pcre2) > + ("zlib" ,zlib))) > + (home-page "https://www.haproxy.org/") > + (synopsis "Reliable, high performance TCP/HTTP load balancer") > + (description "HAProxy is a free, very fast and reliable solution offering > +high availability, load balancing, and proxying for TCP and HTTP-based > +applications. It is particularly suited for web sites crawling under very > +high loads while needing persistence or Layer7 processing. Supporting tens of > +thousands of connections is clearly realistic with todays hardware.") > + (license (list license:gpl2+ > + license:lgpl2.1)))) ^ haproxy header files are licensed under lgpl2.1+, at least according to `doc/coding-style.txt' Thanks for working on this! - Jelle