Gentoo Archives: gentoo-commits

From: Christian Ruppert <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/haproxy/
Date: Tue, 07 Sep 2021 16:38:50
Message-Id: 1631032722.87741d3580d35d2abfa7edac1b442910fe9b34f8.idl0r@gentoo
1 commit: 87741d3580d35d2abfa7edac1b442910fe9b34f8
2 Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 16:38:34 2021 +0000
4 Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 16:38:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87741d35
7
8 net-proxy/haproxy: Cleanup old versions + security bump
9
10 CVE-2021-40346 - https://www.mail-archive.com/haproxy <AT> formilux.org/msg41114.html
11
12 Package-Manager: Portage-3.0.20, Repoman-3.0.3
13 Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org>
14
15 net-proxy/haproxy/Manifest | 12 +-
16 net-proxy/haproxy/haproxy-2.0.14-r4.ebuild | 186 --------------------
17 ...roxy-2.0.23-r1.ebuild => haproxy-2.0.25.ebuild} | 0
18 ...roxy-2.2.15-r1.ebuild => haproxy-2.2.17.ebuild} | 0
19 net-proxy/haproxy/haproxy-2.2.5-r3.ebuild | 187 ---------------------
20 net-proxy/haproxy/haproxy-2.3.13.ebuild | 183 --------------------
21 ...roxy-2.3.12-r1.ebuild => haproxy-2.3.14.ebuild} | 0
22 net-proxy/haproxy/haproxy-2.4.3.ebuild | 182 --------------------
23 ...aproxy-2.4.2-r1.ebuild => haproxy-2.4.4.ebuild} | 0
24 9 files changed, 4 insertions(+), 746 deletions(-)
25
26 diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest
27 index 6a675dc0d07..6ed4055fe5b 100644
28 --- a/net-proxy/haproxy/Manifest
29 +++ b/net-proxy/haproxy/Manifest
30 @@ -1,10 +1,6 @@
31 -DIST haproxy-2.0.14.tar.gz 2651320 BLAKE2B dd5aed78e52b3d3dd295f3883d45adf8795efac93cf6c23fbe39be031f29d19adad0afb400e8041281413f4570bc074f06d9cd88bee672789311e56f57b258d0 SHA512 6b63b713a1009eff59a2622fa93462deb8794c910685840f142711a61be88ea228c7cb2ec7ca50bba0803288625e1a65b2d2f87ffbcedfd23debfbbbb5d96993
32 -DIST haproxy-2.0.23.tar.gz 2704381 BLAKE2B dbdad6bb11470088cae0092b4f0cef38840e2166f31e1fe2d571515ebd12c234a1470e7e59c07a68ab95f664deb15a1df537f405ffc800d89b0261fe5cb644f0 SHA512 0ede44b4d33630ac2d4419c93333aeb95c3cdc24f2aa0438a7e7fe57b4063fd91e308f974f29efdbfe62f24bc051c742645b48f3a810befc315ea54f1ada37dc
33 DIST haproxy-2.0.24.tar.gz 2707476 BLAKE2B 98539bf4affd7efd8703d29f0ef03182f2b58b0aed39984c2c47959996caeb3e3ee2863d46588d991fe4aabf073810712db0e4b78668d41a92e634b9cc31080f SHA512 8136639beb37f6ac19653e9553de24bb5e3f258cf9276d6d8caebe74d500e1f6e50e23f5f47d32a1a157bf906e04fff9b1aa062ecb15d361b5dd2aa0da6e63bd
34 -DIST haproxy-2.2.15.tar.gz 2930086 BLAKE2B 2198b7a6bc90f94fe511f3307df3323cc5ded3b722721992d54df5f41fc0d9f007494251f56d6365d781bcc97af81b98d2dd553ab2f11029b57a5a57d395cb5a SHA512 ef77cb2201ea61e7ac085acca8db6e9ee43ce1db2e8c5366d49cad9ace654eb81809a70f96b20a6f6f549061f8a73012ad1805a009c3e1c6fa5cd195af795012
35 +DIST haproxy-2.0.25.tar.gz 2707840 BLAKE2B cd85d233623f2791bff8ada00d9ac4ea3743e2c1fbccd45a6fd56b7cc0ae5904619b50849a23576f0a6d21ae2798166acd41692d0311bcf361355dc6ee0da790 SHA512 2c238844a8c82f877d3039b20b76fd22717f95a4e5d94a0bfd501c6e134042ef744d3731fc0ccced0a94e5cb1c1822d3272ed961e07bd9acc4d637eba0529155
36 DIST haproxy-2.2.16.tar.gz 2933121 BLAKE2B 89fa4ee3baf2823cab0f664d95c0a00c345f913d059604a6cdd1906b6883b5baec0a0dbaa1badd0b512d4ae953d66e16832bd9b7169f065f97d5ced65aa8ed7f SHA512 5a1e3e8f7c6ce995c5ba9416862622143054abeadd3f2b94acef73267440d941f52c18467eed500af098bdaba8e3ae3054101371f1903e60605443ca9d36335e
37 -DIST haproxy-2.2.5.tar.gz 2876429 BLAKE2B 1da993769302186ab0d7e1b0c8651c7e9a151295176da44bc854461f6b27831cadaa01a71b153046a23b43de91b2ba17b11ee52ecea12f744ae7af5b9f66ee98 SHA512 74e3c8b2b786f1fb5fcb8b8071751450f45a58ff847b336a8e4413727dea87b7d5a140853e3a445603ae5c4079f371ce9aa31a9f06c18ff4eea7462661775dca
38 -DIST haproxy-2.3.12.tar.gz 2950703 BLAKE2B cd3aedaf82bc914d7d62d894187941f64f130b3a9019d5aeba08214f85acd928b7760ce9b5062ffcbc79f8378fa221b6d44b374dac924c33afd5bcc4c3b212ed SHA512 6f5dffaf80d88882848ca6df1fdd68fae17cbf039e311b54f622faa68c36007b827f4f2e71bc1260dd7a395bdc70637a9bac7ea7be414f1971172aaf5f474386
39 -DIST haproxy-2.3.13.tar.gz 2953437 BLAKE2B 713bbb456719563cbb49b42d00c1364f1a9d45020ca8b346cc5d6ee9876f30b2ff626c25cd576fc31d373289b162a86e827cb9a3aaac66595e0fc029d1263856 SHA512 6cf9fa9923d2c53e4078470beca1e886fcd1d2ad8cc91a0a34c8796f544a48416f7ff71014f4300d36e60de11d0447b6f7186f9beb99667e1a8a5ba50b648f62
40 -DIST haproxy-2.4.2.tar.gz 3579220 BLAKE2B fc7f5d0c7ea8be103e74b8a62502c2ffd458ac4f573c7045ec64f66cab127408f5bf088109ac7a2c5f9faeca3580b804dc66b90654122873fe39ba2c01f31217 SHA512 8dc6386e0e0bf7ceed8b6c23ad2d608f6c59777c5ab9731e6bdd13883a31ec5faeee2ceb683589357c028a10c9fbe0a0247baff6825cd5b95e6c82cbe358e4d1
41 -DIST haproxy-2.4.3.tar.gz 3585501 BLAKE2B 81fda63a741a523e692078002b89048966409f601ed353ee91523a52e71859a9b0204514f5a371ecd0685c4c7c6d35ce7524be56999a3b062bca86b257c892bf SHA512 4ee11b6fd4c76d6ec3060f26bda67a8916c4f52bf1a800b921e04d2cec78b47b8b1343081935bc211f1e081b92db88130ec365161460b35ab88aa982917f82ee
42 +DIST haproxy-2.2.17.tar.gz 2933836 BLAKE2B 750d2c5048f994442d13c05ce6624731d296462951ee2e86110467d517a6708b498e98260a3f0770e110dc5c2cb2bdd746fb76f23ba7cebc1642b0b9c8124a67 SHA512 174197e1e0915a6ae6062b9a070f16102ac7f3429f991f36cdb2e2cce587bd26059bd1dc71a368f904bcdecd292ab5926715160400ae96d498d902aac356864f
43 +DIST haproxy-2.3.14.tar.gz 2954299 BLAKE2B 656108e3860ee2f174b218eda362aa9b1fff56fed3f9a4cf7fb491342fb4379d84ead4754a5f422d6763fdb6ead6f0f20217763abc1082cbbf355b095a467da2 SHA512 4e008b79b809dfc32b18728e0a39e7d78cbbbda61d33514cc40034916d46b9df3398bed0f6deda03216a82b5debb08cf91120d841a988bff2385fdc0508a326d
44 +DIST haproxy-2.4.4.tar.gz 3587306 BLAKE2B 983f5919b738419d616b35c1cad6aa2400b0b857160ecfac3bcdfcc14c15280283ae3f33036652a3a9b5bfff0fbb6a54912807ea7c83c828d2b5ba72274fe1a8 SHA512 a8987e8342fdbec7e48de09a4391a67e77e05493260e0e561e8c185b6457b8e1086cc45ce04ebf3365699c008dff81667490e2fe99c33c0ac3c7513df8ae025c
45
46 diff --git a/net-proxy/haproxy/haproxy-2.0.14-r4.ebuild b/net-proxy/haproxy/haproxy-2.0.14-r4.ebuild
47 deleted file mode 100644
48 index 462ffc137f9..00000000000
49 --- a/net-proxy/haproxy/haproxy-2.0.14-r4.ebuild
50 +++ /dev/null
51 @@ -1,186 +0,0 @@
52 -# Copyright 1999-2021 Gentoo Authors
53 -# Distributed under the terms of the GNU General Public License v2
54 -
55 -EAPI="7"
56 -
57 -LUA_COMPAT=( lua5-3 )
58 -
59 -[[ ${PV} == *9999 ]] && SCM="git-r3"
60 -inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM}
61 -
62 -MY_P="${PN}-${PV/_beta/-dev}"
63 -
64 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
65 -HOMEPAGE="http://www.haproxy.org"
66 -if [[ ${PV} != *9999 ]]; then
67 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
68 - KEYWORDS="amd64 arm ~ppc x86"
69 -else
70 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
71 - EGIT_BRANCH=master
72 -fi
73 -
74 -LICENSE="GPL-2 LGPL-2.1"
75 -SLOT="0/$(ver_cut 1-2)"
76 -IUSE="+crypt doc examples slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter
77 -ssl systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
78 -REQUIRED_USE="pcre-jit? ( pcre )
79 - pcre2-jit? ( pcre2 )
80 - pcre? ( !pcre2 )
81 - lua? ( ${LUA_REQUIRED_USE} )
82 - device-atlas? ( pcre )
83 - ?? ( slz zlib )"
84 -
85 -BDEPEND="virtual/pkgconfig"
86 -DEPEND="
87 - crypt? ( virtual/libcrypt:= )
88 - pcre? (
89 - dev-libs/libpcre
90 - pcre-jit? ( dev-libs/libpcre[jit] )
91 - )
92 - pcre2? (
93 - dev-libs/libpcre2:=
94 - pcre2-jit? ( dev-libs/libpcre2:=[jit] )
95 - )
96 - ssl? (
97 - dev-libs/openssl:0=
98 - )
99 - slz? ( dev-libs/libslz:= )
100 - systemd? ( sys-apps/systemd )
101 - zlib? ( sys-libs/zlib )
102 - lua? ( ${LUA_DEPS} )
103 - device-atlas? ( dev-libs/device-atlas-api-c )"
104 -RDEPEND="${DEPEND}
105 - acct-group/haproxy
106 - acct-user/haproxy"
107 -
108 -S="${WORKDIR}/${MY_P}"
109 -
110 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
111 -CONTRIBS=( halog iprange )
112 -# ip6range is present in 1.6, but broken.
113 -ver_test ${PV} -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
114 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
115 -ver_test ${PV} -ge 1.8.0 && CONTRIBS+=( hpack )
116 -
117 -haproxy_use() {
118 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
119 -
120 - usex "${1}" "USE_${2}=1" "USE_${2}="
121 -}
122 -
123 -pkg_setup() {
124 - use lua && lua-single_pkg_setup
125 - if use net_ns; then
126 - CONFIG_CHECK="~NET_NS"
127 - linux-info_pkg_setup
128 - fi
129 -}
130 -
131 -src_compile() {
132 - local -a args=(
133 - V=1
134 - TARGET=linux-glibc
135 - )
136 -
137 - # TODO: PCRE2_WIDTH?
138 - args+=( $(haproxy_use threads THREAD) )
139 - args+=( $(haproxy_use crypt LIBCRYPT) )
140 - args+=( $(haproxy_use net_ns NS) )
141 - args+=( $(haproxy_use pcre PCRE) )
142 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
143 - args+=( $(haproxy_use pcre2 PCRE2) )
144 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
145 - args+=( $(haproxy_use ssl OPENSSL) )
146 - args+=( $(haproxy_use slz SLZ) )
147 - args+=( $(haproxy_use zlib ZLIB) )
148 - args+=( $(haproxy_use lua LUA) )
149 - args+=( $(haproxy_use 51degrees 51DEGREES) )
150 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
151 - args+=( $(haproxy_use wurfl WURFL) )
152 - args+=( $(haproxy_use systemd SYSTEMD) )
153 -
154 - # For now, until the strict-aliasing breakage will be fixed
155 - append-cflags -fno-strict-aliasing
156 -
157 - # Bug #668002
158 - if use ppc || use arm || use hppa; then
159 - TARGET_LDFLAGS=-latomic
160 - fi
161 -
162 - if use prometheus-exporter; then
163 - EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
164 - fi
165 -
166 - # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing
167 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" ${args[@]}
168 - emake -C contrib/systemd SBINDIR=/usr/sbin
169 -
170 - if use tools ; then
171 - for contrib in ${CONTRIBS[@]} ; do
172 - # Those two includes are a workaround for hpack Makefile missing those
173 - emake -C contrib/${contrib} \
174 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
175 - done
176 - fi
177 -}
178 -
179 -src_install() {
180 - dosbin haproxy
181 - dosym ../sbin/haproxy /usr/bin/haproxy
182 -
183 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
184 - newinitd "${FILESDIR}/${PN}.initd-r6" ${PN}
185 -
186 - doman doc/haproxy.1
187 -
188 - systemd_dounit contrib/systemd/haproxy.service
189 -
190 - einstalldocs
191 -
192 - # The errorfiles are used by upstream defaults.
193 - insinto /etc/haproxy/errors/
194 - doins examples/errorfiles/*
195 -
196 - if use doc; then
197 - dodoc ROADMAP doc/*.txt
198 - #if use lua; then
199 - # TODO: doc/lua-api/
200 - #fi
201 - fi
202 -
203 - if use tools ; then
204 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
205 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
206 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
207 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
208 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
209 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
210 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
211 - fi
212 -
213 - if use examples ; then
214 - docinto examples
215 - dodoc examples/*.cfg
216 - dodoc doc/seamless_reload.txt
217 - fi
218 -
219 - if use vim-syntax ; then
220 - insinto /usr/share/vim/vimfiles/syntax
221 - doins contrib/syntax-highlight/haproxy.vim
222 - fi
223 -}
224 -
225 -pkg_postinst() {
226 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
227 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
228 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
229 - ewarn "Make use of them with the \"user\" and \"group\" directives."
230 -
231 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
232 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
233 - einfo "The documentation and sample configuration files are installed here:"
234 - einfo " ${EROOT}/usr/share/doc/${PF}"
235 - fi
236 - fi
237 -}
238
239 diff --git a/net-proxy/haproxy/haproxy-2.0.23-r1.ebuild b/net-proxy/haproxy/haproxy-2.0.25.ebuild
240 similarity index 100%
241 rename from net-proxy/haproxy/haproxy-2.0.23-r1.ebuild
242 rename to net-proxy/haproxy/haproxy-2.0.25.ebuild
243
244 diff --git a/net-proxy/haproxy/haproxy-2.2.15-r1.ebuild b/net-proxy/haproxy/haproxy-2.2.17.ebuild
245 similarity index 100%
246 rename from net-proxy/haproxy/haproxy-2.2.15-r1.ebuild
247 rename to net-proxy/haproxy/haproxy-2.2.17.ebuild
248
249 diff --git a/net-proxy/haproxy/haproxy-2.2.5-r3.ebuild b/net-proxy/haproxy/haproxy-2.2.5-r3.ebuild
250 deleted file mode 100644
251 index e74a1dba415..00000000000
252 --- a/net-proxy/haproxy/haproxy-2.2.5-r3.ebuild
253 +++ /dev/null
254 @@ -1,187 +0,0 @@
255 -# Copyright 1999-2021 Gentoo Authors
256 -# Distributed under the terms of the GNU General Public License v2
257 -
258 -EAPI="7"
259 -
260 -LUA_COMPAT=( lua5-3 )
261 -
262 -[[ ${PV} == *9999 ]] && SCM="git-r3"
263 -inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM}
264 -
265 -MY_P="${PN}-${PV/_beta/-dev}"
266 -
267 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
268 -HOMEPAGE="http://www.haproxy.org"
269 -if [[ ${PV} != *9999 ]]; then
270 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
271 - KEYWORDS="amd64 arm ppc x86"
272 -else
273 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
274 - EGIT_BRANCH=master
275 -fi
276 -
277 -LICENSE="GPL-2 LGPL-2.1"
278 -SLOT="0/$(ver_cut 1-2)"
279 -IUSE="+crypt doc examples slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter
280 -ssl systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
281 -REQUIRED_USE="pcre-jit? ( pcre )
282 - pcre2-jit? ( pcre2 )
283 - pcre? ( !pcre2 )
284 - lua? ( ${LUA_REQUIRED_USE} )
285 - device-atlas? ( pcre )
286 - ?? ( slz zlib )"
287 -
288 -BDEPEND="virtual/pkgconfig"
289 -DEPEND="
290 - crypt? ( virtual/libcrypt:= )
291 - pcre? (
292 - dev-libs/libpcre
293 - pcre-jit? ( dev-libs/libpcre[jit] )
294 - )
295 - pcre2? (
296 - dev-libs/libpcre2:=
297 - pcre2-jit? ( dev-libs/libpcre2:=[jit] )
298 - )
299 - ssl? (
300 - dev-libs/openssl:0=
301 - )
302 - slz? ( dev-libs/libslz:= )
303 - systemd? ( sys-apps/systemd )
304 - zlib? ( sys-libs/zlib )
305 - lua? ( ${LUA_DEPS} )
306 - device-atlas? ( dev-libs/device-atlas-api-c )"
307 -RDEPEND="${DEPEND}
308 - acct-group/haproxy
309 - acct-user/haproxy"
310 -
311 -S="${WORKDIR}/${MY_P}"
312 -
313 -PATCHES=( "${FILESDIR}/${PN}-2.3.0-hpack-VAR_ARRAY.patch" )
314 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
315 -CONTRIBS=( halog iprange )
316 -# ip6range is present in 1.6, but broken.
317 -ver_test ${PV} -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
318 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
319 -ver_test ${PV} -ge 1.8.0 && CONTRIBS+=( hpack )
320 -
321 -haproxy_use() {
322 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
323 -
324 - usex "${1}" "USE_${2}=1" "USE_${2}="
325 -}
326 -
327 -pkg_setup() {
328 - use lua && lua-single_pkg_setup
329 - if use net_ns; then
330 - CONFIG_CHECK="~NET_NS"
331 - linux-info_pkg_setup
332 - fi
333 -}
334 -
335 -src_compile() {
336 - local -a args=(
337 - V=1
338 - TARGET=linux-glibc
339 - )
340 -
341 - # TODO: PCRE2_WIDTH?
342 - args+=( $(haproxy_use threads THREAD) )
343 - args+=( $(haproxy_use crypt LIBCRYPT) )
344 - args+=( $(haproxy_use net_ns NS) )
345 - args+=( $(haproxy_use pcre PCRE) )
346 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
347 - args+=( $(haproxy_use pcre2 PCRE2) )
348 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
349 - args+=( $(haproxy_use ssl OPENSSL) )
350 - args+=( $(haproxy_use slz SLZ) )
351 - args+=( $(haproxy_use zlib ZLIB) )
352 - args+=( $(haproxy_use lua LUA) )
353 - args+=( $(haproxy_use 51degrees 51DEGREES) )
354 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
355 - args+=( $(haproxy_use wurfl WURFL) )
356 - args+=( $(haproxy_use systemd SYSTEMD) )
357 -
358 - # For now, until the strict-aliasing breakage will be fixed
359 - append-cflags -fno-strict-aliasing
360 -
361 - # Bug #668002
362 - if use ppc || use arm || use hppa; then
363 - TARGET_LDFLAGS=-latomic
364 - fi
365 -
366 - if use prometheus-exporter; then
367 - EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
368 - fi
369 -
370 - # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing
371 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" ${args[@]}
372 - emake -C contrib/systemd SBINDIR=/usr/sbin
373 -
374 - if use tools ; then
375 - for contrib in ${CONTRIBS[@]} ; do
376 - # Those two includes are a workaround for hpack Makefile missing those
377 - emake -C contrib/${contrib} \
378 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
379 - done
380 - fi
381 -}
382 -
383 -src_install() {
384 - dosbin haproxy
385 - dosym ../sbin/haproxy /usr/bin/haproxy
386 -
387 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
388 - newinitd "${FILESDIR}/${PN}.initd-r6" ${PN}
389 -
390 - doman doc/haproxy.1
391 -
392 - systemd_dounit contrib/systemd/haproxy.service
393 -
394 - einstalldocs
395 -
396 - # The errorfiles are used by upstream defaults.
397 - insinto /etc/haproxy/errors/
398 - doins examples/errorfiles/*
399 -
400 - if use doc; then
401 - dodoc ROADMAP doc/*.txt
402 - #if use lua; then
403 - # TODO: doc/lua-api/
404 - #fi
405 - fi
406 -
407 - if use tools ; then
408 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
409 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
410 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
411 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
412 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
413 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
414 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
415 - fi
416 -
417 - if use examples ; then
418 - docinto examples
419 - dodoc examples/*.cfg
420 - dodoc doc/seamless_reload.txt
421 - fi
422 -
423 - if use vim-syntax ; then
424 - insinto /usr/share/vim/vimfiles/syntax
425 - doins contrib/syntax-highlight/haproxy.vim
426 - fi
427 -}
428 -
429 -pkg_postinst() {
430 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
431 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
432 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
433 - ewarn "Make use of them with the \"user\" and \"group\" directives."
434 -
435 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
436 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
437 - einfo "The documentation and sample configuration files are installed here:"
438 - einfo " ${EROOT}/usr/share/doc/${PF}"
439 - fi
440 - fi
441 -}
442
443 diff --git a/net-proxy/haproxy/haproxy-2.3.13.ebuild b/net-proxy/haproxy/haproxy-2.3.13.ebuild
444 deleted file mode 100644
445 index d2978148fb5..00000000000
446 --- a/net-proxy/haproxy/haproxy-2.3.13.ebuild
447 +++ /dev/null
448 @@ -1,183 +0,0 @@
449 -# Copyright 1999-2021 Gentoo Authors
450 -# Distributed under the terms of the GNU General Public License v2
451 -
452 -EAPI="7"
453 -
454 -LUA_COMPAT=( lua5-3 )
455 -
456 -[[ ${PV} == *9999 ]] && SCM="git-r3"
457 -inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM}
458 -
459 -MY_P="${PN}-${PV/_beta/-dev}"
460 -
461 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
462 -HOMEPAGE="http://www.haproxy.org"
463 -if [[ ${PV} != *9999 ]]; then
464 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
465 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
466 -else
467 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
468 - EGIT_BRANCH=master
469 -fi
470 -
471 -LICENSE="GPL-2 LGPL-2.1"
472 -SLOT="0/$(ver_cut 1-2)"
473 -IUSE="+crypt doc examples slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter
474 -ssl systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
475 -REQUIRED_USE="pcre-jit? ( pcre )
476 - pcre2-jit? ( pcre2 )
477 - pcre? ( !pcre2 )
478 - lua? ( ${LUA_REQUIRED_USE} )
479 - device-atlas? ( pcre )
480 - ?? ( slz zlib )"
481 -
482 -BDEPEND="virtual/pkgconfig"
483 -DEPEND="
484 - crypt? ( virtual/libcrypt:= )
485 - pcre? (
486 - dev-libs/libpcre
487 - pcre-jit? ( dev-libs/libpcre[jit] )
488 - )
489 - pcre2? (
490 - dev-libs/libpcre2:=
491 - pcre2-jit? ( dev-libs/libpcre2:=[jit] )
492 - )
493 - ssl? (
494 - dev-libs/openssl:0=
495 - )
496 - slz? ( dev-libs/libslz:= )
497 - systemd? ( sys-apps/systemd )
498 - zlib? ( sys-libs/zlib )
499 - lua? ( ${LUA_DEPS} )
500 - device-atlas? ( dev-libs/device-atlas-api-c )"
501 -RDEPEND="${DEPEND}
502 - acct-group/haproxy
503 - acct-user/haproxy"
504 -
505 -S="${WORKDIR}/${MY_P}"
506 -
507 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
508 -CONTRIBS=( halog iprange )
509 -# ip6range is present in 1.6, but broken.
510 -ver_test ${PV} -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
511 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
512 -ver_test ${PV} -ge 1.8.0 && CONTRIBS+=( hpack )
513 -
514 -haproxy_use() {
515 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
516 -
517 - usex "${1}" "USE_${2}=1" "USE_${2}="
518 -}
519 -
520 -pkg_setup() {
521 - use lua && lua-single_pkg_setup
522 - if use net_ns; then
523 - CONFIG_CHECK="~NET_NS"
524 - linux-info_pkg_setup
525 - fi
526 -}
527 -
528 -src_compile() {
529 - local -a args=(
530 - V=1
531 - TARGET=linux-glibc
532 - )
533 -
534 - # TODO: PCRE2_WIDTH?
535 - args+=( $(haproxy_use threads THREAD) )
536 - args+=( $(haproxy_use crypt LIBCRYPT) )
537 - args+=( $(haproxy_use net_ns NS) )
538 - args+=( $(haproxy_use pcre PCRE) )
539 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
540 - args+=( $(haproxy_use pcre2 PCRE2) )
541 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
542 - args+=( $(haproxy_use ssl OPENSSL) )
543 - args+=( $(haproxy_use slz SLZ) )
544 - args+=( $(haproxy_use zlib ZLIB) )
545 - args+=( $(haproxy_use lua LUA) )
546 - args+=( $(haproxy_use 51degrees 51DEGREES) )
547 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
548 - args+=( $(haproxy_use wurfl WURFL) )
549 - args+=( $(haproxy_use systemd SYSTEMD) )
550 -
551 - # Bug #668002
552 - if use ppc || use arm || use hppa; then
553 - TARGET_LDFLAGS=-latomic
554 - fi
555 -
556 - if use prometheus-exporter; then
557 - EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
558 - fi
559 -
560 - # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing
561 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" ${args[@]}
562 - emake -C contrib/systemd SBINDIR=/usr/sbin
563 -
564 - if use tools ; then
565 - for contrib in ${CONTRIBS[@]} ; do
566 - # Those two includes are a workaround for hpack Makefile missing those
567 - emake -C contrib/${contrib} \
568 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
569 - done
570 - fi
571 -}
572 -
573 -src_install() {
574 - dosbin haproxy
575 - dosym ../sbin/haproxy /usr/bin/haproxy
576 -
577 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
578 - newinitd "${FILESDIR}/${PN}.initd-r6" ${PN}
579 -
580 - doman doc/haproxy.1
581 -
582 - systemd_dounit contrib/systemd/haproxy.service
583 -
584 - einstalldocs
585 -
586 - # The errorfiles are used by upstream defaults.
587 - insinto /etc/haproxy/errors/
588 - doins examples/errorfiles/*
589 -
590 - if use doc; then
591 - dodoc ROADMAP doc/*.txt
592 - #if use lua; then
593 - # TODO: doc/lua-api/
594 - #fi
595 - fi
596 -
597 - if use tools ; then
598 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
599 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
600 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
601 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
602 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
603 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
604 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
605 - fi
606 -
607 - if use examples ; then
608 - docinto examples
609 - dodoc examples/*.cfg
610 - dodoc doc/seamless_reload.txt
611 - fi
612 -
613 - if use vim-syntax ; then
614 - insinto /usr/share/vim/vimfiles/syntax
615 - doins contrib/syntax-highlight/haproxy.vim
616 - fi
617 -}
618 -
619 -pkg_postinst() {
620 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
621 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
622 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
623 - ewarn "Make use of them with the \"user\" and \"group\" directives."
624 -
625 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
626 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
627 - einfo "The documentation and sample configuration files are installed here:"
628 - einfo " ${EROOT}/usr/share/doc/${PF}"
629 - fi
630 - fi
631 -}
632
633 diff --git a/net-proxy/haproxy/haproxy-2.3.12-r1.ebuild b/net-proxy/haproxy/haproxy-2.3.14.ebuild
634 similarity index 100%
635 rename from net-proxy/haproxy/haproxy-2.3.12-r1.ebuild
636 rename to net-proxy/haproxy/haproxy-2.3.14.ebuild
637
638 diff --git a/net-proxy/haproxy/haproxy-2.4.3.ebuild b/net-proxy/haproxy/haproxy-2.4.3.ebuild
639 deleted file mode 100644
640 index 5c4cee22742..00000000000
641 --- a/net-proxy/haproxy/haproxy-2.4.3.ebuild
642 +++ /dev/null
643 @@ -1,182 +0,0 @@
644 -# Copyright 1999-2021 Gentoo Authors
645 -# Distributed under the terms of the GNU General Public License v2
646 -
647 -EAPI="7"
648 -
649 -LUA_COMPAT=( lua5-3 )
650 -
651 -[[ ${PV} == *9999 ]] && SCM="git-r3"
652 -inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM}
653 -
654 -MY_P="${PN}-${PV/_beta/-dev}"
655 -
656 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
657 -HOMEPAGE="http://www.haproxy.org"
658 -if [[ ${PV} != *9999 ]]; then
659 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
660 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
661 -else
662 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
663 - EGIT_BRANCH=master
664 -fi
665 -
666 -LICENSE="GPL-2 LGPL-2.1"
667 -SLOT="0/$(ver_cut 1-2)"
668 -IUSE="+crypt doc examples +slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter
669 -ssl systemd +threads tools vim-syntax zlib lua device-atlas 51degrees wurfl"
670 -REQUIRED_USE="pcre-jit? ( pcre )
671 - pcre2-jit? ( pcre2 )
672 - pcre? ( !pcre2 )
673 - lua? ( ${LUA_REQUIRED_USE} )
674 - device-atlas? ( pcre )
675 - ?? ( slz zlib )"
676 -
677 -BDEPEND="virtual/pkgconfig"
678 -DEPEND="
679 - crypt? ( virtual/libcrypt:= )
680 - pcre? (
681 - dev-libs/libpcre
682 - pcre-jit? ( dev-libs/libpcre[jit] )
683 - )
684 - pcre2? (
685 - dev-libs/libpcre2:=
686 - pcre2-jit? ( dev-libs/libpcre2:=[jit] )
687 - )
688 - ssl? (
689 - dev-libs/openssl:0=
690 - )
691 - systemd? ( sys-apps/systemd )
692 - zlib? ( sys-libs/zlib )
693 - lua? ( ${LUA_DEPS} )
694 - device-atlas? ( dev-libs/device-atlas-api-c )"
695 -RDEPEND="${DEPEND}
696 - acct-group/haproxy
697 - acct-user/haproxy"
698 -
699 -S="${WORKDIR}/${MY_P}"
700 -
701 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
702 -EXTRAS=( admin/halog admin/iprange dev/tcploop dev/hpack )
703 -
704 -haproxy_use() {
705 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
706 -
707 - usex "${1}" "USE_${2}=1" "USE_${2}="
708 -}
709 -
710 -pkg_setup() {
711 - use lua && lua-single_pkg_setup
712 - if use net_ns; then
713 - CONFIG_CHECK="~NET_NS"
714 - linux-info_pkg_setup
715 - fi
716 -}
717 -
718 -src_compile() {
719 - local -a args=(
720 - V=1
721 - TARGET=linux-glibc
722 - )
723 -
724 - # TODO: PCRE2_WIDTH?
725 - args+=( $(haproxy_use threads THREAD) )
726 - args+=( $(haproxy_use crypt LIBCRYPT) )
727 - args+=( $(haproxy_use net_ns NS) )
728 - args+=( $(haproxy_use pcre PCRE) )
729 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
730 - args+=( $(haproxy_use pcre2 PCRE2) )
731 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
732 - args+=( $(haproxy_use ssl OPENSSL) )
733 - args+=( $(haproxy_use slz SLZ) )
734 - args+=( $(haproxy_use zlib ZLIB) )
735 - args+=( $(haproxy_use lua LUA) )
736 - args+=( $(haproxy_use 51degrees 51DEGREES) )
737 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
738 - args+=( $(haproxy_use wurfl WURFL) )
739 - args+=( $(haproxy_use systemd SYSTEMD) )
740 - args+=( $(haproxy_use prometheus-exporter PROMEX) )
741 -
742 - # Bug #668002
743 - if use ppc || use arm || use hppa; then
744 - TARGET_LDFLAGS=-latomic
745 - fi
746 -
747 - # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing
748 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ERROT}/usr/$(get_libdir) ${args[@]}
749 - emake -C admin/systemd CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ERROT}/usr/$(get_libdir) SBINDIR=/usr/sbin
750 -
751 - if use tools ; then
752 - for extra in ${EXTRAS[@]} ; do
753 - if [ "${extra}" = "admin/halog" ]; then
754 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ERROT}/usr/$(get_libdir) ${args[@]} admin/halog/halog
755 - elif [ "${extra}" = "dev/hpack" ]; then
756 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ERROT}/usr/$(get_libdir) ${args[@]} dev/hpack/{decode,gen-enc,gen-rht}
757 - else
758 - # Those two includes are a workaround for hpack Makefile missing those
759 - emake -C ${extra} \
760 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
761 - fi
762 - done
763 - fi
764 -}
765 -
766 -src_install() {
767 - dosbin haproxy
768 - dosym ../sbin/haproxy /usr/bin/haproxy
769 -
770 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
771 - newinitd "${FILESDIR}/${PN}.initd-r6" ${PN}
772 -
773 - doman doc/haproxy.1
774 -
775 - systemd_dounit admin/systemd/haproxy.service
776 -
777 - einstalldocs
778 -
779 - # The errorfiles are used by upstream defaults.
780 - insinto /etc/haproxy/errors/
781 - doins examples/errorfiles/*
782 -
783 - if use doc; then
784 - dodoc ROADMAP doc/*.txt
785 - #if use lua; then
786 - # TODO: doc/lua-api/
787 - #fi
788 - fi
789 -
790 - if use tools ; then
791 - has admin/halog "${EXTRAS[@]}" && dobin admin/halog/halog
792 - has admin/iprange "${EXTRAS[@]}" && { newbin admin/iprange/iprange haproxy_iprange; newbin admin/iprange/ip6range haproxy_ip6range; }
793 - has dev/tcploop "${EXTRAS[@]}" && newbin dev/tcploop/tcploop haproxy_tcploop
794 - has dev/hpack "${EXTRAS[@]}" && {
795 - newbin dev/hpack/gen-rht haproxy_gen-rht
796 - newbin dev/hpack/gen-enc haproxy_gen-enc
797 - newbin dev/hpack/decode haproxy_decode
798 - }
799 - fi
800 -
801 - if use examples ; then
802 - docinto examples
803 - dodoc examples/*.cfg
804 - dodoc doc/seamless_reload.txt
805 - fi
806 -
807 - if use vim-syntax ; then
808 - insinto /usr/share/vim/vimfiles/syntax
809 - doins admin/syntax-highlight/haproxy.vim
810 - fi
811 -}
812 -
813 -pkg_postinst() {
814 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
815 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
816 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
817 - ewarn "Make use of them with the \"user\" and \"group\" directives."
818 -
819 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
820 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
821 - einfo "The documentation and sample configuration files are installed here:"
822 - einfo " ${EROOT}/usr/share/doc/${PF}"
823 - fi
824 - fi
825 -}
826
827 diff --git a/net-proxy/haproxy/haproxy-2.4.2-r1.ebuild b/net-proxy/haproxy/haproxy-2.4.4.ebuild
828 similarity index 100%
829 rename from net-proxy/haproxy/haproxy-2.4.2-r1.ebuild
830 rename to net-proxy/haproxy/haproxy-2.4.4.ebuild