1 |
blueness 12/04/06 17:39:39 |
2 |
|
3 |
Added: axTLS-1.4.5.ebuild ChangeLog metadata.xml |
4 |
Log: |
5 |
Initial commit |
6 |
|
7 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-libs/axTLS/axTLS-1.4.5.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axTLS/axTLS-1.4.5.ebuild?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axTLS/axTLS-1.4.5.ebuild?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: axTLS-1.4.5.ebuild |
16 |
=================================================================== |
17 |
# Copyright 1999-2012 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/axTLS/axTLS-1.4.5.ebuild,v 1.1 2012/04/06 17:39:39 blueness Exp $ |
20 |
|
21 |
EAPI="4" |
22 |
|
23 |
inherit user savedconfig toolchain-funcs |
24 |
|
25 |
################################################################################ |
26 |
# axTLS CONFIG MINI-HOWTO |
27 |
# |
28 |
# Note: axTLS is highly configurable and uses mconf, like the linux kernel. |
29 |
# You can configure it in a couple of ways: |
30 |
# |
31 |
# 1) USE="-savedconfig" and set/unset the remaining flags to obtain the features |
32 |
# you want, and possibly a lot more. |
33 |
# |
34 |
# 2) You can create your own configuration file by doing |
35 |
# |
36 |
# FEATURES="keepwork" USE="savedconfig -*" emerge axTLS |
37 |
# cd /var/tmp/portage/net-libs/axTLS*/work/axTLS |
38 |
# make menuconfig |
39 |
# |
40 |
# Now configure axTLS as you want. Finally save your config file: |
41 |
# |
42 |
# cp config/.config /etc/portage/savedconfig/net-libs/axTLS-1.4.5 |
43 |
# |
44 |
# changing 1.4.5 to the current version. You can then run emerge again with |
45 |
# your configuration by doing |
46 |
# |
47 |
# USE="savedconfig" emerge axTLS |
48 |
# |
49 |
################################################################################ |
50 |
|
51 |
DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server" |
52 |
HOMEPAGE="http://axtls.sourceforge.net/" |
53 |
SRC_URI="mirror://sourceforge/axtls/${PN}-1.4.5.tar.gz" |
54 |
S="${WORKDIR}/${PN}" |
55 |
|
56 |
LICENSE="BSD" |
57 |
SLOT="0" |
58 |
KEYWORDS="~amd64 ~x86" |
59 |
IUSE="httpd cgi-lua cgi-php static doc" |
60 |
|
61 |
# TODO: add ipv6, and c#, java, lua, perl bindings |
62 |
# Currently these all have some issue |
63 |
DEPEND="" |
64 |
RDEPEND="${DEPEND} |
65 |
httpd? ( |
66 |
cgi-lua? ( dev-lang/lua ) |
67 |
cgi-php? ( dev-lang/php[cgi] ) |
68 |
)" |
69 |
|
70 |
#Note1: static, cgi-* makes no sense if httpd is not given |
71 |
REQUIRED_USE=" |
72 |
static? ( httpd ) |
73 |
cgi-lua? ( httpd ) |
74 |
cgi-php? ( httpd )" |
75 |
|
76 |
AXTLS_GROUP="axtls" |
77 |
AXTLS_USER="axtls" |
78 |
|
79 |
pkg_setup() { |
80 |
use httpd && { |
81 |
ebegin "Creating axtls user and group" |
82 |
enewgroup ${AXTLS_GROUP} |
83 |
enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP} |
84 |
} |
85 |
} |
86 |
|
87 |
src_prepare() { |
88 |
tc-export CC |
89 |
|
90 |
#Use CC as the host compiler for mconf |
91 |
sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \ |
92 |
"${S}"/config/Rules.mak |
93 |
|
94 |
#We want CONFIG_DEBUG to avoid stripping |
95 |
#but not for debugging info |
96 |
sed -i -e 's: -g::' \ |
97 |
"${S}"/config/Rules.mak |
98 |
sed -i -e 's: -g::' \ |
99 |
"${S}"/config/makefile.conf |
100 |
} |
101 |
|
102 |
use_flag_config() { |
103 |
cp "${FILESDIR}"/config "${S}"/config/.config |
104 |
|
105 |
#Respect CFLAGS/LDFLAGS |
106 |
sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \ |
107 |
"${S}"/config/.config |
108 |
sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \ |
109 |
"${S}"/config/.config |
110 |
|
111 |
#The logic is that the default config file enables everything and we disable |
112 |
#here with sed unless a USE flags says to keep it |
113 |
if use httpd; then |
114 |
if ! use static; then |
115 |
sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \ |
116 |
"${S}"/config/.config |
117 |
fi |
118 |
if ! use cgi-php && ! use cgi-lua; then |
119 |
sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \ |
120 |
"${S}"/config/.config |
121 |
fi |
122 |
if ! use cgi-php; then |
123 |
sed -i -e 's:,.php::' "${S}"/config/.config |
124 |
fi |
125 |
if ! use cgi-lua; then |
126 |
sed -i -e 's:\.lua,::' \ |
127 |
-e 's:lua:php:' \ |
128 |
-e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \ |
129 |
"${S}"/config/.config |
130 |
fi |
131 |
else |
132 |
sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \ |
133 |
"${S}"/config/.config |
134 |
fi |
135 |
|
136 |
yes "n" | emake -j1 oldconfig > /dev/null |
137 |
} |
138 |
|
139 |
src_configure() { |
140 |
tc-export CC |
141 |
|
142 |
if use savedconfig; then |
143 |
restore_config config/.config |
144 |
if [ -f config/.config ]; then |
145 |
ewarn "Using saved config, all other USE flags ignored" |
146 |
else |
147 |
ewarn "No saved config, seeding with the default" |
148 |
cp "${FILESDIR}"/config "${S}"/config/.config |
149 |
fi |
150 |
yes "" | emake -j1 oldconfig > /dev/null |
151 |
else |
152 |
use_flag_config |
153 |
fi |
154 |
} |
155 |
|
156 |
src_compile() { |
157 |
default |
158 |
if use doc; then |
159 |
emake docs |
160 |
mv www README |
161 |
fi |
162 |
} |
163 |
|
164 |
src_install() { |
165 |
if use savedconfig; then |
166 |
save_config config/.config |
167 |
fi |
168 |
|
169 |
emake PREFIX="${ED}/usr" install |
170 |
if [ -f "${ED}"/usr/bin/htpasswd ]; then |
171 |
mv "${ED}"/usr/bin/{,ax}htpasswd |
172 |
fi |
173 |
|
174 |
if use httpd; then |
175 |
newinitd "${FILESDIR}"/axhttpd.initd axhttpd |
176 |
newconfd "${FILESDIR}"/axhttpd.confd axhttpd |
177 |
fi |
178 |
|
179 |
docompress -x /usr/share/doc/${PF}/README |
180 |
dodoc -r README |
181 |
|
182 |
if use doc; then |
183 |
dodoc -r docsrc/html |
184 |
fi |
185 |
} |
186 |
|
187 |
|
188 |
|
189 |
1.1 net-libs/axTLS/ChangeLog |
190 |
|
191 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axTLS/ChangeLog?rev=1.1&view=markup |
192 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axTLS/ChangeLog?rev=1.1&content-type=text/plain |
193 |
|
194 |
Index: ChangeLog |
195 |
=================================================================== |
196 |
# ChangeLog for net-libs/axTLS |
197 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
198 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/axTLS/ChangeLog,v 1.1 2012/04/06 17:39:39 blueness Exp $ |
199 |
|
200 |
*axTLS-1.4.5 (06 Apr 2012) |
201 |
|
202 |
06 Apr 2012; Anthony G. Basile <blueness@g.o> +axTLS-1.4.5.ebuild, |
203 |
+files/axhttpd.confd, +files/axhttpd.initd, +files/config, +metadata.xml: |
204 |
Initial commit |
205 |
|
206 |
|
207 |
|
208 |
|
209 |
1.1 net-libs/axTLS/metadata.xml |
210 |
|
211 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axTLS/metadata.xml?rev=1.1&view=markup |
212 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axTLS/metadata.xml?rev=1.1&content-type=text/plain |
213 |
|
214 |
Index: metadata.xml |
215 |
=================================================================== |
216 |
<?xml version="1.0" encoding="UTF-8"?> |
217 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
218 |
<pkgmetadata> |
219 |
<maintainer> |
220 |
<email>blueness@g.o</email> |
221 |
<name>Anthony G. Basile</name> |
222 |
</maintainer> |
223 |
<use> |
224 |
<flag name="httpd">Enables axhttpd web server component</flag> |
225 |
<flag name="static">Statically build axhttpd server</flag> |
226 |
<flag name="cgi-lua">Enables lua backed cgi for axhttpd server</flag> |
227 |
<flag name="cgi-php">Enables php backed cgi for axhttpd server</flag> |
228 |
</use> |
229 |
</pkgmetadata> |