git://git.onelab.eu
/
nodeupdate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
log rotation for /var/log/NodeUpdate.log
[nodeupdate.git]
/
NodeUpdate.spec
diff --git
a/NodeUpdate.spec
b/NodeUpdate.spec
index
b08937a
..
84db799
100644
(file)
--- a/
NodeUpdate.spec
+++ b/
NodeUpdate.spec
@@
-1,6
+1,11
@@
%define name NodeUpdate
%define name NodeUpdate
-%define version 0.3
-%define release 1.planetlab%{?date:.%{date}}
+%define version 0.4
+%define release 3.planetlab%{?date:.%{date}}
+
+Vendor: PlanetLab
+Packager: PlanetLab Central <support@planet-lab.org>
+Distribution: PlanetLab 3.0
+URL: http://cvs.planet-lab.org/cvs/NodeUpdate
Summary: PlanetLab service to periodically update node RPMS
Name: %{name}
Summary: PlanetLab service to periodically update node RPMS
Name: %{name}
@@
-8,11
+13,10
@@
Version: %{version}
Release: %{release}
Requires: python2 >= 2.2, yum >= 2.0.3-3_planetlab
Copyright: GPL
Release: %{release}
Requires: python2 >= 2.2, yum >= 2.0.3-3_planetlab
Copyright: GPL
-URL: http://www.planet-lab.org
Group: System Environment/Base
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}root
Group: System Environment/Base
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}root
-Requires: vixie-cron
+Requires: vixie-cron
, logrotate
%description
PlanetLab service to periodically update node RPMS
%description
PlanetLab service to periodically update node RPMS
@@
-25,8
+29,8
@@
PlanetLab service to periodically update node RPMS
%install
%install
-mkdir -p $RPM_BUILD_ROOT/usr/local/planetlab/bin
-cp NodeUpdate.py $RPM_BUILD_ROOT/usr/local/planetlab/bin/
+install -D -m 755 NodeUpdate.py $RPM_BUILD_ROOT/usr/local/planetlab/bin/NodeUpdate.py
+install -D -m 644 NodeUpdate.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/NodeUpdate
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@
-34,14
+38,12
@@
cp NodeUpdate.py $RPM_BUILD_ROOT/usr/local/planetlab/bin/
%files
%defattr(-,root,root)
%attr(0755,root,root) /usr/local/planetlab/bin/NodeUpdate.py
%files
%defattr(-,root,root)
%attr(0755,root,root) /usr/local/planetlab/bin/NodeUpdate.py
+%attr(0644,root,root) /etc/logrotate.d/NodeUpdate
%pre
%post
%pre
%post
-if [ "$1" = 1 ]; then
- /usr/local/planetlab/bin/NodeUpdate.py updatecron
-fi
-
+/usr/local/planetlab/bin/NodeUpdate.py updatecron
%preun
if [ "$1" = 0 ]; then
%preun
if [ "$1" = 0 ]; then
@@
-53,6
+55,10
@@
fi
%changelog
%changelog
+* Tue Nov 16 2004 Mark Huang <mlhuang@cs.princeton.edu>
+- cron job now dumps to /var/log/NodeUpdate instead of spewing mail
+- cron job now runs once a day instead of once an hour
+
* Tue Jun 22 2004 Aaron K <alk@cs.princeton.edu>
- added better support for different groups
- added support for deleting rpms
* Tue Jun 22 2004 Aaron K <alk@cs.princeton.edu>
- added better support for different groups
- added support for deleting rpms