cvsdist a34e68
Summary: Job spooling tools.
cvsdist a34e68
Name: at
cvsdist a34e68
Version: 3.1.8
cvsdist c2db2a
Release: 16
cvsdist a34e68
Copyright: GPL
cvsdist a34e68
Group: System Environment/Daemons
cvsdist a34e68
Source: ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin/at-3.1.8.tar.bz2
cvsdist a34e68
Source2: atd.init
cvsdist a34e68
Patch0: at-3.1.7-lockfile.patch
cvsdist a34e68
Patch1: at-3.1.7-noon.patch
cvsdist a34e68
Patch2: at-3.1.7-paths.patch
cvsdist a34e68
Patch3: at-3.1.7-sigchld.patch
cvsdist a34e68
Patch4: at-noroot.patch
cvsdist a34e68
Patch5: at-3.1.7-typo.patch
cvsdist a34e68
Patch6: at-debian.patch
cvsdist a34e68
Patch7: at-3.1.8-buflen.patch
cvsdist c2db2a
Patch9: at-3.1.8-shell.patch
cvsdist c2db2a
Patch10: at-3.1.8-batch.patch
cvsdist c2db2a
Patch11: at-3.1.8-lexer.patch
cvsdist c2db2a
Patch12: at-3.1.8-dst.patch
cvsdist c2db2a
Patch13: at-3.1.8-test.patch
cvsdist c2db2a
Patch14: at-3.1.8-test-fix.patch
cvsdist a34e68
Prereq: fileutils chkconfig /etc/init.d
cvsdist c2db2a
BuildPrereq: flex bison autoconf
cvsdist a34e68
Conflicts: crontabs <= 1.5
cvsdist c2db2a
# No, I'm not kidding
cvsdist c2db2a
BuildPrereq: sendmail
cvsdist a34e68
Buildroot: %{_tmppath}/%{name}-root
cvsdist a34e68
cvsdist a34e68
%description
cvsdist a34e68
At and batch read commands from standard input or from a specified file.
cvsdist a34e68
At allows you to specify that a command will be run at a particular time
cvsdist a34e68
(now or a specified time in the future).  Batch will execute commands
cvsdist a34e68
when the system load levels drop to a particular level.  Both commands
cvsdist a34e68
use /bin/sh to run the commands.
cvsdist a34e68
cvsdist a34e68
You should install the at package if you need a utility that will do
cvsdist a34e68
time-oriented job control.  Note: you should use crontab instead, if it is
cvsdist a34e68
a recurring job that will need to be repeated at the same time every
cvsdist a34e68
day/week/etc.
cvsdist a34e68
cvsdist a34e68
%prep
cvsdist a34e68
%setup -q
cvsdist a34e68
%patch0 -p1 -b .lockfile
cvsdist a34e68
# The next path is a brute-force fix that will have to be updated
cvsdist a34e68
# when new versions of at are released.
cvsdist a34e68
%patch2 -p1 -b .paths
cvsdist a34e68
cvsdist a34e68
%patch3 -p1 -b .sigchld
cvsdist a34e68
%patch6 -p1 -b .debian
cvsdist a34e68
%patch4 -p1 -b .noroot
cvsdist a34e68
%patch5 -p1 -b .tyop
cvsdist a34e68
%patch7 -p1 -b .buflen
cvsdist c2db2a
%patch9 -p1 -b .shell
cvsdist c2db2a
%patch10 -p1 -b .batch
cvsdist c2db2a
%patch11 -p1 -b .lexer
cvsdist c2db2a
%patch12 -p1 -b .dst
cvsdist c2db2a
%patch13 -p1 -b .test
cvsdist c2db2a
%patch14 -p1 -b .test-fix
cvsdist a34e68
cvsdist a34e68
%build
cvsdist c2db2a
# for patch 9
cvsdist c2db2a
autoconf
cvsdist a34e68
%configure --with-atspool=/var/spool/at/spool --with-jobdir=/var/spool/at
cvsdist a34e68
cvsdist c2db2a
# for patch 11
cvsdist c2db2a
rm -f lex.yy.* y.tab.*
cvsdist c2db2a
cvsdist a34e68
make
cvsdist a34e68
cvsdist a34e68
%install
cvsdist a34e68
rm -rf %{buildroot}
cvsdist a34e68
mkdir -p %{buildroot}/etc/rc.d/init.d
cvsdist a34e68
cvsdist a34e68
%makeinstall DAEMON_USERNAME=`id -nu` \
cvsdist a34e68
	DAEMON_GROUPNAME=`id -ng` \
