Author: glen                         Date: Mon Sep 17 10:00:00 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add lighttpd integration; rel 3

---- Files affected:
SPECS:
   php-xcache.spec (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SPECS/php-xcache.spec
diff -u SPECS/php-xcache.spec:1.15 SPECS/php-xcache.spec:1.16
--- SPECS/php-xcache.spec:1.15  Thu Jul  5 13:19:06 2007
+++ SPECS/php-xcache.spec       Mon Sep 17 11:59:54 2007
@@ -4,12 +4,14 @@
 Summary(pl.UTF-8):     %{_modname} - buforowanie opcodów PHP
 Name:          php-%{_modname}
 Version:       1.2.1
-Release:       2
+Release:       3
 License:       BSD
 Group:         Development/Languages/PHP
 URL:           http://xcache.lighttpd.net/
 Source0:       
http://xcache.lighttpd.net/pub/Releases/1.2.1/xcache-%{version}.tar.bz2
 # Source0-md5: 42133468871c573c397b8375dc8c19b6
+Source1:       xcache-apache.conf
+Source2:       xcache-lighttpd.conf
 BuildRequires: php-devel >= 3:5.1
 BuildRequires: rpmbuild(macros) >= 1.344
 BuildRequires: sed >= 4.0
@@ -37,13 +39,6 @@
        s,zend_extension_ts = .*,zend_extension_ts = 
%{php_extensiondir}/xcache.so,
 ' xcache.ini
 
-cat > apache.conf <<'EOF'
-Alias /xcache %{_appdir}
-<Directory %{_appdir}>
-       Allow from 127.0.0.1
-</Directory>
-EOF
-
 %build
 phpize
 %configure \
@@ -67,8 +62,9 @@
 install xcache.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
 install admin/* $RPM_BUILD_ROOT%{_appdir}
 
-install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -93,6 +89,12 @@
 %triggerun -- apache < 2.2.0, apache-base
 %webapp_unregister httpd %{_webapp}
 
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS README THANKS
@@ -109,6 +111,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2007/09/17 09:59:54  glen
+- add lighttpd integration; rel 3
+
 Revision 1.15  2007/07/05 11:19:06  glen
 - allow admin from localhost by default
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-xcache.spec?r1=1.15&r2=1.16&f=u

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to