SPECS: php-eaccelerator.spec - eaccelerator.php in webinterface pa...

hunter hunter at pld-linux.org
Sun Sep 11 19:04:38 CEST 2005


Author: hunter                       Date: Sun Sep 11 17:04:38 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- eaccelerator.php in webinterface package
- configfile  

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

---- Diffs:

================================================================
Index: SPECS/php-eaccelerator.spec
diff -u SPECS/php-eaccelerator.spec:1.15 SPECS/php-eaccelerator.spec:1.16
--- SPECS/php-eaccelerator.spec:1.15	Wed Sep  7 16:13:03 2005
+++ SPECS/php-eaccelerator.spec	Sun Sep 11 19:04:32 2005
@@ -14,6 +14,7 @@
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/eaccelerator/%{_pkgname}-%{version}.tar.gz
 # Source0-md5:	b17ddf953f18ee6df5c2c24ffccb37d9
+Source1:	%{_name}.ini 
 URL:		http://eaccelerator.net/
 BuildRequires:	libtool
 BuildRequires:	php-devel >= 3:5.0.0
@@ -38,6 +39,30 @@
 postaci skompilowanej, dzięki czemu narzut potrzebny na kompilację
 jest prawie całkowicie wyeliminowany.
 
+
+%package webinterface
+Summary:    WEB interface for PHP Accelerator
+Summary(pl):    Interfejs WEB dla PHP Accelerator
+Group:      Libraries
+Requires:   %{name} = %{epoch}:%{version}-%{release}
+
+%description webinterface
+PHP Accelerator can be managed through web interface script mmcache.php.
+So you need to put this file on your web site. For security reasons it
+is recommended to restrict the usage of this script by your local IP and
+setup password based access.
+
+More information you can find at %{url}.
+
+%description webinterface -l pl
+PHP Accelerator może być sterowany ze strony internetowej z
+wykorzystaniem skryptu eaccelerator.php. Jedyne co trzeba zrobić, to
+umieścić plik we właściwym miejscu na stronie internetowej. Z powodów
+bezpieczeństwa zalecane jest, aby ograniczyć korzystanie ze skryptu do
+lokalnego adresu i ustawić autoryzację hasłem
+
+Więcej informacji można znaleźć %{url}.
+
 %prep
 %setup -q -n %{_pkgname}-%{version}
 
@@ -52,10 +77,13 @@
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{extensionsdir}
 install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT/etc/php/conf.d
 
 install ./modules/eaccelerator.so $RPM_BUILD_ROOT%{extensionsdir}
 install ./encoder.php $RPM_BUILD_ROOT%{_bindir}
 
+install %{SOURCE1}	$RPM_BUILD_ROOT/etc/php/conf.d/%{_name}.ini
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -72,6 +100,12 @@
 %doc README
 %attr(755,root,root) %{extensionsdir}/eaccelerator.so
 %attr(755,root,root) %{_bindir}/encoder.php
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/php/conf.d/eaccelerator.ini
+
+%files webinterface
+%defattr(644,root,root,755)
+# FIXME: czy tak rzeczywiście powinno/może być??
+%doc eaccelerator{,_password}.php
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -79,6 +113,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2005/09/11 17:04:32  hunter
+- eaccelerator.php in webinterface package
+- configfile
+
 Revision 1.15  2005/09/07 14:13:03  glen
 - phpize already calls aclocal
 
================================================================

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




More information about the pld-cvs-commit mailing list