]> git.pld-linux.org Git - packages/autolog.git/commitdiff
- release 5, autolog-0_34-5
authorkloczek <kloczek@pld-linux.org>
Wed, 13 Dec 2000 17:43:10 +0000 (17:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use more macroc and new rpm automation,
- fixed %post, %preun scripts.

Changed files:
    autolog.spec -> 1.16

autolog.spec

index 4824f5f6284a3d538d091232b88214996f0e707e..ff7d75abf8a8f0967af2b3dcffa951bcaf7970a0 100644 (file)
@@ -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
 
This page took 0.084986 seconds and 4 git commands to generate.