]> git.pld-linux.org Git - packages/autolog.git/commitdiff
- update finished, works for me
authorTomek Orzechowski <orzech@pld-linux.org>
Sun, 21 Oct 2001 21:30:47 +0000 (21:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    autolog.spec -> 1.23

autolog.spec

index edb4272fb4b335a3a56593cb47b10d73df74f941..cb993d120033ba9c244dc0a4503ef6c4a37619b5 100644 (file)
@@ -8,6 +8,7 @@ Group:          Daemons
 Group(de):     Server
 Group(pl):     Serwery
 Source0:       ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tar.gz
+Source1:       autolog.init
 Prereq:                chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,21 +41,23 @@ install autolog $RPM_BUILD_ROOT%{_sbindir}
 install autolog.conf $RPM_BUILD_ROOT%{_sysconfdir}
 install autolog.8.gz $RPM_BUILD_ROOT%{_mandir}/man8
 install autolog.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5
-install autolog.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
 
 gzip -9nf README CHANGES 
 
 %post
+/sbin/chkconfig --add autolog
 if [ ! -f /var/lock/subsys/crond ]; then
-       /etc/rc.d/init.d/crond restart >&2
+       /etc/rc.d/init.d/autolog restart >&2
 else
-       echo "Run \"/etc/rc.d/init.d/crond start\" to activate autolog."
+       echo "Run \"/etc/rc.d/init.d/autolog start\" to activate autolog."
 fi
 
-%postun
-if [ ! -f /var/lock/subsys/crond ]; then
-       /etc/rc.d/init.d/crond restart >&2
+%preun
+if [ ! -f /var/lock/subsys/autolog ]; then
+       /etc/rc.d/init.d/autolog stop >&2
 fi
+/sbin/chkconfig --del autolog
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.080326 seconds and 4 git commands to generate.