1 |
commit: 080e8f85b4356e530eeeec66bb4ab6c3b3358561 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 12 01:19:44 2017 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 12 01:20:08 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=080e8f85 |
7 |
|
8 |
net-libs/axtls: version bump to 2.1.4 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
net-libs/axtls/Manifest | 1 + |
13 |
net-libs/axtls/axtls-2.1.4.ebuild | 178 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 179 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/axtls/Manifest b/net-libs/axtls/Manifest |
17 |
index 8db6feb4887..9f706c1f432 100644 |
18 |
--- a/net-libs/axtls/Manifest |
19 |
+++ b/net-libs/axtls/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST axTLS-1.5.3.tar.gz 1309853 SHA256 367ce7918b9e7738d853d5eaaa9d4fbdb362c5b32 |
21 |
DIST axTLS-2.1.1.tar.gz 1305982 SHA256 6ea445bb7f3ce072242df7f687f531c9d18079681990f93cd4f65f43ef2057a1 SHA512 55619d5e02ce466bab223ebc1036ef39c6491d11126ed70f2712a427de2c7e396086a97d3607c9cb69685ade0763e2e55f2c94f9ba746d8ce7b34b0d1996f51a WHIRLPOOL 0e05ec073735f0ed334cb6d84c901c162f413a26485a79ec166ee5bbf9ed02708056093d31d5a00bd4374727a6eb08146f538ede04450145101d5eeb03409986 |
22 |
DIST axTLS-2.1.2.tar.gz 1317506 SHA256 38deea2ba07104c7d0e719e06f8bdc35990ac55e5926a26628f7ac240677fd2e SHA512 29e915c0b8549cf93f0664525c84281dd64159dcb3703badec382d203d0209b4f97d7cb875c710610da8e50a7e28d2b94ac161d1fd5fb625d492b15869333ada WHIRLPOOL b6164acd82bb48a8020ab695642aa85b4a7782f2488cf25ec1c21618c4ec5e1ac16496057ebe21f158b29c2bd1133c40a089c1c5740e8a9f8817be585186b83b |
23 |
DIST axTLS-2.1.3.tar.gz 1316776 SHA256 555ce7adf743c97ca7562e4e5644f8d678c9d88139aeeadb758282f1d37db8a9 SHA512 aa116b671bf0fa059cb77f9e5c0307c48ab476b7ce7017f1d4b2e6362d9d527e534908cb30ec3667eec8c49566f950de3ae4ec0adf5b603fb4efb571eaffc596 WHIRLPOOL 366c8e1109ffe1082ca8a89758ec38b7b01ec9b24c5885171b1a36a4323b5915c81f78f50b4ce2999e14dc907cee624ad52256ffeccccaf5771e4545186b242c |
24 |
+DIST axTLS-2.1.4.tar.gz 1316768 SHA256 e53dd20e2b619349bc48b631176a38742ea600333fd0349df83c6366b7be05bb SHA512 ce301719a12f5b836e3c67a169119d2836382b7b97d39f4010b8b8a644a6751b9f948a6c91f8dc6c39d19f5723311af7aca8958f9052e72cb38a9907247af3e6 WHIRLPOOL 6304f783df3006393ed01c82b011d3acf93d4ece675974f41e261a6ea20371378eaee8f6ca396b66694950583c59554a5b1c784d26c5fa02714483805ab3fb46 |
25 |
|
26 |
diff --git a/net-libs/axtls/axtls-2.1.4.ebuild b/net-libs/axtls/axtls-2.1.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..e1336b9174a |
29 |
--- /dev/null |
30 |
+++ b/net-libs/axtls/axtls-2.1.4.ebuild |
31 |
@@ -0,0 +1,178 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
36 |
+ |
37 |
+inherit multilib multilib-minimal savedconfig toolchain-funcs user |
38 |
+ |
39 |
+################################################################################ |
40 |
+# axtls CONFIG MINI-HOWTO |
41 |
+# |
42 |
+# Note: axtls is highly configurable and uses mconf, like the linux kernel. |
43 |
+# You can configure it in a couple of ways: |
44 |
+# |
45 |
+# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features |
46 |
+# you want, and possibly a lot more. |
47 |
+# |
48 |
+# 2) You can create your own configuration file by doing |
49 |
+# |
50 |
+# FEATURES="keepwork" USE="savedconfig -*" emerge axtls |
51 |
+# cd /var/tmp/portage/net-libs/axtls*/work/axTLS |
52 |
+# make menuconfig |
53 |
+# |
54 |
+# Now configure axtls as you want. Finally save your config file: |
55 |
+# |
56 |
+# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} |
57 |
+# |
58 |
+# where ${PV} is the current version. You can then run emerge again with |
59 |
+# your configuration by doing |
60 |
+# |
61 |
+# USE="savedconfig" emerge axtls |
62 |
+# |
63 |
+################################################################################ |
64 |
+ |
65 |
+MY_PN=${PN/tls/TLS} |
66 |
+ |
67 |
+DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" |
68 |
+HOMEPAGE="http://axtls.sourceforge.net/" |
69 |
+SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" |
70 |
+S="${WORKDIR}/${PN}-code" |
71 |
+ |
72 |
+LICENSE="BSD GPL-2" |
73 |
+SLOT="0/1" |
74 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~x86" |
75 |
+ |
76 |
+IUSE="httpd cgi-lua cgi-php static static-libs doc" |
77 |
+ |
78 |
+# TODO: add ipv6, and c#, java, lua, perl bindings |
79 |
+# Currently these all have some issue |
80 |
+DEPEND="doc? ( app-doc/doxygen )" |
81 |
+RDEPEND=" |
82 |
+ httpd? ( |
83 |
+ cgi-lua? ( dev-lang/lua ) |
84 |
+ cgi-php? ( dev-lang/php[cgi] ) |
85 |
+ )" |
86 |
+ |
87 |
+#Note1: static, cgi-* makes no sense if httpd is not given |
88 |
+REQUIRED_USE=" |
89 |
+ static? ( httpd ) |
90 |
+ cgi-lua? ( httpd ) |
91 |
+ cgi-php? ( httpd )" |
92 |
+ |
93 |
+AXTLS_GROUP="axtls" |
94 |
+AXTLS_USER="axtls" |
95 |
+ |
96 |
+pkg_setup() { |
97 |
+ use httpd && { |
98 |
+ ebegin "Creating axtls user and group" |
99 |
+ enewgroup ${AXTLS_GROUP} |
100 |
+ enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} |
101 |
+ } |
102 |
+} |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ tc-export AR CC |
106 |
+ |
107 |
+ eapply "${FILESDIR}/explicit-libdir-r1.patch" |
108 |
+ |
109 |
+ #We want CONFIG_DEBUG to avoid stripping |
110 |
+ #but not for debugging info |
111 |
+ sed -i -e 's: -g::' config/Rules.mak || die |
112 |
+ sed -i -e 's: -g::' config/makefile.conf || die |
113 |
+ |
114 |
+ eapply_user |
115 |
+ |
116 |
+ multilib_copy_sources |
117 |
+} |
118 |
+ |
119 |
+use_flag_config() { |
120 |
+ cp "${FILESDIR}"/config config/.config || die |
121 |
+ |
122 |
+ #Respect CFLAGS/LDFLAGS |
123 |
+ sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ |
124 |
+ config/.config || die |
125 |
+ sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ |
126 |
+ config/.config || die |
127 |
+ |
128 |
+ #The logic is that the default config file enables everything and we disable |
129 |
+ #here with sed unless a USE flags says to keep it |
130 |
+ if use httpd; then |
131 |
+ if ! use static; then |
132 |
+ sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ |
133 |
+ config/.config || die |
134 |
+ fi |
135 |
+ if ! use cgi-php && ! use cgi-lua; then |
136 |
+ sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ |
137 |
+ config/.config || die |
138 |
+ fi |
139 |
+ if ! use cgi-php; then |
140 |
+ sed -i -e 's:,.php::' config/.config || die |
141 |
+ fi |
142 |
+ if ! use cgi-lua; then |
143 |
+ sed -i -e 's:\.lua,::' \ |
144 |
+ -e 's:lua:php:' \ |
145 |
+ -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ |
146 |
+ config/.config || die |
147 |
+ fi |
148 |
+ else |
149 |
+ sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ |
150 |
+ config/.config || die |
151 |
+ fi |
152 |
+ |
153 |
+ yes "n" | emake -j1 oldconfig > /dev/null || die |
154 |
+} |
155 |
+ |
156 |
+multilib_src_configure() { |
157 |
+ #Per-ABI substitutions. |
158 |
+ sed -i -e 's:^LIBDIR.*/lib:LIBDIR = $(PREFIX)/'"$(get_libdir):" \ |
159 |
+ Makefile || die |
160 |
+ |
161 |
+ #Use CC as the host compiler for mconf |
162 |
+ sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ |
163 |
+ config/Rules.mak || die |
164 |
+ |
165 |
+ if use savedconfig; then |
166 |
+ restore_config config/.config |
167 |
+ if [[ -f config/.config ]]; then |
168 |
+ ewarn "Using saved config, all other USE flags ignored" |
169 |
+ else |
170 |
+ ewarn "No saved config, seeding with the default" |
171 |
+ cp "${FILESDIR}"/config config/.config || die |
172 |
+ fi |
173 |
+ yes "" | emake -j1 oldconfig > /dev/null || die |
174 |
+ else |
175 |
+ use_flag_config |
176 |
+ fi |
177 |
+} |
178 |
+ |
179 |
+multilib_src_install() { |
180 |
+ if multilib_is_native_abi && use savedconfig; then |
181 |
+ save_config config/.config |
182 |
+ fi |
183 |
+ |
184 |
+ emake PREFIX="${ED}/usr" install |
185 |
+ |
186 |
+ if ! use static-libs; then |
187 |
+ rm -f "${ED}"/usr/$(get_libdir)/libaxtls.a || die |
188 |
+ fi |
189 |
+ |
190 |
+ # The build system needs to install before it builds docs |
191 |
+ if multilib_is_native_abi && use doc; then |
192 |
+ emake docs |
193 |
+ dodoc -r docsrc/html |
194 |
+ fi |
195 |
+} |
196 |
+ |
197 |
+multilib_src_install_all() { |
198 |
+ if [[ -f "${ED}"/usr/bin/htpasswd ]]; then |
199 |
+ mv "${ED}"/usr/bin/{,ax}htpasswd || die |
200 |
+ fi |
201 |
+ |
202 |
+ if use httpd; then |
203 |
+ newinitd "${FILESDIR}"/axhttpd.initd axhttpd |
204 |
+ newconfd "${FILESDIR}"/axhttpd.confd axhttpd |
205 |
+ fi |
206 |
+ |
207 |
+ docompress -x /usr/share/doc/${PF}/README |
208 |
+ dodoc README |
209 |
+} |