[yum-cvs] yum-utils yum-utils.spec,1.1,1.2

Panu Matilainen pmatilai at login.linux.duke.edu
Mon May 23 15:38:33 UTC 2005


Update of /home/groups/yum/cvs/yum-utils
In directory login:/tmp/cvs-serv16359

Modified Files:
	yum-utils.spec 
Log Message:
- add Makefile for updateboot
- create a subpackage yum-updateonboot 
- don't enable updateonboot by default on package install


Index: yum-utils.spec
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/yum-utils.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- yum-utils.spec	16 May 2005 19:22:29 -0000	1.1
+++ yum-utils.spec	23 May 2005 15:38:31 -0000	1.2
@@ -14,20 +14,41 @@
 manager. It includes utilities by different authors that make yum easier and 
 more powerful to use.
 
+%package -n yum-updateonboot
+Summary: Run yum update on system boot
+Group: System Environment/Base
+Requires: python, yum >= 2.3.2
+Requires(pre): chkconfig
+Requires(post): chkconfig
+
+%description -n yum-updateonboot
+Runs yum update on system boot. This allows machines that have been turned
+off for an extended amount of time to become secure immediately, instead of
+waiting until the next early morning cron job.
+
 %prep
 %setup -q
 
 %install
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
+make -C updateonboot DESTDIR=$RPM_BUILD_ROOT install
 
 %clean
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
+%post -n yum-updateonboot
+/sbin/chkconfig --add yum-updateonboot >/dev/null 2>&1 || :;
+
+%preun -n yum-updateonboot
+if [ $1 = 0 ]; then
+    /sbin/service yum-updateonboot stop >/dev/null 2>&1 || :;
+    /sbin/chkconfig --del yum >/dev/null 2>&1 || :;
+fi
+
 %files
 %defattr(-, root, root)
 %doc README 
-%doc updateonboot 
 %{_bindir}/package-cleanup
 %{_bindir}/repoclosure
 %{_bindir}/repomanage
@@ -35,7 +56,15 @@
 %{_bindir}/repo-rss
 %{_bindir}/yumdownloader
 
+%files -n yum-updateonboot
+%defattr(-, root, root)
+%doc updateonboot/README
+%{_sysconfdir}/sysconfig/yum-updateonboot
+%{_initrddir}/yum-updateonboot
 
 %changelog
+* Mon May 23 2005 Panu Matilainen <pmatilai at laiskiainen.org>
+- add yum-updateboot subpackage
+
 * Mon May 16 2005 Gijs Hollestelle <gijs at gewis.nl>
 - first version based on the mock spec file




More information about the Yum-cvs-commits mailing list