SPECS: lighttpd.spec - fcgi-devel is now required - package ghost ...

glen glen at pld-linux.org
Sat Dec 23 00:08:31 CET 2006


Author: glen                         Date: Fri Dec 22 23:08:31 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fcgi-devel is now required
- package ghost lighttpd.rrd

---- Files affected:
SPECS:
   lighttpd.spec (1.202 -> 1.203) 

---- Diffs:

================================================================
Index: SPECS/lighttpd.spec
diff -u SPECS/lighttpd.spec:1.202 SPECS/lighttpd.spec:1.203
--- SPECS/lighttpd.spec:1.202	Thu Dec 21 13:14:13 2006
+++ SPECS/lighttpd.spec	Sat Dec 23 00:08:26 2006
@@ -9,7 +9,6 @@
 #   2006-07-20 21:05:52: (server.c.1233) WARNING: unknown config-key: url.rewrite-final (ignored)
 #
 # NOTES:
-# - fcgi-devel is only used for the test-scripts
 # - disable largefile, if you have 2.4 kernel to get sendfile() support, and don't need > 2GB file requests,
 #   see http://article.gmane.org/gmane.comp.web.lighttpd:722
 #
@@ -39,7 +38,7 @@
 %define		webdav_progs	1
 %endif
 
-%define		_rel 6.1
+%define		_rel 6.2
 Summary:	Fast and light HTTP server
 Summary(pl):	Szybki i lekki serwer HTTP
 Name:		lighttpd
@@ -106,11 +105,13 @@
 Patch1:		%{name}-mod_evasive-status_code.patch
 Patch2:		%{name}-mod_deflate.patch
 Patch3:		%{name}-mod_extforward-v2.patch
+Patch4:		%{name}-mod_expire-weeks.patch
 URL:		http://www.lighttpd.net/
 %{?with_xattr:BuildRequires:	attr-devel}
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	bzip2-devel
+BuildRequires:	fcgi-devel
 %{?with_gamin:BuildRequires:	gamin-devel}
 %{?with_gdbm:BuildRequires:	gdbm-devel}
 %{?with_memcache:BuildRequires:	libmemcache-devel}
@@ -751,6 +752,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch3 -p1
+%patch4 -p1
 
 # build mime.types.conf
 sh %{SOURCE6} /etc/mime.types
@@ -850,6 +852,8 @@
 install %{SOURCE131} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-external.conf
 install %{SOURCE132} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/ssl.conf
 
+touch $RPM_BUILD_ROOT/var/lib/lighttpd/lighttpd.rrd
+
 %if !%{with mysql}
 # avoid packaging dummy module
 rm -f $RPM_BUILD_ROOT%{_libdir}/mod_mysql_vhost.so
@@ -946,7 +950,18 @@
 %module_scripts mod_proxy
 %module_scripts mod_redirect
 %module_scripts mod_rewrite
-%module_scripts mod_rrdtool
+
+%post mod_rrdtool
+if [ ! -f /var/lib/lighttpd/lighttpd.rrd ]; then
+	touch /var/lib/lighttpd/lighttpd.rrd
+	chown lighttpd:stats /var/lib/lighttpd/lighttpd.rrd
+	chmod 640 /var/lib/lighttpd/lighttpd.rrd
+fi
+%module_post
+
+%postun mod_rrdtool
+%module_postun
+
 %module_scripts mod_scgi
 %module_scripts mod_secdownload
 %module_scripts mod_setenv
@@ -1114,6 +1129,7 @@
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rrdtool.conf
 %attr(755,root,root) %{_libdir}/mod_rrdtool.so
+%ghost %attr(640,lighttpd,stats) /var/lib/lighttpd/lighttpd.rrd
 
 %files mod_scgi
 %defattr(644,root,root,755)
@@ -1193,6 +1209,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.203  2006/12/22 23:08:26  glen
+- fcgi-devel is now required
+- package ghost lighttpd.rrd
+
 Revision 1.202  2006/12/21 12:14:13  glen
 - make logs dir owned by root (to protect against malicous cgi-s creating files there)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/lighttpd.spec?r1=1.202&r2=1.203&f=u



More information about the pld-cvs-commit mailing list