]> git.pld-linux.org Git - packages/firewall-init-ipchains.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:44 +0000 (16:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    firewall-init-ipchains.spec -> 1.18

firewall-init-ipchains.spec

index 956dd43a4370c69de0b5c3cd99b52662648ec7ad..c25b28b0a1d3c68f376eb84e96ff8cde09629285 100644 (file)
@@ -41,12 +41,10 @@ for i in input output forward; do
 done
 
 %post
-/sbin/chkconfig --add firewall
+NAME=firewall; %chkconfig_add
 
-%postun
-if [ "$1" = "0" ]; then
-       /sbin/chkconfig --del firewall
-fi
+%preun
+NAME=firewall; %chkconfig_del
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.073837 seconds and 4 git commands to generate.