auto-import changelog data from crontabs-1.8-1.src.rpm
Mon Aug 07 2000 Bill Nottingham <notting@redhat.com> - put name of script in output of stuff run by run-parts (#12411) Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Bill Nottingham <notting@redhat.com> - rebuild Fri Aug 27 1999 Jeff Johnson <jbj@redhat.com> - don't run *~ or *, files (#4740). Thu Apr 15 1999 Bill Nottingham <notting@redhat.com> - don't run .rpm{save,new,orig} files (bug #2190) Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 5) Mon Nov 30 1998 Bill Nottingham <notting@redhat.com> - crontab: set HOME=/ Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com> - run-parts: skip sub-directories (e.g. CVS) found instead of complaining Fri Apr 24 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Tue Apr 07 1998 Erik Troan <ewt@redhat.com> - moved crontab jobs up a bit to make sure they aren't confused by switching to and fro daylight savings time Fri Oct 24 1997 Erik Troan <ewt@redhat.com> - removed tmpwatch and at entries Thu Jul 31 1997 Erik Troan <ewt@redhat.com> - made a noarch package
This commit is contained in:
parent
a0fedd480f
commit
b3bd41b768
10
crontab
Normal file
10
crontab
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
SHELL=/bin/bash
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
MAILTO=root
|
||||||
|
HOME=/
|
||||||
|
|
||||||
|
# run-parts
|
||||||
|
01 * * * * root run-parts /etc/cron.hourly
|
||||||
|
02 4 * * * root run-parts /etc/cron.daily
|
||||||
|
22 4 * * 0 root run-parts /etc/cron.weekly
|
||||||
|
42 4 1 * * root run-parts /etc/cron.monthly
|
79
crontabs.spec
Normal file
79
crontabs.spec
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
Summary: Root crontab files used to schedule the execution of programs.
|
||||||
|
Name: crontabs
|
||||||
|
Version: 1.8
|
||||||
|
Release: 1
|
||||||
|
Copyright: public domain
|
||||||
|
Group: System Environment/Base
|
||||||
|
Source0: crontab
|
||||||
|
Source1: run-parts
|
||||||
|
Requires: tmpwatch
|
||||||
|
BuildArchitectures: noarch
|
||||||
|
BuildRoot: /var/tmp/%{name}-root
|
||||||
|
|
||||||
|
%description
|
||||||
|
The crontabs package contains root crontab files. Crontab is the
|
||||||
|
program used to install, uninstall or list the tables used to drive the
|
||||||
|
cron daemon. The cron daemon checks the crontab files to see when
|
||||||
|
particular commands are scheduled to be executed. If commands are
|
||||||
|
scheduled, it executes them.
|
||||||
|
|
||||||
|
Crontabs handles a basic system function, so it should be installed on
|
||||||
|
your system.
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/cron.{hourly,daily,weekly,monthly}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||||
|
|
||||||
|
install -m644 $RPM_SOURCE_DIR/crontab $RPM_BUILD_ROOT/etc/crontab
|
||||||
|
install -m755 $RPM_SOURCE_DIR/run-parts $RPM_BUILD_ROOT/usr/bin/run-parts
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%config /etc/crontab
|
||||||
|
/usr/bin/run-parts
|
||||||
|
%dir /etc/cron.hourly
|
||||||
|
%dir /etc/cron.daily
|
||||||
|
%dir /etc/cron.weekly
|
||||||
|
%dir /etc/cron.monthly
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 7 2000 Bill Nottingham <notting@redhat.com>
|
||||||
|
- put name of script in output of stuff run by run-parts (#12411)
|
||||||
|
|
||||||
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
||||||
|
- automatic rebuild
|
||||||
|
|
||||||
|
* Tue Jun 6 2000 Bill Nottingham <notting@redhat.com>
|
||||||
|
- rebuild
|
||||||
|
|
||||||
|
* Fri Aug 27 1999 Jeff Johnson <jbj@redhat.com>
|
||||||
|
- don't run *~ or *, files (#4740).
|
||||||
|
|
||||||
|
* Thu Apr 15 1999 Bill Nottingham <notting@redhat.com>
|
||||||
|
- don't run .rpm{save,new,orig} files (bug #2190)
|
||||||
|
|
||||||
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
||||||
|
- auto rebuild in the new build environment (release 5)
|
||||||
|
|
||||||
|
* Mon Nov 30 1998 Bill Nottingham <notting@redhat.com>
|
||||||
|
- crontab: set HOME=/
|
||||||
|
|
||||||
|
* Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com>
|
||||||
|
- run-parts: skip sub-directories (e.g. CVS) found instead of complaining
|
||||||
|
|
||||||
|
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
|
||||||
|
- translations modified for de, fr, tr
|
||||||
|
|
||||||
|
* Tue Apr 07 1998 Erik Troan <ewt@redhat.com>
|
||||||
|
- moved crontab jobs up a bit to make sure they aren't confused by
|
||||||
|
switching to and fro daylight savings time
|
||||||
|
|
||||||
|
* Fri Oct 24 1997 Erik Troan <ewt@redhat.com>
|
||||||
|
- removed tmpwatch and at entries
|
||||||
|
|
||||||
|
* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
|
||||||
|
- made a noarch package
|
37
run-parts
Executable file
37
run-parts
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# run-parts - concept taken from Debian
|
||||||
|
|
||||||
|
# keep going when something fails
|
||||||
|
set +e
|
||||||
|
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
|
echo "Usage: run-parts <dir>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d $1 ]; then
|
||||||
|
echo "Not a directory: $1"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ignore *~ and *, scripts
|
||||||
|
for i in $1/*[^~,] ; do
|
||||||
|
[ -d $i ] && continue
|
||||||
|
# Don't run *.{rpmsave,rpmorig,rpmnew,swp} scripts
|
||||||
|
[ "${i%.rpmsave}" != "${i}" ] && continue
|
||||||
|
[ "${i%.rpmorig}" != "${i}" ] && continue
|
||||||
|
[ "${i%.rpmnew}" != "${i}" ] && continue
|
||||||
|
[ "${i%.swp}" != "${i}" ] && continue
|
||||||
|
|
||||||
|
if [ -x $i ]; then
|
||||||
|
$i 2>&1 | awk -v "progname=$i" \
|
||||||
|
'progname {
|
||||||
|
print progname ":\n"
|
||||||
|
progname="";
|
||||||
|
}
|
||||||
|
{ print; }'
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user