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