]> git.pld-linux.org Git - packages/autolog.git/blob - autolog.spec
- relese 6: added rc-scripts to Prereq.
[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:        6
6 License:        GPL
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tgz
11 Patch0:         %{name}-0.34.debian.diff
12 Requires:       /etc/cron.d
13 Prereq:         rc-scripts
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
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
20 lines, etc.
21
22 %description -l pl
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.
27
28 %prep
29 %setup -q
30 %patch -p1
31
32 %build
33 %{__make} CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g}"
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_sysconfdir}/cron.d}
38
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
44
45 gzip -9nf README 
46
47 %post
48 if [ ! -f /var/lock/subsys/crond ]; then
49         /etc/rc.d/init.d/crond restart >&2
50 else
51         echo "Run \"/etc/rc.d/init.d/crond start\" to activate autolog."
52 fi
53
54 %postun
55 if [ ! -f /var/lock/subsys/crond ]; then
56         /etc/rc.d/init.d/crond restart >&2
57 fi
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc README.gz
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
68 %{_mandir}/man8/*
This page took 0.064407 seconds and 3 git commands to generate.