cvsdist a34e68
	etcdir=%{buildroot}/etc \
cvsdist a34e68
	ATJOB_DIR=%{buildroot}/var/spool/at \
cvsdist a34e68
	ATSPOOL_DIR=%{buildroot}/var/spool/at/spool 
cvsdist a34e68
echo > %{buildroot}/etc/at.deny
cvsdist a34e68
mkdir docs
cvsdist a34e68
cp ${RPM_BUILD_ROOT}%{_prefix}/doc/at/* docs/
cvsdist a34e68
install -m 755 $RPM_SOURCE_DIR/atd.init %{buildroot}/etc/rc.d/init.d/atd
cvsdist a34e68
cvsdist c2db2a
mv -f %{buildroot}/%{_mandir}/man5/at_allow.5 \
cvsdist c2db2a
      %{buildroot}/%{_mandir}/man5/at.allow.5
cvsdist c2db2a
rm -f %{buildroot}/%{_mandir}/man5/at_deny.5
cvsdist c2db2a
ln -s at.allow.5 \
cvsdist c2db2a
      %{buildroot}/%{_mandir}/man5/at.deny.5
cvsdist c2db2a
cvsdist a34e68
%clean
cvsdist a34e68
rm -rf %{buildroot}
cvsdist a34e68
cvsdist a34e68
%post
cvsdist a34e68
touch /var/spool/at/.SEQ
cvsdist a34e68
chmod 600 /var/spool/at/.SEQ
cvsdist a34e68
chown daemon.daemon /var/spool/at/.SEQ
cvsdist a34e68
/sbin/chkconfig --add atd
cvsdist a34e68
cvsdist a34e68
%preun
cvsdist a34e68
if [ "$1" = 0 ] ; then
cvsdist a34e68
  service atd stop >/dev/null 2>&1
cvsdist a34e68
  /sbin/chkconfig --del atd
cvsdist a34e68
fi
cvsdist a34e68
cvsdist a34e68
%postun
cvsdist a34e68
if [ "$1" -ge "1" ]; then
cvsdist a34e68
  service atd condrestart >/dev/null 2>&1
cvsdist a34e68
fi
cvsdist a34e68
cvsdist a34e68
%files
cvsdist a34e68
%defattr(-,root,root)
cvsdist a34e68
%doc docs/*
cvsdist a34e68
%config /etc/at.deny
cvsdist a34e68
%config /etc/rc.d/init.d/atd
cvsdist a34e68
%attr(0700,daemon,daemon)	%dir /var/spool/at
cvsdist a34e68
%attr(0700,daemon,daemon)	%verify(not md5 size mtime) %ghost /var/spool/at/.SEQ
cvsdist a34e68
%attr(0700,daemon,daemon)	%dir /var/spool/at/spool
cvsdist a34e68
%{_prefix}/sbin/atrun
cvsdist a34e68
%{_prefix}/sbin/atd
cvsdist a34e68
%{_mandir}/man*/*
cvsdist a34e68
%{_prefix}/bin/batch
cvsdist a34e68
%{_prefix}/bin/atrm
cvsdist a34e68
%{_prefix}/bin/atq
cvsdist a34e68
%attr(4755,root,root)	%{_prefix}/bin/at
cvsdist a34e68
cvsdist a34e68
%changelog
cvsdist c2db2a
* Wed Apr  4 2001 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist c2db2a
- much love to David Kilzer <ddkilzer@lubricants-oil.com>
cvsdist c2db2a
- who nailed UTC, Leap year, DST, and some other edge cases down
cvsdist c2db2a
- he also wrote a test harness in perl
cvsdist c2db2a
- bug #28448
cvsdist c2db2a
cvsdist c2db2a
* Fri Feb  2 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist c2db2a
- i18nize initscript
cvsdist c2db2a
cvsdist c2db2a
* Wed Dec 12 2000 Bill Nottingham <notting@redhat.com>
cvsdist c2db2a
- fix documentation of which shell commands will be run with (#22216)
cvsdist c2db2a
cvsdist a34e68
* Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist a34e68
- Well, we will likely never really close the UTC issues,
cvsdist a34e68
- because of 1) fractional timezones, and 2) daylight savigns time.
cvsdist a34e68
- but there is a slight tweak to the handling of dst in the UTC patch.
cvsdist a34e68
cvsdist a34e68
* Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist a34e68
- fixed bug #15685
cvsdist a34e68
- which had at miscaluclating UTC times.
cvsdist a34e68
cvsdist a34e68
* Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- move initscript back
cvsdist a34e68
cvsdist a34e68
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist a34e68
- automatic rebuild
cvsdist a34e68
cvsdist a34e68
* Thu Jul  6 2000 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- prereq /etc/init.d
cvsdist a34e68
cvsdist a34e68
* Sat Jul  1 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist a34e68
- fix syntax error in init script
cvsdist a34e68
cvsdist a34e68
* Tue Jun 27 2000 Preston Brown <pbrown@redhat.com>
cvsdist a34e68
- don't prereq, only require initscripts
cvsdist a34e68
cvsdist a34e68
* Mon Jun 26 2000 Preston Brown <pbrown@redhat.com>
cvsdist a34e68
- move init script
cvsdist a34e68
- add condrestart directive
cvsdist a34e68
- fix post/preun/postun scripts
cvsdist a34e68
- prereq initscripts >= 5.20
cvsdist a34e68
cvsdist a34e68
* Sat Jun 17 2000 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- fix verify of /var/spool/at/.SEQ (#12262)
cvsdist a34e68
cvsdist a34e68
* Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist a34e68
- fix status checking and syntax error in init script
cvsdist a34e68
cvsdist a34e68
* Fri Jun  9 2000 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- fix for long usernames (#11321)
cvsdist a34e68
- add some bugfixes from debian
cvsdist a34e68
cvsdist a34e68
* Mon May  8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist a34e68
- 3.1.8
cvsdist a34e68
cvsdist a34e68
* Wed Mar  1 2000 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- fix a couple of more typos, null-terminate some strings
cvsdist a34e68
cvsdist a34e68
* Thu Feb 10 2000 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- fix many-years-old typo in atd.c
cvsdist a34e68
cvsdist a34e68
* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- handle compressed man pages
cvsdist a34e68
cvsdist a34e68
* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- initscript munging, build as non-root user
cvsdist a34e68
cvsdist a34e68
* Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a34e68
- correct perms for /var/spool/at after defattr.
cvsdist a34e68
cvsdist a34e68
* Mon May 24 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a34e68
- reset SIGCHLD before exec (#3016).
cvsdist a34e68
cvsdist a34e68
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist a34e68
- auto rebuild in the new build environment (release 8)
cvsdist a34e68
cvsdist a34e68
* Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com>
cvsdist a34e68
- fix handling the 12:00 time
cvsdist a34e68
cvsdist a34e68
* Wed Jan 13 1999 Bill Nottingham <notting@redhat.com>
cvsdist a34e68
- configure fix for arm
cvsdist a34e68
cvsdist a34e68
* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
cvsdist a34e68
- build for glibc 2.1
cvsdist a34e68
cvsdist a34e68
* Tue May 05 1998 Prospector System <bugs@redhat.com>
cvsdist a34e68
- translations modified for de, fr, tr
cvsdist a34e68
cvsdist a34e68
* Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com>
cvsdist a34e68
- enhanced initscript
cvsdist a34e68
cvsdist a34e68
* Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com>
cvsdist a34e68
- learned to spell
cvsdist a34e68
cvsdist a34e68
* Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com>
cvsdist a34e68
- updated to at version 3.1.7
cvsdist a34e68
- updated lock and sequence file handling with %ghost
cvsdist a34e68
- Use chkconfig and atd, now conflicts with old crontabs packages
cvsdist a34e68
cvsdist a34e68
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
cvsdist a34e68
- built against glibc
cvsdist a34e68