]> git.pld-linux.org Git - packages/apache1-mod_auth_samba.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 14 Apr 2006 16:50:13 +0000 (16:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_auth_samba.spec -> 1.34

apache1-mod_auth_samba.spec

index 2f7e929809afd76f9bd60ee39437e867767951ce..d052a87864744b334acd299340980061d32ebc06 100644 (file)
@@ -19,10 +19,11 @@ BuildRequires:      apache1-devel >= 1.3.33-2
 BuildRequires: gdbm-devel
 BuildRequires: pam-devel
 BuildRequires: pam-pam_smb
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(triggerpostun):       %{apxs}
 Requires:      apache1 >= 1.3.33-2
 Requires:      pam-pam_smb
-Obsoletes:     apache-mod_%{mod_name} <= %{epoch}:%{version}
+Obsoletes:     apache-mod_auth_samba <= %{epoch}:%{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -58,15 +59,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/apache ]; then
-       /etc/rc.d/init.d/apache restart 1>&2
-fi
+%service -q apache restart
 
 %postun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+       %service -q apache restart
 fi
 
 %triggerpostun -- apache1-mod_%{mod_name} < 1:1.1-2.1
This page took 0.059263 seconds and 4 git commands to generate.