]> git.pld-linux.org Git - packages/autolog.git/blob - autolog.spec
edb4272fb4b335a3a56593cb47b10d73df74f941
[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 Prereq:         chkconfig
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
29 %build
30 # Remove stale binaries
31 %{__make} clean
32
33 %{__make} CFLAGS="%{rpmcflags}"
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_sysconfdir}/rc.d/init.d}
38
39 install autolog $RPM_BUILD_ROOT%{_sbindir}
40 install autolog.conf $RPM_BUILD_ROOT%{_sysconfdir}
41 install autolog.8.gz $RPM_BUILD_ROOT%{_mandir}/man8
42 install autolog.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5
43 install autolog.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
44
45 gzip -9nf README CHANGES 
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 CHANGES.gz
65 %attr(755,root,root) %{_sbindir}/%{name}
66 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/autolog.conf
67 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
68 %{_mandir}/man?/*
This page took 0.069712 seconds and 2 git commands to generate.