Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/axtls: axtls-1.4.6.ebuild ChangeLog metadata.xml
Date: Sat, 26 May 2012 05:58:21
Message-Id: 20120526055811.AF2392004B@flycatcher.gentoo.org
1 blueness 12/05/26 05:58:11
2
3 Added: axtls-1.4.6.ebuild ChangeLog metadata.xml
4 Log:
5 Move from axTLS and version bump
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.6.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/axtls-1.4.6.ebuild?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/axtls-1.4.6.ebuild?rev=1.1&content-type=text/plain
14
15 Index: axtls-1.4.6.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.6.ebuild,v 1.1 2012/05/26 05:58:11 blueness Exp $
20
21 EAPI="4"
22
23 inherit savedconfig toolchain-funcs user
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-${PV}
43 #
44 # where ${PV} is 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 MY_PN=${PN/tls/TLS}
52
53 DESCRIPTION="Embedded client/server TLSv1 SSL library and small HTTP(S) server"
54 HOMEPAGE="http://axtls.sourceforge.net/"
55 SRC_URI="mirror://sourceforge/axtls/${MY_PN}-${PV}.tar.gz"
56 S="${WORKDIR}/${MY_PN}"
57
58 LICENSE="BSD"
59 SLOT="0"
60 KEYWORDS="~amd64 ~x86"
61 IUSE="httpd cgi-lua cgi-php static doc"
62
63 # TODO: add ipv6, and c#, java, lua, perl bindings
64 # Currently these all have some issue
65 DEPEND="doc? ( app-doc/doxygen )"
66 RDEPEND="
67 httpd? (
68 cgi-lua? ( dev-lang/lua )
69 cgi-php? ( dev-lang/php[cgi] )
70 )"
71
72 #Note1: static, cgi-* makes no sense if httpd is not given
73 REQUIRED_USE="
74 static? ( httpd )
75 cgi-lua? ( httpd )
76 cgi-php? ( httpd )"
77
78 AXTLS_GROUP="axtls"
79 AXTLS_USER="axtls"
80
81 pkg_setup() {
82 use httpd && {
83 ebegin "Creating axtls user and group"
84 enewgroup ${AXTLS_GROUP}
85 enewuser ${AXTLS_USER} -1 -1 -1 ${AXTLS_GROUP}
86 }
87 }
88
89 src_prepare() {
90 tc-export CC
91
92 #Use CC as the host compiler for mconf
93 sed -i -e "s:^HOSTCC.*:HOSTCC=${CC}:" \
94 "${S}"/config/Rules.mak
95
96 #We want CONFIG_DEBUG to avoid stripping
97 #but not for debugging info
98 sed -i -e 's: -g::' \
99 "${S}"/config/Rules.mak
100 sed -i -e 's: -g::' \
101 "${S}"/config/makefile.conf
102 }
103
104 use_flag_config() {
105 cp "${FILESDIR}"/config "${S}"/config/.config
106
107 #Respect CFLAGS/LDFLAGS
108 sed -i -e "s:^CONFIG_EXTRA_CFLAGS_OPTIONS.*$:CONFIG_EXTRA_CFLAGS_OPTIONS=\"${CFLAGS}\":" \
109 "${S}"/config/.config
110 sed -i -e "s:^CONFIG_EXTRA_LDFLAGS_OPTIONS.*$:CONFIG_EXTRA_LDFLAGS_OPTIONS=\"${LDLAGS}\":" \
111 "${S}"/config/.config
112
113 #The logic is that the default config file enables everything and we disable
114 #here with sed unless a USE flags says to keep it
115 if use httpd; then
116 if ! use static; then
117 sed -i -e 's:^CONFIG_HTTP_STATIC_BUILD:# CONFIG_HTTP_STATIC_BUILD:' \
118 "${S}"/config/.config
119 fi
120 if ! use cgi-php && ! use cgi-lua; then
121 sed -i -e 's:^CONFIG_HTTP_HAS_CGI:# CONFIG_HTTP_HAS_CGI:' \
122 "${S}"/config/.config
123 fi
124 if ! use cgi-php; then
125 sed -i -e 's:,.php::' "${S}"/config/.config
126 fi
127 if ! use cgi-lua; then
128 sed -i -e 's:\.lua,::' \
129 -e 's:lua:php:' \
130 -e 's:^CONFIG_HTTP_ENABLE_LUA:# CONFIG_HTTP_ENABLE_LUA:' \
131 "${S}"/config/.config
132 fi
133 else
134 sed -i -e 's:^CONFIG_AXHTTPD:# CONFIG_AXHTTPD:' \
135 "${S}"/config/.config
136 fi
137
138 yes "n" | emake -j1 oldconfig > /dev/null
139 }
140
141 src_configure() {
142 tc-export CC
143
144 if use savedconfig; then
145 restore_config config/.config
146 if [ -f config/.config ]; then
147 ewarn "Using saved config, all other USE flags ignored"
148 else
149 ewarn "No saved config, seeding with the default"
150 cp "${FILESDIR}"/config "${S}"/config/.config
151 fi
152 yes "" | emake -j1 oldconfig > /dev/null
153 else
154 use_flag_config
155 fi
156 }
157
158 src_compile() {
159 default
160 if use doc; then
161 emake docs
162 mv www README
163 fi
164 }
165
166 src_install() {
167 if use savedconfig; then
168 save_config config/.config
169 fi
170
171 emake PREFIX="${ED}/usr" install
172 if [ -f "${ED}"/usr/bin/htpasswd ]; then
173 mv "${ED}"/usr/bin/{,ax}htpasswd
174 fi
175
176 if use httpd; then
177 newinitd "${FILESDIR}"/axhttpd.initd axhttpd
178 newconfd "${FILESDIR}"/axhttpd.confd axhttpd
179 fi
180
181 docompress -x /usr/share/doc/${PF}/README
182 dodoc -r README
183
184 if use doc; then
185 dodoc -r docsrc/html
186 fi
187 }
188
189
190
191 1.1 net-libs/axtls/ChangeLog
192
193 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/ChangeLog?rev=1.1&view=markup
194 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/ChangeLog?rev=1.1&content-type=text/plain
195
196 Index: ChangeLog
197 ===================================================================
198 # ChangeLog for net-libs/axtls
199 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
200 # $Header: /var/cvsroot/gentoo-x86/net-libs/axtls/ChangeLog,v 1.1 2012/05/26 05:58:11 blueness Exp $
201
202 *axtls-1.4.6 (26 May 2012)
203
204 26 May 2012; Anthony G. Basile <blueness@g.o> +axtls-1.4.6.ebuild,
205 +files/axhttpd.confd, +files/axhttpd.initd, +files/config, +metadata.xml:
206 Move from axTLS and version bump
207
208 07 Apr 2012; Anthony G. Basile <blueness@g.o> axTLS-1.4.5.ebuild,
209 +files/axTLS-add-missing-include.patch:
210 Add missing #include header for bigint_impl.h
211 http://sourceforge.net/tracker/?func=detail&aid=3515628&group_id=171217&atid=
212 857113
213
214 07 Apr 2012; Anthony G. Basile <blueness@g.o> files/config:
215 Increase max X509 CA certs and chain length to work with ca-certificates
216
217 07 Apr 2012; Anthony G. Basile <blueness@g.o> axTLS-1.4.5.ebuild:
218 Add missing depend on doxygen if USE=doc
219
220 *axTLS-1.4.5 (06 Apr 2012)
221
222 06 Apr 2012; Anthony G. Basile <blueness@g.o> +axTLS-1.4.5.ebuild,
223 +files/axhttpd.confd, +files/axhttpd.initd, +files/config, +metadata.xml:
224 Initial commit
225
226
227
228
229 1.1 net-libs/axtls/metadata.xml
230
231 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/metadata.xml?rev=1.1&view=markup
232 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/axtls/metadata.xml?rev=1.1&content-type=text/plain
233
234 Index: metadata.xml
235 ===================================================================
236 <?xml version="1.0" encoding="UTF-8"?>
237 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
238 <pkgmetadata>
239 <maintainer>
240 <email>blueness@g.o</email>
241 <name>Anthony G. Basile</name>
242 </maintainer>
243 <use>
244 <flag name="httpd">Enables axhttpd web server component</flag>
245 <flag name="static">Statically build axhttpd server</flag>
246 <flag name="cgi-lua">Enables lua backed cgi for axhttpd server</flag>
247 <flag name="cgi-php">Enables php backed cgi for axhttpd server</flag>
248 </use>
249 </pkgmetadata>