]> git.pld-linux.org Git - packages/autolog.git/blob - autolog.spec
4824f5f6284a3d538d091232b88214996f0e707e
[packages/autolog.git] / autolog.spec
1 Summary:        Terminates connections for idle users.
2 Summary(pl):    Przerywa po³±czenia bezczynnych u¿ytkowników.
3 Name:           autolog
4 Version:        0.34
5 Release:        4
6 License:        GPL
7 Group:          Daemons
8 Group(pl):      Serwery
9 Source0:        ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tgz
10 Patch0:         autolog-0.34.debian.diff
11 Requires:       /etc/cron.d
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
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
18 lines, etc.
19
20 %description -l pl
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.
25
26 %prep
27 %setup -q
28 %patch -p1
29
30 %build
31 %{__make} CFLAGS="$RPM_OPT_FLAGS"
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT/{usr/sbin,usr/share/man/{man8,man5},etc/cron.d}
36
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
42
43 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* README 
44
45 %post
46 if test -r /var/run/crond.pid; then
47         /etc/rc.d/init.d/crond restart >&2
48 else
49         echo "Run \"/etc/rc.d/init.d/crond start\" to activate autolog."
50 fi
51
52 %postun
53 if test -r /var/run/crond.pid; then
54         /etc/rc.d/init.d/crond restart >&2
55 fi
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README.gz
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
66 %{_mandir}/man8/*
This page took 0.054141 seconds and 3 git commands to generate.