]> git.pld-linux.org Git - packages/autolog.git/blobdiff - autolog.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/autolog.git] / autolog.spec
index db4c0c4eea1dd2de8752f377535dd9ea7e940844..ef1d8ef7f7d397288157a4615547353c71924d01 100644 (file)
@@ -5,11 +5,9 @@ Version:       0.40
 Release:       1
 License:       GPL
 Group:         Daemons
-Group(de):     Server
-Group(pl):     Serwery
 Source0:       ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tar.gz
 Source1:       autolog.init
-Prereq:                chkconfig
+Prereq:                /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,7 +20,7 @@ lines, etc.
 Autolog to program automatycznie wylogowuj±cy u¿ytkowników, którzy nie
 korzystaj± przez okre¶lony czas z terminala. Plik konfiguracyjny
 pozwala na okre¶lenie czasów oraz regu³ postêpowania dla ró¿nych
-u¿ytkowników, grup, lini tty itp.
+u¿ytkowników, grup, linii tty itp.
 
 %prep
 %setup -q
@@ -45,22 +43,24 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
 
 gzip -9nf README CHANGES 
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
 /sbin/chkconfig --add autolog
-if [ -f /var/lock/subsys/autolog ]; then
+if [ -f /var/lock/subsys/autolog ]; then
        /etc/rc.d/init.d/autolog restart >&2
 else
        echo "Run \"/etc/rc.d/init.d/autolog start\" to activate autolog."
 fi
 
 %preun
-if [ ! -f /var/lock/subsys/autolog ]; then
-       /etc/rc.d/init.d/autolog stop >&2
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/autolog ]; then
+               /etc/rc.d/init.d/autolog stop >&2
+       fi
+       /sbin/chkconfig --del autolog
 fi
-/sbin/chkconfig --del autolog
-
-%clean
-rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
This page took 0.040285 seconds and 4 git commands to generate.