commit 05ce7ff532b3b9f83909d582bc9ef375cb81c7cf
Author: Jan RÄ™korajski <[email protected]>
Date:   Thu May 16 21:40:11 2013 +0200

    - migrated to apache 2.4

 memcache-httpd.conf    |  9 +++++++++
 php-pecl-memcache.spec | 10 ++++++----
 2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-memcache.spec b/php-pecl-memcache.spec
index bc9ea19..477a8c0 100644
--- a/php-pecl-memcache.spec
+++ b/php-pecl-memcache.spec
@@ -5,7 +5,7 @@ Summary:        %{modname} - a memcached extension
 Summary(pl.UTF-8):     %{modname} - rozszerzenie memcached
 Name:          php-pecl-%{modname}
 Version:       3.0.6
-Release:       7
+Release:       8
 License:       PHP 3.01
 Group:         Development/Languages/PHP
 Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
@@ -14,6 +14,7 @@ Source1:      %{modname}.ini
 Source2:       %{modname}-apache.conf
 Source3:       %{modname}-lighttpd.conf
 Source4:       config.php
+Source5:       %{modname}-httpd.conf
 Patch0:                %{modname}-webapp.patch
 URL:           http://pecl.php.net/package/memcache/
 BuildRequires: php-devel >= 3:5.0.0
@@ -64,6 +65,7 @@ Requires:     php-gd
 Requires:      php-pcre
 Requires:      webapps
 Requires:      webserver(php) >= 5.0
+Conflicts:     apache-base < 2.4.0-1
 
 %description web
 Via this web interface script you can manage and view statistics of
@@ -93,8 +95,8 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
 cp -a memcache.php $RPM_BUILD_ROOT%{_appdir}
 cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/config.php
 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-cp -a $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -121,10 +123,10 @@ fi
 %triggerun web -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin web -- apache < 2.2.0, apache-base
+%triggerin web -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun web -- apache < 2.2.0, apache-base
+%triggerun web -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerin web -- lighttpd
diff --git a/memcache-httpd.conf b/memcache-httpd.conf
new file mode 100644
index 0000000..bf3ddb1
--- /dev/null
+++ b/memcache-httpd.conf
@@ -0,0 +1,9 @@
+Alias /memcache.php /usr/share/memcache/memcache.php
+
+<Directory /usr/share/memcache>
+       # Allow from localhost only.
+       # IMPORTANT: if you allow from elsewhere, be sure to change admin
+       # username/password in config.php otherwise you make your page password 
easily
+       # guessable.
+       Require local
+</Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-memcache.git/commitdiff/05ce7ff532b3b9f83909d582bc9ef375cb81c7cf

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to