SPECS: php4-eaccelerator.spec - add eaccelerator.ini - add cachedi...
glen
glen at pld-linux.org
Wed Aug 24 13:00:29 CEST 2005
Author: glen Date: Wed Aug 24 11:00:29 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add eaccelerator.ini
- add cachedir
- add more utility scripts
---- Files affected:
SPECS:
php4-eaccelerator.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/php4-eaccelerator.spec
diff -u SPECS/php4-eaccelerator.spec:1.7 SPECS/php4-eaccelerator.spec:1.8
--- SPECS/php4-eaccelerator.spec:1.7 Wed Aug 24 12:25:10 2005
+++ SPECS/php4-eaccelerator.spec Wed Aug 24 13:00:24 2005
@@ -7,13 +7,14 @@
Summary(pl): Moduł eAccelerator dla PHP
Name: php4-%{_name}
Version: 0.9.3
-Release: 1.1
+Release: 1.5
Epoch: 0
License: GPL
Vendor: Turck Software
Group: Libraries
Source0: http://dl.sourceforge.net/eaccelerator/%{_pkgname}-%{version}.tar.gz
# Source0-md5: b17ddf953f18ee6df5c2c24ffccb37d9
+Source1: %{name}.ini
URL: http://eaccelerator.sourceforge.net/
BuildRequires: automake
BuildRequires: libtool
@@ -51,15 +52,13 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{extensionsdir},%{_bindir},%{_sysconfdir}/conf.d}
+install -d $RPM_BUILD_ROOT{%{extensionsdir},%{_bindir},%{_sysconfdir}/conf.d,/var/cache/%{_name}}
install ./modules/eaccelerator.so $RPM_BUILD_ROOT%{extensionsdir}
install ./encoder.php $RPM_BUILD_ROOT%{_bindir}
-
-cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_name}.ini
-; Enable %{_name} extension module
-extension=%{_name}.so
-EOF
+install ./eaccelerator_password.php $RPM_BUILD_ROOT%{_bindir}
+install ./eaccelerator.php $RPM_BUILD_ROOT%{_bindir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_name}.ini
%clean
rm -rf $RPM_BUILD_ROOT
@@ -69,15 +68,24 @@
[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
%postun
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+if [ "$1" = 0 ]; then
+ [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
+ [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+fi
+
+%preun
+if [ "$1" = 0 ]; then
+ # remove last pieces of cache
+ rm -f /var/cache/%{_name}/*
+fi
%files
%defattr(644,root,root,755)
%doc README
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/%{_name}.ini
%attr(755,root,root) %{extensionsdir}/eaccelerator.so
-%attr(755,root,root) %{_bindir}/encoder.php
+%attr(755,root,root) %{_bindir}/*
+%attr(770,root,http) /var/cache/%{_name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -85,6 +93,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2005/08/24 11:00:24 glen
+- add eaccelerator.ini
+- add cachedir
+- add more utility scripts
+
Revision 1.7 2005/08/24 10:25:10 glen
- use .ini file in conf.d directory
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php4-eaccelerator.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list