1 |
commit: f46947c1bbb234e7c905a2d41385d43a247e5e60 |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 13 15:56:18 2022 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 13 15:56:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f46947c1 |
7 |
|
8 |
net-proxy/haproxy: Cleanup old versions |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org> |
12 |
|
13 |
net-proxy/haproxy/Manifest | 7 -- |
14 |
net-proxy/haproxy/haproxy-2.0.28-r1.ebuild | 183 ----------------------------- |
15 |
net-proxy/haproxy/haproxy-2.2.22-r1.ebuild | 183 ----------------------------- |
16 |
net-proxy/haproxy/haproxy-2.2.23.ebuild | 181 ---------------------------- |
17 |
net-proxy/haproxy/haproxy-2.4.15-r1.ebuild | 179 ---------------------------- |
18 |
net-proxy/haproxy/haproxy-2.4.16.ebuild | 177 ---------------------------- |
19 |
net-proxy/haproxy/haproxy-2.5.5-r1.ebuild | 179 ---------------------------- |
20 |
net-proxy/haproxy/haproxy-2.5.6.ebuild | 177 ---------------------------- |
21 |
8 files changed, 1266 deletions(-) |
22 |
|
23 |
diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest |
24 |
index 1098d614cf12..e1f2bf3c59e2 100644 |
25 |
--- a/net-proxy/haproxy/Manifest |
26 |
+++ b/net-proxy/haproxy/Manifest |
27 |
@@ -1,17 +1,10 @@ |
28 |
DIST haproxy-2.0.25.tar.gz 2707840 BLAKE2B cd85d233623f2791bff8ada00d9ac4ea3743e2c1fbccd45a6fd56b7cc0ae5904619b50849a23576f0a6d21ae2798166acd41692d0311bcf361355dc6ee0da790 SHA512 2c238844a8c82f877d3039b20b76fd22717f95a4e5d94a0bfd501c6e134042ef744d3731fc0ccced0a94e5cb1c1822d3272ed961e07bd9acc4d637eba0529155 |
29 |
DIST haproxy-2.0.27.tar.gz 2716937 BLAKE2B 08ab2905b26b8e33068af77f3a153dc489f509436451d2711f9929100ecebfbec9edd14b449c48739b1d20990431fa6a8b49e4fc98d32ade5c1688f72d310f63 SHA512 339a013cb11778ed444370ff1887b4db121947784bda08f818a39b98261d02a5ebeb681ef7040cbb0e493d89c5b8e2c5a32f0cdccf9e89a6327e9d95cc6d5891 |
30 |
-DIST haproxy-2.0.28.tar.gz 2721568 BLAKE2B c4c7db2836e6296b038825de2467144ec40995182363f7924638f0edb91bdbca383e2a2114f6973445aa2b5933a7c2014643cde66fec81dff562123f89525cfc SHA512 77d1d6cc4a03476e2216568ff687163c98abe380063700fded384fec5bc217f2cfebe335b0c64b8f4adfb80e75eddb7a71b6217064daa73290756871514bf550 |
31 |
DIST haproxy-2.0.29.tar.gz 2722893 BLAKE2B 1f4763ef87c32cb93fcba58ad428938bf08295236d6cc7b81f2098a2a74d26d41af2bac70d9994c1108815caf58e37bcf6c84518c41514a8c8cce5fae60383c4 SHA512 e635a522d62fea040e996f0a518419c7d4a49e3770b2fc15a5cbf1aa98ccf42b8d698a9bf260ae6658bc4896510a8b056487af8f2cf023a1fc97172cc110f553 |
32 |
DIST haproxy-2.2.17.tar.gz 2933836 BLAKE2B 750d2c5048f994442d13c05ce6624731d296462951ee2e86110467d517a6708b498e98260a3f0770e110dc5c2cb2bdd746fb76f23ba7cebc1642b0b9c8124a67 SHA512 174197e1e0915a6ae6062b9a070f16102ac7f3429f991f36cdb2e2cce587bd26059bd1dc71a368f904bcdecd292ab5926715160400ae96d498d902aac356864f |
33 |
DIST haproxy-2.2.21.tar.gz 2947789 BLAKE2B 3462f0a67070bd61266cc67d7d419dfb9e209314982f2035bdce6b905f9fe567780669adc09905598a6129152dbb77416790976249076935fcb90e7e03767284 SHA512 2404bf0938b88c3249668bef1f13195973c5b1db8dc056ed9d5b882b8cdabf71076b73de723e8d3d0d953193294edea4acac5edeee8ac472e93ae0bd917bf99b |
34 |
-DIST haproxy-2.2.22.tar.gz 2949092 BLAKE2B 3dc7183f31cd0a95be516fbedab1eacae00761f8f2bee8478cd0c446f80c4f40c7012b64485bc598d124e3430611f6b9a748c68e1b6b379519af5308e3ed4c20 SHA512 4a99d196257fb3c99a1d76d6f9a714c673226821439b67f646fa04033f31af9ac8f783f5a984c143372d79d728476aa8b2b35d8a2f31b7fc86c09b8f9ad65615 |
35 |
-DIST haproxy-2.2.23.tar.gz 2950408 BLAKE2B a718355c1ecaf4d5728b4464fee0b65bcd4c133929be315e17e8a782618031a7508c2172d7e66790b819b884df8d813d399af9aa12cd395079b8e035e37bb76a SHA512 8e4f0e72fbeae0bf31533c74f9d518f4825702f1f7b36137a224a35ba08cbeefbbf587fa0b7ca11cb7306bf64eebc0d0e8aead505a1d53037148e1572c831ff4 |
36 |
DIST haproxy-2.2.24.tar.gz 2952103 BLAKE2B 4e795c06ed329619135d553210e70d1abf57e20a27e857ea26f003cd9fcebba2ea964581fa9d1f33067fb3faa7304806f3a598d2e2b0c08d6c1d4593ad01203c SHA512 021d065e53503248de122fdd9431786b9f375a5f87aca76f870e17e44c8c4001a778bfb4e430b28af781a3f175f3643a549e363e964210c717f212c5966e68d8 |
37 |
DIST haproxy-2.4.14.tar.gz 3613642 BLAKE2B b45af8f62cefead1f471b0b61e9bc262dc25e0ca99898469d7702fb6e509cf2b9a9c201f8c6ecae948ef40c8fc8aec0351d8e10479752fdd5ccd66758f632799 SHA512 a4a5d449782dc2f1348d1f53ec266eef4ea4e1b0586e81730a01d818481c3a3cfb018ba1da5968d17bb6668e86017beccf7abefc563993b88a5af8cbd1da1943 |
38 |
-DIST haproxy-2.4.15.tar.gz 3616441 BLAKE2B 425444a54e22cca8d15cb808283be3baefcd2ce56447d91bce3b4f4b7f6606e03d2eb8a242891c619cfd0fad9aba5bb84026c68d41f07cd55f083481df234899 SHA512 da6f6a4f021bfa719926f4c73dc559429357a77da2c560a4375d2edbb4f342a05548d39ce0a7e3346c305f1779e579a738d8442e8e9e01903f9c435a7b0b6d71 |
39 |
-DIST haproxy-2.4.16.tar.gz 3621231 BLAKE2B 6cce1d230b0e1068421968adaa75fbaf26b029a6d54eab21ddd1e0e378fbd0d9a39060d946ca676393951e0565d3587eee49fd3badddac11b48794134be87801 SHA512 98c52699fbfeef8699a0d007664ff5be023f02e3eb32ba4d05a71bb4b1bcfa7ff0cb9fbcdd3d863c053cf6d7041168f63ef3fa04d11ab9aa0753c9be6812c0d8 |
40 |
DIST haproxy-2.4.17.tar.gz 3623854 BLAKE2B 54797eb6a16a100951ee9e0bb972a7fbdd8ffd22bd1feccdf41743d86ff37b71de54109504ae339007533d41b507b1abb74d8219e4a06320a13e0fce3557b999 SHA512 98d46b6dbafd95977a32a6479266f3b9fe6e6ed57e39182a3d031add60dabfdaa7494083109a75eaa3e4b15d0293b11081f9b06556eee1777ede40ed6c002a7f |
41 |
DIST haproxy-2.5.4.tar.gz 3819082 BLAKE2B fabc62ebaa968a11a49a6dd131198af31a49adbe73bcae82124ca752c2c90c1d77346621c9d804a10bca8ff254580aa7fbaca774f9df1a6a99ec112375d84a50 SHA512 95eb1ad9121a93cc77f0dd14e0080e18935cd45dc7dc511ab6dd0ecbdbb967bbde5eaa83f70157086796603560b979689f7d50b0cfba93d0245544c3a8c28a87 |
42 |
-DIST haproxy-2.5.5.tar.gz 3821477 BLAKE2B 0680925026edf56f4369c71092c39f4ff3956a8cf04320326623b3031f719d62077acdca457a6cfd82f6bcbf510920113a0328a2d8cd4a208c3d9e49e1d431b5 SHA512 f68af2be330b0fa817f7611ff46e0d3e0cc52d024b20394a5f1eedf33e6774115ee6f35ecd82d33b9ecedea2fe5afcfa32270cee33a1f6ce1726d96cc8c0d821 |
43 |
-DIST haproxy-2.5.6.tar.gz 3826838 BLAKE2B 571acbb5dd9fad6ee560a3db25e88815dad4278640730337257ac18ad670b1d69cd9669c7e6a60e03a784adc9c7d8aba8d4e035152d3c13072c1a05a1534facb SHA512 e97f422379af0589edf5c1dea949e95f76a7d1ce05ece75580248607f6c05cfda4a430390aca74f4d37c35de8af6d73c9a0768a699c231e11c8bb4194cb98d41 |
44 |
DIST haproxy-2.5.7.tar.gz 3832801 BLAKE2B 6d54135b56f84129dea497ddc935fecf593abccfb21fc647c7d166f9c1aa4abc670c66bf13e0923e353627d83d47345f632ae8212672c3b3da7a757fd5d24d7c SHA512 cf6994508d559401a84e1304c2b6829952a9b3a14365d03436da42ec7e4553c201ffde9e524044dfa48813e8e614d24095a87b0fae7d9145ce5e66b953666ee9 |
45 |
|
46 |
diff --git a/net-proxy/haproxy/haproxy-2.0.28-r1.ebuild b/net-proxy/haproxy/haproxy-2.0.28-r1.ebuild |
47 |
deleted file mode 100644 |
48 |
index f85333d3df83..000000000000 |
49 |
--- a/net-proxy/haproxy/haproxy-2.0.28-r1.ebuild |
50 |
+++ /dev/null |
51 |
@@ -1,183 +0,0 @@ |
52 |
-# Copyright 1999-2022 Gentoo Authors |
53 |
-# Distributed under the terms of the GNU General Public License v2 |
54 |
- |
55 |
-EAPI="7" |
56 |
- |
57 |
-LUA_COMPAT=( lua5-3 ) |
58 |
- |
59 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
60 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
61 |
- |
62 |
-MY_P="${PN}-${PV/_beta/-dev}" |
63 |
- |
64 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
65 |
-HOMEPAGE="http://www.haproxy.org" |
66 |
-if [[ ${PV} != *9999 ]]; then |
67 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
68 |
- KEYWORDS="~amd64 ~arm ~ppc ~x86" |
69 |
-else |
70 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
71 |
- EGIT_BRANCH=master |
72 |
-fi |
73 |
- |
74 |
-LICENSE="GPL-2 LGPL-2.1" |
75 |
-SLOT="0/$(ver_cut 1-2)" |
76 |
-IUSE="+crypt doc examples slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter |
77 |
-ssl systemd +threads tools vim-syntax +zlib lua 51degrees wurfl" |
78 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
79 |
- pcre2-jit? ( pcre2 ) |
80 |
- pcre? ( !pcre2 ) |
81 |
- lua? ( ${LUA_REQUIRED_USE} ) |
82 |
- ?? ( slz zlib )" |
83 |
- |
84 |
-BDEPEND="virtual/pkgconfig" |
85 |
-DEPEND=" |
86 |
- crypt? ( virtual/libcrypt:= ) |
87 |
- pcre? ( |
88 |
- dev-libs/libpcre |
89 |
- pcre-jit? ( dev-libs/libpcre[jit] ) |
90 |
- ) |
91 |
- pcre2? ( |
92 |
- dev-libs/libpcre2:= |
93 |
- pcre2-jit? ( dev-libs/libpcre2:=[jit] ) |
94 |
- ) |
95 |
- ssl? ( |
96 |
- dev-libs/openssl:0= |
97 |
- ) |
98 |
- slz? ( dev-libs/libslz:= ) |
99 |
- systemd? ( sys-apps/systemd ) |
100 |
- zlib? ( sys-libs/zlib ) |
101 |
- lua? ( ${LUA_DEPS} )" |
102 |
-RDEPEND="${DEPEND} |
103 |
- acct-group/haproxy |
104 |
- acct-user/haproxy" |
105 |
- |
106 |
-S="${WORKDIR}/${MY_P}" |
107 |
- |
108 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
109 |
-CONTRIBS=( halog iprange ) |
110 |
-# ip6range is present in 1.6, but broken. |
111 |
-ver_test ${PV} -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop ) |
112 |
-# TODO: mod_defender - requires apache / APR, modsecurity - the same |
113 |
-ver_test ${PV} -ge 1.8.0 && CONTRIBS+=( hpack ) |
114 |
- |
115 |
-haproxy_use() { |
116 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
117 |
- |
118 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
119 |
-} |
120 |
- |
121 |
-pkg_setup() { |
122 |
- use lua && lua-single_pkg_setup |
123 |
- if use net_ns; then |
124 |
- CONFIG_CHECK="~NET_NS" |
125 |
- linux-info_pkg_setup |
126 |
- fi |
127 |
-} |
128 |
- |
129 |
-src_compile() { |
130 |
- local -a args=( |
131 |
- V=1 |
132 |
- TARGET=linux-glibc |
133 |
- ) |
134 |
- |
135 |
- # TODO: PCRE2_WIDTH? |
136 |
- args+=( $(haproxy_use threads THREAD) ) |
137 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
138 |
- args+=( $(haproxy_use net_ns NS) ) |
139 |
- args+=( $(haproxy_use pcre PCRE) ) |
140 |
- args+=( $(haproxy_use pcre-jit PCRE_JIT) ) |
141 |
- args+=( $(haproxy_use pcre2 PCRE2) ) |
142 |
- args+=( $(haproxy_use pcre2-jit PCRE2_JIT) ) |
143 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
144 |
- args+=( $(haproxy_use slz SLZ) ) |
145 |
- args+=( $(haproxy_use zlib ZLIB) ) |
146 |
- args+=( $(haproxy_use lua LUA) ) |
147 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
148 |
- args+=( $(haproxy_use wurfl WURFL) ) |
149 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
150 |
- |
151 |
- # For now, until the strict-aliasing breakage will be fixed |
152 |
- append-cflags -fno-strict-aliasing |
153 |
- |
154 |
- # Bug #668002 |
155 |
- if use ppc || use arm || use hppa; then |
156 |
- TARGET_LDFLAGS=-latomic |
157 |
- fi |
158 |
- |
159 |
- if use prometheus-exporter; then |
160 |
- EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" |
161 |
- fi |
162 |
- |
163 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
164 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" ${args[@]} |
165 |
- emake -C contrib/systemd SBINDIR=/usr/sbin |
166 |
- |
167 |
- if use tools ; then |
168 |
- for contrib in ${CONTRIBS[@]} ; do |
169 |
- # Those two includes are a workaround for hpack Makefile missing those |
170 |
- emake -C contrib/${contrib} \ |
171 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
172 |
- done |
173 |
- fi |
174 |
-} |
175 |
- |
176 |
-src_install() { |
177 |
- dosbin haproxy |
178 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
179 |
- |
180 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
181 |
- newinitd "${FILESDIR}/${PN}.initd-r7" ${PN} |
182 |
- |
183 |
- doman doc/haproxy.1 |
184 |
- |
185 |
- systemd_dounit contrib/systemd/haproxy.service |
186 |
- |
187 |
- einstalldocs |
188 |
- |
189 |
- # The errorfiles are used by upstream defaults. |
190 |
- insinto /etc/haproxy/errors/ |
191 |
- doins examples/errorfiles/* |
192 |
- |
193 |
- if use doc; then |
194 |
- dodoc ROADMAP doc/*.txt |
195 |
- #if use lua; then |
196 |
- # TODO: doc/lua-api/ |
197 |
- #fi |
198 |
- fi |
199 |
- |
200 |
- if use tools ; then |
201 |
- has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog |
202 |
- has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange |
203 |
- has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range |
204 |
- has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example |
205 |
- has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example |
206 |
- has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop |
207 |
- has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack |
208 |
- fi |
209 |
- |
210 |
- if use examples ; then |
211 |
- docinto examples |
212 |
- dodoc examples/*.cfg |
213 |
- dodoc doc/seamless_reload.txt |
214 |
- fi |
215 |
- |
216 |
- if use vim-syntax ; then |
217 |
- insinto /usr/share/vim/vimfiles/syntax |
218 |
- doins contrib/syntax-highlight/haproxy.vim |
219 |
- fi |
220 |
-} |
221 |
- |
222 |
-pkg_postinst() { |
223 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
224 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
225 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
226 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
227 |
- |
228 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
229 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
230 |
- einfo "The documentation and sample configuration files are installed here:" |
231 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
232 |
- fi |
233 |
- fi |
234 |
-} |
235 |
|
236 |
diff --git a/net-proxy/haproxy/haproxy-2.2.22-r1.ebuild b/net-proxy/haproxy/haproxy-2.2.22-r1.ebuild |
237 |
deleted file mode 100644 |
238 |
index f85333d3df83..000000000000 |
239 |
--- a/net-proxy/haproxy/haproxy-2.2.22-r1.ebuild |
240 |
+++ /dev/null |
241 |
@@ -1,183 +0,0 @@ |
242 |
-# Copyright 1999-2022 Gentoo Authors |
243 |
-# Distributed under the terms of the GNU General Public License v2 |
244 |
- |
245 |
-EAPI="7" |
246 |
- |
247 |
-LUA_COMPAT=( lua5-3 ) |
248 |
- |
249 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
250 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
251 |
- |
252 |
-MY_P="${PN}-${PV/_beta/-dev}" |
253 |
- |
254 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
255 |
-HOMEPAGE="http://www.haproxy.org" |
256 |
-if [[ ${PV} != *9999 ]]; then |
257 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
258 |
- KEYWORDS="~amd64 ~arm ~ppc ~x86" |
259 |
-else |
260 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
261 |
- EGIT_BRANCH=master |
262 |
-fi |
263 |
- |
264 |
-LICENSE="GPL-2 LGPL-2.1" |
265 |
-SLOT="0/$(ver_cut 1-2)" |
266 |
-IUSE="+crypt doc examples slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter |
267 |
-ssl systemd +threads tools vim-syntax +zlib lua 51degrees wurfl" |
268 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
269 |
- pcre2-jit? ( pcre2 ) |
270 |
- pcre? ( !pcre2 ) |
271 |
- lua? ( ${LUA_REQUIRED_USE} ) |
272 |
- ?? ( slz zlib )" |
273 |
- |
274 |
-BDEPEND="virtual/pkgconfig" |
275 |
-DEPEND=" |
276 |
- crypt? ( virtual/libcrypt:= ) |
277 |
- pcre? ( |
278 |
- dev-libs/libpcre |
279 |
- pcre-jit? ( dev-libs/libpcre[jit] ) |
280 |
- ) |
281 |
- pcre2? ( |
282 |
- dev-libs/libpcre2:= |
283 |
- pcre2-jit? ( dev-libs/libpcre2:=[jit] ) |
284 |
- ) |
285 |
- ssl? ( |
286 |
- dev-libs/openssl:0= |
287 |
- ) |
288 |
- slz? ( dev-libs/libslz:= ) |
289 |
- systemd? ( sys-apps/systemd ) |
290 |
- zlib? ( sys-libs/zlib ) |
291 |
- lua? ( ${LUA_DEPS} )" |
292 |
-RDEPEND="${DEPEND} |
293 |
- acct-group/haproxy |
294 |
- acct-user/haproxy" |
295 |
- |
296 |
-S="${WORKDIR}/${MY_P}" |
297 |
- |
298 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
299 |
-CONTRIBS=( halog iprange ) |
300 |
-# ip6range is present in 1.6, but broken. |
301 |
-ver_test ${PV} -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop ) |
302 |
-# TODO: mod_defender - requires apache / APR, modsecurity - the same |
303 |
-ver_test ${PV} -ge 1.8.0 && CONTRIBS+=( hpack ) |
304 |
- |
305 |
-haproxy_use() { |
306 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
307 |
- |
308 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
309 |
-} |
310 |
- |
311 |
-pkg_setup() { |
312 |
- use lua && lua-single_pkg_setup |
313 |
- if use net_ns; then |
314 |
- CONFIG_CHECK="~NET_NS" |
315 |
- linux-info_pkg_setup |
316 |
- fi |
317 |
-} |
318 |
- |
319 |
-src_compile() { |
320 |
- local -a args=( |
321 |
- V=1 |
322 |
- TARGET=linux-glibc |
323 |
- ) |
324 |
- |
325 |
- # TODO: PCRE2_WIDTH? |
326 |
- args+=( $(haproxy_use threads THREAD) ) |
327 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
328 |
- args+=( $(haproxy_use net_ns NS) ) |
329 |
- args+=( $(haproxy_use pcre PCRE) ) |
330 |
- args+=( $(haproxy_use pcre-jit PCRE_JIT) ) |
331 |
- args+=( $(haproxy_use pcre2 PCRE2) ) |
332 |
- args+=( $(haproxy_use pcre2-jit PCRE2_JIT) ) |
333 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
334 |
- args+=( $(haproxy_use slz SLZ) ) |
335 |
- args+=( $(haproxy_use zlib ZLIB) ) |
336 |
- args+=( $(haproxy_use lua LUA) ) |
337 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
338 |
- args+=( $(haproxy_use wurfl WURFL) ) |
339 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
340 |
- |
341 |
- # For now, until the strict-aliasing breakage will be fixed |
342 |
- append-cflags -fno-strict-aliasing |
343 |
- |
344 |
- # Bug #668002 |
345 |
- if use ppc || use arm || use hppa; then |
346 |
- TARGET_LDFLAGS=-latomic |
347 |
- fi |
348 |
- |
349 |
- if use prometheus-exporter; then |
350 |
- EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" |
351 |
- fi |
352 |
- |
353 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
354 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" ${args[@]} |
355 |
- emake -C contrib/systemd SBINDIR=/usr/sbin |
356 |
- |
357 |
- if use tools ; then |
358 |
- for contrib in ${CONTRIBS[@]} ; do |
359 |
- # Those two includes are a workaround for hpack Makefile missing those |
360 |
- emake -C contrib/${contrib} \ |
361 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
362 |
- done |
363 |
- fi |
364 |
-} |
365 |
- |
366 |
-src_install() { |
367 |
- dosbin haproxy |
368 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
369 |
- |
370 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
371 |
- newinitd "${FILESDIR}/${PN}.initd-r7" ${PN} |
372 |
- |
373 |
- doman doc/haproxy.1 |
374 |
- |
375 |
- systemd_dounit contrib/systemd/haproxy.service |
376 |
- |
377 |
- einstalldocs |
378 |
- |
379 |
- # The errorfiles are used by upstream defaults. |
380 |
- insinto /etc/haproxy/errors/ |
381 |
- doins examples/errorfiles/* |
382 |
- |
383 |
- if use doc; then |
384 |
- dodoc ROADMAP doc/*.txt |
385 |
- #if use lua; then |
386 |
- # TODO: doc/lua-api/ |
387 |
- #fi |
388 |
- fi |
389 |
- |
390 |
- if use tools ; then |
391 |
- has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog |
392 |
- has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange |
393 |
- has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range |
394 |
- has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example |
395 |
- has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example |
396 |
- has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop |
397 |
- has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack |
398 |
- fi |
399 |
- |
400 |
- if use examples ; then |
401 |
- docinto examples |
402 |
- dodoc examples/*.cfg |
403 |
- dodoc doc/seamless_reload.txt |
404 |
- fi |
405 |
- |
406 |
- if use vim-syntax ; then |
407 |
- insinto /usr/share/vim/vimfiles/syntax |
408 |
- doins contrib/syntax-highlight/haproxy.vim |
409 |
- fi |
410 |
-} |
411 |
- |
412 |
-pkg_postinst() { |
413 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
414 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
415 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
416 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
417 |
- |
418 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
419 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
420 |
- einfo "The documentation and sample configuration files are installed here:" |
421 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
422 |
- fi |
423 |
- fi |
424 |
-} |
425 |
|
426 |
diff --git a/net-proxy/haproxy/haproxy-2.2.23.ebuild b/net-proxy/haproxy/haproxy-2.2.23.ebuild |
427 |
deleted file mode 100644 |
428 |
index 4ec0188ead43..000000000000 |
429 |
--- a/net-proxy/haproxy/haproxy-2.2.23.ebuild |
430 |
+++ /dev/null |
431 |
@@ -1,181 +0,0 @@ |
432 |
-# Copyright 1999-2022 Gentoo Authors |
433 |
-# Distributed under the terms of the GNU General Public License v2 |
434 |
- |
435 |
-EAPI="7" |
436 |
- |
437 |
-LUA_COMPAT=( lua5-3 ) |
438 |
- |
439 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
440 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
441 |
- |
442 |
-MY_P="${PN}-${PV/_beta/-dev}" |
443 |
- |
444 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
445 |
-HOMEPAGE="http://www.haproxy.org" |
446 |
-if [[ ${PV} != *9999 ]]; then |
447 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
448 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
449 |
-elif [[ ${PV} == 9999 ]]; then |
450 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy.git/" |
451 |
- EGIT_BRANCH=master |
452 |
-else |
453 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
454 |
- EGIT_BRANCH=master |
455 |
-fi |
456 |
- |
457 |
-LICENSE="GPL-2 LGPL-2.1" |
458 |
-SLOT="0/$(ver_cut 1-2)" |
459 |
-IUSE="+crypt doc examples slz +net_ns +pcre pcre-jit prometheus-exporter |
460 |
-ssl systemd +threads tools vim-syntax +zlib lua 51degrees wurfl" |
461 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
462 |
- lua? ( ${LUA_REQUIRED_USE} ) |
463 |
- ?? ( slz zlib )" |
464 |
- |
465 |
-BDEPEND="virtual/pkgconfig" |
466 |
-DEPEND=" |
467 |
- crypt? ( virtual/libcrypt:= ) |
468 |
- pcre? ( |
469 |
- dev-libs/libpcre2:= |
470 |
- pcre-jit? ( dev-libs/libpcre2:=[jit] ) |
471 |
- ) |
472 |
- ssl? ( |
473 |
- dev-libs/openssl:0= |
474 |
- ) |
475 |
- slz? ( dev-libs/libslz:= ) |
476 |
- systemd? ( sys-apps/systemd ) |
477 |
- zlib? ( sys-libs/zlib ) |
478 |
- lua? ( ${LUA_DEPS} )" |
479 |
-RDEPEND="${DEPEND} |
480 |
- acct-group/haproxy |
481 |
- acct-user/haproxy" |
482 |
- |
483 |
-S="${WORKDIR}/${MY_P}" |
484 |
- |
485 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
486 |
-CONTRIBS=( halog iprange ) |
487 |
-# ip6range is present in 1.6, but broken. |
488 |
-ver_test ${PV} -ge 1.7.0 && CONTRIBS+=( ip6range spoa_example tcploop ) |
489 |
-# TODO: mod_defender - requires apache / APR, modsecurity - the same |
490 |
-ver_test ${PV} -ge 1.8.0 && CONTRIBS+=( hpack ) |
491 |
- |
492 |
-haproxy_use() { |
493 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
494 |
- |
495 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
496 |
-} |
497 |
- |
498 |
-pkg_setup() { |
499 |
- use lua && lua-single_pkg_setup |
500 |
- if use net_ns; then |
501 |
- CONFIG_CHECK="~NET_NS" |
502 |
- linux-info_pkg_setup |
503 |
- fi |
504 |
-} |
505 |
- |
506 |
-src_compile() { |
507 |
- local -a args=( |
508 |
- V=1 |
509 |
- TARGET=linux-glibc |
510 |
- # Switching to PCRE2 by default, bug 838013 |
511 |
- PCRE= |
512 |
- PCRE_JIT= |
513 |
- ) |
514 |
- |
515 |
- # TODO: PCRE2_WIDTH? |
516 |
- args+=( $(haproxy_use threads THREAD) ) |
517 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
518 |
- args+=( $(haproxy_use net_ns NS) ) |
519 |
- args+=( $(haproxy_use pcre PCRE2) ) |
520 |
- args+=( $(haproxy_use pcre-jit PCRE2_JIT) ) |
521 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
522 |
- args+=( $(haproxy_use slz SLZ) ) |
523 |
- args+=( $(haproxy_use zlib ZLIB) ) |
524 |
- args+=( $(haproxy_use lua LUA) ) |
525 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
526 |
- args+=( $(haproxy_use wurfl WURFL) ) |
527 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
528 |
- |
529 |
- # For now, until the strict-aliasing breakage will be fixed |
530 |
- append-cflags -fno-strict-aliasing |
531 |
- |
532 |
- # Bug #668002 |
533 |
- if use ppc || use arm || use hppa; then |
534 |
- TARGET_LDFLAGS=-latomic |
535 |
- fi |
536 |
- |
537 |
- if use prometheus-exporter; then |
538 |
- EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" |
539 |
- fi |
540 |
- |
541 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
542 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" ${args[@]} |
543 |
- emake -C contrib/systemd SBINDIR=/usr/sbin |
544 |
- |
545 |
- if use tools ; then |
546 |
- for contrib in ${CONTRIBS[@]} ; do |
547 |
- # Those two includes are a workaround for hpack Makefile missing those |
548 |
- emake -C contrib/${contrib} \ |
549 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
550 |
- done |
551 |
- fi |
552 |
-} |
553 |
- |
554 |
-src_install() { |
555 |
- dosbin haproxy |
556 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
557 |
- |
558 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
559 |
- newinitd "${FILESDIR}/${PN}.initd-r7" ${PN} |
560 |
- |
561 |
- doman doc/haproxy.1 |
562 |
- |
563 |
- systemd_dounit contrib/systemd/haproxy.service |
564 |
- |
565 |
- einstalldocs |
566 |
- |
567 |
- # The errorfiles are used by upstream defaults. |
568 |
- insinto /etc/haproxy/errors/ |
569 |
- doins examples/errorfiles/* |
570 |
- |
571 |
- if use doc; then |
572 |
- dodoc ROADMAP doc/*.txt |
573 |
- #if use lua; then |
574 |
- # TODO: doc/lua-api/ |
575 |
- #fi |
576 |
- fi |
577 |
- |
578 |
- if use tools ; then |
579 |
- has halog "${CONTRIBS[@]}" && dobin contrib/halog/halog |
580 |
- has "iprange" "${CONTRIBS[@]}" && newbin contrib/iprange/iprange haproxy_iprange |
581 |
- has "ip6range" "${CONTRIBS[@]}" && newbin contrib/ip6range/ip6range haproxy_ip6range |
582 |
- has "spoa_example" "${CONTRIBS[@]}" && newbin contrib/spoa_example/spoa haproxy_spoa_example |
583 |
- has "spoa_example" "${CONTRIBS[@]}" && newdoc contrib/spoa_example/README README.spoa_example |
584 |
- has "tcploop" "${CONTRIBS[@]}" && newbin contrib/tcploop/tcploop haproxy_tcploop |
585 |
- has "hpack" "${CONTRIBS[@]}" && newbin contrib/hpack/gen-rht haproxy_hpack |
586 |
- fi |
587 |
- |
588 |
- if use examples ; then |
589 |
- docinto examples |
590 |
- dodoc examples/*.cfg |
591 |
- dodoc doc/seamless_reload.txt |
592 |
- fi |
593 |
- |
594 |
- if use vim-syntax ; then |
595 |
- insinto /usr/share/vim/vimfiles/syntax |
596 |
- doins contrib/syntax-highlight/haproxy.vim |
597 |
- fi |
598 |
-} |
599 |
- |
600 |
-pkg_postinst() { |
601 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
602 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
603 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
604 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
605 |
- |
606 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
607 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
608 |
- einfo "The documentation and sample configuration files are installed here:" |
609 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
610 |
- fi |
611 |
- fi |
612 |
-} |
613 |
|
614 |
diff --git a/net-proxy/haproxy/haproxy-2.4.15-r1.ebuild b/net-proxy/haproxy/haproxy-2.4.15-r1.ebuild |
615 |
deleted file mode 100644 |
616 |
index e50349eab9a2..000000000000 |
617 |
--- a/net-proxy/haproxy/haproxy-2.4.15-r1.ebuild |
618 |
+++ /dev/null |
619 |
@@ -1,179 +0,0 @@ |
620 |
-# Copyright 1999-2022 Gentoo Authors |
621 |
-# Distributed under the terms of the GNU General Public License v2 |
622 |
- |
623 |
-EAPI="7" |
624 |
- |
625 |
-LUA_COMPAT=( lua5-3 ) |
626 |
- |
627 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
628 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
629 |
- |
630 |
-MY_P="${PN}-${PV/_beta/-dev}" |
631 |
- |
632 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
633 |
-HOMEPAGE="http://www.haproxy.org" |
634 |
-if [[ ${PV} != *9999 ]]; then |
635 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
636 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
637 |
-else |
638 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
639 |
- EGIT_BRANCH=master |
640 |
-fi |
641 |
- |
642 |
-LICENSE="GPL-2 LGPL-2.1" |
643 |
-SLOT="0/$(ver_cut 1-2)" |
644 |
-IUSE="+crypt doc examples +slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter |
645 |
-ssl systemd +threads tools vim-syntax zlib lua 51degrees wurfl" |
646 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
647 |
- pcre2-jit? ( pcre2 ) |
648 |
- pcre? ( !pcre2 ) |
649 |
- lua? ( ${LUA_REQUIRED_USE} ) |
650 |
- ?? ( slz zlib )" |
651 |
- |
652 |
-BDEPEND="virtual/pkgconfig" |
653 |
-DEPEND=" |
654 |
- crypt? ( virtual/libcrypt:= ) |
655 |
- pcre? ( |
656 |
- dev-libs/libpcre |
657 |
- pcre-jit? ( dev-libs/libpcre[jit] ) |
658 |
- ) |
659 |
- pcre2? ( |
660 |
- dev-libs/libpcre2:= |
661 |
- pcre2-jit? ( dev-libs/libpcre2:=[jit] ) |
662 |
- ) |
663 |
- ssl? ( |
664 |
- dev-libs/openssl:0= |
665 |
- ) |
666 |
- systemd? ( sys-apps/systemd ) |
667 |
- zlib? ( sys-libs/zlib ) |
668 |
- lua? ( ${LUA_DEPS} )" |
669 |
-RDEPEND="${DEPEND} |
670 |
- acct-group/haproxy |
671 |
- acct-user/haproxy" |
672 |
- |
673 |
-S="${WORKDIR}/${MY_P}" |
674 |
- |
675 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
676 |
-EXTRAS=( admin/halog admin/iprange dev/tcploop dev/hpack ) |
677 |
- |
678 |
-haproxy_use() { |
679 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
680 |
- |
681 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
682 |
-} |
683 |
- |
684 |
-pkg_setup() { |
685 |
- use lua && lua-single_pkg_setup |
686 |
- if use net_ns; then |
687 |
- CONFIG_CHECK="~NET_NS" |
688 |
- linux-info_pkg_setup |
689 |
- fi |
690 |
-} |
691 |
- |
692 |
-src_compile() { |
693 |
- local -a args=( |
694 |
- V=1 |
695 |
- TARGET=linux-glibc |
696 |
- ) |
697 |
- |
698 |
- # TODO: PCRE2_WIDTH? |
699 |
- args+=( $(haproxy_use threads THREAD) ) |
700 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
701 |
- args+=( $(haproxy_use net_ns NS) ) |
702 |
- args+=( $(haproxy_use pcre PCRE) ) |
703 |
- args+=( $(haproxy_use pcre-jit PCRE_JIT) ) |
704 |
- args+=( $(haproxy_use pcre2 PCRE2) ) |
705 |
- args+=( $(haproxy_use pcre2-jit PCRE2_JIT) ) |
706 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
707 |
- args+=( $(haproxy_use slz SLZ) ) |
708 |
- args+=( $(haproxy_use zlib ZLIB) ) |
709 |
- args+=( $(haproxy_use lua LUA) ) |
710 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
711 |
- args+=( $(haproxy_use wurfl WURFL) ) |
712 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
713 |
- args+=( $(haproxy_use prometheus-exporter PROMEX) ) |
714 |
- |
715 |
- # Bug #668002 |
716 |
- if use ppc || use arm || use hppa; then |
717 |
- TARGET_LDFLAGS=-latomic |
718 |
- fi |
719 |
- |
720 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
721 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} |
722 |
- emake -C admin/systemd CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) SBINDIR=/usr/sbin |
723 |
- |
724 |
- if use tools ; then |
725 |
- for extra in ${EXTRAS[@]} ; do |
726 |
- if [ "${extra}" = "admin/halog" ]; then |
727 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} admin/halog/halog |
728 |
- elif [ "${extra}" = "dev/hpack" ]; then |
729 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} dev/hpack/{decode,gen-enc,gen-rht} |
730 |
- else |
731 |
- # Those two includes are a workaround for hpack Makefile missing those |
732 |
- emake -C ${extra} \ |
733 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
734 |
- fi |
735 |
- done |
736 |
- fi |
737 |
-} |
738 |
- |
739 |
-src_install() { |
740 |
- dosbin haproxy |
741 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
742 |
- |
743 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
744 |
- newinitd "${FILESDIR}/${PN}.initd-r7" ${PN} |
745 |
- |
746 |
- doman doc/haproxy.1 |
747 |
- |
748 |
- systemd_dounit admin/systemd/haproxy.service |
749 |
- |
750 |
- einstalldocs |
751 |
- |
752 |
- # The errorfiles are used by upstream defaults. |
753 |
- insinto /etc/haproxy/errors/ |
754 |
- doins examples/errorfiles/* |
755 |
- |
756 |
- if use doc; then |
757 |
- dodoc ROADMAP doc/*.txt |
758 |
- #if use lua; then |
759 |
- # TODO: doc/lua-api/ |
760 |
- #fi |
761 |
- fi |
762 |
- |
763 |
- if use tools ; then |
764 |
- has admin/halog "${EXTRAS[@]}" && dobin admin/halog/halog |
765 |
- has admin/iprange "${EXTRAS[@]}" && { newbin admin/iprange/iprange haproxy_iprange; newbin admin/iprange/ip6range haproxy_ip6range; } |
766 |
- has dev/tcploop "${EXTRAS[@]}" && newbin dev/tcploop/tcploop haproxy_tcploop |
767 |
- has dev/hpack "${EXTRAS[@]}" && { |
768 |
- newbin dev/hpack/gen-rht haproxy_gen-rht |
769 |
- newbin dev/hpack/gen-enc haproxy_gen-enc |
770 |
- newbin dev/hpack/decode haproxy_decode |
771 |
- } |
772 |
- fi |
773 |
- |
774 |
- if use examples ; then |
775 |
- docinto examples |
776 |
- dodoc examples/*.cfg |
777 |
- dodoc doc/seamless_reload.txt |
778 |
- fi |
779 |
- |
780 |
- if use vim-syntax ; then |
781 |
- insinto /usr/share/vim/vimfiles/syntax |
782 |
- doins admin/syntax-highlight/haproxy.vim |
783 |
- fi |
784 |
-} |
785 |
- |
786 |
-pkg_postinst() { |
787 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
788 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
789 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
790 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
791 |
- |
792 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
793 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
794 |
- einfo "The documentation and sample configuration files are installed here:" |
795 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
796 |
- fi |
797 |
- fi |
798 |
-} |
799 |
|
800 |
diff --git a/net-proxy/haproxy/haproxy-2.4.16.ebuild b/net-proxy/haproxy/haproxy-2.4.16.ebuild |
801 |
deleted file mode 100644 |
802 |
index 959a7a9dac4f..000000000000 |
803 |
--- a/net-proxy/haproxy/haproxy-2.4.16.ebuild |
804 |
+++ /dev/null |
805 |
@@ -1,177 +0,0 @@ |
806 |
-# Copyright 1999-2022 Gentoo Authors |
807 |
-# Distributed under the terms of the GNU General Public License v2 |
808 |
- |
809 |
-EAPI="7" |
810 |
- |
811 |
-LUA_COMPAT=( lua5-3 ) |
812 |
- |
813 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
814 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
815 |
- |
816 |
-MY_P="${PN}-${PV/_beta/-dev}" |
817 |
- |
818 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
819 |
-HOMEPAGE="http://www.haproxy.org" |
820 |
-if [[ ${PV} != *9999 ]]; then |
821 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
822 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
823 |
-elif [[ ${PV} == 9999 ]]; then |
824 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy.git/" |
825 |
- EGIT_BRANCH=master |
826 |
-else |
827 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
828 |
- EGIT_BRANCH=master |
829 |
-fi |
830 |
- |
831 |
-LICENSE="GPL-2 LGPL-2.1" |
832 |
-SLOT="0/$(ver_cut 1-2)" |
833 |
-IUSE="+crypt doc examples +slz +net_ns +pcre pcre-jit prometheus-exporter |
834 |
-ssl systemd +threads tools vim-syntax zlib lua 51degrees wurfl" |
835 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
836 |
- lua? ( ${LUA_REQUIRED_USE} ) |
837 |
- ?? ( slz zlib )" |
838 |
- |
839 |
-BDEPEND="virtual/pkgconfig" |
840 |
-DEPEND=" |
841 |
- crypt? ( virtual/libcrypt:= ) |
842 |
- pcre? ( |
843 |
- dev-libs/libpcre2:= |
844 |
- pcre-jit? ( dev-libs/libpcre2:=[jit] ) |
845 |
- ) |
846 |
- ssl? ( |
847 |
- dev-libs/openssl:0= |
848 |
- ) |
849 |
- systemd? ( sys-apps/systemd ) |
850 |
- zlib? ( sys-libs/zlib ) |
851 |
- lua? ( ${LUA_DEPS} )" |
852 |
-RDEPEND="${DEPEND} |
853 |
- acct-group/haproxy |
854 |
- acct-user/haproxy" |
855 |
- |
856 |
-S="${WORKDIR}/${MY_P}" |
857 |
- |
858 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
859 |
-EXTRAS=( admin/halog admin/iprange dev/tcploop dev/hpack ) |
860 |
- |
861 |
-haproxy_use() { |
862 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
863 |
- |
864 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
865 |
-} |
866 |
- |
867 |
-pkg_setup() { |
868 |
- use lua && lua-single_pkg_setup |
869 |
- if use net_ns; then |
870 |
- CONFIG_CHECK="~NET_NS" |
871 |
- linux-info_pkg_setup |
872 |
- fi |
873 |
-} |
874 |
- |
875 |
-src_compile() { |
876 |
- local -a args=( |
877 |
- V=1 |
878 |
- TARGET=linux-glibc |
879 |
- # Switching to PCRE2 by default, bug 838013 |
880 |
- PCRE= |
881 |
- PCRE_JIT= |
882 |
- ) |
883 |
- |
884 |
- # TODO: PCRE2_WIDTH? |
885 |
- args+=( $(haproxy_use threads THREAD) ) |
886 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
887 |
- args+=( $(haproxy_use net_ns NS) ) |
888 |
- args+=( $(haproxy_use pcre PCRE2) ) |
889 |
- args+=( $(haproxy_use pcre-jit PCRE2_JIT) ) |
890 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
891 |
- args+=( $(haproxy_use slz SLZ) ) |
892 |
- args+=( $(haproxy_use zlib ZLIB) ) |
893 |
- args+=( $(haproxy_use lua LUA) ) |
894 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
895 |
- args+=( $(haproxy_use wurfl WURFL) ) |
896 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
897 |
- args+=( $(haproxy_use prometheus-exporter PROMEX) ) |
898 |
- |
899 |
- # Bug #668002 |
900 |
- if use ppc || use arm || use hppa; then |
901 |
- TARGET_LDFLAGS=-latomic |
902 |
- fi |
903 |
- |
904 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
905 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} |
906 |
- emake -C admin/systemd CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) SBINDIR=/usr/sbin |
907 |
- |
908 |
- if use tools ; then |
909 |
- for extra in ${EXTRAS[@]} ; do |
910 |
- if [ "${extra}" = "admin/halog" ]; then |
911 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} admin/halog/halog |
912 |
- elif [ "${extra}" = "dev/hpack" ]; then |
913 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} dev/hpack/{decode,gen-enc,gen-rht} |
914 |
- else |
915 |
- # Those two includes are a workaround for hpack Makefile missing those |
916 |
- emake -C ${extra} \ |
917 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
918 |
- fi |
919 |
- done |
920 |
- fi |
921 |
-} |
922 |
- |
923 |
-src_install() { |
924 |
- dosbin haproxy |
925 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
926 |
- |
927 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
928 |
- newinitd "${FILESDIR}/${PN}.initd-r7" ${PN} |
929 |
- |
930 |
- doman doc/haproxy.1 |
931 |
- |
932 |
- systemd_dounit admin/systemd/haproxy.service |
933 |
- |
934 |
- einstalldocs |
935 |
- |
936 |
- # The errorfiles are used by upstream defaults. |
937 |
- insinto /etc/haproxy/errors/ |
938 |
- doins examples/errorfiles/* |
939 |
- |
940 |
- if use doc; then |
941 |
- dodoc ROADMAP doc/*.txt |
942 |
- #if use lua; then |
943 |
- # TODO: doc/lua-api/ |
944 |
- #fi |
945 |
- fi |
946 |
- |
947 |
- if use tools ; then |
948 |
- has admin/halog "${EXTRAS[@]}" && dobin admin/halog/halog |
949 |
- has admin/iprange "${EXTRAS[@]}" && { newbin admin/iprange/iprange haproxy_iprange; newbin admin/iprange/ip6range haproxy_ip6range; } |
950 |
- has dev/tcploop "${EXTRAS[@]}" && newbin dev/tcploop/tcploop haproxy_tcploop |
951 |
- has dev/hpack "${EXTRAS[@]}" && { |
952 |
- newbin dev/hpack/gen-rht haproxy_gen-rht |
953 |
- newbin dev/hpack/gen-enc haproxy_gen-enc |
954 |
- newbin dev/hpack/decode haproxy_decode |
955 |
- } |
956 |
- fi |
957 |
- |
958 |
- if use examples ; then |
959 |
- docinto examples |
960 |
- dodoc examples/*.cfg |
961 |
- dodoc doc/seamless_reload.txt |
962 |
- fi |
963 |
- |
964 |
- if use vim-syntax ; then |
965 |
- insinto /usr/share/vim/vimfiles/syntax |
966 |
- doins admin/syntax-highlight/haproxy.vim |
967 |
- fi |
968 |
-} |
969 |
- |
970 |
-pkg_postinst() { |
971 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
972 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
973 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
974 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
975 |
- |
976 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
977 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
978 |
- einfo "The documentation and sample configuration files are installed here:" |
979 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
980 |
- fi |
981 |
- fi |
982 |
-} |
983 |
|
984 |
diff --git a/net-proxy/haproxy/haproxy-2.5.5-r1.ebuild b/net-proxy/haproxy/haproxy-2.5.5-r1.ebuild |
985 |
deleted file mode 100644 |
986 |
index e50349eab9a2..000000000000 |
987 |
--- a/net-proxy/haproxy/haproxy-2.5.5-r1.ebuild |
988 |
+++ /dev/null |
989 |
@@ -1,179 +0,0 @@ |
990 |
-# Copyright 1999-2022 Gentoo Authors |
991 |
-# Distributed under the terms of the GNU General Public License v2 |
992 |
- |
993 |
-EAPI="7" |
994 |
- |
995 |
-LUA_COMPAT=( lua5-3 ) |
996 |
- |
997 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
998 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
999 |
- |
1000 |
-MY_P="${PN}-${PV/_beta/-dev}" |
1001 |
- |
1002 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
1003 |
-HOMEPAGE="http://www.haproxy.org" |
1004 |
-if [[ ${PV} != *9999 ]]; then |
1005 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
1006 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
1007 |
-else |
1008 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
1009 |
- EGIT_BRANCH=master |
1010 |
-fi |
1011 |
- |
1012 |
-LICENSE="GPL-2 LGPL-2.1" |
1013 |
-SLOT="0/$(ver_cut 1-2)" |
1014 |
-IUSE="+crypt doc examples +slz +net_ns +pcre pcre-jit pcre2 pcre2-jit prometheus-exporter |
1015 |
-ssl systemd +threads tools vim-syntax zlib lua 51degrees wurfl" |
1016 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
1017 |
- pcre2-jit? ( pcre2 ) |
1018 |
- pcre? ( !pcre2 ) |
1019 |
- lua? ( ${LUA_REQUIRED_USE} ) |
1020 |
- ?? ( slz zlib )" |
1021 |
- |
1022 |
-BDEPEND="virtual/pkgconfig" |
1023 |
-DEPEND=" |
1024 |
- crypt? ( virtual/libcrypt:= ) |
1025 |
- pcre? ( |
1026 |
- dev-libs/libpcre |
1027 |
- pcre-jit? ( dev-libs/libpcre[jit] ) |
1028 |
- ) |
1029 |
- pcre2? ( |
1030 |
- dev-libs/libpcre2:= |
1031 |
- pcre2-jit? ( dev-libs/libpcre2:=[jit] ) |
1032 |
- ) |
1033 |
- ssl? ( |
1034 |
- dev-libs/openssl:0= |
1035 |
- ) |
1036 |
- systemd? ( sys-apps/systemd ) |
1037 |
- zlib? ( sys-libs/zlib ) |
1038 |
- lua? ( ${LUA_DEPS} )" |
1039 |
-RDEPEND="${DEPEND} |
1040 |
- acct-group/haproxy |
1041 |
- acct-user/haproxy" |
1042 |
- |
1043 |
-S="${WORKDIR}/${MY_P}" |
1044 |
- |
1045 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
1046 |
-EXTRAS=( admin/halog admin/iprange dev/tcploop dev/hpack ) |
1047 |
- |
1048 |
-haproxy_use() { |
1049 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
1050 |
- |
1051 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
1052 |
-} |
1053 |
- |
1054 |
-pkg_setup() { |
1055 |
- use lua && lua-single_pkg_setup |
1056 |
- if use net_ns; then |
1057 |
- CONFIG_CHECK="~NET_NS" |
1058 |
- linux-info_pkg_setup |
1059 |
- fi |
1060 |
-} |
1061 |
- |
1062 |
-src_compile() { |
1063 |
- local -a args=( |
1064 |
- V=1 |
1065 |
- TARGET=linux-glibc |
1066 |
- ) |
1067 |
- |
1068 |
- # TODO: PCRE2_WIDTH? |
1069 |
- args+=( $(haproxy_use threads THREAD) ) |
1070 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
1071 |
- args+=( $(haproxy_use net_ns NS) ) |
1072 |
- args+=( $(haproxy_use pcre PCRE) ) |
1073 |
- args+=( $(haproxy_use pcre-jit PCRE_JIT) ) |
1074 |
- args+=( $(haproxy_use pcre2 PCRE2) ) |
1075 |
- args+=( $(haproxy_use pcre2-jit PCRE2_JIT) ) |
1076 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
1077 |
- args+=( $(haproxy_use slz SLZ) ) |
1078 |
- args+=( $(haproxy_use zlib ZLIB) ) |
1079 |
- args+=( $(haproxy_use lua LUA) ) |
1080 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
1081 |
- args+=( $(haproxy_use wurfl WURFL) ) |
1082 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
1083 |
- args+=( $(haproxy_use prometheus-exporter PROMEX) ) |
1084 |
- |
1085 |
- # Bug #668002 |
1086 |
- if use ppc || use arm || use hppa; then |
1087 |
- TARGET_LDFLAGS=-latomic |
1088 |
- fi |
1089 |
- |
1090 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
1091 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} |
1092 |
- emake -C admin/systemd CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) SBINDIR=/usr/sbin |
1093 |
- |
1094 |
- if use tools ; then |
1095 |
- for extra in ${EXTRAS[@]} ; do |
1096 |
- if [ "${extra}" = "admin/halog" ]; then |
1097 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} admin/halog/halog |
1098 |
- elif [ "${extra}" = "dev/hpack" ]; then |
1099 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} dev/hpack/{decode,gen-enc,gen-rht} |
1100 |
- else |
1101 |
- # Those two includes are a workaround for hpack Makefile missing those |
1102 |
- emake -C ${extra} \ |
1103 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
1104 |
- fi |
1105 |
- done |
1106 |
- fi |
1107 |
-} |
1108 |
- |
1109 |
-src_install() { |
1110 |
- dosbin haproxy |
1111 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
1112 |
- |
1113 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
1114 |
- newinitd "${FILESDIR}/${PN}.initd-r7" ${PN} |
1115 |
- |
1116 |
- doman doc/haproxy.1 |
1117 |
- |
1118 |
- systemd_dounit admin/systemd/haproxy.service |
1119 |
- |
1120 |
- einstalldocs |
1121 |
- |
1122 |
- # The errorfiles are used by upstream defaults. |
1123 |
- insinto /etc/haproxy/errors/ |
1124 |
- doins examples/errorfiles/* |
1125 |
- |
1126 |
- if use doc; then |
1127 |
- dodoc ROADMAP doc/*.txt |
1128 |
- #if use lua; then |
1129 |
- # TODO: doc/lua-api/ |
1130 |
- #fi |
1131 |
- fi |
1132 |
- |
1133 |
- if use tools ; then |
1134 |
- has admin/halog "${EXTRAS[@]}" && dobin admin/halog/halog |
1135 |
- has admin/iprange "${EXTRAS[@]}" && { newbin admin/iprange/iprange haproxy_iprange; newbin admin/iprange/ip6range haproxy_ip6range; } |
1136 |
- has dev/tcploop "${EXTRAS[@]}" && newbin dev/tcploop/tcploop haproxy_tcploop |
1137 |
- has dev/hpack "${EXTRAS[@]}" && { |
1138 |
- newbin dev/hpack/gen-rht haproxy_gen-rht |
1139 |
- newbin dev/hpack/gen-enc haproxy_gen-enc |
1140 |
- newbin dev/hpack/decode haproxy_decode |
1141 |
- } |
1142 |
- fi |
1143 |
- |
1144 |
- if use examples ; then |
1145 |
- docinto examples |
1146 |
- dodoc examples/*.cfg |
1147 |
- dodoc doc/seamless_reload.txt |
1148 |
- fi |
1149 |
- |
1150 |
- if use vim-syntax ; then |
1151 |
- insinto /usr/share/vim/vimfiles/syntax |
1152 |
- doins admin/syntax-highlight/haproxy.vim |
1153 |
- fi |
1154 |
-} |
1155 |
- |
1156 |
-pkg_postinst() { |
1157 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
1158 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
1159 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
1160 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
1161 |
- |
1162 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
1163 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
1164 |
- einfo "The documentation and sample configuration files are installed here:" |
1165 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
1166 |
- fi |
1167 |
- fi |
1168 |
-} |
1169 |
|
1170 |
diff --git a/net-proxy/haproxy/haproxy-2.5.6.ebuild b/net-proxy/haproxy/haproxy-2.5.6.ebuild |
1171 |
deleted file mode 100644 |
1172 |
index 959a7a9dac4f..000000000000 |
1173 |
--- a/net-proxy/haproxy/haproxy-2.5.6.ebuild |
1174 |
+++ /dev/null |
1175 |
@@ -1,177 +0,0 @@ |
1176 |
-# Copyright 1999-2022 Gentoo Authors |
1177 |
-# Distributed under the terms of the GNU General Public License v2 |
1178 |
- |
1179 |
-EAPI="7" |
1180 |
- |
1181 |
-LUA_COMPAT=( lua5-3 ) |
1182 |
- |
1183 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
1184 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
1185 |
- |
1186 |
-MY_P="${PN}-${PV/_beta/-dev}" |
1187 |
- |
1188 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
1189 |
-HOMEPAGE="http://www.haproxy.org" |
1190 |
-if [[ ${PV} != *9999 ]]; then |
1191 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
1192 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
1193 |
-elif [[ ${PV} == 9999 ]]; then |
1194 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy.git/" |
1195 |
- EGIT_BRANCH=master |
1196 |
-else |
1197 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
1198 |
- EGIT_BRANCH=master |
1199 |
-fi |
1200 |
- |
1201 |
-LICENSE="GPL-2 LGPL-2.1" |
1202 |
-SLOT="0/$(ver_cut 1-2)" |
1203 |
-IUSE="+crypt doc examples +slz +net_ns +pcre pcre-jit prometheus-exporter |
1204 |
-ssl systemd +threads tools vim-syntax zlib lua 51degrees wurfl" |
1205 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
1206 |
- lua? ( ${LUA_REQUIRED_USE} ) |
1207 |
- ?? ( slz zlib )" |
1208 |
- |
1209 |
-BDEPEND="virtual/pkgconfig" |
1210 |
-DEPEND=" |
1211 |
- crypt? ( virtual/libcrypt:= ) |
1212 |
- pcre? ( |
1213 |
- dev-libs/libpcre2:= |
1214 |
- pcre-jit? ( dev-libs/libpcre2:=[jit] ) |
1215 |
- ) |
1216 |
- ssl? ( |
1217 |
- dev-libs/openssl:0= |
1218 |
- ) |
1219 |
- systemd? ( sys-apps/systemd ) |
1220 |
- zlib? ( sys-libs/zlib ) |
1221 |
- lua? ( ${LUA_DEPS} )" |
1222 |
-RDEPEND="${DEPEND} |
1223 |
- acct-group/haproxy |
1224 |
- acct-user/haproxy" |
1225 |
- |
1226 |
-S="${WORKDIR}/${MY_P}" |
1227 |
- |
1228 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
1229 |
-EXTRAS=( admin/halog admin/iprange dev/tcploop dev/hpack ) |
1230 |
- |
1231 |
-haproxy_use() { |
1232 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
1233 |
- |
1234 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
1235 |
-} |
1236 |
- |
1237 |
-pkg_setup() { |
1238 |
- use lua && lua-single_pkg_setup |
1239 |
- if use net_ns; then |
1240 |
- CONFIG_CHECK="~NET_NS" |
1241 |
- linux-info_pkg_setup |
1242 |
- fi |
1243 |
-} |
1244 |
- |
1245 |
-src_compile() { |
1246 |
- local -a args=( |
1247 |
- V=1 |
1248 |
- TARGET=linux-glibc |
1249 |
- # Switching to PCRE2 by default, bug 838013 |
1250 |
- PCRE= |
1251 |
- PCRE_JIT= |
1252 |
- ) |
1253 |
- |
1254 |
- # TODO: PCRE2_WIDTH? |
1255 |
- args+=( $(haproxy_use threads THREAD) ) |
1256 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
1257 |
- args+=( $(haproxy_use net_ns NS) ) |
1258 |
- args+=( $(haproxy_use pcre PCRE2) ) |
1259 |
- args+=( $(haproxy_use pcre-jit PCRE2_JIT) ) |
1260 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
1261 |
- args+=( $(haproxy_use slz SLZ) ) |
1262 |
- args+=( $(haproxy_use zlib ZLIB) ) |
1263 |
- args+=( $(haproxy_use lua LUA) ) |
1264 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
1265 |
- args+=( $(haproxy_use wurfl WURFL) ) |
1266 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
1267 |
- args+=( $(haproxy_use prometheus-exporter PROMEX) ) |
1268 |
- |
1269 |
- # Bug #668002 |
1270 |
- if use ppc || use arm || use hppa; then |
1271 |
- TARGET_LDFLAGS=-latomic |
1272 |
- fi |
1273 |
- |
1274 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
1275 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} |
1276 |
- emake -C admin/systemd CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) SBINDIR=/usr/sbin |
1277 |
- |
1278 |
- if use tools ; then |
1279 |
- for extra in ${EXTRAS[@]} ; do |
1280 |
- if [ "${extra}" = "admin/halog" ]; then |
1281 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} admin/halog/halog |
1282 |
- elif [ "${extra}" = "dev/hpack" ]; then |
1283 |
- emake CFLAGS="${CFLAGS} \$(SPEC_CFLAGS)" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" EXTRA_OBJS="${EXTRA_OBJS}" TARGET_LDFLAGS="${TARGET_LDFLAGS}" PCRE_LIB=${ESYSROOT}/usr/$(get_libdir) ${args[@]} dev/hpack/{decode,gen-enc,gen-rht} |
1284 |
- else |
1285 |
- # Those two includes are a workaround for hpack Makefile missing those |
1286 |
- emake -C ${extra} \ |
1287 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
1288 |
- fi |
1289 |
- done |
1290 |
- fi |
1291 |
-} |
1292 |
- |
1293 |
-src_install() { |
1294 |
- dosbin haproxy |
1295 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
1296 |
- |
1297 |
- newconfd "${FILESDIR}/${PN}.confd" ${PN} |
1298 |
- newinitd "${FILESDIR}/${PN}.initd-r7" ${PN} |
1299 |
- |
1300 |
- doman doc/haproxy.1 |
1301 |
- |
1302 |
- systemd_dounit admin/systemd/haproxy.service |
1303 |
- |
1304 |
- einstalldocs |
1305 |
- |
1306 |
- # The errorfiles are used by upstream defaults. |
1307 |
- insinto /etc/haproxy/errors/ |
1308 |
- doins examples/errorfiles/* |
1309 |
- |
1310 |
- if use doc; then |
1311 |
- dodoc ROADMAP doc/*.txt |
1312 |
- #if use lua; then |
1313 |
- # TODO: doc/lua-api/ |
1314 |
- #fi |
1315 |
- fi |
1316 |
- |
1317 |
- if use tools ; then |
1318 |
- has admin/halog "${EXTRAS[@]}" && dobin admin/halog/halog |
1319 |
- has admin/iprange "${EXTRAS[@]}" && { newbin admin/iprange/iprange haproxy_iprange; newbin admin/iprange/ip6range haproxy_ip6range; } |
1320 |
- has dev/tcploop "${EXTRAS[@]}" && newbin dev/tcploop/tcploop haproxy_tcploop |
1321 |
- has dev/hpack "${EXTRAS[@]}" && { |
1322 |
- newbin dev/hpack/gen-rht haproxy_gen-rht |
1323 |
- newbin dev/hpack/gen-enc haproxy_gen-enc |
1324 |
- newbin dev/hpack/decode haproxy_decode |
1325 |
- } |
1326 |
- fi |
1327 |
- |
1328 |
- if use examples ; then |
1329 |
- docinto examples |
1330 |
- dodoc examples/*.cfg |
1331 |
- dodoc doc/seamless_reload.txt |
1332 |
- fi |
1333 |
- |
1334 |
- if use vim-syntax ; then |
1335 |
- insinto /usr/share/vim/vimfiles/syntax |
1336 |
- doins admin/syntax-highlight/haproxy.vim |
1337 |
- fi |
1338 |
-} |
1339 |
- |
1340 |
-pkg_postinst() { |
1341 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
1342 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
1343 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
1344 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
1345 |
- |
1346 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
1347 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
1348 |
- einfo "The documentation and sample configuration files are installed here:" |
1349 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
1350 |
- fi |
1351 |
- fi |
1352 |
-} |