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}.tgz
11 Patch0: %{name}-0.34.debian.diff
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Autolog is a program to automatically log off users who are idle for a
18 specified amount of time. A configuration file allows you to specify
19 different idle times and logout rules for different users, groups, tty
23 Autolog to program automatycznie wylogowuj±cy u¿ytkowników, którzy nie
24 korzystaj± przez okre¶lony czas z terminala. Plik konfiguracyjny
25 pozwala na okre¶lenie czasów oraz regu³ postêpowania dla ró¿nych
26 u¿ytkowników, grup, lini tty itp.
33 %{__make} CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g}"
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_sysconfdir}/cron.d}
39 install autolog $RPM_BUILD_ROOT%{_sbindir}
40 install crontab $RPM_BUILD_ROOT/etc/cron.d/%{name}
41 install autolog.8 $RPM_BUILD_ROOT%{_mandir}/man8
42 install autolog.conf $RPM_BUILD_ROOT%{_sysconfdir}
43 install autolog.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
48 if [ ! -f /var/lock/subsys/crond ]; then
49 /etc/rc.d/init.d/crond restart >&2
51 echo "Run \"/etc/rc.d/init.d/crond start\" to activate autolog."
55 if [ ! -f /var/lock/subsys/crond ]; then
56 /etc/rc.d/init.d/crond restart >&2
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %attr(700,root,root) %{_sbindir}/autolog
66 %attr(700,root,root) /etc/cron.d/autolog
67 %attr(600,root,root) %config(noreplace) %{_sysconfdir}/autolog.conf