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