net-proxy/haproxy: major improvements.
authorBertrand Jacquin <bertrand@jacquin.bzh>
Wed, 5 Oct 2016 21:10:17 +0000 (22:10 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Sat, 15 Oct 2016 14:52:33 +0000 (16:52 +0200)
* Move to /run.
* Remove commented USE_LINUX_SPLICE since declaration is implicit.
* Remove commented USE_LINUX_TPROXY since declaration is implicit.
* Keep lua for live ebuild.

Gentoo-Bug: https://bugs.gentoo.org/332633

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2486
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
net-proxy/haproxy/files/haproxy.confd
net-proxy/haproxy/files/haproxy.initd-r2
net-proxy/haproxy/files/haproxy.initd-r3
net-proxy/haproxy/haproxy-1.6.9.ebuild
net-proxy/haproxy/haproxy-9999.ebuild

index 5a989a776749fb83cb3a953798c6557c7498ab03..30739eb8bf23ea43ba8f56dbf63420edb2581870 100644 (file)
@@ -9,6 +9,6 @@ HAPROXY_OPTS=""
 # For more information on how to use that feature please have a look at the
 # "seamless_reload.txt" documentation file (requires net-proxy/haproxy[examples])
 #reload_seamless() {
-#      checkpath -d -m 0700 haproxy:haproxy "/var/run/haproxy/"
-#      socat /var/run/haproxy/socket - <<< "show servers state" > /var/run/haproxy/global.state
+#      checkpath -d -m 0700 haproxy:haproxy "/run/haproxy/"
+#      socat /run/haproxy/socket - <<< "show servers state" > /run/haproxy/global.state
 #}
index 39a5bb457bd483fef0a12b76eb0753fa1f6d392e..15c5eb5b08c6e083f8f000079b32a4dd94682d38 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -7,7 +7,7 @@ extra_commands="checkconfig"
 extra_started_commands="reload"
 
 command="/usr/bin/haproxy"
-pidfile="/var/run/${SVCNAME}.pid"
+pidfile="/run/${SVCNAME}.pid"
 
 if [ -z "${CONFFILE}" -a -d "/etc/haproxy" -a -f "/etc/haproxy/${SVCNAME}.cfg" ]; then
        CONFFILE=/etc/haproxy/${SVCNAME}.cfg
index 92665cd2546421549fd212c8810475f84cc56262..60ec31ac376bd559493d749d923a99a08032d7f0 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -8,7 +8,7 @@ extra_started_commands="reload"
 
 command="/usr/bin/haproxy"
 
-pidfile="${HAPROXY_PIDFILE:-/var/run/${SVCNAME}.pid}"
+pidfile="${HAPROXY_PIDFILE:-/run/${SVCNAME}.pid}"
 
 configs=
 
index c9a98ed4d849f29945d593d6a33e59052e4fed4b..8f3c3a0fcc0895955c66d4008b787998da04f576 100644 (file)
@@ -15,7 +15,7 @@ SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/$
 LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~ppc ~x86"
-IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit ssl tools vim-syntax +zlib" # lua
+IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit ssl tools vim-syntax +zlib"
 REQUIRED_USE="pcre-jit? ( pcre )
        ?? ( slz zlib )"
 
@@ -30,7 +30,6 @@ DEPEND="
        )
        slz? ( dev-libs/libslz:= )
        zlib? ( sys-libs/zlib )"
-# lua? ( dev-lang/lua:5.3 )
 RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/${MY_P}"
@@ -69,17 +68,9 @@ src_compile() {
        )
 
        args+=( $(haproxy_use crypt LIBCRYPT) )
-
-# bug 541042
-#      args+=( $(haproxy_use lua LUA) )
-
        args+=( $(haproxy_use net_ns NS) )
        args+=( $(haproxy_use pcre PCRE) )
        args+=( $(haproxy_use pcre-jit PCRE_JIT) )
-
-#      args+=( $(haproxy_use kernel_linux LINUX_SPLICE) )
-#      args+=( $(haproxy_use kernel_linux LINUX_TPROXY) )
-
        args+=( $(haproxy_use ssl OPENSSL) )
        args+=( $(haproxy_use slz SLZ) )
        args+=( $(haproxy_use zlib ZLIB) )
index 4100bfa773873792d79f6fb76e4719a1ab3c39dc..97a58d9c88f9da33f0fb264a616af3aae7f065b4 100644 (file)
@@ -76,10 +76,6 @@ src_compile() {
        args+=( $(haproxy_use net_ns NS) )
        args+=( $(haproxy_use pcre PCRE) )
        args+=( $(haproxy_use pcre-jit PCRE_JIT) )
-
-#      args+=( $(haproxy_use kernel_linux LINUX_SPLICE) )
-#      args+=( $(haproxy_use kernel_linux LINUX_TPROXY) )
-
        args+=( $(haproxy_use ssl OPENSSL) )
        args+=( $(haproxy_use slz SLZ) )
        args+=( $(haproxy_use zlib ZLIB) )