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