1 |
commit: 57cd732b69c8b092ce2202dbd31df786333b7132 |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 29 08:05:57 2019 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 08:06:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57cd732b |
7 |
|
8 |
net-proxy/haproxy: Version bumps |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org> |
12 |
|
13 |
net-proxy/haproxy/Manifest | 4 + |
14 |
net-proxy/haproxy/haproxy-1.6.15.ebuild | 158 ++++++++++++++++++++++++++++ |
15 |
net-proxy/haproxy/haproxy-1.8.22.ebuild | 169 ++++++++++++++++++++++++++++++ |
16 |
net-proxy/haproxy/haproxy-1.9.12.ebuild | 173 +++++++++++++++++++++++++++++++ |
17 |
net-proxy/haproxy/haproxy-2.0.8.ebuild | 176 ++++++++++++++++++++++++++++++++ |
18 |
5 files changed, 680 insertions(+) |
19 |
|
20 |
diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest |
21 |
index be0da116eb8..6762cf18180 100644 |
22 |
--- a/net-proxy/haproxy/Manifest |
23 |
+++ b/net-proxy/haproxy/Manifest |
24 |
@@ -1,11 +1,15 @@ |
25 |
DIST haproxy-1.6.11.tar.gz 1574029 BLAKE2B 553f74c2c24a1b07cef2acc6fbc4def1bbe81e41a7b01ba44937c6ff2e14c1f1a4f1472dde229ecef1ed3170f4e89d356324cb2ce1e7d7064837f37fbd4c3b46 SHA512 73ff1c7301197b3bd75a3b1355787419676854d132ce2dcdacb2a296e297dcdfc52b0c571a4fb715e369f1126e1a58196fabb21f828c880f15904032da78e434 |
26 |
DIST haproxy-1.6.14.tar.gz 1583859 BLAKE2B 91695f0b3d901ba70b6bce6572c2f549479c28010ed391b20faae7cd1fd84cdb181e560353337eb9230e38ac2570673725884c131501820c3ef4559ef12f95f2 SHA512 389be3935d901af1fb3a748b5bf73a454578a3ca3e4cc0b881980c2f1e875c47feb2681b42f8d9244d70777261a965c8e47cf5175b7790ff995bff8333902a11 |
27 |
+DIST haproxy-1.6.15.tar.gz 1589782 BLAKE2B d65684b75c9577644d88a2ca17bf90f5cb845ca8c4c149ddf95a06b0ad2d25bb6a457c4c380c6cae4745bac2c00ec49cdb89df60ba8704965239cb0f2951670a SHA512 fd50c8451a357494a7c767347d1d9d957e07664e2388f3f8f0d492823e6d974d55b9f8699bd98c8d37d9829e4180c395569d0d7a4da2dc3c0f4849607598e9c0 |
28 |
DIST haproxy-1.7.10.tar.gz 1750937 BLAKE2B 26d970862e415b079d4130fd00564677584a7aad74d6812cabed36de9a629321330434b7d4fdf7c2e8b2945b7f394ca33e444158e7fa9b49937db501ea33e78a SHA512 ca6c50848c559ee2ffb9af2d281c3931473dd90d1686d95d962cf604cd92d2feb2b63e006e217cf9078cf08fdd73dc523318c97e13400bc0ef325de47111394e |
29 |
DIST haproxy-1.7.11.tar.gz 1752129 BLAKE2B 1947ab837f6b81761eec931e97c7349462561abecc78b2b58b285ebb4b0ae498753d236f3a243d3b5c1115a9ff6e5fe9392d428314a6342e2c1907d6886e09e4 SHA512 48ee30a1057e92971c041b088b6aef16d6843da9ecee9b738aaa64bb55d3c3b0be090a37bb5fc63ac42fe34ce994820349cc770756136c823051039fa6d01f74 |
30 |
DIST haproxy-1.8.13.tar.gz 2063046 BLAKE2B 9ebccf2520719cdf209bc9a87bf28d015b5b673e0d017d5387af4025f930ac401f6a2cfa851583ffe6b6645b7b91ad255bb5db737688a1f310958072a11c8a80 SHA512 54d4cb0721a3868267d7e085b3d3bb050384e4279eb49e88abb925bb3ea8cc39ef9069bdc99b7b18a23fd22e0d29e24dfcb8a0507ddca9243a845e4418be9cc5 |
31 |
DIST haproxy-1.8.20.tar.gz 2083917 BLAKE2B a73e01bacd6c3d256f92bba3dc5f1d38feea686d92d9ba2d93c33c082b10f84e0f150b3ce3e98cddaa664443c3661220f2993fea2d52bc3d6c32d5c913e70471 SHA512 c288ccf223da71a29ae0f08f3c9753002735816229ea83ca497d46c860fb8a4bd422077a94652aa475e48aefb78787979cdce7f1bd0b5919dc671ba25212c133 |
32 |
DIST haproxy-1.8.21.tar.gz 2097089 BLAKE2B 359dba31685d4213721deb7bd553f2e037b960522e6b7727af45b87f4161b52bd02f47e5337e8003e5ae78dfcf1b0de1626af55dc1d177e98608c5d9799e8756 SHA512 a5244146150fd0e6d00eab3b1be0b778a242b393d72b09033d8edd99c434c4c8a25c326bf639ca7f7f7387a5cecd5033bd6e7159eca4c6dc18b580e893d2d274 |
33 |
+DIST haproxy-1.8.22.tar.gz 2100471 BLAKE2B cb42d01bd61d457c1c8ea2372073d424a4a37058843d7b8acd1c28f36449f88328ed3536b71c9f2b7cb4e3663910311378c93ee4353c1c5b74a2abb9793048cf SHA512 fd017288e9bd21fe2568f0fb2bdd90daa2e2bf72ef0d6fda123280cdbd1edff1b928c90ccd641eb00416b908321f5d146b293871d67fc4666377e46a214fabee |
34 |
DIST haproxy-1.8.9.tar.gz 2057051 BLAKE2B d81d18f68a27ae8a77660c1ecb1dfc28599263ebfd57f25ea574af2b101b35eb7a1a89ba4034b55dfa89673ae6ac4c0dca5428b4b494a02184b1b157850ce96b SHA512 e59c29af3a39d6212f012ae8341b169436e10e42fadaf8f1aa68d2bb7ee181fd1fe3b74640bfcd8c37c17dfc5062b36bd69d90290d7c59cd3e4648ef2ab1c8dd |
35 |
DIST haproxy-1.9.10.tar.gz 2386066 BLAKE2B 4dea3f42686cd41d9f6f6849c42f9cf604b26f33925747ec5311243117bcf51729d16e5c09c5eb2cfc9fea88cf49c976a0542dcd90ddee4016b467de699e8bdc SHA512 b204c91633949d20dd06c29c69d2c783134819493f132430aaedddd2aad74eac08da7de7ddc1c45b250446273c35b268ab37fcb3b98eaa6b97b6caf5530ed628 |
36 |
+DIST haproxy-1.9.12.tar.gz 2392981 BLAKE2B 2cf32cf34d5c555645fb411189136564e7ff08e8797041821219e981f3734d996cec5a1367c1c064ec3a4fe0d3f52cb06c10cd8d68f743712387b13c0d91c3c4 SHA512 6f8c30f7111a0fbd4b63e964cfb2b4e45f541905e53d9abd040581cf7801f6403d4f2ea48e4fc62be473a1d920760f6481eade1672920abe8bb65e15fd04761f |
37 |
DIST haproxy-2.0.6.tar.gz 2541637 BLAKE2B 52d88ef3c944437fbee7128163621cc9aae541eac16a71cd3aa1d7396b44e84b643d45a0b3cd990a73686a9d254855633bcc38b0ad1d8a13f8c8e1a2c444bfff SHA512 78c8483a97845928dc3ec7da68bedfda73303c88e8146a6b38c3d2b4e2089af5668817f0675180d41274c6337d5fae7cad5534013bd15d9b06071b89a09a86b5 |
38 |
DIST haproxy-2.0.7.tar.gz 2542573 BLAKE2B a312244087a3730c7837aebb99c64e40ac98ed06e6dc65f02151356ca4130a7d9b3eddc08b92fcb8d9658b98d19ad95ad3dd3e0945ff7824ee3ce2bf0aac8ce7 SHA512 3257bb90555cb7ccf1b5ef71815f8258598aa87239ec46a24d250929811bd49fef21e4c2d0a12ee9f7aca2cca33367f972e4e62e9b01274b8c644a97e4353574 |
39 |
+DIST haproxy-2.0.8.tar.gz 2546661 BLAKE2B 2e8ec27398e6515c8e5b3cd51b4a219682dcfe798d0ad545ac2933ff5ca8c2ff78568935900c8523a703c3d96da64b61160dd967a832307455e63f1bd64f8d3f SHA512 61cb7274d96bde1c542e9f0cd5c9dc8f7ee5fa710eb8867bd70040718ce696505d533713f867199d6f0780fe0f8c7e989bf25ee93e806c0e3fe6f593382814a6 |
40 |
|
41 |
diff --git a/net-proxy/haproxy/haproxy-1.6.15.ebuild b/net-proxy/haproxy/haproxy-1.6.15.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..634b436d835 |
44 |
--- /dev/null |
45 |
+++ b/net-proxy/haproxy/haproxy-1.6.15.ebuild |
46 |
@@ -0,0 +1,158 @@ |
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://haproxy.1wt.eu" |
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 ssl tools vim-syntax +zlib lua device-atlas 51degrees wurfl" |
70 |
+REQUIRED_USE="pcre-jit? ( pcre ) |
71 |
+ ?? ( slz zlib )" |
72 |
+ |
73 |
+DEPEND=" |
74 |
+ pcre? ( |
75 |
+ dev-libs/libpcre |
76 |
+ pcre-jit? ( dev-libs/libpcre[jit] ) |
77 |
+ ) |
78 |
+ ssl? ( |
79 |
+ !libressl? ( dev-libs/openssl:0=[zlib?] ) |
80 |
+ libressl? ( dev-libs/libressl:0= ) |
81 |
+ ) |
82 |
+ slz? ( dev-libs/libslz:= ) |
83 |
+ zlib? ( sys-libs/zlib ) |
84 |
+ lua? ( dev-lang/lua:5.3 ) |
85 |
+ device-atlas? ( dev-libs/device-atlas-api-c )" |
86 |
+RDEPEND="${DEPEND}" |
87 |
+ |
88 |
+S="${WORKDIR}/${MY_P}" |
89 |
+ |
90 |
+DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
91 |
+version_is_at_least 1.7.0 $PV && PATCHES=( "${FILESDIR}"/haproxy-1.7-contrib.patch ) |
92 |
+CONTRIBS=( halog iprange ) |
93 |
+# ip6range is present in 1.6, but broken. |
94 |
+version_is_at_least 1.7.0 $PV && CONTRIBS+=( ip6range spoa_example tcploop ) |
95 |
+ |
96 |
+haproxy_use() { |
97 |
+ (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
98 |
+ |
99 |
+ usex "${1}" "USE_${2}=1" "USE_${2}=" |
100 |
+} |
101 |
+ |
102 |
+pkg_setup() { |
103 |
+ enewgroup haproxy |
104 |
+ enewuser haproxy -1 -1 -1 haproxy |
105 |
+ |
106 |
+ if use net_ns; then |
107 |
+ CONFIG_CHECK="~NET_NS" |
108 |
+ linux-info_pkg_setup |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ local -a args=( |
114 |
+ TARGET=linux2628 |
115 |
+ USE_GETADDRINFO=1 |
116 |
+ USE_TFO=1 |
117 |
+ ) |
118 |
+ |
119 |
+ args+=( $(haproxy_use crypt LIBCRYPT) ) |
120 |
+ args+=( $(haproxy_use net_ns NS) ) |
121 |
+ args+=( $(haproxy_use pcre PCRE) ) |
122 |
+ args+=( $(haproxy_use pcre-jit PCRE_JIT) ) |
123 |
+ args+=( $(haproxy_use ssl OPENSSL) ) |
124 |
+ args+=( $(haproxy_use slz SLZ) ) |
125 |
+ args+=( $(haproxy_use zlib ZLIB) ) |
126 |
+ args+=( $(haproxy_use lua LUA) ) |
127 |
+ args+=( $(haproxy_use 51degrees 51DEGREES) ) |
128 |
+ args+=( $(haproxy_use device-atlas DEVICEATLAS) ) |
129 |
+ args+=( $(haproxy_use wurfl WURFL) ) |
130 |
+ |
131 |
+ # For now, until the strict-aliasing breakage will be fixed |
132 |
+ append-cflags -fno-strict-aliasing |
133 |
+ |
134 |
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]} |
135 |
+ emake -C contrib/systemd SBINDIR=/usr/sbin |
136 |
+ |
137 |
+ if use tools ; then |
138 |
+ for contrib in ${CONTRIBS[@]} ; do |
139 |
+ emake -C contrib/${contrib} \ |
140 |
+ CFLAGS="${CFLAGS}" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]} |
141 |
+ done |
142 |
+ fi |
143 |
+} |
144 |
+ |
145 |
+src_install() { |
146 |
+ dosbin haproxy |
147 |
+ dosym /usr/sbin/haproxy /usr/bin/haproxy |
148 |
+ |
149 |
+ newconfd "${FILESDIR}/${PN}.confd" $PN |
150 |
+ newinitd "${FILESDIR}/${PN}.initd-r6" $PN |
151 |
+ |
152 |
+ doman doc/haproxy.1 |
153 |
+ |
154 |
+ dosbin haproxy-systemd-wrapper |
155 |
+ dosym /usr/sbin/haproxy-systemd-wrapper /usr/bin/haproxy-systemd-wrapper |
156 |
+ systemd_dounit contrib/systemd/haproxy.service |
157 |
+ |
158 |
+ einstalldocs |
159 |
+ |
160 |
+ # The errorfiles are used by upstream defaults. |
161 |
+ insinto /etc/haproxy/errors/ |
162 |
+ doins examples/errorfiles/* |
163 |
+ |
164 |
+ if use doc; then |
165 |
+ dodoc ROADMAP doc/*.txt |
166 |
+ #if use lua; then |
167 |
+ # TODO: doc/lua-api/ |
168 |
+ #fi |
169 |
+ fi |
170 |
+ |
171 |
+ if use tools ; then |
172 |
+ has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog |
173 |
+ has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange |
174 |
+ has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range |
175 |
+ has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example |
176 |
+ has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example |
177 |
+ has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop |
178 |
+ fi |
179 |
+ |
180 |
+ if use examples ; then |
181 |
+ docinto examples |
182 |
+ dodoc examples/*.cfg |
183 |
+ dodoc examples/seamless_reload.txt |
184 |
+ fi |
185 |
+ |
186 |
+ if use vim-syntax ; then |
187 |
+ insinto /usr/share/vim/vimfiles/syntax |
188 |
+ doins examples/haproxy.vim |
189 |
+ fi |
190 |
+} |
191 |
+ |
192 |
+pkg_postinst() { |
193 |
+ if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
194 |
+ ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
195 |
+ ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
196 |
+ ewarn "Make use of them with the \"user\" and \"group\" directives." |
197 |
+ |
198 |
+ if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
199 |
+ einfo "Please consult the installed documentation for learning the configuration file's syntax." |
200 |
+ einfo "The documentation and sample configuration files are installed here:" |
201 |
+ einfo " ${EROOT}usr/share/doc/${PF}" |
202 |
+ fi |
203 |
+ fi |
204 |
+} |
205 |
|
206 |
diff --git a/net-proxy/haproxy/haproxy-1.8.22.ebuild b/net-proxy/haproxy/haproxy-1.8.22.ebuild |
207 |
new file mode 100644 |
208 |
index 00000000000..be9a23a9cd2 |
209 |
--- /dev/null |
210 |
+++ b/net-proxy/haproxy/haproxy-1.8.22.ebuild |
211 |
@@ -0,0 +1,169 @@ |
212 |
+# Copyright 1999-2019 Gentoo Authors |
213 |
+# Distributed under the terms of the GNU General Public License v2 |
214 |
+ |
215 |
+EAPI="6" |
216 |
+ |
217 |
+[[ ${PV} == *9999 ]] && SCM="git-r3" |
218 |
+inherit user versionator toolchain-funcs flag-o-matic systemd linux-info $SCM |
219 |
+ |
220 |
+MY_P="${PN}-${PV/_beta/-dev}" |
221 |
+ |
222 |
+DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
223 |
+HOMEPAGE="http://www.haproxy.org" |
224 |
+if [[ ${PV} != *9999 ]]; then |
225 |
+ SRC_URI="http://haproxy.1wt.eu/download/$(get_version_component_range 1-2)/src/${MY_P}.tar.gz" |
226 |
+ KEYWORDS="~amd64 ~arm ~ppc ~x86" |
227 |
+else |
228 |
+ EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(get_version_component_range 1-2).git/" |
229 |
+ EGIT_BRANCH=master |
230 |
+fi |
231 |
+ |
232 |
+LICENSE="GPL-2 LGPL-2.1" |
233 |
+SLOT="0" |
234 |
+IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit pcre2 pcre2-jit ssl |
235 |
+systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl" |
236 |
+REQUIRED_USE="pcre-jit? ( pcre ) |
237 |
+ pcre2-jit? ( pcre2 ) |
238 |
+ pcre? ( !pcre2 ) |
239 |
+ device-atlas? ( pcre ) |
240 |
+ ?? ( slz zlib )" |
241 |
+ |
242 |
+DEPEND=" |
243 |
+ pcre? ( |
244 |
+ dev-libs/libpcre |
245 |
+ pcre-jit? ( dev-libs/libpcre[jit] ) |
246 |
+ ) |
247 |
+ pcre2? ( |
248 |
+ dev-libs/libpcre |
249 |
+ pcre2-jit? ( dev-libs/libpcre2[jit] ) |
250 |
+ ) |
251 |
+ ssl? ( |
252 |
+ !libressl? ( dev-libs/openssl:0=[zlib?] ) |
253 |
+ libressl? ( dev-libs/libressl:0= ) |
254 |
+ ) |
255 |
+ slz? ( dev-libs/libslz:= ) |
256 |
+ zlib? ( sys-libs/zlib ) |
257 |
+ lua? ( dev-lang/lua:5.3 ) |
258 |
+ device-atlas? ( dev-libs/device-atlas-api-c )" |
259 |
+RDEPEND="${DEPEND}" |
260 |
+ |
261 |
+S="${WORKDIR}/${MY_P}" |
262 |
+ |
263 |
+DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
264 |
+CONTRIBS=( halog iprange ) |
265 |
+# ip6range is present in 1.6, but broken. |
266 |
+version_is_at_least 1.7.0 $PV && CONTRIBS+=( ip6range spoa_example tcploop ) |
267 |
+# TODO: mod_defender - requires apache / APR, modsecurity - the same |
268 |
+version_is_at_least 1.8.0 $PV && CONTRIBS+=( hpack ) |
269 |
+ |
270 |
+haproxy_use() { |
271 |
+ (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
272 |
+ |
273 |
+ usex "${1}" "USE_${2}=1" "USE_${2}=" |
274 |
+} |
275 |
+ |
276 |
+pkg_setup() { |
277 |
+ enewgroup haproxy |
278 |
+ enewuser haproxy -1 -1 -1 haproxy |
279 |
+ |
280 |
+ if use net_ns; then |
281 |
+ CONFIG_CHECK="~NET_NS" |
282 |
+ linux-info_pkg_setup |
283 |
+ fi |
284 |
+} |
285 |
+ |
286 |
+src_compile() { |
287 |
+ local -a args=( |
288 |
+ TARGET=linux2628 |
289 |
+ USE_GETADDRINFO=1 |
290 |
+ USE_TFO=1 |
291 |
+ ) |
292 |
+ |
293 |
+ # TODO: PCRE2_WIDTH? |
294 |
+ args+=( $(haproxy_use threads THREAD) ) |
295 |
+ args+=( $(haproxy_use crypt LIBCRYPT) ) |
296 |
+ args+=( $(haproxy_use net_ns NS) ) |
297 |
+ args+=( $(haproxy_use pcre PCRE) ) |
298 |
+ args+=( $(haproxy_use pcre-jit PCRE_JIT) ) |
299 |
+ args+=( $(haproxy_use ssl OPENSSL) ) |
300 |
+ args+=( $(haproxy_use slz SLZ) ) |
301 |
+ args+=( $(haproxy_use zlib ZLIB) ) |
302 |
+ args+=( $(haproxy_use lua LUA) ) |
303 |
+ args+=( $(haproxy_use 51degrees 51DEGREES) ) |
304 |
+ args+=( $(haproxy_use device-atlas DEVICEATLAS) ) |
305 |
+ args+=( $(haproxy_use wurfl WURFL) ) |
306 |
+ args+=( $(haproxy_use systemd SYSTEMD) ) |
307 |
+ |
308 |
+ # For now, until the strict-aliasing breakage will be fixed |
309 |
+ append-cflags -fno-strict-aliasing |
310 |
+ |
311 |
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]} |
312 |
+ emake -C contrib/systemd SBINDIR=/usr/sbin |
313 |
+ |
314 |
+ if use tools ; then |
315 |
+ for contrib in ${CONTRIBS[@]} ; do |
316 |
+ emake -C contrib/${contrib} \ |
317 |
+ CFLAGS="${CFLAGS}" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]} |
318 |
+ done |
319 |
+ fi |
320 |
+} |
321 |
+ |
322 |
+src_install() { |
323 |
+ dosbin haproxy |
324 |
+ dosym ../sbin/haproxy /usr/bin/haproxy |
325 |
+ |
326 |
+ newconfd "${FILESDIR}/${PN}.confd" $PN |
327 |
+ newinitd "${FILESDIR}/${PN}.initd-r6" $PN |
328 |
+ |
329 |
+ doman doc/haproxy.1 |
330 |
+ |
331 |
+ systemd_dounit contrib/systemd/haproxy.service |
332 |
+ |
333 |
+ einstalldocs |
334 |
+ |
335 |
+ # The errorfiles are used by upstream defaults. |
336 |
+ insinto /etc/haproxy/errors/ |
337 |
+ doins examples/errorfiles/* |
338 |
+ |
339 |
+ if use doc; then |
340 |
+ dodoc ROADMAP doc/*.txt |
341 |
+ #if use lua; then |
342 |
+ # TODO: doc/lua-api/ |
343 |
+ #fi |
344 |
+ fi |
345 |
+ |
346 |
+ if use tools ; then |
347 |
+ has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog |
348 |
+ has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange |
349 |
+ has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range |
350 |
+ has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example |
351 |
+ has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example |
352 |
+ has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop |
353 |
+ has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack |
354 |
+ fi |
355 |
+ |
356 |
+ if use examples ; then |
357 |
+ docinto examples |
358 |
+ dodoc examples/*.cfg |
359 |
+ dodoc examples/seamless_reload.txt |
360 |
+ fi |
361 |
+ |
362 |
+ if use vim-syntax ; then |
363 |
+ insinto /usr/share/vim/vimfiles/syntax |
364 |
+ doins examples/haproxy.vim |
365 |
+ fi |
366 |
+} |
367 |
+ |
368 |
+pkg_postinst() { |
369 |
+ if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
370 |
+ ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
371 |
+ ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
372 |
+ ewarn "Make use of them with the \"user\" and \"group\" directives." |
373 |
+ |
374 |
+ if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
375 |
+ einfo "Please consult the installed documentation for learning the configuration file's syntax." |
376 |
+ einfo "The documentation and sample configuration files are installed here:" |
377 |
+ einfo " ${EROOT}usr/share/doc/${PF}" |
378 |
+ fi |
379 |
+ fi |
380 |
+} |
381 |
|
382 |
diff --git a/net-proxy/haproxy/haproxy-1.9.12.ebuild b/net-proxy/haproxy/haproxy-1.9.12.ebuild |
383 |
new file mode 100644 |
384 |
index 00000000000..0eacacdc48d |
385 |
--- /dev/null |
386 |
+++ b/net-proxy/haproxy/haproxy-1.9.12.ebuild |
387 |
@@ -0,0 +1,173 @@ |
388 |
+# Copyright 1999-2019 Gentoo Authors |
389 |
+# Distributed under the terms of the GNU General Public License v2 |
390 |
+ |
391 |
+EAPI="7" |
392 |
+ |
393 |
+[[ ${PV} == *9999 ]] && SCM="git-r3" |
394 |
+inherit user toolchain-funcs flag-o-matic systemd linux-info $SCM |
395 |
+ |
396 |
+MY_P="${PN}-${PV/_beta/-dev}" |
397 |
+ |
398 |
+DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
399 |
+HOMEPAGE="http://www.haproxy.org" |
400 |
+if [[ ${PV} != *9999 ]]; then |
401 |
+ SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
402 |
+ KEYWORDS="~amd64 ~arm ~ppc ~x86" |
403 |
+else |
404 |
+ EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
405 |
+ EGIT_BRANCH=master |
406 |
+fi |
407 |
+ |
408 |
+LICENSE="GPL-2 LGPL-2.1" |
409 |
+SLOT="0" |
410 |
+IUSE="+crypt doc examples libressl slz net_ns +pcre pcre-jit pcre2 pcre2-jit ssl |
411 |
+systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl" |
412 |
+REQUIRED_USE="pcre-jit? ( pcre ) |
413 |
+ pcre2-jit? ( pcre2 ) |
414 |
+ pcre? ( !pcre2 ) |
415 |
+ device-atlas? ( pcre ) |
416 |
+ ?? ( slz zlib )" |
417 |
+ |
418 |
+DEPEND=" |
419 |
+ pcre? ( |
420 |
+ dev-libs/libpcre |
421 |
+ pcre-jit? ( dev-libs/libpcre[jit] ) |
422 |
+ ) |
423 |
+ pcre2? ( |
424 |
+ dev-libs/libpcre |
425 |
+ pcre2-jit? ( dev-libs/libpcre2[jit] ) |
426 |
+ ) |
427 |
+ ssl? ( |
428 |
+ !libressl? ( dev-libs/openssl:0=[zlib?] ) |
429 |
+ libressl? ( dev-libs/libressl:0= ) |
430 |
+ ) |
431 |
+ slz? ( dev-libs/libslz:= ) |
432 |
+ zlib? ( sys-libs/zlib ) |
433 |
+ lua? ( dev-lang/lua:5.3 ) |
434 |
+ device-atlas? ( dev-libs/device-atlas-api-c )" |
435 |
+RDEPEND="${DEPEND}" |
436 |
+ |
437 |
+S="${WORKDIR}/${MY_P}" |
438 |
+ |
439 |
+DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
440 |
+CONTRIBS=( halog iprange ) |
441 |
+# ip6range is present in 1.6, but broken. |
442 |
+ver_test $PV -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop ) |
443 |
+# TODO: mod_defender - requires apache / APR, modsecurity - the same |
444 |
+ver_test $PV -ge 1.8.0 && CONTRIBS+=( hpack ) |
445 |
+ |
446 |
+haproxy_use() { |
447 |
+ (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
448 |
+ |
449 |
+ usex "${1}" "USE_${2}=1" "USE_${2}=" |
450 |
+} |
451 |
+ |
452 |
+pkg_setup() { |
453 |
+ enewgroup haproxy |
454 |
+ enewuser haproxy -1 -1 -1 haproxy |
455 |
+ |
456 |
+ if use net_ns; then |
457 |
+ CONFIG_CHECK="~NET_NS" |
458 |
+ linux-info_pkg_setup |
459 |
+ fi |
460 |
+} |
461 |
+ |
462 |
+src_compile() { |
463 |
+ local -a args=( |
464 |
+ V=1 |
465 |
+ TARGET=linux2628 |
466 |
+ USE_GETADDRINFO=1 |
467 |
+ USE_TFO=1 |
468 |
+ ) |
469 |
+ |
470 |
+ # TODO: PCRE2_WIDTH? |
471 |
+ args+=( $(haproxy_use threads THREAD) ) |
472 |
+ args+=( $(haproxy_use crypt LIBCRYPT) ) |
473 |
+ args+=( $(haproxy_use net_ns NS) ) |
474 |
+ args+=( $(haproxy_use pcre PCRE) ) |
475 |
+ args+=( $(haproxy_use pcre-jit PCRE_JIT) ) |
476 |
+ args+=( $(haproxy_use pcre2 PCRE2) ) |
477 |
+ args+=( $(haproxy_use pcre2-jit PCRE2_JIT) ) |
478 |
+ args+=( $(haproxy_use ssl OPENSSL) ) |
479 |
+ args+=( $(haproxy_use slz SLZ) ) |
480 |
+ args+=( $(haproxy_use zlib ZLIB) ) |
481 |
+ args+=( $(haproxy_use lua LUA) ) |
482 |
+ args+=( $(haproxy_use 51degrees 51DEGREES) ) |
483 |
+ args+=( $(haproxy_use device-atlas DEVICEATLAS) ) |
484 |
+ args+=( $(haproxy_use wurfl WURFL) ) |
485 |
+ args+=( $(haproxy_use systemd SYSTEMD) ) |
486 |
+ |
487 |
+ # For now, until the strict-aliasing breakage will be fixed |
488 |
+ append-cflags -fno-strict-aliasing |
489 |
+ |
490 |
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]} |
491 |
+ emake -C contrib/systemd SBINDIR=/usr/sbin |
492 |
+ |
493 |
+ if use tools ; then |
494 |
+ for contrib in ${CONTRIBS[@]} ; do |
495 |
+ # Those two includes are a workaround for hpack Makefile missing those |
496 |
+ emake -C contrib/${contrib} \ |
497 |
+ CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]} |
498 |
+ done |
499 |
+ fi |
500 |
+} |
501 |
+ |
502 |
+src_install() { |
503 |
+ dosbin haproxy |
504 |
+ dosym ../sbin/haproxy /usr/bin/haproxy |
505 |
+ |
506 |
+ newconfd "${FILESDIR}/${PN}.confd" $PN |
507 |
+ newinitd "${FILESDIR}/${PN}.initd-r6" $PN |
508 |
+ |
509 |
+ doman doc/haproxy.1 |
510 |
+ |
511 |
+ systemd_dounit contrib/systemd/haproxy.service |
512 |
+ |
513 |
+ einstalldocs |
514 |
+ |
515 |
+ # The errorfiles are used by upstream defaults. |
516 |
+ insinto /etc/haproxy/errors/ |
517 |
+ doins examples/errorfiles/* |
518 |
+ |
519 |
+ if use doc; then |
520 |
+ dodoc ROADMAP doc/*.txt |
521 |
+ #if use lua; then |
522 |
+ # TODO: doc/lua-api/ |
523 |
+ #fi |
524 |
+ fi |
525 |
+ |
526 |
+ if use tools ; then |
527 |
+ has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog |
528 |
+ has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange |
529 |
+ has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range |
530 |
+ has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example |
531 |
+ has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example |
532 |
+ has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop |
533 |
+ has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack |
534 |
+ fi |
535 |
+ |
536 |
+ if use examples ; then |
537 |
+ docinto examples |
538 |
+ dodoc examples/*.cfg |
539 |
+ dodoc examples/seamless_reload.txt |
540 |
+ fi |
541 |
+ |
542 |
+ if use vim-syntax ; then |
543 |
+ insinto /usr/share/vim/vimfiles/syntax |
544 |
+ doins examples/haproxy.vim |
545 |
+ fi |
546 |
+} |
547 |
+ |
548 |
+pkg_postinst() { |
549 |
+ if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
550 |
+ ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
551 |
+ ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
552 |
+ ewarn "Make use of them with the \"user\" and \"group\" directives." |
553 |
+ |
554 |
+ if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
555 |
+ einfo "Please consult the installed documentation for learning the configuration file's syntax." |
556 |
+ einfo "The documentation and sample configuration files are installed here:" |
557 |
+ einfo " ${EROOT}/usr/share/doc/${PF}" |
558 |
+ fi |
559 |
+ fi |
560 |
+} |
561 |
|
562 |
diff --git a/net-proxy/haproxy/haproxy-2.0.8.ebuild b/net-proxy/haproxy/haproxy-2.0.8.ebuild |
563 |
new file mode 100644 |
564 |
index 00000000000..06e10c93669 |
565 |
--- /dev/null |
566 |
+++ b/net-proxy/haproxy/haproxy-2.0.8.ebuild |
567 |
@@ -0,0 +1,176 @@ |
568 |
+# Copyright 1999-2019 Gentoo Authors |
569 |
+# Distributed under the terms of the GNU General Public License v2 |
570 |
+ |
571 |
+EAPI="7" |
572 |
+ |
573 |
+[[ ${PV} == *9999 ]] && SCM="git-r3" |
574 |
+inherit user toolchain-funcs flag-o-matic systemd linux-info $SCM |
575 |
+ |
576 |
+MY_P="${PN}-${PV/_beta/-dev}" |
577 |
+ |
578 |
+DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
579 |
+HOMEPAGE="http://www.haproxy.org" |
580 |
+if [[ ${PV} != *9999 ]]; then |
581 |
+ SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
582 |
+ KEYWORDS="~amd64 ~arm ~ppc ~x86" |
583 |
+else |
584 |
+ EGIT_REPO_URI="http://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
585 |
+ EGIT_BRANCH=master |
586 |
+fi |
587 |
+ |
588 |
+LICENSE="GPL-2 LGPL-2.1" |
589 |
+SLOT="0" |
590 |
+IUSE="+crypt doc examples libressl slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter |
591 |
+ssl systemd +threads tools vim-syntax +zlib lua device-atlas 51degrees wurfl" |
592 |
+REQUIRED_USE="pcre-jit? ( pcre ) |
593 |
+ pcre2-jit? ( pcre2 ) |
594 |
+ pcre? ( !pcre2 ) |
595 |
+ device-atlas? ( pcre ) |
596 |
+ ?? ( slz zlib )" |
597 |
+ |
598 |
+DEPEND=" |
599 |
+ pcre? ( |
600 |
+ dev-libs/libpcre |
601 |
+ pcre-jit? ( dev-libs/libpcre[jit] ) |
602 |
+ ) |
603 |
+ pcre2? ( |
604 |
+ dev-libs/libpcre |
605 |
+ pcre2-jit? ( dev-libs/libpcre2[jit] ) |
606 |
+ ) |
607 |
+ ssl? ( |
608 |
+ !libressl? ( dev-libs/openssl:0=[zlib?] ) |
609 |
+ libressl? ( dev-libs/libressl:0= ) |
610 |
+ ) |
611 |
+ slz? ( dev-libs/libslz:= ) |
612 |
+ zlib? ( sys-libs/zlib ) |
613 |
+ lua? ( dev-lang/lua:5.3 ) |
614 |
+ device-atlas? ( dev-libs/device-atlas-api-c )" |
615 |
+RDEPEND="${DEPEND}" |
616 |
+ |
617 |
+S="${WORKDIR}/${MY_P}" |
618 |
+ |
619 |
+DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
620 |
+CONTRIBS=( halog iprange ) |
621 |
+# ip6range is present in 1.6, but broken. |
622 |
+ver_test $PV -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop ) |
623 |
+# TODO: mod_defender - requires apache / APR, modsecurity - the same |
624 |
+ver_test $PV -ge 1.8.0 && CONTRIBS+=( hpack ) |
625 |
+ |
626 |
+haproxy_use() { |
627 |
+ (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
628 |
+ |
629 |
+ usex "${1}" "USE_${2}=1" "USE_${2}=" |
630 |
+} |
631 |
+ |
632 |
+pkg_setup() { |
633 |
+ enewgroup haproxy |
634 |
+ enewuser haproxy -1 -1 -1 haproxy |
635 |
+ |
636 |
+ if use net_ns; then |
637 |
+ CONFIG_CHECK="~NET_NS" |
638 |
+ linux-info_pkg_setup |
639 |
+ fi |
640 |
+} |
641 |
+ |
642 |
+src_compile() { |
643 |
+ local -a args=( |
644 |
+ V=1 |
645 |
+ TARGET=linux-glibc |
646 |
+ ) |
647 |
+ |
648 |
+ # TODO: PCRE2_WIDTH? |
649 |
+ args+=( $(haproxy_use threads THREAD) ) |
650 |
+ args+=( $(haproxy_use crypt LIBCRYPT) ) |
651 |
+ args+=( $(haproxy_use net_ns NS) ) |
652 |
+ args+=( $(haproxy_use pcre PCRE) ) |
653 |
+ args+=( $(haproxy_use pcre-jit PCRE_JIT) ) |
654 |
+ args+=( $(haproxy_use pcre2 PCRE2) ) |
655 |
+ args+=( $(haproxy_use pcre2-jit PCRE2_JIT) ) |
656 |
+ args+=( $(haproxy_use ssl OPENSSL) ) |
657 |
+ args+=( $(haproxy_use slz SLZ) ) |
658 |
+ args+=( $(haproxy_use zlib ZLIB) ) |
659 |
+ args+=( $(haproxy_use lua LUA) ) |
660 |
+ args+=( $(haproxy_use 51degrees 51DEGREES) ) |
661 |
+ args+=( $(haproxy_use device-atlas DEVICEATLAS) ) |
662 |
+ args+=( $(haproxy_use wurfl WURFL) ) |
663 |
+ args+=( $(haproxy_use systemd SYSTEMD) ) |
664 |
+ |
665 |
+ # For now, until the strict-aliasing breakage will be fixed |
666 |
+ append-cflags -fno-strict-aliasing |
667 |
+ |
668 |
+ if use prometheus-exporter; then |
669 |
+ EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" |
670 |
+ fi |
671 |
+ |
672 |
+ # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
673 |
+ emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) EXTRA_OBJS="${EXTRA_OBJS}" ${args[@]} |
674 |
+ emake -C contrib/systemd SBINDIR=/usr/sbin |
675 |
+ |
676 |
+ if use tools ; then |
677 |
+ for contrib in ${CONTRIBS[@]} ; do |
678 |
+ # Those two includes are a workaround for hpack Makefile missing those |
679 |
+ emake -C contrib/${contrib} \ |
680 |
+ CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args[@]} |
681 |
+ done |
682 |
+ fi |
683 |
+} |
684 |
+ |
685 |
+src_install() { |
686 |
+ dosbin haproxy |
687 |
+ dosym ../sbin/haproxy /usr/bin/haproxy |
688 |
+ |
689 |
+ newconfd "${FILESDIR}/${PN}.confd" $PN |
690 |
+ newinitd "${FILESDIR}/${PN}.initd-r6" $PN |
691 |
+ |
692 |
+ doman doc/haproxy.1 |
693 |
+ |
694 |
+ systemd_dounit contrib/systemd/haproxy.service |
695 |
+ |
696 |
+ einstalldocs |
697 |
+ |
698 |
+ # The errorfiles are used by upstream defaults. |
699 |
+ insinto /etc/haproxy/errors/ |
700 |
+ doins examples/errorfiles/* |
701 |
+ |
702 |
+ if use doc; then |
703 |
+ dodoc ROADMAP doc/*.txt |
704 |
+ #if use lua; then |
705 |
+ # TODO: doc/lua-api/ |
706 |
+ #fi |
707 |
+ fi |
708 |
+ |
709 |
+ if use tools ; then |
710 |
+ has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog |
711 |
+ has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange |
712 |
+ has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range |
713 |
+ has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example |
714 |
+ has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example |
715 |
+ has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop |
716 |
+ has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack |
717 |
+ fi |
718 |
+ |
719 |
+ if use examples ; then |
720 |
+ docinto examples |
721 |
+ dodoc examples/*.cfg |
722 |
+ dodoc doc/seamless_reload.txt |
723 |
+ fi |
724 |
+ |
725 |
+ if use vim-syntax ; then |
726 |
+ insinto /usr/share/vim/vimfiles/syntax |
727 |
+ doins contrib/syntax-highlight/haproxy.vim |
728 |
+ fi |
729 |
+} |
730 |
+ |
731 |
+pkg_postinst() { |
732 |
+ if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
733 |
+ ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
734 |
+ ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
735 |
+ ewarn "Make use of them with the \"user\" and \"group\" directives." |
736 |
+ |
737 |
+ if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
738 |
+ einfo "Please consult the installed documentation for learning the configuration file's syntax." |
739 |
+ einfo "The documentation and sample configuration files are installed here:" |
740 |
+ einfo " ${EROOT}/usr/share/doc/${PF}" |
741 |
+ fi |
742 |
+ fi |
743 |
+} |