Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/rpm
Date: Thursday July 15, 1999 @ 2:51
Author: tanner
Update of /home/netrek/cvsroot/Vanilla/rpm
In directory cvs.castle.real-time.com:/var/tmp/cvs-serv12298/rpm
Modified Files:
Vanilla.spec
Added Files:
netrek.crontab
Log Message:
* tools/updatekeys: New tool (shell script) that is from from cron
to suck the keys from the metaserver. A little more documentation
in the script would be helpful. The default is to run the same
options that Continuum runs.
* rpm/netrek.crontab: Simple crontab for activating updated. There
is a new tool (shell script) called updatekeys, which sets all the
command line options for updated to run within cron
appropriately. This will also allow the server admin to alter
updated's behavior without having to mess with cron.
* rpm/Vanilla.spec (%postun): Major hack again. Need to get netrek
cron entries out of games' crontabs without deleting other
potential crontab entries. ** NOTICE ** this method required that
"netrek" (the word) be part of the crontab entries that need to be
removed. This might come back and bite us in the butt.
* rpm/Vanilla.spec (%post): Major hack to get cron jobs into
games' crontab. Have to be careful, games may already have a
crontab tab, so suck the current crontab out and save it to a
temp location. Append netrek's cron entries to the crontab. Put
the crontab back into cron. Finally clean up after ourselves.
* rpm/Vanilla.spec (Requires): The .spec file is becoming more
complex. We need to have gtk > 1.2, glib > 1.2 for gum. Cron and
sed are necessary for setting up crontab entries for updated on
install and deleted those same entries on removal.
****************************************
Index: Vanilla/rpm/Vanilla.spec
diff -u Vanilla/rpm/Vanilla.spec:1.7 Vanilla/rpm/Vanilla.spec:1.8
--- Vanilla/rpm/Vanilla.spec:1.7 Wed Jul 14 18:26:55 1999
+++ Vanilla/rpm/Vanilla.spec Thu Jul 15 02:51:39 1999
@@ -10,6 +10,9 @@
Source1: ftp://ftp.risc.uni-linz.ac.at/pub/netrek/src/res-rsa2.tar.Z
Source2: netrek.init
Source3: netrek.logrotate
+Source4: netrek.crontab
+Prereq: sed, cron
+Requires: gtk > 1.2, glib > 1.2, cron, sed
BuildRoot: /var/tmp/netrek-buildroot
%description
@@ -87,6 +90,7 @@
make LIBDIR=$RPM_BUILD_ROOT/usr/games/netrek install
install -m 0644 $RPM_SOURCE_DIR/netrek.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/netrek
install -m 0555 $RPM_SOURCE_DIR/netrek.init $RPM_BUILD_ROOT/etc/rc.d/init.d/netrek
+install -m 0555 $RPM_SOURCE_DIR/netrek.crontab $RPM_BUILD_ROOT/usr/games/netrek/tools/netrek.crontab
for f in god.LOG log logfile mesg.LOG start.LOG; do
touch $RPM_BUILD_ROOT/var/log/netrek/$f
@@ -98,9 +102,31 @@
%post
chkconfig --add netrek
+# Major hack to get cron jobs into games' crontab. Have to be
+# careful, games may already have a crontab tab, so suck the current
+# crontab out and save it to a temp location. Append netrek's cron
+# entries to the crontab. Put the crontab back into cron. Finally clean
+# up after ourselves.
+
+crontab -l > /var/tmp/netrek.crontab.$$
+cat /usr/games/netrek/tools/netrek.crontab >> /var/tmp/netrek.crontab.$$
+crontab -u games /var/tmp/netrek.crontab.$$
+rm -f /var/tmp/netrek.crontab.$$
+
%postun
chkconfig --del netrek
+# Major hack again. Need to get netrek cron entries out of games'
+# crontabs without deleting other potential crontab entries.
+# ** NOTICE ** this method required that netrek be part of the crontab
+# entries that need to be removed. This might come back and bite us in
+# the butt.
+
+crontab -l > /var/tmp/netrek.crontab.$$
+cat /var/tmp/netrek.crontab.$$ | sed '/netrek/d' > /var/tmp/netrek.crontab2.$$
+crontab -u games /var/tmp/netrek.crontab2.$$
+rm -f /var/tmp/netrek.crontab.$$ /var/tmp/netrek.crontab2.$$
+
%files
%defattr(-, root, root)
%doc PROJECTS README INSTALL INSTALL.INL docs tools/README xsg/README
@@ -121,6 +147,24 @@
%defattr(-, games, games)
%changelog
+* Thu Jul 15 01:30:58 1999 Bob Tanner <tanner@real-time.com>
+
+ - rpm/Vanilla.spec (%postun): Major hack again. Need to get netrek
+ cron entries out of games' crontabs without deleting other
+ potential crontab entries. ** NOTICE ** this method required that
+ "netrek" (the word) be part of the crontab entries that need to be
+ removed. This might come back and bite us in the butt.
+
+ - rpm/Vanilla.spec (%post): Major hack to get cron jobs into
+ games' crontab. Have to be careful, games may already have a
+ crontab tab, so suck the current crontab out and save it to a
+ temp location. Append netrek's cron entries to the crontab. Put
+ the crontab back into cron. Finally clean up after ourselves.
+
+ - rpm/Vanilla.spec (Requires): The .spec file is becoming more
+ complex. We need to have gtk > 1.2, glib > 1.2 for gum. Cron and
+ sed are necessary for setting up crontab entries for updated on
+ install and deleted those same entries on removal.
* Wed Jul 14 1999 Bob Tanner <tanner@real-time.com>
- rpm/Vanilla.spec (Group): RPM %changelog format is different