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

fetchmail.spec

index 666f680a770f4fb79066539246b5fb0eee2b5fb4..66a6236a34baacf6dcc3b2ea671930a5a92e0293 100644 (file)
@@ -178,20 +178,10 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
 %find_lang %{name}
 
 %post daemon
-/sbin/chkconfig --add fetchmail
-if [ -f /var/lock/subsys/fetchmail ]; then
-       /etc/rc.d/init.d/fetchmail restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/fetchmail start\" to start fetchmail daemon."
-fi
+DESC="fetchmail daemon"; %chkconfig_add
 
 %preun daemon
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/fetchmail ]; then
-               /etc/rc.d/init.d/fetchmail stop >&2
-       fi
-       /sbin/chkconfig --del fetchmail
-fi
+%chkconfig_del
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.039394 seconds and 4 git commands to generate.