]> git.pld-linux.org Git - packages/apache-mod_dosevasive.git/blobdiff - apache-mod_dosevasive.spec
- use %service
[packages/apache-mod_dosevasive.git] / apache-mod_dosevasive.spec
index af5b3e18eb5424e49a9c0412ad89d183d9ebfe41..e3f53126553ba73ae6408f9539ec21a8190de65b 100644 (file)
@@ -13,6 +13,7 @@ Source1:      %{name}.conf
 URL:           http://www.nuclearelephant.com/projects/dosevasive/
 BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: zlib-devel
 Requires:      apache(modules-api) = %apache_modules_api
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -54,15 +55,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/80_mod_%{mod_name}.c
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q httpd restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
-       fi
+       %service -q httpd restart
 fi
 
 %files
This page took 0.045177 seconds and 4 git commands to generate.