]> git.pld-linux.org Git - packages/at.git/commitdiff
[3.1.7-6]
authorkloczek <kloczek@pld-linux.org>
Sun, 28 Mar 1999 18:26:18 +0000 (18:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added at.patch adopted from latest Debian source which fix man pages,
  lex relayted bugs, displaing corectly dates in am/pm format and fiew
  others,
- modifications %post, %preun for standarizing this section; this allow stop
  service on uninstall and automatic restart on upgrade,
- changed permission (to more liberal).

Changed files:
    at.spec -> 1.10

at.spec

diff --git a/at.spec b/at.spec
index 69f50ef7ed2865b599f59d42f1b4a38bee7394e2..a50e9d2f7e04f1a0a7e9f0b56b41758d7bf6c909 100644 (file)
--- a/at.spec
+++ b/at.spec
@@ -5,21 +5,21 @@ Summary(pl):  Demon kontroli zada
 Summary(tr):   þ düzenleyici
 Name:          at
 Version:       3.1.8
-Release:       4
+Release:       6
 Copyright:     GPL
 Group:         Daemons
 Group(pl):     Serwery
-URL:           ftp://jurix.jura.uni-sb.de/pub/linux/sources/system/daemons
-Source0:       %{name}-%{version}.tar.gz
-Source1:       %{name}d.init
-Patch0:                %{name}-lockfile.patch
-Patch1:                %{name}-install.patch
-Patch2:                %{name}-man.patch
-Patch3:                %{name}-batch.patch
-Buildroot:     /tmp/%{name}-%{version}-root
+Source0:       ftp://jurix.jura.uni-sb.de/pub/linux/sources/system/daemons/%{name}-%{version}.tar.gz
+Source1:       atd.init
+Patch0:                at-lockfile.patch
+Patch1:                at-install.patch
+Patch2:                at-man.patch
+Patch3:                at-batch.patch
+Patch4:                at.patch
 Prereq:                fileutils
 Prereq:                /sbin/chkconfig
 Requires:      mailx
+Buildroot:     /tmp/%{name}-%{version}-root
 
 %description
 at and batch read commands from standard input or a specified file
@@ -91,10 +91,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add atd
+if test -r /var/run/atd.pid; then
+       /etc/rc.d/init.d/atd stop >&2
+       /etc/rc.d/init.d/atd start >&2
+else
+       echo "Run \"/etc/rc.d/init.d/atd start\" to start atd daemon."
+fi
 
 %preun
-if [ $1 = 0 ] ; then
-  /sbin/chkconfig --del atd
+if [ "$1" = "0" ] ; then
+       /sbin/chkconfig --del atd
+       /etc/rc.d/init.d/atd stop >&2
 fi
 
 %files
@@ -103,10 +110,10 @@ fi
 
 %attr(750,root,root) %dir /etc/at
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/at/*
-%attr(750,root,root) /etc/rc.d/init.d/atd
+%attr(754,root,root) /etc/rc.d/init.d/atd
 %attr(755,root,root) /usr/sbin/*
 
-%attr(4711,root,root) /usr/bin/at
+%attr(4755,root,root) /usr/bin/at
 
 %attr(755,root,root) /usr/bin/atq
 %attr(755,root,root) /usr/bin/atrm
@@ -119,6 +126,15 @@ fi
 %attr(600,daemon,daemon) %ghost /var/spool/at/.SEQ
 
 %changelog
+* Thu Mar 25 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
+  [3.1.7-6]
+- added at.patch adopted from latest Debian source which fix man pages,
+  lex relayted bugs, displaing corectly dates in am/pm format and fiew
+  others,
+- modifications %post, %preun for standarizing this section; this allow stop
+  service on uninstall and automatic restart on upgrade,
+- changed permission (to more liberal).
+
 * Sun Sep 13 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
   [3.1.7-5d]
 - build against glibc-2.1,
This page took 0.034109 seconds and 4 git commands to generate.