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: Fri, 24 Apr 2020 09:19:43
Message-Id: 1587719971.516560532fd0cc02a2d3bf438b878acf6ac2592d.idl0r@gentoo
1 commit: 516560532fd0cc02a2d3bf438b878acf6ac2592d
2 Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 24 09:19:28 2020 +0000
4 Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 24 09:19:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51656053
7
8 net-proxy/haproxy: Remove old ebuilds
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org>
12
13 net-proxy/haproxy/Manifest | 4 -
14 net-proxy/haproxy/haproxy-1.8.24.ebuild | 169 ------------------------------
15 net-proxy/haproxy/haproxy-1.8.25.ebuild | 169 ------------------------------
16 net-proxy/haproxy/haproxy-1.9.14.ebuild | 173 -------------------------------
17 net-proxy/haproxy/haproxy-2.0.13.ebuild | 176 --------------------------------
18 net-proxy/haproxy/haproxy-2.1.3.ebuild | 176 --------------------------------
19 6 files changed, 867 deletions(-)
20
21 diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest
22 index b089c439e03..5f6420bd3f7 100644
23 --- a/net-proxy/haproxy/Manifest
24 +++ b/net-proxy/haproxy/Manifest
25 @@ -1,10 +1,6 @@
26 DIST haproxy-1.8.13.tar.gz 2063046 BLAKE2B 9ebccf2520719cdf209bc9a87bf28d015b5b673e0d017d5387af4025f930ac401f6a2cfa851583ffe6b6645b7b91ad255bb5db737688a1f310958072a11c8a80 SHA512 54d4cb0721a3868267d7e085b3d3bb050384e4279eb49e88abb925bb3ea8cc39ef9069bdc99b7b18a23fd22e0d29e24dfcb8a0507ddca9243a845e4418be9cc5
27 -DIST haproxy-1.8.24.tar.gz 2178823 BLAKE2B 4b040133b22f78fa8c4cdbe04183c6ae6a70fb20703907c63b6437d441ba260a41cb2d6067833700a230553648152dde0cbd3a443f05ec7935ff76939db996ae SHA512 1c53c7f579ee7eb95c3e614441745c644e5cb5b00efb1da4db9b202e2ae58ffb331ce0b94da9fe5dd4db591c5a0995030739dd3f925f66bd5b9dcce70d6b6de6
28 DIST haproxy-1.8.25.tar.gz 2184002 BLAKE2B d6ea39af0109eee679d87dde258038bbb38ccf12796b2e6a7172067fce6bd0f10485e2a3d89ca5b3596529db4e34d511bbb194b019c7403703cb636573b0438d SHA512 655eb4056989a3fee321ea9278a2085b0a999e522293f1f6229ebb8d17f3d33cb78abb4fd55a06d0218082e632b2d42de105575d0acd0c1b49996d4b45aa78e8
29 DIST haproxy-1.8.9.tar.gz 2057051 BLAKE2B d81d18f68a27ae8a77660c1ecb1dfc28599263ebfd57f25ea574af2b101b35eb7a1a89ba4034b55dfa89673ae6ac4c0dca5428b4b494a02184b1b157850ce96b SHA512 e59c29af3a39d6212f012ae8341b169436e10e42fadaf8f1aa68d2bb7ee181fd1fe3b74640bfcd8c37c17dfc5062b36bd69d90290d7c59cd3e4648ef2ab1c8dd
30 -DIST haproxy-1.9.14.tar.gz 2476753 BLAKE2B 3bf2b685b04b77fec6637b2c56e824681fe6fbd32de0b66a03fbdc9e71e52357b74eb315c17e72f345d255d9763b719c5d201f994a11c62e96f8f6e50208cb2e SHA512 ee0b0a994f25dff9538326c0e124e291a74a1381f9526352fe01317756ab59dfb523ee7968587f31883c59dabeb5b17effa699e65dbb67a4a18d094f32fab88a
31 DIST haproxy-1.9.15.tar.gz 2480346 BLAKE2B 9ebdef0cb038324b1cbe74198e73fd7f3adf5d1c6ec4000fb02e2640fe79e4b64257bfb5d6da5f1ee73486969a47e13f386313d1923893d290ef368775a08d79 SHA512 618799c9c9c5ce2c9e42aaf22abe6018d1071a72ce54273c330538007d44568a29f643d53e4861d26dbc4fc5acd1b927361948dfc1c846574d6183b6ae81429c
32 -DIST haproxy-2.0.13.tar.gz 2643134 BLAKE2B a14ff8488b6d187feea2b0ed81253392b4f26d546b602597bf7dc2802a2b4b2119d5769668cc0eeda1bf448d2f544ce3e456ef78af43719ab6a4c0e0829ab291 SHA512 b0a218e1cebd2c356e81605157d6cee9f448bad59172d31d9b67eb2bab4c72dbc32f48690d84c92faac8c47d8c22002b3a93af49b61a3e7bb97fcf3fa8fe081a
33 DIST haproxy-2.0.14.tar.gz 2651320 BLAKE2B dd5aed78e52b3d3dd295f3883d45adf8795efac93cf6c23fbe39be031f29d19adad0afb400e8041281413f4570bc074f06d9cd88bee672789311e56f57b258d0 SHA512 6b63b713a1009eff59a2622fa93462deb8794c910685840f142711a61be88ea228c7cb2ec7ca50bba0803288625e1a65b2d2f87ffbcedfd23debfbbbb5d96993
34 -DIST haproxy-2.1.3.tar.gz 2675529 BLAKE2B be663fd629c001c1c91d6e3db5a8d940ed5ee674d5b886283284d2077ed8e0d13d295aeb376f6580131bdeb105c9d88f7afe367f2279d6c548d5888bd943e2b6 SHA512 4728c1177b2bba69465cbc56b1ed73a1b2d36891ba2d94d29bb49714ad98ccfac4b52947735aded211f0cd8070002f5406ddd77cabd2f8230b00438189dd7a60
35 DIST haproxy-2.1.4.tar.gz 2684568 BLAKE2B 0618e069e6cf6fd20eb9fad0cfcb5ca1714d4001a794e20ce60d812741f4f65d44088c46599e4181cb79536566a940d748030552d0bd010ba14d1552cf7156f4 SHA512 fd029ac1ec877fa89a9410944439b66795b1392b6c8416aaa7978943170530c3826ba50ea706366f3f7785b7cffed58497cb362fc2480dd6920a99af4f920d98
36
37 diff --git a/net-proxy/haproxy/haproxy-1.8.24.ebuild b/net-proxy/haproxy/haproxy-1.8.24.ebuild
38 deleted file mode 100644
39 index 840825cd8ea..00000000000
40 --- a/net-proxy/haproxy/haproxy-1.8.24.ebuild
41 +++ /dev/null
42 @@ -1,169 +0,0 @@
43 -# Copyright 1999-2020 Gentoo Authors
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI="6"
47 -
48 -[[ ${PV} == *9999 ]] && SCM="git-r3"
49 -inherit user versionator toolchain-funcs flag-o-matic systemd linux-info $SCM
50 -
51 -MY_P="${PN}-${PV/_beta/-dev}"
52 -
53 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
54 -HOMEPAGE="http://www.haproxy.org"
55 -if [[ ${PV} != *9999 ]]; then
56 - SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${MY_P}.tar.gz"
57 - KEYWORDS="~amd64 ~arm ~ppc ~x86"
58 -else
59 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(get_version_component_range 1-2).git/"
60 - EGIT_BRANCH=master
61 -fi
62 -
63 -LICENSE="GPL-2 LGPL-2.1"
64 -SLOT="0"
65 -IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit pcre2 pcre2-jit ssl
66 -systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
67 -REQUIRED_USE="pcre-jit? ( pcre )
68 - pcre2-jit? ( pcre2 )
69 - pcre? ( !pcre2 )
70 - device-atlas? ( pcre )
71 - ?? ( slz zlib )"
72 -
73 -DEPEND="
74 - pcre? (
75 - dev-libs/libpcre
76 - pcre-jit? ( dev-libs/libpcre[jit] )
77 - )
78 - pcre2? (
79 - dev-libs/libpcre
80 - pcre2-jit? ( dev-libs/libpcre2[jit] )
81 - )
82 - ssl? (
83 - !libressl? ( dev-libs/openssl:0=[zlib?] )
84 - libressl? ( dev-libs/libressl:0= )
85 - )
86 - slz? ( dev-libs/libslz:= )
87 - zlib? ( sys-libs/zlib )
88 - lua? ( dev-lang/lua:5.3 )
89 - device-atlas? ( dev-libs/device-atlas-api-c )"
90 -RDEPEND="${DEPEND}"
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 -version_is_at_least 1.7.0 $PV && CONTRIBS+=( ip6range spoa_example tcploop )
98 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
99 -version_is_at_least 1.8.0 $PV && 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 - enewgroup haproxy
109 - enewuser haproxy -1 -1 -1 haproxy
110 -
111 - if use net_ns; then
112 - CONFIG_CHECK="~NET_NS"
113 - linux-info_pkg_setup
114 - fi
115 -}
116 -
117 -src_compile() {
118 - local -a args=(
119 - TARGET=linux2628
120 - USE_GETADDRINFO=1
121 - USE_TFO=1
122 - )
123 -
124 - # TODO: PCRE2_WIDTH?
125 - args+=( $(haproxy_use threads THREAD) )
126 - args+=( $(haproxy_use crypt LIBCRYPT) )
127 - args+=( $(haproxy_use net_ns NS) )
128 - args+=( $(haproxy_use pcre PCRE) )
129 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
130 - args+=( $(haproxy_use ssl OPENSSL) )
131 - args+=( $(haproxy_use slz SLZ) )
132 - args+=( $(haproxy_use zlib ZLIB) )
133 - args+=( $(haproxy_use lua LUA) )
134 - args+=( $(haproxy_use 51degrees 51DEGREES) )
135 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
136 - args+=( $(haproxy_use wurfl WURFL) )
137 - args+=( $(haproxy_use systemd SYSTEMD) )
138 -
139 - # For now, until the strict-aliasing breakage will be fixed
140 - append-cflags -fno-strict-aliasing
141 -
142 - emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
143 - emake -C contrib/systemd SBINDIR=/usr/sbin
144 -
145 - if use tools ; then
146 - for contrib in ${CONTRIBS[@]} ; do
147 - emake -C contrib/${contrib} \
148 - CFLAGS="${CFLAGS}" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
149 - done
150 - fi
151 -}
152 -
153 -src_install() {
154 - dosbin haproxy
155 - dosym ../sbin/haproxy /usr/bin/haproxy
156 -
157 - newconfd "${FILESDIR}/${PN}.confd" $PN
158 - newinitd "${FILESDIR}/${PN}.initd-r6" $PN
159 -
160 - doman doc/haproxy.1
161 -
162 - systemd_dounit contrib/systemd/haproxy.service
163 -
164 - einstalldocs
165 -
166 - # The errorfiles are used by upstream defaults.
167 - insinto /etc/haproxy/errors/
168 - doins examples/errorfiles/*
169 -
170 - if use doc; then
171 - dodoc ROADMAP doc/*.txt
172 - #if use lua; then
173 - # TODO: doc/lua-api/
174 - #fi
175 - fi
176 -
177 - if use tools ; then
178 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
179 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
180 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
181 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
182 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
183 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
184 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
185 - fi
186 -
187 - if use examples ; then
188 - docinto examples
189 - dodoc examples/*.cfg
190 - dodoc examples/seamless_reload.txt
191 - fi
192 -
193 - if use vim-syntax ; then
194 - insinto /usr/share/vim/vimfiles/syntax
195 - doins examples/haproxy.vim
196 - fi
197 -}
198 -
199 -pkg_postinst() {
200 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
201 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
202 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
203 - ewarn "Make use of them with the \"user\" and \"group\" directives."
204 -
205 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
206 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
207 - einfo "The documentation and sample configuration files are installed here:"
208 - einfo " ${EROOT}usr/share/doc/${PF}"
209 - fi
210 - fi
211 -}
212
213 diff --git a/net-proxy/haproxy/haproxy-1.8.25.ebuild b/net-proxy/haproxy/haproxy-1.8.25.ebuild
214 deleted file mode 100644
215 index 840825cd8ea..00000000000
216 --- a/net-proxy/haproxy/haproxy-1.8.25.ebuild
217 +++ /dev/null
218 @@ -1,169 +0,0 @@
219 -# Copyright 1999-2020 Gentoo Authors
220 -# Distributed under the terms of the GNU General Public License v2
221 -
222 -EAPI="6"
223 -
224 -[[ ${PV} == *9999 ]] && SCM="git-r3"
225 -inherit user versionator toolchain-funcs flag-o-matic systemd linux-info $SCM
226 -
227 -MY_P="${PN}-${PV/_beta/-dev}"
228 -
229 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
230 -HOMEPAGE="http://www.haproxy.org"
231 -if [[ ${PV} != *9999 ]]; then
232 - SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${MY_P}.tar.gz"
233 - KEYWORDS="~amd64 ~arm ~ppc ~x86"
234 -else
235 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(get_version_component_range 1-2).git/"
236 - EGIT_BRANCH=master
237 -fi
238 -
239 -LICENSE="GPL-2 LGPL-2.1"
240 -SLOT="0"
241 -IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit pcre2 pcre2-jit ssl
242 -systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
243 -REQUIRED_USE="pcre-jit? ( pcre )
244 - pcre2-jit? ( pcre2 )
245 - pcre? ( !pcre2 )
246 - device-atlas? ( pcre )
247 - ?? ( slz zlib )"
248 -
249 -DEPEND="
250 - pcre? (
251 - dev-libs/libpcre
252 - pcre-jit? ( dev-libs/libpcre[jit] )
253 - )
254 - pcre2? (
255 - dev-libs/libpcre
256 - pcre2-jit? ( dev-libs/libpcre2[jit] )
257 - )
258 - ssl? (
259 - !libressl? ( dev-libs/openssl:0=[zlib?] )
260 - libressl? ( dev-libs/libressl:0= )
261 - )
262 - slz? ( dev-libs/libslz:= )
263 - zlib? ( sys-libs/zlib )
264 - lua? ( dev-lang/lua:5.3 )
265 - device-atlas? ( dev-libs/device-atlas-api-c )"
266 -RDEPEND="${DEPEND}"
267 -
268 -S="${WORKDIR}/${MY_P}"
269 -
270 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
271 -CONTRIBS=( halog iprange )
272 -# ip6range is present in 1.6, but broken.
273 -version_is_at_least 1.7.0 $PV && CONTRIBS+=( ip6range spoa_example tcploop )
274 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
275 -version_is_at_least 1.8.0 $PV && CONTRIBS+=( hpack )
276 -
277 -haproxy_use() {
278 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
279 -
280 - usex "${1}" "USE_${2}=1" "USE_${2}="
281 -}
282 -
283 -pkg_setup() {
284 - enewgroup haproxy
285 - enewuser haproxy -1 -1 -1 haproxy
286 -
287 - if use net_ns; then
288 - CONFIG_CHECK="~NET_NS"
289 - linux-info_pkg_setup
290 - fi
291 -}
292 -
293 -src_compile() {
294 - local -a args=(
295 - TARGET=linux2628
296 - USE_GETADDRINFO=1
297 - USE_TFO=1
298 - )
299 -
300 - # TODO: PCRE2_WIDTH?
301 - args+=( $(haproxy_use threads THREAD) )
302 - args+=( $(haproxy_use crypt LIBCRYPT) )
303 - args+=( $(haproxy_use net_ns NS) )
304 - args+=( $(haproxy_use pcre PCRE) )
305 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
306 - args+=( $(haproxy_use ssl OPENSSL) )
307 - args+=( $(haproxy_use slz SLZ) )
308 - args+=( $(haproxy_use zlib ZLIB) )
309 - args+=( $(haproxy_use lua LUA) )
310 - args+=( $(haproxy_use 51degrees 51DEGREES) )
311 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
312 - args+=( $(haproxy_use wurfl WURFL) )
313 - args+=( $(haproxy_use systemd SYSTEMD) )
314 -
315 - # For now, until the strict-aliasing breakage will be fixed
316 - append-cflags -fno-strict-aliasing
317 -
318 - emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
319 - emake -C contrib/systemd SBINDIR=/usr/sbin
320 -
321 - if use tools ; then
322 - for contrib in ${CONTRIBS[@]} ; do
323 - emake -C contrib/${contrib} \
324 - CFLAGS="${CFLAGS}" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
325 - done
326 - fi
327 -}
328 -
329 -src_install() {
330 - dosbin haproxy
331 - dosym ../sbin/haproxy /usr/bin/haproxy
332 -
333 - newconfd "${FILESDIR}/${PN}.confd" $PN
334 - newinitd "${FILESDIR}/${PN}.initd-r6" $PN
335 -
336 - doman doc/haproxy.1
337 -
338 - systemd_dounit contrib/systemd/haproxy.service
339 -
340 - einstalldocs
341 -
342 - # The errorfiles are used by upstream defaults.
343 - insinto /etc/haproxy/errors/
344 - doins examples/errorfiles/*
345 -
346 - if use doc; then
347 - dodoc ROADMAP doc/*.txt
348 - #if use lua; then
349 - # TODO: doc/lua-api/
350 - #fi
351 - fi
352 -
353 - if use tools ; then
354 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
355 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
356 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
357 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
358 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
359 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
360 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
361 - fi
362 -
363 - if use examples ; then
364 - docinto examples
365 - dodoc examples/*.cfg
366 - dodoc examples/seamless_reload.txt
367 - fi
368 -
369 - if use vim-syntax ; then
370 - insinto /usr/share/vim/vimfiles/syntax
371 - doins examples/haproxy.vim
372 - fi
373 -}
374 -
375 -pkg_postinst() {
376 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
377 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
378 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
379 - ewarn "Make use of them with the \"user\" and \"group\" directives."
380 -
381 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
382 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
383 - einfo "The documentation and sample configuration files are installed here:"
384 - einfo " ${EROOT}usr/share/doc/${PF}"
385 - fi
386 - fi
387 -}
388
389 diff --git a/net-proxy/haproxy/haproxy-1.9.14.ebuild b/net-proxy/haproxy/haproxy-1.9.14.ebuild
390 deleted file mode 100644
391 index 9c532b35446..00000000000
392 --- a/net-proxy/haproxy/haproxy-1.9.14.ebuild
393 +++ /dev/null
394 @@ -1,173 +0,0 @@
395 -# Copyright 1999-2020 Gentoo Authors
396 -# Distributed under the terms of the GNU General Public License v2
397 -
398 -EAPI="7"
399 -
400 -[[ ${PV} == *9999 ]] && SCM="git-r3"
401 -inherit user toolchain-funcs flag-o-matic systemd linux-info $SCM
402 -
403 -MY_P="${PN}-${PV/_beta/-dev}"
404 -
405 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
406 -HOMEPAGE="http://www.haproxy.org"
407 -if [[ ${PV} != *9999 ]]; then
408 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
409 - KEYWORDS="~amd64 ~arm ~ppc ~x86"
410 -else
411 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
412 - EGIT_BRANCH=master
413 -fi
414 -
415 -LICENSE="GPL-2 LGPL-2.1"
416 -SLOT="0"
417 -IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit pcre2 pcre2-jit ssl
418 -systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
419 -REQUIRED_USE="pcre-jit? ( pcre )
420 - pcre2-jit? ( pcre2 )
421 - pcre? ( !pcre2 )
422 - device-atlas? ( pcre )
423 - ?? ( slz zlib )"
424 -
425 -DEPEND="
426 - pcre? (
427 - dev-libs/libpcre
428 - pcre-jit? ( dev-libs/libpcre[jit] )
429 - )
430 - pcre2? (
431 - dev-libs/libpcre
432 - pcre2-jit? ( dev-libs/libpcre2[jit] )
433 - )
434 - ssl? (
435 - !libressl? ( dev-libs/openssl:0=[zlib?] )
436 - libressl? ( dev-libs/libressl:0= )
437 - )
438 - slz? ( dev-libs/libslz:= )
439 - zlib? ( sys-libs/zlib )
440 - lua? ( dev-lang/lua:5.3 )
441 - device-atlas? ( dev-libs/device-atlas-api-c )"
442 -RDEPEND="${DEPEND}"
443 -
444 -S="${WORKDIR}/${MY_P}"
445 -
446 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
447 -CONTRIBS=( halog iprange )
448 -# ip6range is present in 1.6, but broken.
449 -ver_test $PV -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
450 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
451 -ver_test $PV -ge 1.8.0 && CONTRIBS+=( hpack )
452 -
453 -haproxy_use() {
454 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
455 -
456 - usex "${1}" "USE_${2}=1" "USE_${2}="
457 -}
458 -
459 -pkg_setup() {
460 - enewgroup haproxy
461 - enewuser haproxy -1 -1 -1 haproxy
462 -
463 - if use net_ns; then
464 - CONFIG_CHECK="~NET_NS"
465 - linux-info_pkg_setup
466 - fi
467 -}
468 -
469 -src_compile() {
470 - local -a args=(
471 - V=1
472 - TARGET=linux2628
473 - USE_GETADDRINFO=1
474 - USE_TFO=1
475 - )
476 -
477 - # TODO: PCRE2_WIDTH?
478 - args+=( $(haproxy_use threads THREAD) )
479 - args+=( $(haproxy_use crypt LIBCRYPT) )
480 - args+=( $(haproxy_use net_ns NS) )
481 - args+=( $(haproxy_use pcre PCRE) )
482 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
483 - args+=( $(haproxy_use pcre2 PCRE2) )
484 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
485 - args+=( $(haproxy_use ssl OPENSSL) )
486 - args+=( $(haproxy_use slz SLZ) )
487 - args+=( $(haproxy_use zlib ZLIB) )
488 - args+=( $(haproxy_use lua LUA) )
489 - args+=( $(haproxy_use 51degrees 51DEGREES) )
490 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
491 - args+=( $(haproxy_use wurfl WURFL) )
492 - args+=( $(haproxy_use systemd SYSTEMD) )
493 -
494 - # For now, until the strict-aliasing breakage will be fixed
495 - append-cflags -fno-strict-aliasing
496 -
497 - emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
498 - emake -C contrib/systemd SBINDIR=/usr/sbin
499 -
500 - if use tools ; then
501 - for contrib in ${CONTRIBS[@]} ; do
502 - # Those two includes are a workaround for hpack Makefile missing those
503 - emake -C contrib/${contrib} \
504 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
505 - done
506 - fi
507 -}
508 -
509 -src_install() {
510 - dosbin haproxy
511 - dosym ../sbin/haproxy /usr/bin/haproxy
512 -
513 - newconfd "${FILESDIR}/${PN}.confd" $PN
514 - newinitd "${FILESDIR}/${PN}.initd-r6" $PN
515 -
516 - doman doc/haproxy.1
517 -
518 - systemd_dounit contrib/systemd/haproxy.service
519 -
520 - einstalldocs
521 -
522 - # The errorfiles are used by upstream defaults.
523 - insinto /etc/haproxy/errors/
524 - doins examples/errorfiles/*
525 -
526 - if use doc; then
527 - dodoc ROADMAP doc/*.txt
528 - #if use lua; then
529 - # TODO: doc/lua-api/
530 - #fi
531 - fi
532 -
533 - if use tools ; then
534 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
535 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
536 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
537 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
538 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
539 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
540 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
541 - fi
542 -
543 - if use examples ; then
544 - docinto examples
545 - dodoc examples/*.cfg
546 - dodoc examples/seamless_reload.txt
547 - fi
548 -
549 - if use vim-syntax ; then
550 - insinto /usr/share/vim/vimfiles/syntax
551 - doins examples/haproxy.vim
552 - fi
553 -}
554 -
555 -pkg_postinst() {
556 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
557 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
558 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
559 - ewarn "Make use of them with the \"user\" and \"group\" directives."
560 -
561 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
562 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
563 - einfo "The documentation and sample configuration files are installed here:"
564 - einfo " ${EROOT}/usr/share/doc/${PF}"
565 - fi
566 - fi
567 -}
568
569 diff --git a/net-proxy/haproxy/haproxy-2.0.13.ebuild b/net-proxy/haproxy/haproxy-2.0.13.ebuild
570 deleted file mode 100644
571 index 4dd1e0979a3..00000000000
572 --- a/net-proxy/haproxy/haproxy-2.0.13.ebuild
573 +++ /dev/null
574 @@ -1,176 +0,0 @@
575 -# Copyright 1999-2020 Gentoo Authors
576 -# Distributed under the terms of the GNU General Public License v2
577 -
578 -EAPI="7"
579 -
580 -[[ ${PV} == *9999 ]] && SCM="git-r3"
581 -inherit user toolchain-funcs flag-o-matic systemd linux-info $SCM
582 -
583 -MY_P="${PN}-${PV/_beta/-dev}"
584 -
585 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
586 -HOMEPAGE="http://www.haproxy.org"
587 -if [[ ${PV} != *9999 ]]; then
588 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
589 - KEYWORDS="amd64 arm ~ppc x86"
590 -else
591 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
592 - EGIT_BRANCH=master
593 -fi
594 -
595 -LICENSE="GPL-2 LGPL-2.1"
596 -SLOT="0"
597 -IUSE="+crypt doc examples libressl slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter
598 -ssl systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
599 -REQUIRED_USE="pcre-jit? ( pcre )
600 - pcre2-jit? ( pcre2 )
601 - pcre? ( !pcre2 )
602 - device-atlas? ( pcre )
603 - ?? ( slz zlib )"
604 -
605 -DEPEND="
606 - pcre? (
607 - dev-libs/libpcre
608 - pcre-jit? ( dev-libs/libpcre[jit] )
609 - )
610 - pcre2? (
611 - dev-libs/libpcre
612 - pcre2-jit? ( dev-libs/libpcre2[jit] )
613 - )
614 - ssl? (
615 - !libressl? ( dev-libs/openssl:0=[zlib?] )
616 - libressl? ( dev-libs/libressl:0= )
617 - )
618 - slz? ( dev-libs/libslz:= )
619 - zlib? ( sys-libs/zlib )
620 - lua? ( dev-lang/lua:5.3 )
621 - device-atlas? ( dev-libs/device-atlas-api-c )"
622 -RDEPEND="${DEPEND}"
623 -
624 -S="${WORKDIR}/${MY_P}"
625 -
626 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
627 -CONTRIBS=( halog iprange )
628 -# ip6range is present in 1.6, but broken.
629 -ver_test $PV -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
630 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
631 -ver_test $PV -ge 1.8.0 && CONTRIBS+=( hpack )
632 -
633 -haproxy_use() {
634 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
635 -
636 - usex "${1}" "USE_${2}=1" "USE_${2}="
637 -}
638 -
639 -pkg_setup() {
640 - enewgroup haproxy
641 - enewuser haproxy -1 -1 -1 haproxy
642 -
643 - if use net_ns; then
644 - CONFIG_CHECK="~NET_NS"
645 - linux-info_pkg_setup
646 - fi
647 -}
648 -
649 -src_compile() {
650 - local -a args=(
651 - V=1
652 - TARGET=linux-glibc
653 - )
654 -
655 - # TODO: PCRE2_WIDTH?
656 - args+=( $(haproxy_use threads THREAD) )
657 - args+=( $(haproxy_use crypt LIBCRYPT) )
658 - args+=( $(haproxy_use net_ns NS) )
659 - args+=( $(haproxy_use pcre PCRE) )
660 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
661 - args+=( $(haproxy_use pcre2 PCRE2) )
662 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
663 - args+=( $(haproxy_use ssl OPENSSL) )
664 - args+=( $(haproxy_use slz SLZ) )
665 - args+=( $(haproxy_use zlib ZLIB) )
666 - args+=( $(haproxy_use lua LUA) )
667 - args+=( $(haproxy_use 51degrees 51DEGREES) )
668 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
669 - args+=( $(haproxy_use wurfl WURFL) )
670 - args+=( $(haproxy_use systemd SYSTEMD) )
671 -
672 - # For now, until the strict-aliasing breakage will be fixed
673 - append-cflags -fno-strict-aliasing
674 -
675 - if use prometheus-exporter; then
676 - EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
677 - fi
678 -
679 - # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing
680 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" ${args[@]}
681 - emake -C contrib/systemd SBINDIR=/usr/sbin
682 -
683 - if use tools ; then
684 - for contrib in ${CONTRIBS[@]} ; do
685 - # Those two includes are a workaround for hpack Makefile missing those
686 - emake -C contrib/${contrib} \
687 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
688 - done
689 - fi
690 -}
691 -
692 -src_install() {
693 - dosbin haproxy
694 - dosym ../sbin/haproxy /usr/bin/haproxy
695 -
696 - newconfd "${FILESDIR}/${PN}.confd" $PN
697 - newinitd "${FILESDIR}/${PN}.initd-r6" $PN
698 -
699 - doman doc/haproxy.1
700 -
701 - systemd_dounit contrib/systemd/haproxy.service
702 -
703 - einstalldocs
704 -
705 - # The errorfiles are used by upstream defaults.
706 - insinto /etc/haproxy/errors/
707 - doins examples/errorfiles/*
708 -
709 - if use doc; then
710 - dodoc ROADMAP doc/*.txt
711 - #if use lua; then
712 - # TODO: doc/lua-api/
713 - #fi
714 - fi
715 -
716 - if use tools ; then
717 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
718 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
719 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
720 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
721 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
722 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
723 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
724 - fi
725 -
726 - if use examples ; then
727 - docinto examples
728 - dodoc examples/*.cfg
729 - dodoc doc/seamless_reload.txt
730 - fi
731 -
732 - if use vim-syntax ; then
733 - insinto /usr/share/vim/vimfiles/syntax
734 - doins contrib/syntax-highlight/haproxy.vim
735 - fi
736 -}
737 -
738 -pkg_postinst() {
739 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
740 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
741 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
742 - ewarn "Make use of them with the \"user\" and \"group\" directives."
743 -
744 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
745 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
746 - einfo "The documentation and sample configuration files are installed here:"
747 - einfo " ${EROOT}/usr/share/doc/${PF}"
748 - fi
749 - fi
750 -}
751
752 diff --git a/net-proxy/haproxy/haproxy-2.1.3.ebuild b/net-proxy/haproxy/haproxy-2.1.3.ebuild
753 deleted file mode 100644
754 index 4dd1e0979a3..00000000000
755 --- a/net-proxy/haproxy/haproxy-2.1.3.ebuild
756 +++ /dev/null
757 @@ -1,176 +0,0 @@
758 -# Copyright 1999-2020 Gentoo Authors
759 -# Distributed under the terms of the GNU General Public License v2
760 -
761 -EAPI="7"
762 -
763 -[[ ${PV} == *9999 ]] && SCM="git-r3"
764 -inherit user toolchain-funcs flag-o-matic systemd linux-info $SCM
765 -
766 -MY_P="${PN}-${PV/_beta/-dev}"
767 -
768 -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
769 -HOMEPAGE="http://www.haproxy.org"
770 -if [[ ${PV} != *9999 ]]; then
771 - SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz"
772 - KEYWORDS="amd64 arm ~ppc x86"
773 -else
774 - EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/"
775 - EGIT_BRANCH=master
776 -fi
777 -
778 -LICENSE="GPL-2 LGPL-2.1"
779 -SLOT="0"
780 -IUSE="+crypt doc examples libressl slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter
781 -ssl systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl"
782 -REQUIRED_USE="pcre-jit? ( pcre )
783 - pcre2-jit? ( pcre2 )
784 - pcre? ( !pcre2 )
785 - device-atlas? ( pcre )
786 - ?? ( slz zlib )"
787 -
788 -DEPEND="
789 - pcre? (
790 - dev-libs/libpcre
791 - pcre-jit? ( dev-libs/libpcre[jit] )
792 - )
793 - pcre2? (
794 - dev-libs/libpcre
795 - pcre2-jit? ( dev-libs/libpcre2[jit] )
796 - )
797 - ssl? (
798 - !libressl? ( dev-libs/openssl:0=[zlib?] )
799 - libressl? ( dev-libs/libressl:0= )
800 - )
801 - slz? ( dev-libs/libslz:= )
802 - zlib? ( sys-libs/zlib )
803 - lua? ( dev-lang/lua:5.3 )
804 - device-atlas? ( dev-libs/device-atlas-api-c )"
805 -RDEPEND="${DEPEND}"
806 -
807 -S="${WORKDIR}/${MY_P}"
808 -
809 -DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README )
810 -CONTRIBS=( halog iprange )
811 -# ip6range is present in 1.6, but broken.
812 -ver_test $PV -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop )
813 -# TODO: mod_defender - requires apache / APR, modsecurity - the same
814 -ver_test $PV -ge 1.8.0 && CONTRIBS+=( hpack )
815 -
816 -haproxy_use() {
817 - (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>"
818 -
819 - usex "${1}" "USE_${2}=1" "USE_${2}="
820 -}
821 -
822 -pkg_setup() {
823 - enewgroup haproxy
824 - enewuser haproxy -1 -1 -1 haproxy
825 -
826 - if use net_ns; then
827 - CONFIG_CHECK="~NET_NS"
828 - linux-info_pkg_setup
829 - fi
830 -}
831 -
832 -src_compile() {
833 - local -a args=(
834 - V=1
835 - TARGET=linux-glibc
836 - )
837 -
838 - # TODO: PCRE2_WIDTH?
839 - args+=( $(haproxy_use threads THREAD) )
840 - args+=( $(haproxy_use crypt LIBCRYPT) )
841 - args+=( $(haproxy_use net_ns NS) )
842 - args+=( $(haproxy_use pcre PCRE) )
843 - args+=( $(haproxy_use pcre-jit PCRE_JIT) )
844 - args+=( $(haproxy_use pcre2 PCRE2) )
845 - args+=( $(haproxy_use pcre2-jit PCRE2_JIT) )
846 - args+=( $(haproxy_use ssl OPENSSL) )
847 - args+=( $(haproxy_use slz SLZ) )
848 - args+=( $(haproxy_use zlib ZLIB) )
849 - args+=( $(haproxy_use lua LUA) )
850 - args+=( $(haproxy_use 51degrees 51DEGREES) )
851 - args+=( $(haproxy_use device-atlas DEVICEATLAS) )
852 - args+=( $(haproxy_use wurfl WURFL) )
853 - args+=( $(haproxy_use systemd SYSTEMD) )
854 -
855 - # For now, until the strict-aliasing breakage will be fixed
856 - append-cflags -fno-strict-aliasing
857 -
858 - if use prometheus-exporter; then
859 - EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
860 - fi
861 -
862 - # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing
863 - emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" ${args[@]}
864 - emake -C contrib/systemd SBINDIR=/usr/sbin
865 -
866 - if use tools ; then
867 - for contrib in ${CONTRIBS[@]} ; do
868 - # Those two includes are a workaround for hpack Makefile missing those
869 - emake -C contrib/${contrib} \
870 - CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]}
871 - done
872 - fi
873 -}
874 -
875 -src_install() {
876 - dosbin haproxy
877 - dosym ../sbin/haproxy /usr/bin/haproxy
878 -
879 - newconfd "${FILESDIR}/${PN}.confd" $PN
880 - newinitd "${FILESDIR}/${PN}.initd-r6" $PN
881 -
882 - doman doc/haproxy.1
883 -
884 - systemd_dounit contrib/systemd/haproxy.service
885 -
886 - einstalldocs
887 -
888 - # The errorfiles are used by upstream defaults.
889 - insinto /etc/haproxy/errors/
890 - doins examples/errorfiles/*
891 -
892 - if use doc; then
893 - dodoc ROADMAP doc/*.txt
894 - #if use lua; then
895 - # TODO: doc/lua-api/
896 - #fi
897 - fi
898 -
899 - if use tools ; then
900 - has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog
901 - has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange
902 - has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range
903 - has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example
904 - has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example
905 - has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop
906 - has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack
907 - fi
908 -
909 - if use examples ; then
910 - docinto examples
911 - dodoc examples/*.cfg
912 - dodoc doc/seamless_reload.txt
913 - fi
914 -
915 - if use vim-syntax ; then
916 - insinto /usr/share/vim/vimfiles/syntax
917 - doins contrib/syntax-highlight/haproxy.vim
918 - fi
919 -}
920 -
921 -pkg_postinst() {
922 - if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then
923 - ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service."
924 - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created."
925 - ewarn "Make use of them with the \"user\" and \"group\" directives."
926 -
927 - if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then
928 - einfo "Please consult the installed documentation for learning the configuration file's syntax."
929 - einfo "The documentation and sample configuration files are installed here:"
930 - einfo " ${EROOT}/usr/share/doc/${PF}"
931 - fi
932 - fi
933 -}