1 Summary: Terminates connections for idle users.
2 Summary(pl): Przerywa po³±czenia bezczynnych u¿ytkowników.
9 Source0: ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tgz
10 Patch0: autolog-0.34.debian.diff
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Autolog is a program to automatically log off users who are idle for a
16 specified amount of time. A configuration file allows you to specify
17 different idle times and logout rules for different users, groups, tty
21 Autolog to program automatycznie wylogowuj±cy u¿ytkowników, którzy nie
22 korzystaj± przez okre¶lony czas z terminala. Plik konfiguracyjny
23 pozwala na okre¶lenie czasów oraz regu³ postêpowania dla ró¿nych
24 u¿ytkowników, grup, lini tty itp.
31 %{__make} CFLAGS="$RPM_OPT_FLAGS"
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT/{usr/sbin,usr/share/man/{man8,man5},etc/cron.d}
37 install autolog $RPM_BUILD_ROOT%{_sbindir}
38 install crontab $RPM_BUILD_ROOT/etc/cron.d/%{name}
39 install autolog.8 $RPM_BUILD_ROOT%{_mandir}/man8
40 install autolog.conf $RPM_BUILD_ROOT%{_sysconfdir}
41 install autolog.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
43 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* README
46 if test -r /var/run/crond.pid; then
47 /etc/rc.d/init.d/crond restart >&2
49 echo "Run \"/etc/rc.d/init.d/crond start\" to activate autolog."
53 if test -r /var/run/crond.pid; then
54 /etc/rc.d/init.d/crond restart >&2
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %attr(700,root,root) %{_sbindir}/autolog
64 %attr(700,root,root) /etc/cron.d/autolog
65 %attr(600,root,root) %config(noreplace) %{_sysconfdir}/autolog.conf