]> git.pld-linux.org Git - packages/dnprogs.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:43 +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:
    dnprogs.spec -> 1.18

dnprogs.spec

index 5a881d427d40fa0343f59f54cf42fa99d7feda75..3be1d6befb4987f9d88a952e9737306fb455c414 100644 (file)
@@ -84,14 +84,14 @@ install scripts/decnet.sh $RPM_BUILD_ROOT/etc/rc.d/init.d/decnet
 rm -rf $RPM_BUILD_ROOT
 
 %post 
-/sbin/chkconfig --add decnet
+NAME=decnet; %chkconfig_add
 /sbin/ldconfig
 
+%preun
+NAME=decnet; %chkconfig_del
+
 %postun
 /sbin/ldconfig
-if [ $1 = 0 ]; then
-    /sbin/chkconfig --del decnet
-fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.091589 seconds and 4 git commands to generate.