1 |
commit: 83908a56fd9d067329cfcee9023094d7a3dc40c5 |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 14:55:28 2022 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 14:55:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83908a56 |
7 |
|
8 |
net-proxy/haproxy: Bump to 2.6.6 + Cleanup |
9 |
|
10 |
Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org> |
11 |
|
12 |
net-proxy/haproxy/Manifest | 4 +- |
13 |
net-proxy/haproxy/haproxy-2.6.4.ebuild | 177 --------------------- |
14 |
net-proxy/haproxy/haproxy-2.6.5.ebuild | 177 --------------------- |
15 |
...aproxy-2.6.2-r1.ebuild => haproxy-2.6.6.ebuild} | 0 |
16 |
4 files changed, 1 insertion(+), 357 deletions(-) |
17 |
|
18 |
diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest |
19 |
index 63c9c0e16f95..2c8928b326b1 100644 |
20 |
--- a/net-proxy/haproxy/Manifest |
21 |
+++ b/net-proxy/haproxy/Manifest |
22 |
@@ -8,6 +8,4 @@ DIST haproxy-2.4.18.tar.gz 3626923 BLAKE2B 1ec312a5607634f7906cfcf5d4e22d829bdca |
23 |
DIST haproxy-2.5.4.tar.gz 3819082 BLAKE2B fabc62ebaa968a11a49a6dd131198af31a49adbe73bcae82124ca752c2c90c1d77346621c9d804a10bca8ff254580aa7fbaca774f9df1a6a99ec112375d84a50 SHA512 95eb1ad9121a93cc77f0dd14e0080e18935cd45dc7dc511ab6dd0ecbdbb967bbde5eaa83f70157086796603560b979689f7d50b0cfba93d0245544c3a8c28a87 |
24 |
DIST haproxy-2.5.7.tar.gz 3832801 BLAKE2B 6d54135b56f84129dea497ddc935fecf593abccfb21fc647c7d166f9c1aa4abc670c66bf13e0923e353627d83d47345f632ae8212672c3b3da7a757fd5d24d7c SHA512 cf6994508d559401a84e1304c2b6829952a9b3a14365d03436da42ec7e4553c201ffde9e524044dfa48813e8e614d24095a87b0fae7d9145ce5e66b953666ee9 |
25 |
DIST haproxy-2.5.8.tar.gz 3838130 BLAKE2B fd02c285682815fd1837190b80184e110bb6a37b99dfa30e6cece628e62af6a5a145d97f5849e64364a286593d0ea206506c0b474485b22018a816b899744710 SHA512 99a49556864b178c024e73e5bd45051a7a6e512bbb52906ba6f3888e22a83e2b91198ed1c6a3bcbbc44c474a9ba6a6373fae4216fac8ecdb5d724f281b00fd68 |
26 |
-DIST haproxy-2.6.2.tar.gz 3978933 BLAKE2B 8d080b175f574718fac6c58b9681a50d40d8ea4a562a05466668ee9ebe95c065aaa3eab33115c69cca356207f91927c2b949c0ec7d354fdad413ae91a41e60cd SHA512 8eef882145ce8da409d2fbd6fa5b7d383b9d52f8147ef697d61c512c07a8aa8029ae742b5682af5fe736c34398a5265ce9dc189e938f47395cf9e775471b5f55 |
27 |
-DIST haproxy-2.6.4.tar.gz 3986583 BLAKE2B e4eb9c576aa1405bd07359488d4defaa765d7e802a62278f784de8fbf4fbca67da6cd4690917534c7a7e1e9979c727cbfc021f1a5676dec3f47b8f295d61a5d3 SHA512 f6e20e164ef3d6e81a85c272806ddae94c1d1cbd800dfeeaee3818ed7987ee6e59797c235c53efc51905da707d238026fbcb0a44f0de29e76f4eac7beeb8d035 |
28 |
-DIST haproxy-2.6.5.tar.gz 4010014 BLAKE2B 310556ace0fc54537e7cd91f7055c46f172355ca6eb9bde92f2fac6bf3d0c6ee60036e5744f67421b6d910f5719d4b6ae91e0737d95312d2dfef1760f2c354dd SHA512 b285345be866b25a645b8d417cac0f9b2c9ed473cd327a621f549e77cbf0600a94e39868bb83d24a5c2ac49fe94990e37030bf3ad6f5874fb6b150f16a701731 |
29 |
+DIST haproxy-2.6.6.tar.gz 4015438 BLAKE2B 36e676e011e290cc16ed4d116426639e9c11dcc6383fbcc82da8c9df87f19dde55a420167d926a510f6ca06cedec5588abb1ee1dd78881e3ecafbe428ea247c7 SHA512 0b416d200e9b406a96896d3570483d24e94fdfa3f781bee663476e218a57851aefdf8768f00c8a2e9df1bb028f6398690f07da452f59656327967685787ee5c2 |
30 |
|
31 |
diff --git a/net-proxy/haproxy/haproxy-2.6.4.ebuild b/net-proxy/haproxy/haproxy-2.6.4.ebuild |
32 |
deleted file mode 100644 |
33 |
index 6e17e38ddf96..000000000000 |
34 |
--- a/net-proxy/haproxy/haproxy-2.6.4.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,177 +0,0 @@ |
37 |
-# Copyright 1999-2022 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI="7" |
41 |
- |
42 |
-LUA_COMPAT=( lua5-4 lua5-3 ) |
43 |
- |
44 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
45 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
46 |
- |
47 |
-MY_P="${PN}-${PV/_beta/-dev}" |
48 |
- |
49 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
50 |
-HOMEPAGE="http://www.haproxy.org" |
51 |
-if [[ ${PV} != *9999 ]]; then |
52 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
53 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
54 |
-elif [[ ${PV} == 9999 ]]; then |
55 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy.git/" |
56 |
- EGIT_BRANCH=master |
57 |
-else |
58 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
59 |
- EGIT_BRANCH=master |
60 |
-fi |
61 |
- |
62 |
-LICENSE="GPL-2 LGPL-2.1" |
63 |
-SLOT="0/$(ver_cut 1-2)" |
64 |
-IUSE="+crypt doc examples +slz +net_ns +pcre pcre-jit prometheus-exporter |
65 |
-ssl systemd +threads tools vim-syntax zlib lua 51degrees wurfl" |
66 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
67 |
- lua? ( ${LUA_REQUIRED_USE} ) |
68 |
- ?? ( slz zlib )" |
69 |
- |
70 |
-BDEPEND="virtual/pkgconfig" |
71 |
-DEPEND=" |
72 |
- crypt? ( virtual/libcrypt:= ) |
73 |
- pcre? ( |
74 |
- dev-libs/libpcre2:= |
75 |
- pcre-jit? ( dev-libs/libpcre2:=[jit] ) |
76 |
- ) |
77 |
- ssl? ( |
78 |
- dev-libs/openssl:0= |
79 |
- ) |
80 |
- systemd? ( sys-apps/systemd ) |
81 |
- zlib? ( sys-libs/zlib ) |
82 |
- lua? ( ${LUA_DEPS} )" |
83 |
-RDEPEND="${DEPEND} |
84 |
- acct-group/haproxy |
85 |
- acct-user/haproxy" |
86 |
- |
87 |
-S="${WORKDIR}/${MY_P}" |
88 |
- |
89 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
90 |
-EXTRAS=( admin/halog admin/iprange dev/tcploop dev/hpack ) |
91 |
- |
92 |
-haproxy_use() { |
93 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
94 |
- |
95 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
96 |
-} |
97 |
- |
98 |
-pkg_setup() { |
99 |
- use lua && lua-single_pkg_setup |
100 |
- if use net_ns; then |
101 |
- CONFIG_CHECK="~NET_NS" |
102 |
- linux-info_pkg_setup |
103 |
- fi |
104 |
-} |
105 |
- |
106 |
-src_compile() { |
107 |
- local -a args=( |
108 |
- V=1 |
109 |
- TARGET=linux-glibc |
110 |
- # Switching to PCRE2 by default, bug 838013 |
111 |
- PCRE= |
112 |
- PCRE_JIT= |
113 |
- ) |
114 |
- |
115 |
- # TODO: PCRE2_WIDTH? |
116 |
- args+=( $(haproxy_use threads THREAD) ) |
117 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
118 |
- args+=( $(haproxy_use net_ns NS) ) |
119 |
- args+=( $(haproxy_use pcre PCRE2) ) |
120 |
- args+=( $(haproxy_use pcre-jit PCRE2_JIT) ) |
121 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
122 |
- args+=( $(haproxy_use slz SLZ) ) |
123 |
- args+=( $(haproxy_use zlib ZLIB) ) |
124 |
- args+=( $(haproxy_use lua LUA) ) |
125 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
126 |
- args+=( $(haproxy_use wurfl WURFL) ) |
127 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
128 |
- args+=( $(haproxy_use prometheus-exporter PROMEX) ) |
129 |
- |
130 |
- # Bug #668002 |
131 |
- if use ppc || use arm || use hppa; then |
132 |
- TARGET_LDFLAGS=-latomic |
133 |
- fi |
134 |
- |
135 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
136 |
- 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[@]} |
137 |
- 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 |
138 |
- |
139 |
- if use tools ; then |
140 |
- for extra in ${EXTRAS[@]} ; do |
141 |
- if [ "${extra}" = "admin/halog" ]; then |
142 |
- 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 |
143 |
- elif [ "${extra}" = "dev/hpack" ]; then |
144 |
- 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} |
145 |
- else |
146 |
- # Those two includes are a workaround for hpack Makefile missing those |
147 |
- emake -C ${extra} \ |
148 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
149 |
- fi |
150 |
- done |
151 |
- fi |
152 |
-} |
153 |
- |
154 |
-src_install() { |
155 |
- dosbin haproxy |
156 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
157 |
- |
158 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
159 |
- newinitd "${FILESDIR}/${PN}.initd-r8" ${PN} |
160 |
- |
161 |
- doman doc/haproxy.1 |
162 |
- |
163 |
- systemd_dounit admin/systemd/haproxy.service |
164 |
- |
165 |
- einstalldocs |
166 |
- |
167 |
- # The errorfiles are used by upstream defaults. |
168 |
- insinto /etc/haproxy/errors/ |
169 |
- doins examples/errorfiles/* |
170 |
- |
171 |
- if use doc; then |
172 |
- dodoc doc/*.txt |
173 |
- #if use lua; then |
174 |
- # TODO: doc/lua-api/ |
175 |
- #fi |
176 |
- fi |
177 |
- |
178 |
- if use tools ; then |
179 |
- has admin/halog "${EXTRAS[@]}" && dobin admin/halog/halog |
180 |
- has admin/iprange "${EXTRAS[@]}" && { newbin admin/iprange/iprange haproxy_iprange; newbin admin/iprange/ip6range haproxy_ip6range; } |
181 |
- has dev/tcploop "${EXTRAS[@]}" && newbin dev/tcploop/tcploop haproxy_tcploop |
182 |
- has dev/hpack "${EXTRAS[@]}" && { |
183 |
- newbin dev/hpack/gen-rht haproxy_gen-rht |
184 |
- newbin dev/hpack/gen-enc haproxy_gen-enc |
185 |
- newbin dev/hpack/decode haproxy_decode |
186 |
- } |
187 |
- fi |
188 |
- |
189 |
- if use examples ; then |
190 |
- docinto examples |
191 |
- dodoc examples/*.cfg |
192 |
- dodoc doc/seamless_reload.txt |
193 |
- fi |
194 |
- |
195 |
- if use vim-syntax ; then |
196 |
- insinto /usr/share/vim/vimfiles/syntax |
197 |
- doins admin/syntax-highlight/haproxy.vim |
198 |
- fi |
199 |
-} |
200 |
- |
201 |
-pkg_postinst() { |
202 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
203 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
204 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
205 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
206 |
- |
207 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
208 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
209 |
- einfo "The documentation and sample configuration files are installed here:" |
210 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
211 |
- fi |
212 |
- fi |
213 |
-} |
214 |
|
215 |
diff --git a/net-proxy/haproxy/haproxy-2.6.5.ebuild b/net-proxy/haproxy/haproxy-2.6.5.ebuild |
216 |
deleted file mode 100644 |
217 |
index 6e17e38ddf96..000000000000 |
218 |
--- a/net-proxy/haproxy/haproxy-2.6.5.ebuild |
219 |
+++ /dev/null |
220 |
@@ -1,177 +0,0 @@ |
221 |
-# Copyright 1999-2022 Gentoo Authors |
222 |
-# Distributed under the terms of the GNU General Public License v2 |
223 |
- |
224 |
-EAPI="7" |
225 |
- |
226 |
-LUA_COMPAT=( lua5-4 lua5-3 ) |
227 |
- |
228 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
229 |
-inherit toolchain-funcs flag-o-matic lua-single systemd linux-info ${SCM} |
230 |
- |
231 |
-MY_P="${PN}-${PV/_beta/-dev}" |
232 |
- |
233 |
-DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" |
234 |
-HOMEPAGE="http://www.haproxy.org" |
235 |
-if [[ ${PV} != *9999 ]]; then |
236 |
- SRC_URI="http://haproxy.1wt.eu/download/$(ver_cut 1-2)/src/${MY_P}.tar.gz" |
237 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
238 |
-elif [[ ${PV} == 9999 ]]; then |
239 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy.git/" |
240 |
- EGIT_BRANCH=master |
241 |
-else |
242 |
- EGIT_REPO_URI="https://git.haproxy.org/git/haproxy-$(ver_cut 1-2).git/" |
243 |
- EGIT_BRANCH=master |
244 |
-fi |
245 |
- |
246 |
-LICENSE="GPL-2 LGPL-2.1" |
247 |
-SLOT="0/$(ver_cut 1-2)" |
248 |
-IUSE="+crypt doc examples +slz +net_ns +pcre pcre-jit prometheus-exporter |
249 |
-ssl systemd +threads tools vim-syntax zlib lua 51degrees wurfl" |
250 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
251 |
- lua? ( ${LUA_REQUIRED_USE} ) |
252 |
- ?? ( slz zlib )" |
253 |
- |
254 |
-BDEPEND="virtual/pkgconfig" |
255 |
-DEPEND=" |
256 |
- crypt? ( virtual/libcrypt:= ) |
257 |
- pcre? ( |
258 |
- dev-libs/libpcre2:= |
259 |
- pcre-jit? ( dev-libs/libpcre2:=[jit] ) |
260 |
- ) |
261 |
- ssl? ( |
262 |
- dev-libs/openssl:0= |
263 |
- ) |
264 |
- systemd? ( sys-apps/systemd ) |
265 |
- zlib? ( sys-libs/zlib ) |
266 |
- lua? ( ${LUA_DEPS} )" |
267 |
-RDEPEND="${DEPEND} |
268 |
- acct-group/haproxy |
269 |
- acct-user/haproxy" |
270 |
- |
271 |
-S="${WORKDIR}/${MY_P}" |
272 |
- |
273 |
-DOCS=( CHANGELOG CONTRIBUTING MAINTAINERS README ) |
274 |
-EXTRAS=( admin/halog admin/iprange dev/tcploop dev/hpack ) |
275 |
- |
276 |
-haproxy_use() { |
277 |
- (( $# != 2 )) && die "${FUNCNAME} <USE flag> <make option>" |
278 |
- |
279 |
- usex "${1}" "USE_${2}=1" "USE_${2}=" |
280 |
-} |
281 |
- |
282 |
-pkg_setup() { |
283 |
- use lua && lua-single_pkg_setup |
284 |
- if use net_ns; then |
285 |
- CONFIG_CHECK="~NET_NS" |
286 |
- linux-info_pkg_setup |
287 |
- fi |
288 |
-} |
289 |
- |
290 |
-src_compile() { |
291 |
- local -a args=( |
292 |
- V=1 |
293 |
- TARGET=linux-glibc |
294 |
- # Switching to PCRE2 by default, bug 838013 |
295 |
- PCRE= |
296 |
- PCRE_JIT= |
297 |
- ) |
298 |
- |
299 |
- # TODO: PCRE2_WIDTH? |
300 |
- args+=( $(haproxy_use threads THREAD) ) |
301 |
- args+=( $(haproxy_use crypt LIBCRYPT) ) |
302 |
- args+=( $(haproxy_use net_ns NS) ) |
303 |
- args+=( $(haproxy_use pcre PCRE2) ) |
304 |
- args+=( $(haproxy_use pcre-jit PCRE2_JIT) ) |
305 |
- args+=( $(haproxy_use ssl OPENSSL) ) |
306 |
- args+=( $(haproxy_use slz SLZ) ) |
307 |
- args+=( $(haproxy_use zlib ZLIB) ) |
308 |
- args+=( $(haproxy_use lua LUA) ) |
309 |
- args+=( $(haproxy_use 51degrees 51DEGREES) ) |
310 |
- args+=( $(haproxy_use wurfl WURFL) ) |
311 |
- args+=( $(haproxy_use systemd SYSTEMD) ) |
312 |
- args+=( $(haproxy_use prometheus-exporter PROMEX) ) |
313 |
- |
314 |
- # Bug #668002 |
315 |
- if use ppc || use arm || use hppa; then |
316 |
- TARGET_LDFLAGS=-latomic |
317 |
- fi |
318 |
- |
319 |
- # HAProxy really needs some of those "SPEC_CFLAGS", like -fno-strict-aliasing |
320 |
- 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[@]} |
321 |
- 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 |
322 |
- |
323 |
- if use tools ; then |
324 |
- for extra in ${EXTRAS[@]} ; do |
325 |
- if [ "${extra}" = "admin/halog" ]; then |
326 |
- 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 |
327 |
- elif [ "${extra}" = "dev/hpack" ]; then |
328 |
- 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} |
329 |
- else |
330 |
- # Those two includes are a workaround for hpack Makefile missing those |
331 |
- emake -C ${extra} \ |
332 |
- CFLAGS="${CFLAGS} -I../../include/ -I../../ebtree/" OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" ${args[@]} |
333 |
- fi |
334 |
- done |
335 |
- fi |
336 |
-} |
337 |
- |
338 |
-src_install() { |
339 |
- dosbin haproxy |
340 |
- dosym ../sbin/haproxy /usr/bin/haproxy |
341 |
- |
342 |
- newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
343 |
- newinitd "${FILESDIR}/${PN}.initd-r8" ${PN} |
344 |
- |
345 |
- doman doc/haproxy.1 |
346 |
- |
347 |
- systemd_dounit admin/systemd/haproxy.service |
348 |
- |
349 |
- einstalldocs |
350 |
- |
351 |
- # The errorfiles are used by upstream defaults. |
352 |
- insinto /etc/haproxy/errors/ |
353 |
- doins examples/errorfiles/* |
354 |
- |
355 |
- if use doc; then |
356 |
- dodoc doc/*.txt |
357 |
- #if use lua; then |
358 |
- # TODO: doc/lua-api/ |
359 |
- #fi |
360 |
- fi |
361 |
- |
362 |
- if use tools ; then |
363 |
- has admin/halog "${EXTRAS[@]}" && dobin admin/halog/halog |
364 |
- has admin/iprange "${EXTRAS[@]}" && { newbin admin/iprange/iprange haproxy_iprange; newbin admin/iprange/ip6range haproxy_ip6range; } |
365 |
- has dev/tcploop "${EXTRAS[@]}" && newbin dev/tcploop/tcploop haproxy_tcploop |
366 |
- has dev/hpack "${EXTRAS[@]}" && { |
367 |
- newbin dev/hpack/gen-rht haproxy_gen-rht |
368 |
- newbin dev/hpack/gen-enc haproxy_gen-enc |
369 |
- newbin dev/hpack/decode haproxy_decode |
370 |
- } |
371 |
- fi |
372 |
- |
373 |
- if use examples ; then |
374 |
- docinto examples |
375 |
- dodoc examples/*.cfg |
376 |
- dodoc doc/seamless_reload.txt |
377 |
- fi |
378 |
- |
379 |
- if use vim-syntax ; then |
380 |
- insinto /usr/share/vim/vimfiles/syntax |
381 |
- doins admin/syntax-highlight/haproxy.vim |
382 |
- fi |
383 |
-} |
384 |
- |
385 |
-pkg_postinst() { |
386 |
- if [[ ! -f "${EROOT}/etc/haproxy/haproxy.cfg" ]] ; then |
387 |
- ewarn "You need to create /etc/haproxy/haproxy.cfg before you start the haproxy service." |
388 |
- ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." |
389 |
- ewarn "Make use of them with the \"user\" and \"group\" directives." |
390 |
- |
391 |
- if [[ -d "${EROOT}/usr/share/doc/${PF}" ]]; then |
392 |
- einfo "Please consult the installed documentation for learning the configuration file's syntax." |
393 |
- einfo "The documentation and sample configuration files are installed here:" |
394 |
- einfo " ${EROOT}/usr/share/doc/${PF}" |
395 |
- fi |
396 |
- fi |
397 |
-} |
398 |
|
399 |
diff --git a/net-proxy/haproxy/haproxy-2.6.2-r1.ebuild b/net-proxy/haproxy/haproxy-2.6.6.ebuild |
400 |
similarity index 100% |
401 |
rename from net-proxy/haproxy/haproxy-2.6.2-r1.ebuild |
402 |
rename to net-proxy/haproxy/haproxy-2.6.6.ebuild |