]> git.pld-linux.org Git - packages/autolog.git/blob - autolog.spec
- dropped pre-cvs changelog
[packages/autolog.git] / autolog.spec
1 Summary:        Terminates connections for idle users
2 Summary(pl.UTF-8):      Przerywa połączenia bezczynnych użytkowników
3 Name:           autolog
4 Version:        0.40
5 Release:        4
6 License:        GPL
7 Group:          Daemons
8 Source0:        ftp://sunsite.unc.edu/pub/Linux/system/admin/idle/%{name}-%{version}.tar.gz
9 # Source0-md5:  bcca87156acfdce9171acc90b35f9d0d
10 Source1:        %{name}.init
11 BuildRequires:  rpmbuild(macros) >= 1.268
12 Requires(post,preun):   /sbin/chkconfig
13 Requires:       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.UTF-8
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, linii tty itp.
27
28 %prep
29 %setup -q
30
31 %build
32 # Remove stale binaries
33 %{__make} clean
34
35 %{__make} \
36         CC="%{__cc}" \
37         CFLAGS="%{rpmcflags}"
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/rc.d/init.d,/var/log}
42
43 install autolog $RPM_BUILD_ROOT%{_sbindir}
44 install autolog.conf $RPM_BUILD_ROOT%{_sysconfdir}
45 install autolog.8.gz $RPM_BUILD_ROOT%{_mandir}/man8
46 install autolog.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5
47 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
48
49 touch $RPM_BUILD_ROOT/var/log/autolog.log
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55 /sbin/chkconfig --add autolog
56 %service autolog restart
57
58 %preun
59 if [ "$1" = "0" ]; then
60         %service autolog stop
61         /sbin/chkconfig --del autolog
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc README CHANGES
67 %attr(755,root,root) %{_sbindir}/%{name}
68 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autolog.conf
69 %attr(754,root,root) /etc/rc.d/init.d/%{name}
70 %{_mandir}/man?/*
71 %attr(640,root,root) %ghost /var/log/autolog.log
This page took 0.045817 seconds and 3 git commands to generate.