]> git.pld-linux.org Git - packages/autolog.git/blob - autolog.spec
84a481cc8905722c9c9a3320d3c81be86f17cb18
[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:        2
6 Copyright:      GPL
7 Group:          Daemons
8 Group(pl):      Serwery
9 Source:         ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tgz
10 Patch:          autolog-0.34.debian.diff
11 Requires:       /etc/crontab.d
12 BuildRoot:      /tmp/%{name}-%{version}-root
13
14 %description
15 Autolog is a program to automatically log off users who are idle for a specified
16 amount of time. A configuration file allows you to specify different idle times
17 and logout rules for different users, groups, tty lines, etc.
18
19 %description -l pl
20 Autolog to program automatycznie wylogowuj±cy u¿ytkowników, którzy nie
21 korzystaj± przez okre¶lony czas z terminala. Plik konfiguracyjny pozwala
22 na okre¶lenie czasów oraz regu³ postêpowania dla ró¿nych u¿ytkowników, grup,
23 lini tty itp.
24
25 %prep
26 %setup -q
27 %patch -p1
28
29 %build
30 make CFLAGS="$RPM_OPT_FLAGS"
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT/{usr/sbin,usr/man/{man8,man5},etc/crontab.d}
35
36 install autolog $RPM_BUILD_ROOT/usr/sbin
37 install crontab $RPM_BUILD_ROOT/etc/crontab.d/%{name}
38 install autolog.8 $RPM_BUILD_ROOT%{_mandir}/man8
39 install autolog.conf $RPM_BUILD_ROOT/etc
40 install autolog.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
41
42 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* README 
43
44 %post
45 if test -r /var/run/crond.pid; then
46         /etc/rc.d/init.d/crond stop >&2
47         /etc/rc.d/init.d/crond start >&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 stop >&2
55         /etc/rc.d/init.d/crond start >&2
56 fi
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755) 
63 %doc README.gz
64 %attr(700,root,root) /usr/sbin/autolog
65 %attr(700,root,root) /etc/crontab.d/autolog
66 %attr(600,root,root) %config(noreplace) /etc/autolog.conf
67 %{_mandir}/man8/*
68
69 %changelog
70 * Tue Apr  6 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
71   [0.34-2]
72 - changed Group(pl),
73 - added %post, %preun with restarting crond on install, upgrade and
74   uninstall autolog; this allow automated {de}activate autolog.
75
76 * Fri Oct 16 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
77 - initial rpm release.
This page took 0.059588 seconds and 2 git commands to generate.