From df85ed2e487d61789f4085087f9fea7884d81218 Mon Sep 17 00:00:00 2001 From: kloczek Date: Wed, 13 Dec 2000 17:43:10 +0000 Subject: [PATCH] - release 5, - use more macroc and new rpm automation, - fixed %post, %preun scripts. Changed files: autolog.spec -> 1.16 --- autolog.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/autolog.spec b/autolog.spec index 4824f5f..ff7d75a 100644 --- a/autolog.spec +++ b/autolog.spec @@ -2,12 +2,13 @@ Summary: Terminates connections for idle users. Summary(pl): Przerywa po³±czenia bezczynnych u¿ytkowników. Name: autolog Version: 0.34 -Release: 4 +Release: 5 License: GPL Group: Daemons +Group(de): Server Group(pl): Serwery Source0: ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tgz -Patch0: autolog-0.34.debian.diff +Patch0: %{name}-0.34.debian.diff Requires: /etc/cron.d BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -28,11 +29,11 @@ u %patch -p1 %build -%{__make} CFLAGS="$RPM_OPT_FLAGS" +%{__make} CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g}" %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/{usr/sbin,usr/share/man/{man8,man5},etc/cron.d} +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},etc/cron.d} install autolog $RPM_BUILD_ROOT%{_sbindir} install crontab $RPM_BUILD_ROOT/etc/cron.d/%{name} @@ -40,17 +41,17 @@ install autolog.8 $RPM_BUILD_ROOT%{_mandir}/man8 install autolog.conf $RPM_BUILD_ROOT%{_sysconfdir} install autolog.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* README +gzip -9nf README %post -if test -r /var/run/crond.pid; then +if [ ! -f /var/lock/subsys/crond ]; then /etc/rc.d/init.d/crond restart >&2 else echo "Run \"/etc/rc.d/init.d/crond start\" to activate autolog." fi %postun -if test -r /var/run/crond.pid; then +if [ ! -f /var/lock/subsys/crond ]; then /etc/rc.d/init.d/crond restart >&2 fi -- 2.43.0