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