1 |
hwoarang 11/07/04 14:43:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lighttpd-1.4.29.ebuild |
5 |
Log: |
6 |
version bump. EAPI4fy |
7 |
|
8 |
(Portage version: 2.2.0_alpha42/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.248 www-servers/lighttpd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.248&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?rev=1.248&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/ChangeLog?r1=1.247&r2=1.248 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v |
20 |
retrieving revision 1.247 |
21 |
retrieving revision 1.248 |
22 |
diff -u -r1.247 -r1.248 |
23 |
--- ChangeLog 13 May 2011 14:06:56 -0000 1.247 |
24 |
+++ ChangeLog 4 Jul 2011 14:43:13 -0000 1.248 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-servers/lighttpd |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.247 2011/05/13 14:06:56 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/ChangeLog,v 1.248 2011/07/04 14:43:13 hwoarang Exp $ |
30 |
+ |
31 |
+*lighttpd-1.4.29 (04 Jul 2011) |
32 |
+ |
33 |
+ 04 Jul 2011; Markos Chandras <hwoarang@g.o> +lighttpd-1.4.29.ebuild: |
34 |
+ version bump. EAPI4fy |
35 |
|
36 |
13 May 2011; Markos Chandras <hwoarang@g.o> files/lighttpd.initd: |
37 |
Fix another typo. Bug #367065 |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-servers/lighttpd/lighttpd-1.4.29.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.29.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.29.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: lighttpd-1.4.29.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.29.ebuild,v 1.1 2011/07/04 14:43:13 hwoarang Exp $ |
51 |
|
52 |
EAPI="4" |
53 |
|
54 |
inherit base eutils depend.php |
55 |
|
56 |
DESCRIPTION="Lightweight high-performance web server" |
57 |
HOMEPAGE="http://www.lighttpd.net/" |
58 |
SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="BSD" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
63 |
IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev lua minimal memcache mysql pcre php rrdtool ssl test webdav xattr zlib" |
64 |
|
65 |
REQUIRED_USE="kerberos? ( ssl )" |
66 |
|
67 |
RDEPEND=" |
68 |
bzip2? ( app-arch/bzip2 ) |
69 |
fam? ( virtual/fam ) |
70 |
gdbm? ( sys-libs/gdbm ) |
71 |
ldap? ( >=net-nds/openldap-2.1.26 ) |
72 |
libev? ( >=dev-libs/libev-4.01 ) |
73 |
lua? ( >=dev-lang/lua-5.1 ) |
74 |
memcache? ( dev-libs/libmemcache ) |
75 |
mysql? ( >=virtual/mysql-4.0 ) |
76 |
pcre? ( >=dev-libs/libpcre-3.1 ) |
77 |
php? ( dev-lang/php[cgi] ) |
78 |
rrdtool? ( net-analyzer/rrdtool ) |
79 |
ssl? ( >=dev-libs/openssl-0.9.7[kerberos?] ) |
80 |
webdav? ( |
81 |
dev-libs/libxml2 |
82 |
>=dev-db/sqlite-3 |
83 |
sys-fs/e2fsprogs |
84 |
) |
85 |
xattr? ( kernel_linux? ( sys-apps/attr ) ) |
86 |
zlib? ( >=sys-libs/zlib-1.1 )" |
87 |
|
88 |
DEPEND="${RDEPEND} |
89 |
dev-util/pkgconfig |
90 |
doc? ( dev-python/docutils ) |
91 |
test? ( |
92 |
virtual/perl-Test-Harness |
93 |
dev-libs/fcgi |
94 |
)" |
95 |
|
96 |
# update certain parts of lighttpd.conf based on conditionals |
97 |
update_config() { |
98 |
local config="/etc/lighttpd/lighttpd.conf" |
99 |
|
100 |
# enable php/mod_fastcgi settings |
101 |
use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; } |
102 |
|
103 |
# enable stat() caching |
104 |
use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; } |
105 |
|
106 |
# automatically listen on IPv6 if built with USE=ipv6. Bug #234987 |
107 |
use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; } |
108 |
} |
109 |
|
110 |
# remove non-essential stuff (for USE=minimal) |
111 |
remove_non_essential() { |
112 |
local libdir="${D}/usr/$(get_libdir)/${PN}" |
113 |
|
114 |
# text docs |
115 |
use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt |
116 |
|
117 |
# non-essential modules |
118 |
rm -f \ |
119 |
${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.* |
120 |
|
121 |
# allow users to keep some based on USE flags |
122 |
use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.* |
123 |
use webdav || rm -f ${libdir}/mod_webdav.* |
124 |
use mysql || rm -f ${libdir}/mod_mysql_vhost.* |
125 |
use lua || rm -f ${libdir}/mod_{cml,magnet}.* |
126 |
use rrdtool || rm -f ${libdir}/mod_rrdtool.* |
127 |
use zlib || rm -f ${libdir}/mod_compress.* |
128 |
} |
129 |
|
130 |
pkg_setup() { |
131 |
if ! use pcre ; then |
132 |
ewarn "It is highly recommended that you build ${PN}" |
133 |
ewarn "with perl regular expressions support via USE=pcre." |
134 |
ewarn "Otherwise you lose support for some core options such" |
135 |
ewarn "as conditionals and modules such as mod_re{write,direct}" |
136 |
ewarn "and mod_ssi." |
137 |
fi |
138 |
|
139 |
enewgroup lighttpd |
140 |
enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd |
141 |
} |
142 |
|
143 |
src_configure() { |
144 |
econf --libdir=/usr/$(get_libdir)/${PN} \ |
145 |
--enable-lfs \ |
146 |
$(use_enable ipv6) \ |
147 |
$(use_with bzip2) \ |
148 |
$(use_with fam) \ |
149 |
$(use_with gdbm) \ |
150 |
$(use_with kerberos kerberos5) \ |
151 |
$(use_with ldap) \ |
152 |
$(use_with libev) \ |
153 |
$(use_with lua) \ |
154 |
$(use_with memcache) \ |
155 |
$(use_with mysql) \ |
156 |
$(use_with pcre) \ |
157 |
$(use_with ssl openssl) \ |
158 |
$(use_with webdav webdav-props) \ |
159 |
$(use_with webdav webdav-locks) \ |
160 |
$(use_with xattr attr) \ |
161 |
$(use_with zlib) |
162 |
} |
163 |
|
164 |
src_compile() { |
165 |
emake || die "emake failed" |
166 |
|
167 |
if use doc ; then |
168 |
einfo "Building HTML documentation" |
169 |
cd doc |
170 |
emake html || die "failed to build HTML documentation" |
171 |
fi |
172 |
} |
173 |
|
174 |
src_test() { |
175 |
if [[ ${EUID} -eq 0 ]]; then |
176 |
default_src_test |
177 |
else |
178 |
ewarn "test skipped, please re-run as root if you wish to test ${PN}" |
179 |
fi |
180 |
} |
181 |
|
182 |
src_install() { |
183 |
make DESTDIR="${D}" install || die "make install failed" |
184 |
|
185 |
# init script stuff |
186 |
newinitd "${FILESDIR}"/lighttpd.initd lighttpd || die |
187 |
newconfd "${FILESDIR}"/lighttpd.confd lighttpd || die |
188 |
use fam && has_version app-admin/fam && \ |
189 |
sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd |
190 |
|
191 |
# configs |
192 |
insinto /etc/lighttpd |
193 |
doins "${FILESDIR}"/conf/lighttpd.conf |
194 |
doins "${FILESDIR}"/conf/mime-types.conf |
195 |
doins "${FILESDIR}"/conf/mod_cgi.conf |
196 |
doins "${FILESDIR}"/conf/mod_fastcgi.conf |
197 |
# Secure directory for fastcgi sockets |
198 |
keepdir /var/run/lighttpd/ |
199 |
fperms 0750 /var/run/lighttpd/ |
200 |
fowners lighttpd:lighttpd /var/run/lighttpd/ |
201 |
|
202 |
# update lighttpd.conf directives based on conditionals |
203 |
update_config |
204 |
|
205 |
# docs |
206 |
dodoc AUTHORS README NEWS doc/scripts/*.sh |
207 |
newdoc doc/config//lighttpd.conf lighttpd.conf.distrib |
208 |
|
209 |
use doc && dohtml -r doc/* |
210 |
|
211 |
docinto txt |
212 |
dodoc doc/outdated/*.txt || die |
213 |
|
214 |
# logrotate |
215 |
insinto /etc/logrotate.d |
216 |
newins "${FILESDIR}"/lighttpd.logrotate lighttpd || die |
217 |
|
218 |
keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs |
219 |
fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd |
220 |
fperms 0750 /var/l{ib,og}/lighttpd |
221 |
|
222 |
#spawn-fcgi may optionally be installed via www-servers/spawn-fcgi |
223 |
rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.* |
224 |
|
225 |
use minimal && remove_non_essential |
226 |
} |
227 |
|
228 |
pkg_postinst () { |
229 |
if use ipv6; then |
230 |
elog "IPv6 migration guide:" |
231 |
elog "http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config" |
232 |
fi |
233 |
if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then |
234 |
einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi." |
235 |
einfo "spawn-fcgi's init script configuration is now located" |
236 |
einfo "at /etc/conf.d/spawn-fcgi." |
237 |
fi |
238 |
|
239 |
if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then |
240 |
elog "Gentoo has a customized configuration," |
241 |
elog "which is now located in /etc/lighttpd. Please migrate your" |
242 |
elog "existing configuration." |
243 |
fi |
244 |
} |