1 |
commit: f7e232a1011c1b3d39036507462c712f35bc79bb |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 24 00:52:51 2020 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 24 00:52:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7e232a1 |
7 |
|
8 |
net-libs/axtls: cleanup vulnerable versions, bug #717808 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
net-libs/axtls/Manifest | 3 - |
14 |
net-libs/axtls/axtls-1.5.3.ebuild | 176 ------------------------------------- |
15 |
net-libs/axtls/axtls-2.1.3.ebuild | 178 -------------------------------------- |
16 |
net-libs/axtls/axtls-2.1.4.ebuild | 178 -------------------------------------- |
17 |
4 files changed, 535 deletions(-) |
18 |
|
19 |
diff --git a/net-libs/axtls/Manifest b/net-libs/axtls/Manifest |
20 |
index 27afd37d043..4c15ca2006b 100644 |
21 |
--- a/net-libs/axtls/Manifest |
22 |
+++ b/net-libs/axtls/Manifest |
23 |
@@ -1,4 +1 @@ |
24 |
-DIST axTLS-1.5.3.tar.gz 1309853 BLAKE2B 8a7db4df4775dc73e35c3a9b2a7bbee783d96f36c122393b72b47a4ed4e66f41e4736dcb7ed8eee4d756760957feafc113a5a4c6df58847b94721b1fb8560196 SHA512 d37fb1341259b079ed234512a96656d67e005c50d9f8e0c856fb140c9da35267624e065134e0cc8310f70e5cf5d196c7dd34f01e2a7a5cc29e77e7ca46c25281 |
25 |
-DIST axTLS-2.1.3.tar.gz 1316776 BLAKE2B f60502d34a9d23ac772e1bbe05dc9350ab2385fb3c42480117120923647f122ef7a955289b656b8a70b3ac9817b1bcf947f541739b8d01ebe1eb4340f8d9cf38 SHA512 aa116b671bf0fa059cb77f9e5c0307c48ab476b7ce7017f1d4b2e6362d9d527e534908cb30ec3667eec8c49566f950de3ae4ec0adf5b603fb4efb571eaffc596 |
26 |
-DIST axTLS-2.1.4.tar.gz 1316768 BLAKE2B 3ff302c59313ee80d18a0d5390c591e6259625e62707cc0c7c677add1f7fddffa5b4dc46860ee18dd96fcc227b3cac1179ab290f8af50ac91fe2841fff977cd4 SHA512 ce301719a12f5b836e3c67a169119d2836382b7b97d39f4010b8b8a644a6751b9f948a6c91f8dc6c39d19f5723311af7aca8958f9052e72cb38a9907247af3e6 |
27 |
DIST axTLS-2.1.5.tar.gz 1318286 BLAKE2B a4f7cb551f3569fbc9a3a7e0e8faa929a5310fdb412283487fedd4a58e36a65529ebd9aec859027ca6df8e69db85b9f908b56f8d37284548b3984da10774ca3d SHA512 d208b174c31a144a779185e77834a34b0fdd15e8cadf4665b8fd76dcb3207955ed687f3d86d1e60f85d108ecccfd900a76e6d045d16a7182001e0b58da09be18 |
28 |
|
29 |
diff --git a/net-libs/axtls/axtls-1.5.3.ebuild b/net-libs/axtls/axtls-1.5.3.ebuild |
30 |
deleted file mode 100644 |
31 |
index 1f02d467d12..00000000000 |
32 |
--- a/net-libs/axtls/axtls-1.5.3.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,176 +0,0 @@ |
35 |
-# Copyright 1999-2015 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI="5" |
39 |
- |
40 |
-inherit eutils multilib multilib-minimal savedconfig toolchain-funcs user |
41 |
- |
42 |
-################################################################################ |
43 |
-# axtls CONFIG MINI-HOWTO |
44 |
-# |
45 |
-# Note: axtls is highly configurable and uses mconf, like the linux kernel. |
46 |
-# You can configure it in a couple of ways: |
47 |
-# |
48 |
-# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features |
49 |
-# you want, and possibly a lot more. |
50 |
-# |
51 |
-# 2) You can create your own configuration file by doing |
52 |
-# |
53 |
-# FEATURES="keepwork" USE="savedconfig -*" emerge axtls |
54 |
-# cd /var/tmp/portage/net-libs/axtls*/work/axTLS |
55 |
-# make menuconfig |
56 |
-# |
57 |
-# Now configure axtls as you want. Finally save your config file: |
58 |
-# |
59 |
-# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} |
60 |
-# |
61 |
-# where ${PV} is the current version. You can then run emerge again with |
62 |
-# your configuration by doing |
63 |
-# |
64 |
-# USE="savedconfig" emerge axtls |
65 |
-# |
66 |
-################################################################################ |
67 |
- |
68 |
-MY_PN=${PN/tls/TLS} |
69 |
- |
70 |
-DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" |
71 |
-HOMEPAGE="http://axtls.sourceforge.net/" |
72 |
-SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" |
73 |
-S="${WORKDIR}/${PN}-code" |
74 |
- |
75 |
-LICENSE="BSD GPL-2" |
76 |
-SLOT="0" |
77 |
-KEYWORDS="amd64 arm hppa ~mips ppc ppc64 ~s390 x86" |
78 |
- |
79 |
-IUSE="httpd cgi-lua cgi-php static static-libs doc" |
80 |
- |
81 |
-# TODO: add ipv6, and c#, java, lua, perl bindings |
82 |
-# Currently these all have some issue |
83 |
-DEPEND="doc? ( app-doc/doxygen )" |
84 |
-RDEPEND=" |
85 |
- httpd? ( |
86 |
- cgi-lua? ( dev-lang/lua ) |
87 |
- cgi-php? ( dev-lang/php[cgi] ) |
88 |
- )" |
89 |
- |
90 |
-#Note1: static, cgi-* makes no sense if httpd is not given |
91 |
-REQUIRED_USE=" |
92 |
- static? ( httpd ) |
93 |
- cgi-lua? ( httpd ) |
94 |
- cgi-php? ( httpd )" |
95 |
- |
96 |
-AXTLS_GROUP="axtls" |
97 |
-AXTLS_USER="axtls" |
98 |
- |
99 |
-pkg_setup() { |
100 |
- use httpd && { |
101 |
- ebegin "Creating axtls user and group" |
102 |
- enewgroup ${AXTLS_GROUP} |
103 |
- enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} |
104 |
- } |
105 |
-} |
106 |
- |
107 |
-src_prepare() { |
108 |
- tc-export AR CC |
109 |
- |
110 |
- epatch "${FILESDIR}/explicit-libdir-r1.patch" |
111 |
- |
112 |
- #We want CONFIG_DEBUG to avoid stripping |
113 |
- #but not for debugging info |
114 |
- sed -i -e 's: -g::' config/Rules.mak || die |
115 |
- sed -i -e 's: -g::' config/makefile.conf || die |
116 |
- |
117 |
- multilib_copy_sources |
118 |
-} |
119 |
- |
120 |
-use_flag_config() { |
121 |
- cp "${FILESDIR}"/config config/.config || die |
122 |
- |
123 |
- #Respect CFLAGS/LDFLAGS |
124 |
- sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ |
125 |
- config/.config || die |
126 |
- sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ |
127 |
- config/.config || die |
128 |
- |
129 |
- #The logic is that the default config file enables everything and we disable |
130 |
- #here with sed unless a USE flags says to keep it |
131 |
- if use httpd; then |
132 |
- if ! use static; then |
133 |
- sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ |
134 |
- config/.config || die |
135 |
- fi |
136 |
- if ! use cgi-php && ! use cgi-lua; then |
137 |
- sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ |
138 |
- config/.config || die |
139 |
- fi |
140 |
- if ! use cgi-php; then |
141 |
- sed -i -e 's:,.php::' config/.config || die |
142 |
- fi |
143 |
- if ! use cgi-lua; then |
144 |
- sed -i -e 's:\.lua,::' \ |
145 |
- -e 's:lua:php:' \ |
146 |
- -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ |
147 |
- config/.config || die |
148 |
- fi |
149 |
- else |
150 |
- sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ |
151 |
- config/.config || die |
152 |
- fi |
153 |
- |
154 |
- emake -j1 oldconfig < <(yes n) > /dev/null |
155 |
-} |
156 |
- |
157 |
-multilib_src_configure() { |
158 |
- #Per-ABI substitutions. |
159 |
- sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \ |
160 |
- Makefile || die |
161 |
- |
162 |
- #Use CC as the host compiler for mconf |
163 |
- sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ |
164 |
- config/Rules.mak || die |
165 |
- |
166 |
- if use savedconfig; then |
167 |
- restore_config config/.config |
168 |
- if [[ -f config/.config ]]; then |
169 |
- ewarn "Using saved config, all other USE flags ignored" |
170 |
- else |
171 |
- ewarn "No saved config, seeding with the default" |
172 |
- cp "${FILESDIR}"/config config/.config || die |
173 |
- fi |
174 |
- emake -j1 oldconfig < <(yes '') > /dev/null |
175 |
- else |
176 |
- use_flag_config |
177 |
- fi |
178 |
-} |
179 |
- |
180 |
-multilib_src_install() { |
181 |
- if multilib_is_native_abi && use savedconfig; then |
182 |
- save_config config/.config |
183 |
- fi |
184 |
- |
185 |
- emake PREFIX="${ED}/usr" install |
186 |
- |
187 |
- if ! use static-libs; then |
188 |
- rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die |
189 |
- fi |
190 |
- |
191 |
- # The build system needs to install before it builds docs |
192 |
- if multilib_is_native_abi && use doc; then |
193 |
- emake docs |
194 |
- dodoc -r docsrc/html |
195 |
- fi |
196 |
-} |
197 |
- |
198 |
-multilib_src_install_all() { |
199 |
- if [[ -f "${ED}"/usr/bin/htpasswd ]]; then |
200 |
- mv "${ED}"/usr/bin/{,ax}htpasswd || die |
201 |
- fi |
202 |
- |
203 |
- if use httpd; then |
204 |
- newinitd "${FILESDIR}"/axhttpd.initd axhttpd |
205 |
- newconfd "${FILESDIR}"/axhttpd.confd axhttpd |
206 |
- fi |
207 |
- |
208 |
- docompress -x /usr/share/doc/${PF}/README |
209 |
- dodoc README |
210 |
-} |
211 |
|
212 |
diff --git a/net-libs/axtls/axtls-2.1.3.ebuild b/net-libs/axtls/axtls-2.1.3.ebuild |
213 |
deleted file mode 100644 |
214 |
index b856997fc61..00000000000 |
215 |
--- a/net-libs/axtls/axtls-2.1.3.ebuild |
216 |
+++ /dev/null |
217 |
@@ -1,178 +0,0 @@ |
218 |
-# Copyright 1999-2018 Gentoo Foundation |
219 |
-# Distributed under the terms of the GNU General Public License v2 |
220 |
- |
221 |
-EAPI="6" |
222 |
- |
223 |
-inherit multilib multilib-minimal savedconfig toolchain-funcs user |
224 |
- |
225 |
-################################################################################ |
226 |
-# axtls CONFIG MINI-HOWTO |
227 |
-# |
228 |
-# Note: axtls is highly configurable and uses mconf, like the linux kernel. |
229 |
-# You can configure it in a couple of ways: |
230 |
-# |
231 |
-# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features |
232 |
-# you want, and possibly a lot more. |
233 |
-# |
234 |
-# 2) You can create your own configuration file by doing |
235 |
-# |
236 |
-# FEATURES="keepwork" USE="savedconfig -*" emerge axtls |
237 |
-# cd /var/tmp/portage/net-libs/axtls*/work/axTLS |
238 |
-# make menuconfig |
239 |
-# |
240 |
-# Now configure axtls as you want. Finally save your config file: |
241 |
-# |
242 |
-# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} |
243 |
-# |
244 |
-# where ${PV} is the current version. You can then run emerge again with |
245 |
-# your configuration by doing |
246 |
-# |
247 |
-# USE="savedconfig" emerge axtls |
248 |
-# |
249 |
-################################################################################ |
250 |
- |
251 |
-MY_PN=${PN/tls/TLS} |
252 |
- |
253 |
-DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" |
254 |
-HOMEPAGE="http://axtls.sourceforge.net/" |
255 |
-SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" |
256 |
-S="${WORKDIR}/${PN}-code" |
257 |
- |
258 |
-LICENSE="BSD GPL-2" |
259 |
-SLOT="0/1" |
260 |
-KEYWORDS="amd64 arm ~arm64 hppa ~mips ppc ppc64 s390 ~sparc x86" |
261 |
- |
262 |
-IUSE="httpd cgi-lua cgi-php static static-libs doc" |
263 |
- |
264 |
-# TODO: add ipv6, and c#, java, lua, perl bindings |
265 |
-# Currently these all have some issue |
266 |
-DEPEND="doc? ( app-doc/doxygen )" |
267 |
-RDEPEND=" |
268 |
- httpd? ( |
269 |
- cgi-lua? ( dev-lang/lua ) |
270 |
- cgi-php? ( dev-lang/php[cgi] ) |
271 |
- )" |
272 |
- |
273 |
-#Note1: static, cgi-* makes no sense if httpd is not given |
274 |
-REQUIRED_USE=" |
275 |
- static? ( httpd ) |
276 |
- cgi-lua? ( httpd ) |
277 |
- cgi-php? ( httpd )" |
278 |
- |
279 |
-AXTLS_GROUP="axtls" |
280 |
-AXTLS_USER="axtls" |
281 |
- |
282 |
-pkg_setup() { |
283 |
- use httpd && { |
284 |
- ebegin "Creating axtls user and group" |
285 |
- enewgroup ${AXTLS_GROUP} |
286 |
- enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} |
287 |
- } |
288 |
-} |
289 |
- |
290 |
-src_prepare() { |
291 |
- tc-export AR CC |
292 |
- |
293 |
- eapply "${FILESDIR}/explicit-libdir-r1.patch" |
294 |
- |
295 |
- #We want CONFIG_DEBUG to avoid stripping |
296 |
- #but not for debugging info |
297 |
- sed -i -e 's: -g::' config/Rules.mak || die |
298 |
- sed -i -e 's: -g::' config/makefile.conf || die |
299 |
- |
300 |
- eapply_user |
301 |
- |
302 |
- multilib_copy_sources |
303 |
-} |
304 |
- |
305 |
-use_flag_config() { |
306 |
- cp "${FILESDIR}"/config config/.config || die |
307 |
- |
308 |
- #Respect CFLAGS/LDFLAGS |
309 |
- sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ |
310 |
- config/.config || die |
311 |
- sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ |
312 |
- config/.config || die |
313 |
- |
314 |
- #The logic is that the default config file enables everything and we disable |
315 |
- #here with sed unless a USE flags says to keep it |
316 |
- if use httpd; then |
317 |
- if ! use static; then |
318 |
- sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ |
319 |
- config/.config || die |
320 |
- fi |
321 |
- if ! use cgi-php && ! use cgi-lua; then |
322 |
- sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ |
323 |
- config/.config || die |
324 |
- fi |
325 |
- if ! use cgi-php; then |
326 |
- sed -i -e 's:,.php::' config/.config || die |
327 |
- fi |
328 |
- if ! use cgi-lua; then |
329 |
- sed -i -e 's:\.lua,::' \ |
330 |
- -e 's:lua:php:' \ |
331 |
- -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ |
332 |
- config/.config || die |
333 |
- fi |
334 |
- else |
335 |
- sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ |
336 |
- config/.config || die |
337 |
- fi |
338 |
- |
339 |
- emake -j1 oldconfig < <(yes n) > /dev/null |
340 |
-} |
341 |
- |
342 |
-multilib_src_configure() { |
343 |
- #Per-ABI substitutions. |
344 |
- sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \ |
345 |
- Makefile || die |
346 |
- |
347 |
- #Use CC as the host compiler for mconf |
348 |
- sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ |
349 |
- config/Rules.mak || die |
350 |
- |
351 |
- if use savedconfig; then |
352 |
- restore_config config/.config |
353 |
- if [[ -f config/.config ]]; then |
354 |
- ewarn "Using saved config, all other USE flags ignored" |
355 |
- else |
356 |
- ewarn "No saved config, seeding with the default" |
357 |
- cp "${FILESDIR}"/config config/.config || die |
358 |
- fi |
359 |
- emake -j1 oldconfig < <(yes '') > /dev/null |
360 |
- else |
361 |
- use_flag_config |
362 |
- fi |
363 |
-} |
364 |
- |
365 |
-multilib_src_install() { |
366 |
- if multilib_is_native_abi && use savedconfig; then |
367 |
- save_config config/.config |
368 |
- fi |
369 |
- |
370 |
- emake PREFIX="${ED}/usr" install |
371 |
- |
372 |
- if ! use static-libs; then |
373 |
- rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die |
374 |
- fi |
375 |
- |
376 |
- # The build system needs to install before it builds docs |
377 |
- if multilib_is_native_abi && use doc; then |
378 |
- emake docs |
379 |
- dodoc -r docsrc/html |
380 |
- fi |
381 |
-} |
382 |
- |
383 |
-multilib_src_install_all() { |
384 |
- if [[ -f "${ED}"/usr/bin/htpasswd ]]; then |
385 |
- mv "${ED}"/usr/bin/{,ax}htpasswd || die |
386 |
- fi |
387 |
- |
388 |
- if use httpd; then |
389 |
- newinitd "${FILESDIR}"/axhttpd.initd axhttpd |
390 |
- newconfd "${FILESDIR}"/axhttpd.confd axhttpd |
391 |
- fi |
392 |
- |
393 |
- docompress -x /usr/share/doc/${PF}/README |
394 |
- dodoc README |
395 |
-} |
396 |
|
397 |
diff --git a/net-libs/axtls/axtls-2.1.4.ebuild b/net-libs/axtls/axtls-2.1.4.ebuild |
398 |
deleted file mode 100644 |
399 |
index dcd2852e823..00000000000 |
400 |
--- a/net-libs/axtls/axtls-2.1.4.ebuild |
401 |
+++ /dev/null |
402 |
@@ -1,178 +0,0 @@ |
403 |
-# Copyright 1999-2017 Gentoo Foundation |
404 |
-# Distributed under the terms of the GNU General Public License v2 |
405 |
- |
406 |
-EAPI="6" |
407 |
- |
408 |
-inherit multilib multilib-minimal savedconfig toolchain-funcs user |
409 |
- |
410 |
-################################################################################ |
411 |
-# axtls CONFIG MINI-HOWTO |
412 |
-# |
413 |
-# Note: axtls is highly configurable and uses mconf, like the linux kernel. |
414 |
-# You can configure it in a couple of ways: |
415 |
-# |
416 |
-# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features |
417 |
-# you want, and possibly a lot more. |
418 |
-# |
419 |
-# 2) You can create your own configuration file by doing |
420 |
-# |
421 |
-# FEATURES="keepwork" USE="savedconfig -*" emerge axtls |
422 |
-# cd /var/tmp/portage/net-libs/axtls*/work/axTLS |
423 |
-# make menuconfig |
424 |
-# |
425 |
-# Now configure axtls as you want. Finally save your config file: |
426 |
-# |
427 |
-# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} |
428 |
-# |
429 |
-# where ${PV} is the current version. You can then run emerge again with |
430 |
-# your configuration by doing |
431 |
-# |
432 |
-# USE="savedconfig" emerge axtls |
433 |
-# |
434 |
-################################################################################ |
435 |
- |
436 |
-MY_PN=${PN/tls/TLS} |
437 |
- |
438 |
-DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" |
439 |
-HOMEPAGE="http://axtls.sourceforge.net/" |
440 |
-SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" |
441 |
-S="${WORKDIR}/${PN}-code" |
442 |
- |
443 |
-LICENSE="BSD GPL-2" |
444 |
-SLOT="0/1" |
445 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
446 |
- |
447 |
-IUSE="httpd cgi-lua cgi-php static static-libs doc" |
448 |
- |
449 |
-# TODO: add ipv6, and c#, java, lua, perl bindings |
450 |
-# Currently these all have some issue |
451 |
-DEPEND="doc? ( app-doc/doxygen )" |
452 |
-RDEPEND=" |
453 |
- httpd? ( |
454 |
- cgi-lua? ( dev-lang/lua ) |
455 |
- cgi-php? ( dev-lang/php[cgi] ) |
456 |
- )" |
457 |
- |
458 |
-#Note1: static, cgi-* makes no sense if httpd is not given |
459 |
-REQUIRED_USE=" |
460 |
- static? ( httpd ) |
461 |
- cgi-lua? ( httpd ) |
462 |
- cgi-php? ( httpd )" |
463 |
- |
464 |
-AXTLS_GROUP="axtls" |
465 |
-AXTLS_USER="axtls" |
466 |
- |
467 |
-pkg_setup() { |
468 |
- use httpd && { |
469 |
- ebegin "Creating axtls user and group" |
470 |
- enewgroup ${AXTLS_GROUP} |
471 |
- enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} |
472 |
- } |
473 |
-} |
474 |
- |
475 |
-src_prepare() { |
476 |
- tc-export AR CC |
477 |
- |
478 |
- eapply "${FILESDIR}/explicit-libdir-r1.patch" |
479 |
- |
480 |
- #We want CONFIG_DEBUG to avoid stripping |
481 |
- #but not for debugging info |
482 |
- sed -i -e 's: -g::' config/Rules.mak || die |
483 |
- sed -i -e 's: -g::' config/makefile.conf || die |
484 |
- |
485 |
- eapply_user |
486 |
- |
487 |
- multilib_copy_sources |
488 |
-} |
489 |
- |
490 |
-use_flag_config() { |
491 |
- cp "${FILESDIR}"/config config/.config || die |
492 |
- |
493 |
- #Respect CFLAGS/LDFLAGS |
494 |
- sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ |
495 |
- config/.config || die |
496 |
- sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ |
497 |
- config/.config || die |
498 |
- |
499 |
- #The logic is that the default config file enables everything and we disable |
500 |
- #here with sed unless a USE flags says to keep it |
501 |
- if use httpd; then |
502 |
- if ! use static; then |
503 |
- sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ |
504 |
- config/.config || die |
505 |
- fi |
506 |
- if ! use cgi-php && ! use cgi-lua; then |
507 |
- sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ |
508 |
- config/.config || die |
509 |
- fi |
510 |
- if ! use cgi-php; then |
511 |
- sed -i -e 's:,.php::' config/.config || die |
512 |
- fi |
513 |
- if ! use cgi-lua; then |
514 |
- sed -i -e 's:\.lua,::' \ |
515 |
- -e 's:lua:php:' \ |
516 |
- -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ |
517 |
- config/.config || die |
518 |
- fi |
519 |
- else |
520 |
- sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ |
521 |
- config/.config || die |
522 |
- fi |
523 |
- |
524 |
- emake -j1 oldconfig < <(yes n) > /dev/null |
525 |
-} |
526 |
- |
527 |
-multilib_src_configure() { |
528 |
- #Per-ABI substitutions. |
529 |
- sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \ |
530 |
- Makefile || die |
531 |
- |
532 |
- #Use CC as the host compiler for mconf |
533 |
- sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ |
534 |
- config/Rules.mak || die |
535 |
- |
536 |
- if use savedconfig; then |
537 |
- restore_config config/.config |
538 |
- if [[ -f config/.config ]]; then |
539 |
- ewarn "Using saved config, all other USE flags ignored" |
540 |
- else |
541 |
- ewarn "No saved config, seeding with the default" |
542 |
- cp "${FILESDIR}"/config config/.config || die |
543 |
- fi |
544 |
- emake -j1 oldconfig < <(yes '') > /dev/null |
545 |
- else |
546 |
- use_flag_config |
547 |
- fi |
548 |
-} |
549 |
- |
550 |
-multilib_src_install() { |
551 |
- if multilib_is_native_abi && use savedconfig; then |
552 |
- save_config config/.config |
553 |
- fi |
554 |
- |
555 |
- emake PREFIX="${ED}/usr" install |
556 |
- |
557 |
- if ! use static-libs; then |
558 |
- rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die |
559 |
- fi |
560 |
- |
561 |
- # The build system needs to install before it builds docs |
562 |
- if multilib_is_native_abi && use doc; then |
563 |
- emake docs |
564 |
- dodoc -r docsrc/html |
565 |
- fi |
566 |
-} |
567 |
- |
568 |
-multilib_src_install_all() { |
569 |
- if [[ -f "${ED}"/usr/bin/htpasswd ]]; then |
570 |
- mv "${ED}"/usr/bin/{,ax}htpasswd || die |
571 |
- fi |
572 |
- |
573 |
- if use httpd; then |
574 |
- newinitd "${FILESDIR}"/axhttpd.initd axhttpd |
575 |
- newconfd "${FILESDIR}"/axhttpd.confd axhttpd |
576 |
- fi |
577 |
- |
578 |
- docompress -x /usr/share/doc/${PF}/README |
579 |
- dodoc README |
580 |
-} |