1 |
commit: 13305adf0fa6124d2e33ff12e7dba39dbf81a3ad |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 26 04:45:55 2012 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 26 04:45:55 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=13305adf |
7 |
|
8 |
net-libs/axtls: staging namechange and version bump |
9 |
|
10 |
--- |
11 |
net-libs/axtls/Manifest | 6 ++ |
12 |
net-libs/axtls/axtls-1.4.6.ebuild | 171 ++++++++++++++++++++++++++++++++++++ |
13 |
net-libs/axtls/files/axhttpd.confd | 7 ++ |
14 |
net-libs/axtls/files/axhttpd.initd | 26 ++++++ |
15 |
net-libs/axtls/files/config | 126 ++++++++++++++++++++++++++ |
16 |
net-libs/axtls/metadata.xml | 14 +++ |
17 |
6 files changed, 350 insertions(+), 0 deletions(-) |
18 |
|
19 |
diff --git a/net-libs/axtls/Manifest b/net-libs/axtls/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..e6478c6 |
22 |
--- /dev/null |
23 |
+++ b/net-libs/axtls/Manifest |
24 |
@@ -0,0 +1,6 @@ |
25 |
+AUX axhttpd.confd 181 RMD160 489c7d0ff59a419061bcc246e1ca1ced1cfe2831 SHA1 4378b0ec8b8634af29a62c49603ec5ccc14da693 SHA256 5eff31a8656c735ec9b85eac8d0a92c497132d5337fd5dff6f9e311e6b223a65 |
26 |
+AUX axhttpd.initd 625 RMD160 5652cbc39e31f8ecfadd57f53631043ff0ea0ea5 SHA1 59b8ed9a54c933d95586fab83828f7e8b039143d SHA256 a312d046020c45d9352e6bf736c86335a0ba2c7f4745186cd047e0149d63e33c |
27 |
+AUX config 3064 RMD160 5087b627e11d34a81c8696022d2380faa244b8e2 SHA1 095708bd3c5fc4e3183e9f9857139d0e211d42a6 SHA256 e85c8bd84f34045b52cefc7e3df94373f87cab22d495efe7ca737b1e6cfaa7ed |
28 |
+DIST axTLS-1.4.6.tar.gz 1299349 RMD160 291c7c0e43bc278a712bcad557187417f4813d31 SHA1 611a6a549b2842cd5e78e3ced4556264f17aef43 SHA256 43ad99c1cb205bc0275637fd14094a2034e168cdd6f18f377e007abdbb233619 |
29 |
+EBUILD axtls-1.4.6.ebuild 4320 RMD160 e7eedabf9e34242791da34988a154616272a05e0 SHA1 8d388c01fb42133199a99f669a7c946dad5b130d SHA256 ae8ff4ae5ec0d365fa1acc8719f6d8cdae2f79aeed8222d7cbf3984fcfbbed45 |
30 |
+MISC metadata.xml 539 RMD160 66d2200563130d8af1e6b9ea42aac0098cca0ece SHA1 977793dc0d626b3c9144cdac6e85ec137efd3e72 SHA256 678ce846bdfbf9df350ed0ba25520abe1588a12c229cbc54642269cf2fbe0966 |
31 |
|
32 |
diff --git a/net-libs/axtls/axtls-1.4.6.ebuild b/net-libs/axtls/axtls-1.4.6.ebuild |
33 |
new file mode 100644 |
34 |
index 0000000..d6f24aa |
35 |
--- /dev/null |
36 |
+++ b/net-libs/axtls/axtls-1.4.6.ebuild |
37 |
@@ -0,0 +1,171 @@ |
38 |
+# Copyright 1999-2012 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/axtls/axtls-1.4.5.ebuild,v 1.4 2012/04/07 21:47:08 blueness Exp $ |
41 |
+ |
42 |
+EAPI="4" |
43 |
+ |
44 |
+inherit savedconfig toolchain-funcs user |
45 |
+ |
46 |
+################################################################################ |
47 |
+# axtls CONFIG MINI-HOWTO |
48 |
+# |
49 |
+# Note: axtls is highly configurable and uses mconf, like the linux kernel. |
50 |
+# You can configure it in a couple of ways: |
51 |
+# |
52 |
+# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features |
53 |
+# you want, and possibly a lot more. |
54 |
+# |
55 |
+# 2) You can create your own configuration file by doing |
56 |
+# |
57 |
+# FEATURES="keepwork" USE="savedconfig -*" emerge axtls |
58 |
+# cd /var/tmp/portage/net-libs/axtls*/work/axTLS |
59 |
+# make menuconfig |
60 |
+# |
61 |
+# Now configure axtls as you want. Finally save your config file: |
62 |
+# |
63 |
+# cp config/.config /etc/portage/savedconfig/net-libs/axtls-${PV} |
64 |
+# |
65 |
+# where ${PV} is the current version. You can then run emerge again with |
66 |
+# your configuration by doing |
67 |
+# |
68 |
+# USE="savedconfig" emerge axtls |
69 |
+# |
70 |
+################################################################################ |
71 |
+ |
72 |
+MY_PN=${PN/tls/TLS} |
73 |
+ |
74 |
+DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" |
75 |
+HOMEPAGE="http://axtls.sourceforge.net/" |
76 |
+SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz" |
77 |
+S="${WORKDIR}/${MY_PN}" |
78 |
+ |
79 |
+LICENSE="BSD" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="~amd64 ~x86" |
82 |
+IUSE="httpd cgi-lua cgi-php static doc" |
83 |
+ |
84 |
+# TODO: add ipv6, and c#, java, lua, perl bindings |
85 |
+# Currently these all have some issue |
86 |
+DEPEND="doc? ( app-doc/doxygen )" |
87 |
+RDEPEND=" |
88 |
+ httpd? ( |
89 |
+ cgi-lua? ( dev-lang/lua ) |
90 |
+ cgi-php? ( dev-lang/php[cgi] ) |
91 |
+ )" |
92 |
+ |
93 |
+#Note1: static, cgi-* makes no sense if httpd is not given |
94 |
+REQUIRED_USE=" |
95 |
+ static? ( httpd ) |
96 |
+ cgi-lua? ( httpd ) |
97 |
+ cgi-php? ( httpd )" |
98 |
+ |
99 |
+AXTLS_GROUP="axtls" |
100 |
+AXTLS_USER="axtls" |
101 |
+ |
102 |
+pkg_setup() { |
103 |
+ use httpd && { |
104 |
+ ebegin "Creating axtls user and group" |
105 |
+ enewgroup ${AXTLS_GROUP} |
106 |
+ enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} |
107 |
+ } |
108 |
+} |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ tc-export CC |
112 |
+ |
113 |
+ #Use CC as the host compiler for mconf |
114 |
+ sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ |
115 |
+ "${S}"/config/Rules.mak |
116 |
+ |
117 |
+ #We want CONFIG_DEBUG to avoid stripping |
118 |
+ #but not for debugging info |
119 |
+ sed -i -e 's: -g::' \ |
120 |
+ "${S}"/config/Rules.mak |
121 |
+ sed -i -e 's: -g::' \ |
122 |
+ "${S}"/config/makefile.conf |
123 |
+} |
124 |
+ |
125 |
+use_flag_config() { |
126 |
+ cp "${FILESDIR}"/config "${S}"/config/.config |
127 |
+ |
128 |
+ #Respect CFLAGS/LDFLAGS |
129 |
+ sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ |
130 |
+ "${S}"/config/.config |
131 |
+ sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ |
132 |
+ "${S}"/config/.config |
133 |
+ |
134 |
+ #The logic is that the default config file enables everything and we disable |
135 |
+ #here with sed unless a USE flags says to keep it |
136 |
+ if use httpd; then |
137 |
+ if ! use static; then |
138 |
+ sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ |
139 |
+ "${S}"/config/.config |
140 |
+ fi |
141 |
+ if ! use cgi-php && ! use cgi-lua; then |
142 |
+ sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ |
143 |
+ "${S}"/config/.config |
144 |
+ fi |
145 |
+ if ! use cgi-php; then |
146 |
+ sed -i -e 's:,.php::' "${S}"/config/.config |
147 |
+ fi |
148 |
+ if ! use cgi-lua; then |
149 |
+ sed -i -e 's:\.lua,::' \ |
150 |
+ -e 's:lua:php:' \ |
151 |
+ -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ |
152 |
+ "${S}"/config/.config |
153 |
+ fi |
154 |
+ else |
155 |
+ sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ |
156 |
+ "${S}"/config/.config |
157 |
+ fi |
158 |
+ |
159 |
+ yes "n" | emake -j1 oldconfig > /dev/null |
160 |
+} |
161 |
+ |
162 |
+src_configure() { |
163 |
+ tc-export CC |
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 "${S}"/config/.config |
172 |
+ fi |
173 |
+ yes "" | emake -j1 oldconfig > /dev/null |
174 |
+ else |
175 |
+ use_flag_config |
176 |
+ fi |
177 |
+} |
178 |
+ |
179 |
+src_compile() { |
180 |
+ default |
181 |
+ if use doc; then |
182 |
+ emake docs |
183 |
+ mv www README |
184 |
+ fi |
185 |
+} |
186 |
+ |
187 |
+src_install() { |
188 |
+ if use savedconfig; then |
189 |
+ save_config config/.config |
190 |
+ fi |
191 |
+ |
192 |
+ emake PREFIX="${ED}/usr" install |
193 |
+ if [ -f "${ED}"/usr/bin/htpasswd ]; then |
194 |
+ mv "${ED}"/usr/bin/{,ax}htpasswd |
195 |
+ fi |
196 |
+ |
197 |
+ if use httpd; then |
198 |
+ newinitd "${FILESDIR}"/axhttpd.initd axhttpd |
199 |
+ newconfd "${FILESDIR}"/axhttpd.confd axhttpd |
200 |
+ fi |
201 |
+ |
202 |
+ docompress -x /usr/share/doc/${PF}/README |
203 |
+ dodoc -r README |
204 |
+ |
205 |
+ if use doc; then |
206 |
+ dodoc -r docsrc/html |
207 |
+ fi |
208 |
+} |
209 |
|
210 |
diff --git a/net-libs/axtls/files/axhttpd.confd b/net-libs/axtls/files/axhttpd.confd |
211 |
new file mode 100644 |
212 |
index 0000000..02f1292 |
213 |
--- /dev/null |
214 |
+++ b/net-libs/axtls/files/axhttpd.confd |
215 |
@@ -0,0 +1,7 @@ |
216 |
+#Zero or more of the following may be given: |
217 |
+# |
218 |
+# -p [address:]httpport |
219 |
+# -s [address:]httpsport |
220 |
+# -w webroot |
221 |
+# |
222 |
+#AXHTTPD_OPTS="-w /var/www/localhost/htdocs -p 8080 -s 4343" |
223 |
|
224 |
diff --git a/net-libs/axtls/files/axhttpd.initd b/net-libs/axtls/files/axhttpd.initd |
225 |
new file mode 100644 |
226 |
index 0000000..e5beb23 |
227 |
--- /dev/null |
228 |
+++ b/net-libs/axtls/files/axhttpd.initd |
229 |
@@ -0,0 +1,26 @@ |
230 |
+#!/sbin/runscript |
231 |
+# Copyright 1999-2012 Gentoo Foundation |
232 |
+# Distributed under the terms of the GNU General Public License, v2 or later |
233 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/axTLS/files/axhttpd.initd,v 1.1 2012/04/06 17:39:39 blueness Exp $ |
234 |
+ |
235 |
+AXHTTPD_USER="axtls" |
236 |
+AXHTTPD_GROUP="axtls" |
237 |
+AXHTTPD_DAEMON="/usr/bin/axhttpd" |
238 |
+ |
239 |
+depend() { |
240 |
+ need net |
241 |
+} |
242 |
+ |
243 |
+start() { |
244 |
+ ebegin "Starting axhttpd" |
245 |
+ start-stop-daemon --quiet --start "${AXHTTPD_DAEMON}" \ |
246 |
+ --user "${AXHTTPD_USER}":"${AXHTTPD_GROUP}" \ |
247 |
+ -- ${AXHTTPD_OPTS} |
248 |
+ eend $? |
249 |
+} |
250 |
+ |
251 |
+stop() { |
252 |
+ ebegin "Stopping axhttpd" |
253 |
+ start-stop-daemon --quiet --stop "${AXHTTPD_DAEMON}" |
254 |
+ eend $? |
255 |
+} |
256 |
|
257 |
diff --git a/net-libs/axtls/files/config b/net-libs/axtls/files/config |
258 |
new file mode 100644 |
259 |
index 0000000..6eb608d |
260 |
--- /dev/null |
261 |
+++ b/net-libs/axtls/files/config |
262 |
@@ -0,0 +1,126 @@ |
263 |
+# |
264 |
+# Automatically generated make config: don't edit |
265 |
+# |
266 |
+HAVE_DOT_CONFIG=y |
267 |
+CONFIG_PLATFORM_LINUX=y |
268 |
+# CONFIG_PLATFORM_CYGWIN is not set |
269 |
+# CONFIG_PLATFORM_WIN32 is not set |
270 |
+ |
271 |
+# |
272 |
+# General Configuration |
273 |
+# |
274 |
+PREFIX="/usr" |
275 |
+CONFIG_DEBUG=y |
276 |
+# CONFIG_STRIP_UNWANTED_SECTIONS is not set |
277 |
+# CONFIG_VISUAL_STUDIO_7_0 is not set |
278 |
+# CONFIG_VISUAL_STUDIO_8_0 is not set |
279 |
+# CONFIG_VISUAL_STUDIO_10_0 is not set |
280 |
+CONFIG_VISUAL_STUDIO_7_0_BASE="" |
281 |
+CONFIG_VISUAL_STUDIO_8_0_BASE="" |
282 |
+CONFIG_VISUAL_STUDIO_10_0_BASE="" |
283 |
+CONFIG_EXTRA_CFLAGS_OPTIONS="" |
284 |
+CONFIG_EXTRA_LDFLAGS_OPTIONS="" |
285 |
+ |
286 |
+# |
287 |
+# SSL Library |
288 |
+# |
289 |
+# CONFIG_SSL_SERVER_ONLY is not set |
290 |
+# CONFIG_SSL_CERT_VERIFICATION is not set |
291 |
+# CONFIG_SSL_ENABLE_CLIENT is not set |
292 |
+CONFIG_SSL_FULL_MODE=y |
293 |
+# CONFIG_SSL_SKELETON_MODE is not set |
294 |
+# CONFIG_SSL_PROT_LOW is not set |
295 |
+# CONFIG_SSL_PROT_MEDIUM is not set |
296 |
+CONFIG_SSL_PROT_HIGH=y |
297 |
+CONFIG_SSL_USE_DEFAULT_KEY=y |
298 |
+CONFIG_SSL_PRIVATE_KEY_LOCATION="" |
299 |
+CONFIG_SSL_PRIVATE_KEY_PASSWORD="" |
300 |
+CONFIG_SSL_X509_CERT_LOCATION="" |
301 |
+# CONFIG_SSL_GENERATE_X509_CERT is not set |
302 |
+CONFIG_SSL_X509_COMMON_NAME="" |
303 |
+CONFIG_SSL_X509_ORGANIZATION_NAME="" |
304 |
+CONFIG_SSL_X509_ORGANIZATION_UNIT_NAME="" |
305 |
+CONFIG_SSL_ENABLE_V23_HANDSHAKE=y |
306 |
+CONFIG_SSL_HAS_PEM=y |
307 |
+CONFIG_SSL_USE_PKCS12=y |
308 |
+CONFIG_SSL_EXPIRY_TIME=24 |
309 |
+CONFIG_X509_MAX_CA_CERTS=300 |
310 |
+CONFIG_SSL_MAX_CERTS=6 |
311 |
+# CONFIG_SSL_CTX_MUTEXING is not set |
312 |
+CONFIG_USE_DEV_URANDOM=y |
313 |
+# CONFIG_WIN32_USE_CRYPTO_LIB is not set |
314 |
+CONFIG_OPENSSL_COMPATIBLE=y |
315 |
+# CONFIG_PERFORMANCE_TESTING is not set |
316 |
+CONFIG_SSL_TEST=y |
317 |
+CONFIG_AXTLSWRAP=y |
318 |
+CONFIG_AXHTTPD=y |
319 |
+ |
320 |
+# |
321 |
+# Axhttpd Configuration |
322 |
+# |
323 |
+CONFIG_HTTP_STATIC_BUILD=y |
324 |
+CONFIG_HTTP_PORT=8080 |
325 |
+CONFIG_HTTP_HTTPS_PORT=4343 |
326 |
+CONFIG_HTTP_SESSION_CACHE_SIZE=5 |
327 |
+CONFIG_HTTP_WEBROOT="/var/www/localhost/htdocs" |
328 |
+CONFIG_HTTP_TIMEOUT=300 |
329 |
+ |
330 |
+# |
331 |
+# CGI |
332 |
+# |
333 |
+CONFIG_HTTP_HAS_CGI=y |
334 |
+CONFIG_HTTP_CGI_EXTENSIONS=".lua,.php" |
335 |
+CONFIG_HTTP_ENABLE_LUA=y |
336 |
+CONFIG_HTTP_LUA_PREFIX="/usr" |
337 |
+# CONFIG_HTTP_BUILD_LUA is not set |
338 |
+CONFIG_HTTP_CGI_LAUNCHER="/usr/bin/lua" |
339 |
+CONFIG_HTTP_DIRECTORIES=y |
340 |
+CONFIG_HTTP_HAS_AUTHORIZATION=y |
341 |
+# CONFIG_HTTP_HAS_IPV6 is not set |
342 |
+CONFIG_HTTP_ENABLE_DIFFERENT_USER=y |
343 |
+CONFIG_HTTP_USER="axtls" |
344 |
+CONFIG_HTTP_VERBOSE=y |
345 |
+CONFIG_HTTP_IS_DAEMON=y |
346 |
+ |
347 |
+# |
348 |
+# Language Bindings |
349 |
+# |
350 |
+# CONFIG_BINDINGS is not set |
351 |
+# CONFIG_CSHARP_BINDINGS is not set |
352 |
+# CONFIG_VBNET_BINDINGS is not set |
353 |
+CONFIG_DOT_NET_FRAMEWORK_BASE="" |
354 |
+# CONFIG_JAVA_BINDINGS is not set |
355 |
+CONFIG_JAVA_HOME="" |
356 |
+# CONFIG_PERL_BINDINGS is not set |
357 |
+CONFIG_PERL_CORE="" |
358 |
+CONFIG_PERL_LIB="" |
359 |
+# CONFIG_LUA_BINDINGS is not set |
360 |
+CONFIG_LUA_CORE="" |
361 |
+ |
362 |
+# |
363 |
+# Samples |
364 |
+# |
365 |
+CONFIG_SAMPLES=y |
366 |
+CONFIG_C_SAMPLES=y |
367 |
+# CONFIG_CSHARP_SAMPLES is not set |
368 |
+# CONFIG_VBNET_SAMPLES is not set |
369 |
+# CONFIG_JAVA_SAMPLES is not set |
370 |
+# CONFIG_PERL_SAMPLES is not set |
371 |
+# CONFIG_LUA_SAMPLES is not set |
372 |
+ |
373 |
+# |
374 |
+# BigInt Options |
375 |
+# |
376 |
+# CONFIG_BIGINT_CLASSICAL is not set |
377 |
+# CONFIG_BIGINT_MONTGOMERY is not set |
378 |
+CONFIG_BIGINT_BARRETT=y |
379 |
+CONFIG_BIGINT_CRT=y |
380 |
+CONFIG_BIGINT_KARATSUBA=y |
381 |
+MUL_KARATSUBA_THRESH=20 |
382 |
+SQU_KARATSUBA_THRESH=40 |
383 |
+CONFIG_BIGINT_SLIDING_WINDOW=y |
384 |
+CONFIG_BIGINT_SQUARE=y |
385 |
+# CONFIG_BIGINT_CHECK_ON is not set |
386 |
+CONFIG_INTEGER_32BIT=y |
387 |
+# CONFIG_INTEGER_16BIT is not set |
388 |
+# CONFIG_INTEGER_8BIT is not set |
389 |
|
390 |
diff --git a/net-libs/axtls/metadata.xml b/net-libs/axtls/metadata.xml |
391 |
new file mode 100644 |
392 |
index 0000000..dd75ddb |
393 |
--- /dev/null |
394 |
+++ b/net-libs/axtls/metadata.xml |
395 |
@@ -0,0 +1,14 @@ |
396 |
+<?xml version="1.0" encoding="UTF-8"?> |
397 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
398 |
+<pkgmetadata> |
399 |
+ <maintainer> |
400 |
+ <email>blueness@g.o</email> |
401 |
+ <name>Anthony G. Basile</name> |
402 |
+ </maintainer> |
403 |
+ <use> |
404 |
+ <flag name="httpd">Enables axhttpd web server component</flag> |
405 |
+ <flag name="static">Statically build axhttpd server</flag> |
406 |
+ <flag name="cgi-lua">Enables lua backed cgi for axhttpd server</flag> |
407 |
+ <flag name="cgi-php">Enables php backed cgi for axhttpd server</flag> |
408 |
+ </use> |
409 |
+</pkgmetadata> |