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: Wed, 24 Nov 2021 11:13:43
Message-Id: 1637752413.0c02edbcb702cfa5ec035f0343ef6fc2517fe1f7.idl0r@gentoo
1 commit: 0c02edbcb702cfa5ec035f0343ef6fc2517fe1f7
2 Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 24 11:02:49 2021 +0000
4 Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 24 11:13:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c02edbc
7
8 net-proxy/haproxy: Cleanup old versions
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org>
12
13 net-proxy/haproxy/Manifest | 2 -
14 net-proxy/haproxy/haproxy-2.0.24.ebuild | 186 --------------------------------
15 net-proxy/haproxy/haproxy-2.2.16.ebuild | 186 --------------------------------
16 3 files changed, 374 deletions(-)
17
18 diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest
19 index 38010503b4e9..d0aebc6198bf 100644
20 --- a/net-proxy/haproxy/Manifest
21 +++ b/net-proxy/haproxy/Manifest
22 @@ -1,6 +1,4 @@
23 -DIST haproxy-2.0.24.tar.gz 2707476 BLAKE2B 98539bf4affd7efd8703d29f0ef03182f2b58b0aed39984c2c47959996caeb3e3ee2863d46588d991fe4aabf073810712db0e4b78668d41a92e634b9cc31080f SHA512 8136639beb37f6ac19653e9553de24bb5e3f258cf9276d6d8caebe74d500e1f6e50e23f5f47d32a1a157bf906e04fff9b1aa062ecb15d361b5dd2aa0da6e63bd
24 DIST haproxy-2.0.25.tar.gz 2707840 BLAKE2B cd85d233623f2791bff8ada00d9ac4ea3743e2c1fbccd45a6fd56b7cc0ae5904619b50849a23576f0a6d21ae2798166acd41692d0311bcf361355dc6ee0da790 SHA512 2c238844a8c82f877d3039b20b76fd22717f95a4e5d94a0bfd501c6e134042ef744d3731fc0ccced0a94e5cb1c1822d3272ed961e07bd9acc4d637eba0529155
25 -DIST haproxy-2.2.16.tar.gz 2933121 BLAKE2B 89fa4ee3baf2823cab0f664d95c0a00c345f913d059604a6cdd1906b6883b5baec0a0dbaa1badd0b512d4ae953d66e16832bd9b7169f065f97d5ced65aa8ed7f SHA512 5a1e3e8f7c6ce995c5ba9416862622143054abeadd3f2b94acef73267440d941f52c18467eed500af098bdaba8e3ae3054101371f1903e60605443ca9d36335e
26 DIST haproxy-2.2.17.tar.gz 2933836 BLAKE2B 750d2c5048f994442d13c05ce6624731d296462951ee2e86110467d517a6708b498e98260a3f0770e110dc5c2cb2bdd746fb76f23ba7cebc1642b0b9c8124a67 SHA512 174197e1e0915a6ae6062b9a070f16102ac7f3429f991f36cdb2e2cce587bd26059bd1dc71a368f904bcdecd292ab5926715160400ae96d498d902aac356864f
27 DIST haproxy-2.2.18.tar.gz 2940789 BLAKE2B e932c53b67052a2696a00cc9e0ee79ca2c7bdc5ba51bbb6c5bf3e7d5ef8bcf3c4e0f6524d40bcbc3342f86c3ddec6e27a0a2ad329ee5ad510260dc2f24b3913b SHA512 255b5d5984578a8d018b80e213ff2bca583de30d835aa3de345fabb05c229277d18007251b441dfdbf863e0297a2fa6e08e41b7b57dd76eba7f2e50879ae2cfa
28 DIST haproxy-2.3.14.tar.gz 2954299 BLAKE2B 656108e3860ee2f174b218eda362aa9b1fff56fed3f9a4cf7fb491342fb4379d84ead4754a5f422d6763fdb6ead6f0f20217763abc1082cbbf355b095a467da2 SHA512 4e008b79b809dfc32b18728e0a39e7d78cbbbda61d33514cc40034916d46b9df3398bed0f6deda03216a82b5debb08cf91120d841a988bff2385fdc0508a326d
29
30 diff --git a/net-proxy/haproxy/haproxy-2.0.24.ebuild b/net-proxy/haproxy/haproxy-2.0.24.ebuild
31 deleted file mode 100644
32 index 878d6a4d8741..000000000000
33 --- a/net-proxy/haproxy/haproxy-2.0.24.ebuild
34 +++ /dev/null
35 @@ -1,186 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI="7"
40 -
41 -LUA_COMPAT=( lua5-3 )
42 -
43 -[[ ${PV} == *9999 ]] && SCM="git-r3"
44 -inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM}
45 -
46 -MY_P="${PN}-${PV/_beta/-dev}"
47 -
48 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
49 -HOMEPAGE="http://www.haproxy.org"
50 -if [[ ${PV} != *9999 ]]; then
51 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
52 - KEYWORDS="amd64 arm ppc x86"
53 -else
54 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
55 - EGIT_BRANCH=master
56 -fi
57 -
58 -LICENSE="GPL-2 LGPL-2.1"
59 -SLOT="0/$(ver_cut 1-2)"
60 -IUSE="+crypt doc examples slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter
61 -ssl systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
62 -REQUIRED_USE="pcre-jit? ( pcre )
63 - pcre2-jit? ( pcre2 )
64 - pcre? ( !pcre2 )
65 - lua? ( ${LUA_REQUIRED_USE} )
66 - device-atlas? ( pcre )
67 - ?? ( slz zlib )"
68 -
69 -BDEPEND="virtual/pkgconfig"
70 -DEPEND="
71 - crypt? ( virtual/libcrypt:= )
72 - pcre? (
73 - dev-libs/libpcre
74 - pcre-jit? ( dev-libs/libpcre[jit] )
75 - )
76 - pcre2? (
77 - dev-libs/libpcre2:=
78 - pcre2-jit? ( dev-libs/libpcre2:=[jit] )
79 - )
80 - ssl? (
81 - dev-libs/openssl:0=
82 - )
83 - slz? ( dev-libs/libslz:= )
84 - systemd? ( sys-apps/systemd )
85 - zlib? ( sys-libs/zlib )
86 - lua? ( ${LUA_DEPS} )
87 - device-atlas? ( dev-libs/device-atlas-api-c )"
88 -RDEPEND="${DEPEND}
89 - acct-group/haproxy
90 - acct-user/haproxy"
91 -
92 -S="${WORKDIR}/${MY_P}"
93 -
94 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
95 -CONTRIBS=( halog iprange )
96 -# ip6range is present in 1.6, but broken.
97 -ver_test ${PV} -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
98 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
99 -ver_test ${PV} -ge 1.8.0 && CONTRIBS+=( hpack )
100 -
101 -haproxy_use() {
102 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
103 -
104 - usex "${1}" "USE_${2}=1" "USE_${2}="
105 -}
106 -
107 -pkg_setup() {
108 - use lua && lua-single_pkg_setup
109 - if use net_ns; then
110 - CONFIG_CHECK="~NET_NS"
111 - linux-info_pkg_setup
112 - fi
113 -}
114 -
115 -src_compile() {
116 - local -a args=(
117 - V=1
118 - TARGET=linux-glibc
119 - )
120 -
121 - # TODO: PCRE2_WIDTH?
122 - args+=( $(haproxy_use threads THREAD) )
123 - args+=( $(haproxy_use crypt LIBCRYPT) )
124 - args+=( $(haproxy_use net_ns NS) )
125 - args+=( $(haproxy_use pcre PCRE) )
126 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
127 - args+=( $(haproxy_use pcre2 PCRE2) )
128 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
129 - args+=( $(haproxy_use ssl OPENSSL) )
130 - args+=( $(haproxy_use slz SLZ) )
131 - args+=( $(haproxy_use zlib ZLIB) )
132 - args+=( $(haproxy_use lua LUA) )
133 - args+=( $(haproxy_use 51degrees 51DEGREES) )
134 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
135 - args+=( $(haproxy_use wurfl WURFL) )
136 - args+=( $(haproxy_use systemd SYSTEMD) )
137 -
138 - # For now, until the strict-aliasing breakage will be fixed
139 - append-cflags -fno-strict-aliasing
140 -
141 - # Bug #668002
142 - if use ppc || use arm || use hppa; then
143 - TARGET_LDFLAGS=-latomic
144 - fi
145 -
146 - if use prometheus-exporter; then
147 - EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
148 - fi
149 -
150 - # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing
151 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" ${args[@]}
152 - emake -C contrib/systemd SBINDIR=/usr/sbin
153 -
154 - if use tools ; then
155 - for contrib in ${CONTRIBS[@]} ; do
156 - # Those two includes are a workaround for hpack Makefile missing those
157 - emake -C contrib/${contrib} \
158 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
159 - done
160 - fi
161 -}
162 -
163 -src_install() {
164 - dosbin haproxy
165 - dosym ../sbin/haproxy /usr/bin/haproxy
166 -
167 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
168 - newinitd "${FILESDIR}/${PN}.initd-r6" ${PN}
169 -
170 - doman doc/haproxy.1
171 -
172 - systemd_dounit contrib/systemd/haproxy.service
173 -
174 - einstalldocs
175 -
176 - # The errorfiles are used by upstream defaults.
177 - insinto /etc/haproxy/errors/
178 - doins examples/errorfiles/*
179 -
180 - if use doc; then
181 - dodoc ROADMAP doc/*.txt
182 - #if use lua; then
183 - # TODO: doc/lua-api/
184 - #fi
185 - fi
186 -
187 - if use tools ; then
188 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
189 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
190 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
191 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
192 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
193 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
194 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
195 - fi
196 -
197 - if use examples ; then
198 - docinto examples
199 - dodoc examples/*.cfg
200 - dodoc doc/seamless_reload.txt
201 - fi
202 -
203 - if use vim-syntax ; then
204 - insinto /usr/share/vim/vimfiles/syntax
205 - doins contrib/syntax-highlight/haproxy.vim
206 - fi
207 -}
208 -
209 -pkg_postinst() {
210 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
211 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
212 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
213 - ewarn "Make use of them with the \"user\" and \"group\" directives."
214 -
215 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
216 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
217 - einfo "The documentation and sample configuration files are installed here:"
218 - einfo " ${EROOT}/usr/share/doc/${PF}"
219 - fi
220 - fi
221 -}
222
223 diff --git a/net-proxy/haproxy/haproxy-2.2.16.ebuild b/net-proxy/haproxy/haproxy-2.2.16.ebuild
224 deleted file mode 100644
225 index 878d6a4d8741..000000000000
226 --- a/net-proxy/haproxy/haproxy-2.2.16.ebuild
227 +++ /dev/null
228 @@ -1,186 +0,0 @@
229 -# Copyright 1999-2021 Gentoo Authors
230 -# Distributed under the terms of the GNU General Public License v2
231 -
232 -EAPI="7"
233 -
234 -LUA_COMPAT=( lua5-3 )
235 -
236 -[[ ${PV} == *9999 ]] && SCM="git-r3"
237 -inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM}
238 -
239 -MY_P="${PN}-${PV/_beta/-dev}"
240 -
241 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
242 -HOMEPAGE="http://www.haproxy.org"
243 -if [[ ${PV} != *9999 ]]; then
244 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
245 - KEYWORDS="amd64 arm ppc x86"
246 -else
247 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
248 - EGIT_BRANCH=master
249 -fi
250 -
251 -LICENSE="GPL-2 LGPL-2.1"
252 -SLOT="0/$(ver_cut 1-2)"
253 -IUSE="+crypt doc examples slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter
254 -ssl systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
255 -REQUIRED_USE="pcre-jit? ( pcre )
256 - pcre2-jit? ( pcre2 )
257 - pcre? ( !pcre2 )
258 - lua? ( ${LUA_REQUIRED_USE} )
259 - device-atlas? ( pcre )
260 - ?? ( slz zlib )"
261 -
262 -BDEPEND="virtual/pkgconfig"
263 -DEPEND="
264 - crypt? ( virtual/libcrypt:= )
265 - pcre? (
266 - dev-libs/libpcre
267 - pcre-jit? ( dev-libs/libpcre[jit] )
268 - )
269 - pcre2? (
270 - dev-libs/libpcre2:=
271 - pcre2-jit? ( dev-libs/libpcre2:=[jit] )
272 - )
273 - ssl? (
274 - dev-libs/openssl:0=
275 - )
276 - slz? ( dev-libs/libslz:= )
277 - systemd? ( sys-apps/systemd )
278 - zlib? ( sys-libs/zlib )
279 - lua? ( ${LUA_DEPS} )
280 - device-atlas? ( dev-libs/device-atlas-api-c )"
281 -RDEPEND="${DEPEND}
282 - acct-group/haproxy
283 - acct-user/haproxy"
284 -
285 -S="${WORKDIR}/${MY_P}"
286 -
287 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
288 -CONTRIBS=( halog iprange )
289 -# ip6range is present in 1.6, but broken.
290 -ver_test ${PV} -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
291 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
292 -ver_test ${PV} -ge 1.8.0 && CONTRIBS+=( hpack )
293 -
294 -haproxy_use() {
295 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
296 -
297 - usex "${1}" "USE_${2}=1" "USE_${2}="
298 -}
299 -
300 -pkg_setup() {
301 - use lua && lua-single_pkg_setup
302 - if use net_ns; then
303 - CONFIG_CHECK="~NET_NS"
304 - linux-info_pkg_setup
305 - fi
306 -}
307 -
308 -src_compile() {
309 - local -a args=(
310 - V=1
311 - TARGET=linux-glibc
312 - )
313 -
314 - # TODO: PCRE2_WIDTH?
315 - args+=( $(haproxy_use threads THREAD) )
316 - args+=( $(haproxy_use crypt LIBCRYPT) )
317 - args+=( $(haproxy_use net_ns NS) )
318 - args+=( $(haproxy_use pcre PCRE) )
319 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
320 - args+=( $(haproxy_use pcre2 PCRE2) )
321 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
322 - args+=( $(haproxy_use ssl OPENSSL) )
323 - args+=( $(haproxy_use slz SLZ) )
324 - args+=( $(haproxy_use zlib ZLIB) )
325 - args+=( $(haproxy_use lua LUA) )
326 - args+=( $(haproxy_use 51degrees 51DEGREES) )
327 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
328 - args+=( $(haproxy_use wurfl WURFL) )
329 - args+=( $(haproxy_use systemd SYSTEMD) )
330 -
331 - # For now, until the strict-aliasing breakage will be fixed
332 - append-cflags -fno-strict-aliasing
333 -
334 - # Bug #668002
335 - if use ppc || use arm || use hppa; then
336 - TARGET_LDFLAGS=-latomic
337 - fi
338 -
339 - if use prometheus-exporter; then
340 - EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
341 - fi
342 -
343 - # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing
344 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" ${args[@]}
345 - emake -C contrib/systemd SBINDIR=/usr/sbin
346 -
347 - if use tools ; then
348 - for contrib in ${CONTRIBS[@]} ; do
349 - # Those two includes are a workaround for hpack Makefile missing those
350 - emake -C contrib/${contrib} \
351 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
352 - done
353 - fi
354 -}
355 -
356 -src_install() {
357 - dosbin haproxy
358 - dosym ../sbin/haproxy /usr/bin/haproxy
359 -
360 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
361 - newinitd "${FILESDIR}/${PN}.initd-r6" ${PN}
362 -
363 - doman doc/haproxy.1
364 -
365 - systemd_dounit contrib/systemd/haproxy.service
366 -
367 - einstalldocs
368 -
369 - # The errorfiles are used by upstream defaults.
370 - insinto /etc/haproxy/errors/
371 - doins examples/errorfiles/*
372 -
373 - if use doc; then
374 - dodoc ROADMAP doc/*.txt
375 - #if use lua; then
376 - # TODO: doc/lua-api/
377 - #fi
378 - fi
379 -
380 - if use tools ; then
381 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
382 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
383 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
384 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
385 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
386 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
387 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
388 - fi
389 -
390 - if use examples ; then
391 - docinto examples
392 - dodoc examples/*.cfg
393 - dodoc doc/seamless_reload.txt
394 - fi
395 -
396 - if use vim-syntax ; then
397 - insinto /usr/share/vim/vimfiles/syntax
398 - doins contrib/syntax-highlight/haproxy.vim
399 - fi
400 -}
401 -
402 -pkg_postinst() {
403 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
404 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
405 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
406 - ewarn "Make use of them with the \"user\" and \"group\" directives."
407 -
408 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
409 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
410 - einfo "The documentation and sample configuration files are installed here:"
411 - einfo " ${EROOT}/usr/share/doc/${PF}"
412 - fi
413 - fi
414 -}