1 Summary: Terminates connections for idle users
2 Summary(pl): Przerywa po³±czenia bezczynnych u¿ytkowników
10 Source0: ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tar.gz
12 Prereq: /sbin/chkconfig
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Autolog is a program to automatically log off users who are idle for a
17 specified amount of time. A configuration file allows you to specify
18 different idle times and logout rules for different users, groups, tty
22 Autolog to program automatycznie wylogowuj±cy u¿ytkowników, którzy nie
23 korzystaj± przez okre¶lony czas z terminala. Plik konfiguracyjny
24 pozwala na okre¶lenie czasów oraz regu³ postêpowania dla ró¿nych
25 u¿ytkowników, grup, linii tty itp.
31 # Remove stale binaries
34 %{__make} CFLAGS="%{rpmcflags}"
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_sysconfdir}/rc.d/init.d}
40 install autolog $RPM_BUILD_ROOT%{_sbindir}
41 install autolog.conf $RPM_BUILD_ROOT%{_sysconfdir}
42 install autolog.8.gz $RPM_BUILD_ROOT%{_mandir}/man8
43 install autolog.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5
44 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
46 gzip -9nf README CHANGES
49 rm -rf $RPM_BUILD_ROOT
52 /sbin/chkconfig --add autolog
53 if [ ! -f /var/lock/subsys/autolog ]; then
54 /etc/rc.d/init.d/autolog restart >&2
56 echo "Run \"/etc/rc.d/init.d/autolog start\" to activate autolog."
60 if [ "$1" = "0" ]; then
61 if [ ! -f /var/lock/subsys/autolog ]; then
62 /etc/rc.d/init.d/autolog stop >&2
64 /sbin/chkconfig --del autolog
68 %defattr(644,root,root,755)
69 %doc README.gz CHANGES.gz
70 %attr(755,root,root) %{_sbindir}/%{name}
71 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/autolog.conf
72 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}