info:kidled.spec -devel

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Czw, 17 Wrz 1998, 17:58:50 CEST


Hej,
	Pierwszys z kilku michalkow administracyjnych:

Summary: kidled 
Summary(pl): kidled
Name: kidled
Version: 0.3
Release: 1d
Copyright: GPL
Source0: ftp://sunsite.unc.edu.pl/pub/Linux/system/admin/idle/%{name}-%{version}.tar.gz
Source1: kidled.init
Group: Daemons
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root

%description
kidled is a Linux daemon that runs in the background, looks for users
who are idle for some time (20 minutes by default, can be changed with
an option), and logs them off.

%description -l pl
Kidled jest demonem, pracuje w tle i wypatruje użytkowników którzy pozostwili
swoje sesje nie wylogowując się z systemu. Demon ten wylogowuje automatycznie
takich delikwentów i przekazuje informacje o tym zajściu swojemu koledze - 
syslogd ;) 

%prep
%setup -q -n %{name}

%build
make 

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/usr/{sbin,man/man8}
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
install -d $RPM_BUILD_ROOT/etc/rc.d/rc{0,1,2,3,5,6}.d/
install kidled $RPM_BUILD_ROOT/usr/sbin
install kidled.8 $RPM_BUILD_ROOT/usr/man/man8
strip $RPM_BUILD_ROOT/usr/sbin/*

install %{SOURCE1}  $RPM_BUILD_ROOT/etc/rc.d/init.d/kidled

ln -fs ../init.d/kidled $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K75kidled
ln -fs ../init.d/kidled $RPM_BUILD_ROOT/etc/rc.d/rc1.d/K75kidled
ln -fs ../init.d/kidled $RPM_BUILD_ROOT/etc/rc.d/rc2.d/K75kidled
ln -fs ../init.d/kidled $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S75kidled
ln -fs ../init.d/kidled $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S75kidled
ln -fs ../init.d/kidled $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K75kidled

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644, root, root, 755)
%doc README
%attr(700, root, root) /usr/sbin/*
%attr(644, root, man) /usr/man/man8/*
%attr(0700, root, root) %config(missingok) %verify(not size mtime md5) /etc/rc.d/init.d/kidled
%attr(0700, root, root) %config(missingok) /etc/rc.d/rc0.d/K75kidled
%attr(0700, root, root) %config(missingok) /etc/rc.d/rc1.d/K75kidled
%attr(0700, root, root) %config(missingok) /etc/rc.d/rc2.d/K75kidled
%attr(0700, root, root) %config(missingok) /etc/rc.d/rc3.d/S75kidled
%attr(0700, root, root) %config(missingok) /etc/rc.d/rc5.d/S75kidled
%attr(0700, root, root) %config(missingok) /etc/rc.d/rc6.d/K75kidled

%changelog
* Thu Sep 17 1998 Wojtek Ślusarczyk <wojtek w shadow.eu.org>
- first try at RPM.


Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu



Więcej informacji o liście dyskusyjnej pld-devel-pl