Compare commits

..

11 commits

Author SHA1 Message Date
James Antill
2f259c291e Moved into the yum package. 2012-12-05 15:40:56 -05:00
Marcela Mašláňová
54d0874346 The requirement on vixie-cron is not correct anymore. The dailyjobs will be used as virtual requirement since now. #879550 2012-11-23 11:05:48 +01:00
Dennis Gilmore
30f66f1830 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-22 02:49:08 -05:00
Dennis Gilmore
d6074e82e3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 03:31:12 -06:00
Dennis Gilmore
78d3903ddb - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 02:21:58 -06:00
Jason Tibbitts
efe3b8c713 Mark /etc/yum/yum-*.yum as config files
Mark /etc/yum/yum-*.yum as config files so updates don't wipe them out.
2011-01-05 12:30:11 -06:00
Fedora Release Engineering
3a1db30cd2 dist-git conversion 2010-07-29 16:26:00 +00:00
Alec Thomas Habig
0414f68fd6 - Changed the shebang to refer to bash rather than sh, as bashisms are used
so bash should be required (bug 550449)
- Test for restorecon and mailx as they're used, so systems without them
    are not forced to install to use this package (removed the
    dependancies, bug 550447)
2010-02-10 21:22:09 +00:00
Bill Nottingham
e003fe1e25 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:39:36 +00:00
Alec Thomas Habig
fec80d4cb8 - Fixed CLEANDAY default in script
- changed the /etc/yum/ scripts to not be marked as a config file in the
    .spec - we always want them updated, they're code not config. rpmlint
    used to complain about them not being marked as config files, but seems
    to have grown out of this weirdness in the meantime .
2009-10-14 13:35:21 +00:00
Alec Thomas Habig
ec22c07490 - Change cron file to 0yum.cron, so yum updates things before the other
daily jobs such as makewhatis, prelink, updatedb, etc run. That way
    updated files get picked up properly. Cost - those jobs will run later.
    Resolves bug 445894. Changed default random delay to 60 minutes from
    120 to reduce the cost.
- Eliminate the weekly package cleaning script. Replace with logic in the
    daily script to clean the packages and the metadata once per week
    (otherwise corrupted metadata messes things up indefinitely). Resolves
    bug 526452. Removal of seperate weekly script resolves bug 524461.
- Use find to clear stale locks at start of run, so add findutils req.
2009-10-06 22:15:06 +00:00
4 changed files with 1 additions and 193 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
yum-cron-0.9.2.tar.gz

1
dead.package Normal file
View file

@ -0,0 +1 @@
Moved into the yum package.

View file

@ -1 +0,0 @@
c97f4de4c6b95ff130636298edcfdc71 yum-cron-0.9.2.tar.gz

View file

