+++ /dev/null
-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>
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_name}-devel >= 3:5.0.0
Requires: php(pcre)
Requires: webapps
Requires: webserver(php) >= 5.0
-Conflicts: apache-base < 2.4.0-1
%if "%{_rpmversion}" >= "5"
BuildArch: noarch
%endif
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
%triggerun web -- apache1 < 1.3.37-3, apache1-base
%webapp_unregister apache %{_webapp}
-%triggerin web -- apache-base
+%triggerin web -- apache < 2.2.0, apache-base
%webapp_register httpd %{_webapp}
-%triggerun web -- apache-base
+%triggerun web -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
%triggerin web -- lighttpd