Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/base
In directory sc8-pr-cvs1:/tmp/cvs-serv6939

Added Files:
        anacron-2.3-4.info anacron-2.3-4.patch 
Log Message:
Fixes for daemonic, update-anacron, and anacrontab


--- NEW FILE: anacron-2.3-4.info ---
Package: anacron
Version: 2.3
Revision: 4
Description: Periodic command scheduler
License: GPL
Maintainer: Christian Swinehart <[EMAIL PROTECTED]>
Provides: cron-service
Depends: daemonic, debianutils
Conflicts: cron-service
Source: mirror:sourceforge:anacron/%n-%v.tar.gz
Source-MD5: 865cc1dfe1ed75c470d3e6de13763f03
SetCPPFLAGS: -no-cpp-precomp -I.
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%f.patch | patch -p1
CompileScript: make PREFIX=%p
InstallScript: <<
 make install PREFIX=%i
 mkdir -p %i/sbin
 install -m 755 update-anacron %i/sbin/
 mkdir -p %i/etc
 install -m 644 anacrontab.fink %i/etc/anacrontab
 mkdir -p %i/etc/cron.daily
 install -m 755 0anacron.daily %i/etc/cron.daily/0anacron
 mkdir -p %i/etc/cron.weekly
 install -m 755 0anacron.weekly %i/etc/cron.weekly/0anacron
 mkdir -p %i/etc/cron.monthly
 install -m 755 0anacron.monthly %i/etc/cron.monthly/0anacron
<<
DocFiles: COPYING README README.Fink
ConfFiles: %p/etc/anacrontab
DaemonicName: anacron
DaemonicFile: <<
<service>
<description>Anacron</description>
<message>anac(h)ronistic cron: anacron</message>

<daemon name="anacron">
<executable background="true">%p/sbin/anacron</executable>
<parameters> -s</parameters> 
<configfile>%p/etc/anacrontab</configfile>
</daemon>

</service>
<<
PostInstScript: update-anacron postinst
PreRmScript: <<
 if [ $1 != "upgrade" ]; then
   daemonic remove anacron
   cat /etc/crontab | grep -v "%p/sbin/anacron" > /etc/a_very_temporary_crontab
   mv /etc/a_very_temporary_crontab /etc/crontab
   rm -f %p/var/spool/anacron/*
 fi
<<
DescDetail: Anacron executes commands at intervals specified in days
 Unlike cron, it does not assume that the system is running continuously.
 It's ideal for machines such as laptops
DescPort: Anacron expects to be able to find the obstack macros from the
 GNU C Library. Since that doesn't really apply on OS X, I've just added the
 obstack.[ch] files to the build directory. Also, I created a default anacrontab
 file that could be used for switching standard system tasks to run via anacron
 rather than cron.
DescUsage: <<
It is very important that you read the README files in the docs folder 
if you plan to add any scheduled tasks. Note that the anacrontab file format
is different from that used in the standard crontab. Consult the manual page
for anacrontab.5 for details.

Fink Developer Note: 
If your package requires some sort of recurring activity, you can add a
script to the <fink prefix>/etc/cron.{daily,weekly,monthly} directory. 
See the run-parts(8) manpage for the structure of these scripts.
<<
Homepage: http://sourceforge.net/projects/anacron

--- NEW FILE: anacron-2.3-4.patch ---
diff -u -Naur anacron-2.3/0anacron.daily anacron-2.3.fink/0anacron.daily
--- anacron-2.3/0anacron.daily  Wed Dec 31 19:00:00 1969
+++ anacron-2.3.fink/0anacron.daily     Tue Nov 19 15:01:20 2002
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# anacron's cron script
+#
+# This script updates anacron time stamps. It is called through run-parts
+# either by anacron itself or by cron.
+#
+# The script is called "0anacron" to assure that it will be executed
+# _before_ all other scripts.
+
+test -x @PREFIX@/sbin/anacron || exit 0
+anacron -u cron.daily
diff -u -Naur anacron-2.3/0anacron.monthly anacron-2.3.fink/0anacron.monthly
--- anacron-2.3/0anacron.monthly        Wed Dec 31 19:00:00 1969
+++ anacron-2.3.fink/0anacron.monthly   Tue Nov 19 15:01:20 2002
[...1546 lines suppressed...]
+    answer=`echo $answer | sed 's/^[yY].*$/y/'`
+    if [ "x$answer" = "xy" ]; then
+       # Remove anacron from /etc/crontab
+       cat /etc/crontab | grep -v "$PREFIX/sbin/anacron" > 
+/etc/a_very_temporary_crontab
+       mv /etc/a_very_temporary_crontab /etc/crontab
+       daemonic disable anacron
+       echo
+       echo "Removed anacron from task schedule."
+    else
+       echo
+       echo "No changes made. Anacron will still be run automatically"
+    fi
+fi
+
+
+
+
+
+exit 0
+



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to