1 |
commit: 40d957e0baec355f907d83bc1aa93c7d2e06f115 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 15 20:36:58 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 15 20:40:57 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40d957e0 |
7 |
|
8 |
net-libs/axtls: version bump to 2.1.5 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
net-libs/axtls/Manifest | 1 + |
14 |
net-libs/axtls/axtls-2.1.5.ebuild | 178 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 179 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/axtls/Manifest b/net-libs/axtls/Manifest |
18 |
index 4de2c6e83b5..54c033cd5a8 100644 |
19 |
--- a/net-libs/axtls/Manifest |
20 |
+++ b/net-libs/axtls/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST axTLS-2.1.1.tar.gz 1305982 BLAKE2B 37f6a233139ed290fd96787644eb9c40de57f4dd |
22 |
DIST axTLS-2.1.2.tar.gz 1317506 BLAKE2B e331ac1028fa59821e8213c30349839d324e62a24e3cb602050f87dab4ce044964bf04aa5dda1b533fc623ed300bb3a8987c4f5faa7e06c7b5b13e62a46c9d2d SHA512 29e915c0b8549cf93f0664525c84281dd64159dcb3703badec382d203d0209b4f97d7cb875c710610da8e50a7e28d2b94ac161d1fd5fb625d492b15869333ada |
23 |
DIST axTLS-2.1.3.tar.gz 1316776 BLAKE2B f60502d34a9d23ac772e1bbe05dc9350ab2385fb3c42480117120923647f122ef7a955289b656b8a70b3ac9817b1bcf947f541739b8d01ebe1eb4340f8d9cf38 SHA512 aa116b671bf0fa059cb77f9e5c0307c48ab476b7ce7017f1d4b2e6362d9d527e534908cb30ec3667eec8c49566f950de3ae4ec0adf5b603fb4efb571eaffc596 |
24 |
DIST axTLS-2.1.4.tar.gz 1316768 BLAKE2B 3ff302c59313ee80d18a0d5390c591e6259625e62707cc0c7c677add1f7fddffa5b4dc46860ee18dd96fcc227b3cac1179ab290f8af50ac91fe2841fff977cd4 SHA512 ce301719a12f5b836e3c67a169119d2836382b7b97d39f4010b8b8a644a6751b9f948a6c91f8dc6c39d19f5723311af7aca8958f9052e72cb38a9907247af3e6 |
25 |
+DIST axTLS-2.1.5.tar.gz 1318286 BLAKE2B a4f7cb551f3569fbc9a3a7e0e8faa929a5310fdb412283487fedd4a58e36a65529ebd9aec859027ca6df8e69db85b9f908b56f8d37284548b3984da10774ca3d SHA512 d208b174c31a144a779185e77834a34b0fdd15e8cadf4665b8fd76dcb3207955ed687f3d86d1e60f85d108ecccfd900a76e6d045d16a7182001e0b58da09be18 |
26 |
|
27 |
diff --git a/net-libs/axtls/axtls-2.1.5.ebuild b/net-libs/axtls/axtls-2.1.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..490ad132093 |
30 |
--- /dev/null |
31 |
+++ b/net-libs/axtls/axtls-2.1.5.ebuild |
32 |
@@ -0,0 +1,178 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+ |
38 |
+inherit multilib multilib-minimal savedconfig toolchain-funcs user |
39 |
+ |
40 |
+################################################################################ |
41 |
+# axtls CONFIG MINI-HOWTO |
42 |
+# |
43 |
+# Note: axtls is highly configurable and uses mconf, like the linux kernel. |
44 |
+# You can configure it in a couple of ways: |
45 |
+# |
46 |
+# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features |
47 |
+# you want, and possibly a lot more. |
48 |
+# |
49 |
+# 2) You can create your own configuration file by doing |
50 |
+# |
51 |
+# FEATURES="keepwork" USE="savedconfig -*" emerge axtls |
52 |
+# cd /var/tmp/portage/net-libs/axtls*/work/axTLS |
53 |
+# make menuconfig |
54 |
+# |
55 |
+# Now configure axtls as you want. Finally save your config file: |
56 |
+# |
57 |
+# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} |
58 |
+# |
59 |
+# where ${PV} is the current version. You can then run emerge again with |
60 |
+# your configuration by doing |
61 |
+# |
62 |
+# USE="savedconfig" emerge axtls |
63 |
+# |
64 |
+################################################################################ |
65 |
+ |
66 |
+MY_PN=${PN/tls/TLS} |
67 |
+ |
68 |
+DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" |
69 |
+HOMEPAGE="http://axtls.sourceforge.net/" |
70 |
+SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" |
71 |
+S="${WORKDIR}/${PN}-code" |
72 |
+ |
73 |
+LICENSE="BSD GPL-2" |
74 |
+SLOT="0/1" |
75 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
76 |
+ |
77 |
+IUSE="httpd cgi-lua cgi-php static static-libs doc" |
78 |
+ |
79 |
+# TODO: add ipv6, and c#, java, lua, perl bindings |
80 |
+# Currently these all have some issue |
81 |
+DEPEND="doc? ( app-doc/doxygen )" |
82 |
+RDEPEND=" |
83 |
+ httpd? ( |
84 |
+ cgi-lua? ( dev-lang/lua ) |
85 |
+ cgi-php? ( dev-lang/php[cgi] ) |
86 |
+ )" |
87 |
+ |
88 |
+#Note1: static, cgi-* makes no sense if httpd is not given |
89 |
+REQUIRED_USE=" |
90 |
+ static? ( httpd ) |
91 |
+ cgi-lua? ( httpd ) |
92 |
+ cgi-php? ( httpd )" |
93 |
+ |
94 |
+AXTLS_GROUP="axtls" |
95 |
+AXTLS_USER="axtls" |
96 |
+ |
97 |
+pkg_setup() { |
98 |
+ use httpd && { |
99 |
+ ebegin "Creating axtls user and group" |
100 |
+ enewgroup ${AXTLS_GROUP} |
101 |
+ enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} |
102 |
+ } |
103 |
+} |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ tc-export AR CC |
107 |
+ |
108 |
+ eapply "${FILESDIR}/explicit-libdir-r1.patch" |
109 |
+ |
110 |
+ #We want CONFIG_DEBUG to avoid stripping |
111 |
+ #but not for debugging info |
112 |
+ sed -i -e 's: -g::' config/Rules.mak || die |
113 |
+ sed -i -e 's: -g::' config/makefile.conf || die |
114 |
+ |
115 |
+ eapply_user |
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 |
+ yes "n" | emake -j1 oldconfig > /dev/null || die |
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 |
+ yes "" | emake -j1 oldconfig > /dev/null || die |
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 |
+} |