]> git.pld-linux.org Git - packages/autolog.git/blobdiff - autolog.spec
- release 5,
[packages/autolog.git] / autolog.spec
index 696cecd3f90f9cb50817ed443332ea8fa51e428e..ff7d75abf8a8f0967af2b3dcffa951bcaf7970a0 100644 (file)
@@ -2,80 +2,66 @@ Summary:      Terminates connections for idle users.
 Summary(pl):   Przerywa po³±czenia bezczynnych u¿ytkowników.
 Name:          autolog
 Version:       0.34
-Release:       3
-Copyright:     GPL
+Release:       5
+License:       GPL
 Group:         Daemons
+Group(de):     Server
 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
-BuildRoot:     /tmp/%{name}-%{version}-root
+Source0:       ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tgz
+Patch0:                %{name}-0.34.debian.diff
+Requires:      /etc/cron.d
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Autolog is a program to automatically log off users who are idle for a specified
-amount of time. A configuration file allows you to specify different idle times
-and logout rules for different users, groups, tty lines, etc.
+Autolog is a program to automatically log off users who are idle for a
+specified amount of time. A configuration file allows you to specify
+different idle times and logout rules for different users, groups, tty
+lines, etc.
 
 %description -l pl
 Autolog to program automatycznie wylogowuj±cy u¿ytkowników, którzy nie
-korzystaj± przez okre¶lony czas z terminala. Plik konfiguracyjny pozwala
-na okre¶lenie czasów oraz regu³ postêpowania dla ró¿nych u¿ytkowników, grup,
-lini tty itp.
+korzystaj± przez okre¶lony czas z terminala. Plik konfiguracyjny
+pozwala na okre¶lenie czasów oraz regu³ postêpowania dla ró¿nych
+u¿ytkowników, grup, lini tty itp.
 
 %prep
 %setup -q
 %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/crontab.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/crontab.d/%{name}
+install crontab $RPM_BUILD_ROOT/etc/cron.d/%{name}
 install autolog.8 $RPM_BUILD_ROOT%{_mandir}/man8
-install autolog.conf $RPM_BUILD_ROOT/etc
+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
-       /etc/rc.d/init.d/crond stop >&2
-       /etc/rc.d/init.d/crond start >&2
+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
-       /etc/rc.d/init.d/crond stop >&2
-       /etc/rc.d/init.d/crond start >&2
+if [ ! -f /var/lock/subsys/crond ]; then
+       /etc/rc.d/init.d/crond restart >&2
 fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(644,root,root,755) 
+%defattr(644,root,root,755)
 %doc README.gz
 %attr(700,root,root) %{_sbindir}/autolog
-%attr(700,root,root) /etc/crontab.d/autolog
-%attr(600,root,root) %config(noreplace) /etc/autolog.conf
+%attr(700,root,root) /etc/cron.d/autolog
+%attr(600,root,root) %config(noreplace) %{_sysconfdir}/autolog.conf
 %{_mandir}/man8/*
-
-%changelog
-* Mon Jun 07 1999 Jan Rêkorajski <baggins@pld.org.pl>
-  [0.34-3]
-- spec cleanup
-
-* 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.062006 seconds and 4 git commands to generate.