]> git.pld-linux.org Git - packages/autolog.git/commitdiff
- typo
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 31 Oct 2001 14:04:02 +0000 (14:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- turn off service only on remove, not upgrade

Changed files:
    autolog.spec -> 1.25

autolog.spec

index db4c0c4eea1dd2de8752f377535dd9ea7e940844..89221a4604a66feb3a4f97efc4932de801127ef1 100644 (file)
@@ -9,7 +9,7 @@ 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 +22,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,6 +45,9 @@ 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
@@ -54,13 +57,12 @@ else
 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.032707 seconds and 4 git commands to generate.