]> git.pld-linux.org Git - packages/dictd.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:
    dictd.spec -> 1.8

dictd.spec

index fb255649a4f9dee94870e0255de5887f7046eb86..5a18d7b3b76ef30d004bc8e2449aad17646f61a4 100644 (file)
@@ -108,18 +108,10 @@ gzip -9nf {ANNOUNCE,ChangeLog,README,TODO,%{name}.conf,example*.conf,example.sit
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsystem/%{name} ]; then
-        /etc/rc.d/init.d/%{name} restart >&2
-else
-        echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+DESC="dictd daemon"; %chkconfig_add
     
 %preun
-if [ $1 = 0 ]; then
-        /sbin/chkconfig --del %{name}
-        /etc/rc.d/init.d/%{name} stop >&2 || true
-fi
+%chkconfig_del
 
 %files
 %defattr(644,root,root,755)
This page took 0.119738 seconds and 4 git commands to generate.