]> git.pld-linux.org Git - packages/autolog.git/blobdiff - autolog.spec
s-/usr/sbin-%{_sbindir}-
[packages/autolog.git] / autolog.spec
index 448c8287eb90f37947f680e4b5a52bb096637c97..c519b8e6a5316d09e563671fe1b51ed7118e175e 100644 (file)
@@ -2,10 +2,10 @@ Summary:      Terminates connections for idle users.
 Summary(pl):   Przerywa po³±czenia bezczynnych u¿ytkowników.
 Name:          autolog
 Version:       0.34
-Release:       1
+Release:       2
 Copyright:     GPL
 Group:         Daemons
-Group(pl):     Demony
+Group(pl):     Serwery
 Source:                ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tgz
 Patch:         autolog-0.34.debian.diff
 Requires:      /etc/crontab.d
@@ -33,13 +33,27 @@ make CFLAGS="$RPM_OPT_FLAGS"
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/{usr/sbin,usr/man/{man8,man5},etc/crontab.d}
 
-install autolog $RPM_BUILD_ROOT/usr/sbin
+install autolog $RPM_BUILD_ROOT%{_sbindir}
 install crontab $RPM_BUILD_ROOT/etc/crontab.d/%{name}
-install autolog.8 $RPM_BUILD_ROOT/usr/man/man8
+install autolog.8 $RPM_BUILD_ROOT%{_mandir}/man8
 install autolog.conf $RPM_BUILD_ROOT/etc
-install autolog.conf.5 $RPM_BUILD_ROOT/usr/man/man5
+install autolog.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
 
-gzip -9nf README
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* README 
+
+%post
+if test -r /var/run/crond.pid; then
+       /etc/rc.d/init.d/crond stop >&2
+       /etc/rc.d/init.d/crond start >&2
+else
+       echo "Run \"/etc/rc.d/init.d/crond start\" to activate autolog."
+fi
+
+%postun
+if test -r /var/run/crond.pid; then
+       /etc/rc.d/init.d/crond stop >&2
+       /etc/rc.d/init.d/crond start >&2
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -47,11 +61,17 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755) 
 %doc README.gz
-%attr(700,root,root) /usr/sbin/autolog
+%attr(700,root,root) %{_sbindir}/autolog
 %attr(700,root,root) /etc/crontab.d/autolog
 %attr(600,root,root) %config(noreplace) /etc/autolog.conf
-/usr/man/man8/*
+%{_mandir}/man8/*
 
 %changelog
+* Tue Apr  6 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
+  [0.34-2]
+- changed Group(pl),
+- added %post, %preun with restarting crond on install, upgrade and
+  uninstall autolog; this allow automated {de}activate autolog.
+
 * Fri Oct 16 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
 - initial rpm release.
This page took 0.097072 seconds and 4 git commands to generate.