From patchwork Thu Feb 13 09:06:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brice Waegeneire X-Patchwork-Id: 20235 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9222D27BBEA; Thu, 13 Feb 2020 09:08:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0CCF027BBE4 for ; Thu, 13 Feb 2020 09:08:02 +0000 (GMT) Received: from localhost ([::1]:49086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2ATZ-0004yf-Ga for patchwork@mira.cbaines.net; Thu, 13 Feb 2020 04:08:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41179) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2ASd-0003hb-Ce for guix-patches@gnu.org; Thu, 13 Feb 2020 04:07:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2ASc-0005zU-4I for guix-patches@gnu.org; Thu, 13 Feb 2020 04:07:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2ASc-0005zQ-18 for guix-patches@gnu.org; Thu, 13 Feb 2020 04:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j2ASb-0005Ks-S8 for guix-patches@gnu.org; Thu, 13 Feb 2020 04:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39587] [PATCH] gnu: Add haproxy. Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Feb 2020 09:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39587 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39587@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158158480220478 (code B ref -1); Thu, 13 Feb 2020 09:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2020 09:06:42 +0000 Received: from localhost ([127.0.0.1]:59341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2ASD-0005KA-MM for submit@debbugs.gnu.org; Thu, 13 Feb 2020 04:06:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:60959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2ASB-0005K2-Fy for submit@debbugs.gnu.org; Thu, 13 Feb 2020 04:06:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41105) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2ASA-00034H-6k for guix-patches@gnu.org; Thu, 13 Feb 2020 04:06:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2AS8-0005kn-I6 for guix-patches@gnu.org; Thu, 13 Feb 2020 04:06:33 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:55207) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j2AS8-0005iq-C5 for guix-patches@gnu.org; Thu, 13 Feb 2020 04:06:32 -0500 X-Originating-IP: 78.237.113.178 Received: from localhost (luy13-1-78-237-113-178.fbx.proxad.net [78.237.113.178]) (Authenticated sender: brice@waegenei.re) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 9C0CD4000B for ; Thu, 13 Feb 2020 09:06:29 +0000 (UTC) From: Brice Waegeneire Date: Thu, 13 Feb 2020 10:06:15 +0100 Message-Id: <20200213090615.29979-1-brice@waegenei.re> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/networking.scm (haproxy): New variable. --- gnu/packages/networking.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index ed339524c0..d411fc7a26 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -36,6 +36,7 @@ ;;; Copyright © 2019 Jan Wielkiewicz ;;; Copyright © 2019 Daniel Schaefer ;;; Copyright © 2019 Diego N. Barbato +;;; Copyright © 2020 Brice Waegeneire ;;; ;;; This file is part of GNU Guix. ;;; @@ -64,6 +65,7 @@ #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix build-system trivial) + #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages admin) #:use-module (gnu packages adns) @@ -2853,3 +2855,46 @@ cables.") (license:non-copyleft ; slirpvde "file://COPYING.slirpvde" "See COPYING.slirpvde in the distribution."))))) + +(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") + (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 + #: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))))