]> git.pld-linux.org Git - packages/autolog.git/blob - autolog.spec
cb993d120033ba9c244dc0a4503ef6c4a37619b5
[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.40
5 Release:        1
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}.tar.gz
11 Source1:        autolog.init
12 Prereq:         chkconfig
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
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
19 lines, etc.
20
21 %description -l pl
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, lini tty itp.
26
27 %prep
28 %setup -q
29
30 %build
31 # Remove stale binaries
32 %{__make} clean
33
34 %{__make} CFLAGS="%{rpmcflags}"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_sysconfdir}/rc.d/init.d}
39
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}
45
46 gzip -9nf README CHANGES 
47
48 %post
49 /sbin/chkconfig --add autolog
50 if [ ! -f /var/lock/subsys/crond ]; then
51         /etc/rc.d/init.d/autolog restart >&2
52 else
53         echo "Run \"/etc/rc.d/init.d/autolog start\" to activate autolog."
54 fi
55
56 %preun
57 if [ ! -f /var/lock/subsys/autolog ]; then
58         /etc/rc.d/init.d/autolog stop >&2
59 fi
60 /sbin/chkconfig --del autolog
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc README.gz CHANGES.gz
68 %attr(755,root,root) %{_sbindir}/%{name}
69 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/autolog.conf
70 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
71 %{_mandir}/man?/*
This page took 0.899862 seconds and 2 git commands to generate.