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