rpms/yum-cron/devel yum-cron.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Alec Thomas Habig (habig) fedora-extras-commits at redhat.com
Tue Aug 21 18:45:12 UTC 2007


Author: habig

Update of /cvs/pkgs/rpms/yum-cron/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16226/devel

Modified Files:
	.cvsignore sources 
Added Files:
	yum-cron.spec 
Log Message:
initial import




--- NEW FILE yum-cron.spec ---
Summary: Files needed to run yum updates as a cron job
Name: yum-cron
Version: 0.3
Release: 1
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: GPL
Group: System Environment/Base
BuildArch: noarch
Requires: yum >= 3.0 vixie-cron crontabs
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 are
lifted straight from 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 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 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

%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/yum.cron
%{_sysconfdir}/cron.weekly/yum.cron
%config(noreplace) %{_sysconfdir}/yum/yum-daily.yum
%{_sysconfdir}/rc.d/init.d/yum-cron

%changelog
* Mon Aug 20 2007 Alec Habig <ahabig at umn.edu> - 0.3-1
- Bumped version for release to fedora-extras

* Mon Jul 30 2007 Alec Habig <ahabig at umn.edu> - 0.2-5
- spec file updates in response to review.

* Thu Jun 28 2007 Alec Habig <ahabig at 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 at 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 at umn.edu> - 0.2-2
- More specfile work, functionality and installed files not changed

* Tue Jun 19 2007 Alec Habig <ahabig at 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 at umn.edu> - 0.1-1
- Initial packaging of old scripts as a standalone rpm for use in FC6


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/yum-cron/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	20 Aug 2007 23:00:43 -0000	1.1
+++ .cvsignore	21 Aug 2007 18:44:39 -0000	1.2
@@ -0,0 +1 @@
+yum-cron-0.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/yum-cron/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	20 Aug 2007 23:00:43 -0000	1.1
+++ sources	21 Aug 2007 18:44:39 -0000	1.2
@@ -0,0 +1 @@
+b232b7066f6bf846c20597bdba076346  yum-cron-0.3.tar.gz




More information about the fedora-extras-commits mailing list