Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Fedora Release Engineering
75981d01e5 dist-git conversion 2010-07-29 16:25:57 +00:00
Alec Thomas Habig
f5d3742931 - 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:37:00 +00:00
Bill Nottingham
c6b92139f8 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:12:38 +00:00
Alec Thomas Habig
287c7ecc01 - 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:36:04 +00:00
Alec Thomas Habig
5df78de5b5 - 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 meta data 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-07 13:28:56 +00:00
Jesse Keating
b555804509 Initialize branch F-12 for yum-cron 2009-09-29 07:28:01 +00:00
6 changed files with 32 additions and 34 deletions

View file

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

1
.gitignore vendored Normal file
View file

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

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: yum-cron
# $Id$
NAME := yum-cron
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -1,3 +0,0 @@
yum-cron-0_8_3-1_fc10:HEAD:yum-cron-0.8.3-1.fc10.src.rpm:1229296060
yum-cron-0_8_4-1_fc11:HEAD:yum-cron-0.8.4-1.fc11.src.rpm:1249949003
yum-cron-0_8_4-2_fc11:HEAD:yum-cron-0.8.4-2.fc11.src.rpm:1250883009

View file

@ -1 +1 @@
c80fd195f7b1eaaa42198693960a2171 yum-cron-0.8.4.tar.gz
c97f4de4c6b95ff130636298edcfdc71 yum-cron-0.9.2.tar.gz

View file

@ -1,7 +1,7 @@
Summary: Files needed to run yum updates as a cron job
Name: yum-cron
Version: 0.8.4
Release: 2%{?dist}
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
@ -10,7 +10,7 @@ Source0: %{name}-%{version}.tar.gz
License: GPLv2
Group: System Environment/Base
BuildArch: noarch
Requires: yum >= 3.0 vixie-cron crontabs yum-downloadonly mailx policycoreutils
Requires: yum >= 3.0 vixie-cron crontabs yum-downloadonly findutils
Requires(post): /sbin/chkconfig
Requires(post): /sbin/service
Requires(preun): /sbin/chkconfig
@ -31,10 +31,10 @@ rather than the newer yum-updatesd daemon.
%install
rm -rf $RPM_BUILD_ROOT
install -D -m 755 yum.cron.daily $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/yum.cron
install -D -m 755 yum.cron.weekly $RPM_BUILD_ROOT/%{_sysconfdir}/cron.weekly/yum.cron
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
@ -84,13 +84,35 @@ exit 0
%files
%defattr(-,root,root)
%doc COPYING README
%{_sysconfdir}/cron.daily/yum.cron
%{_sysconfdir}/cron.weekly/yum.cron
%config(noreplace) %{_sysconfdir}/yum/yum-daily.yum
%{_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