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