summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2019-04-24 11:47:54 +0200
committerChristian Ruppert <idl0r@gentoo.org>2019-04-24 11:48:12 +0200
commit8c857448df744de34c3a5155b39996e52c3463da (patch)
tree19e4870072b1a4b1df34a6050b4a18bebd9ce38f
parentnet-misc/youtube-dl: Old (diff)
downloadgentoo-8c857448df744de34c3a5155b39996e52c3463da.tar.gz
gentoo-8c857448df744de34c3a5155b39996e52c3463da.tar.bz2
gentoo-8c857448df744de34c3a5155b39996e52c3463da.zip
net-proxy/haproxy: Revision bump. Fix PCRE2 switches. Use EAPI 7
Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
-rw-r--r--net-proxy/haproxy/haproxy-1.9.6-r1.ebuild (renamed from net-proxy/haproxy/haproxy-1.9.6.ebuild)14
1 files changed, 8 insertions, 6 deletions
diff --git a/net-proxy/haproxy/haproxy-1.9.6.ebuild b/net-proxy/haproxy/haproxy-1.9.6-r1.ebuild
index 2212a12930ac..ca0db852190f 100644
--- a/net-proxy/haproxy/haproxy-1.9.6.ebuild
+++ b/net-proxy/haproxy/haproxy-1.9.6-r1.ebuild
@@ -1,20 +1,20 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="6"
+EAPI="7"
[[ ${PV} == *9999 ]] && SCM="git-r3"
-inherit user versionator toolchain-funcs flag-o-matic systemd linux-info $SCM
+inherit user toolchain-funcs flag-o-matic systemd linux-info $SCM
MY_P="${PN}-${PV/_beta/-dev}"
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
HOMEPAGE="http://www.haproxy.org"
if [[ ${PV} != *9999 ]]; then
- SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${MY_P}.tar.gz"
+ SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
else
- EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(get_version_component_range 1-2).git/"
+ EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
EGIT_BRANCH=master
fi
@@ -52,9 +52,9 @@ S="${WORKDIR}/${MY_P}"
DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
CONTRIBS=( halog iprange )
# ip6range is present in 1.6, but broken.
-version_is_at_least 1.7.0 $PV && CONTRIBS+=( ip6range spoa_example tcploop )
+ver_test $PV -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
# TODO: mod_defender - requires apache / APR, modsecurity - the same
-version_is_at_least 1.8.0 $PV && CONTRIBS+=( hpack )
+ver_test $PV -ge 1.8.0 && CONTRIBS+=( hpack )
haproxy_use() {
(( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
@@ -86,6 +86,8 @@ src_compile() {
args+=( $(haproxy_use net_ns NS) )
args+=( $(haproxy_use pcre PCRE) )
args+=( $(haproxy_use pcre-jit PCRE_JIT) )
+ args+=( $(haproxy_use pcre2 PCRE2) )
+ args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
args+=( $(haproxy_use ssl OPENSSL) )
args+=( $(haproxy_use slz SLZ) )
args+=( $(haproxy_use zlib ZLIB) )