@ -1,191 +0,0 @@
Summary: Files needed to run yum updates as a cron job
Name: yum-cron
Version: 0.9.2
Release: 1%{?dist}
URL: http://linux.duke.edu/yum/
# This is a Red Hat maintained package which is specific to
# our distribution. Thus the source is only available from
# within this srpm.
Source0: %{name}-%{version}.tar.gz
License: GPLv2
Group: System Environment/Base
BuildArch: noarch
Requires: yum >= 3.0 vixie-cron crontabs yum-downloadonly findutils
Requires(post): /sbin/chkconfig
Requires(post): /sbin/service
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
These are the files needed to run yum updates as a cron job. They
originated in yum-2.6.1-0.fc5, but were left out of FC6's yum.
Install this package if you want auto yum updates nightly via cron
rather than the newer yum-updatesd daemon.
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
install -D -m 755 0yum.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/0yum.cron
install -D -m 755 yum-cron $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/yum-cron
install -D -m 644 yum-daily.yum $RPM_BUILD_ROOT/%{_sysconfdir}/yum/yum-daily.yum
install -D -m 644 yum-weekly.yum $RPM_BUILD_ROOT/%{_sysconfdir}/yum/yum-weekly.yum
install -D -m 644 yum-cron.sysconf $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/yum-cron
%clean
rm -rf $RPM_BUILD_ROOT
%post
# Make sure chkconfig knows about the service
/sbin/chkconfig --add yum-cron
# if an upgrade:
if [ "$1" -ge "1" ]; then
# if there's a /etc/rc.d/init.d/yum file left, assume that there was an
# older instance of yum-cron which used this naming convention. Clean
# it up, do a conditional restart
if [ -f /etc/init.d/yum ]; then
# was it on?
/sbin/chkconfig yum
RETVAL=$?
if [ $RETVAL = 0 ]; then
# if it was, stop it, then turn on new yum-cron
/sbin/service yum stop 1> /dev/null 2>&1
/sbin/service yum-cron start 1> /dev/null 2>&1
/sbin/chkconfig yum-cron on
fi
# remove it from the service list
/sbin/chkconfig --del yum
fi
fi
exit 0
%preun
# if this will be a complete removeal of yum-cron rather than an upgrade,
# remove the service from chkconfig control
if [ $1 = 0 ]; then
/sbin/chkconfig --del yum-cron
/sbin/service yum-cron stop 1> /dev/null 2>&1
fi
exit 0
%postun
# If there's a yum-cron package left after uninstalling one, do a
# conditional restart of the service
if [ "$1" -ge "1" ]; then
/sbin/service yum-cron condrestart 1> /dev/null 2>&1
fi
exit 0
%files
%defattr(-,root,root)
%doc COPYING README
%{_sysconfdir}/cron.daily/0yum.cron
%{_sysconfdir}/yum/yum-daily.yum
%{_sysconfdir}/yum/yum-weekly.yum
%{_sysconfdir}/rc.d/init.d/yum-cron
%config(noreplace) %{_sysconfdir}/sysconfig/yum-cron
%changelog
* Mon Feb 1 2010 Alec Habig <ahabig@umn.edu> - 0.9.2-1
- Changed the shebang to refer to bash rather than sh, as bashisms are
used so bash should be required (bug 550449)
- Test for restorecon and mailx as they're used, so systems without them
are not forced to install to use this package (removed the
dependancies, bug 550447)
* Fri Oct 9 2009 Alec Habig <ahabig@umn.edu> - 0.9.1-1
- Fixed CLEANDAY default in script
- changed the /etc/yum/ scripts to not be marked as a config file in
the .spec - we always want them updated, they're code not config.
rpmlint used to complain about them not being marked as config files,
but seems to have grown out of this weirdness in the meantime .
* Tue Oct 6 2009 Alec Habig <ahabig@umn.edu> - 0.9.0-1
- Change cron file to 0yum.cron, so yum updates things before the other daily jobs
such as makewhatis, prelink, updatedb, etc run. That way updated files get picked up
properly. Cost - those jobs will run later. Resolves bug 445894. Changed default
random delay to 60 minutes from 120 to reduce the cost.
- Eliminate the weekly package cleaning script. Replace with logic in the daily script
to clean the packages and the metadata once per week (otherwise corrupted metadata messes
things up indefinitely). Resolves bug 526452. Removal of seperate weekly script resolves
bug 524461.
- Use find to clear stale locks at start of run, so add findutils req.
* Fri Aug 21 2009 Alec Habig <ahabig@umn.edu> - 0.8.4-2
- pushing to updates-testing to resolve bug 515814, dealing with stale lockfiles
* Wed Aug 5 2009 Alec Habig <ahabig@umn.edu> - 0.8.4-1
- deal with stale lockdirs
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sun Dec 14 2008 Alec Habig <ahabig@umn.edu> - 0.8.3-1
- Change writes to YUMTMP to be appends to work around selinux policy
oddness in bug 431588
- this requires the added policycoreutils dependancy
* Wed Mar 12 2008 Alec Habig <ahabig@umn.edu> - 0.8.2-1
- Add YUM_PARAMETER for user specified parameters to the sysconf file
* Wed Mar 5 2008 Alec Habig <ahabig@umn.edu> - 0.8.1-1
- Fix bugs 429716 and 435968
* Wed Feb 20 2008 Alec Habig <ahabig@umn.edu> - 0.8-1
- Change tmp dir to /var/run (bug 431588)
- add DAYS_OF_WEEK and CHECK_FIRST config options (bug 429716)
- fix CHECK_ONLY thinking updates are present on repository problems (bug 431321)
* Tue Jan 8 2008 Alec Habig <ahabig@umn.edu> - 0.7-1
- Add DEBUG_LEVEL, ERROR_LEVEL sysconfig options (bug 426047)
- Add MAILTO, RANDOMWAIT, and SYSTEMNAME sysconfig options (bug 426755)
* Mon Oct 15 2007 Alec Habig <ahabig@umn.edu> - 0.6-1
- Fixes for bug 327401: checkonly formatting fix and make lockfile
grabbing an atomic action using mkdir instead of touch
- Added downloadonly option (bug 333131)
- Don't update yum if set to checkonly (bug 333111)
* Sat Sep 29 2007 Alec Habig <ahabig@umn.edu> - 0.5-1
- Added a lockfile to prevent multiple instances of the cron scripts
from running and hanging, see bug 311661
* Mon Sep 3 2007 Alec Habig <ahabig@umn.edu> - 0.4-1
- Fix bug in cron.daily which was preventing updates from running
- Integrate Frank's checkonly patches into the source
* Mon Aug 27 2007 Frank Wittig <fw@weisshuhn.de> - 0.3-3
- Actual update action is now configurable. It does check-only now if
configured. Default behaviour is to do updates.
* Tue Aug 21 2007 Alec Habig <ahabig@umn.edu> - 0.3-2
- Changed over to dist tags, to play more nciely with the Fedora build system
- License changed "GPL" to "GPLv2" since rpmlint now cares
* Mon Aug 20 2007 Alec Habig <ahabig@umn.edu> - 0.3-1
- Bumped version for release to fedora-extras
* Mon Jul 30 2007 Alec Habig <ahabig@umn.edu> - 0.2-5
- spec file updates in response to review.
* Thu Jun 28 2007 Alec Habig <ahabig@umn.edu> - 0.2-4
- Check for existence of old "yum"-named init script. If so, assume
it's an upgrade, remove them, and do a condrestart.
* Tue Jun 19 2007 Alec Habig <ahabig@umn.edu> - 0.2-3
- the yum-daily.yum script marked noreplace since it's a config-y file.
Not so sure we want to do this, but it keeps rpmlint happy.
- service starting/stopping changed to conform to standards.
* Tue Jun 19 2007 Alec Habig <ahabig@umn.edu> - 0.2-2
- More specfile work, functionality and installed files not changed
* Tue Jun 19 2007 Alec Habig <ahabig@umn.edu> - 0.2-1
- Upgrade spec file to meet fedora-extras requirements
- rename init script yum-cron to meet rpmlint guidelines
- See bugzilla #212507 for the history of this package
* Tue Oct 31 2006 Alec Habig <ahabig@umn.edu> - 0.1-1
- Initial packaging of old scripts as a standalone rpm for use in FC6