Update of /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/base
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3271/10.4-transitional/unstable/main/finkinfo/base

Added Files:
        anacron.info anacron.patch 
Removed Files:
        anacron-2.3-4.info anacron-2.3-4.patch 
Log Message:
Fix attempt to write to const variable (and other minor things)


--- NEW FILE: anacron.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/%n.patch | patch -p1
CompileScript: make PREFIX=%p CC=gcc-3.3
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.

dmacks disabled dependency tracking that wasn't working anyway, fixed
implicit function declarations and attempt to write to const variable.
<<
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

--- anacron-2.3-4.patch DELETED ---

--- anacron-2.3-4.info DELETED ---

--- NEW FILE: anacron.patch ---
diff -Nurd -x'*~' anacron-2.3.orig/0anacron.daily anacron-2.3/0anacron.daily
--- anacron-2.3.orig/0anacron.daily     1969-12-31 19:00:00.000000000 -0500
+++ anacron-2.3/0anacron.daily  2005-12-01 12:55:39.000000000 -0500
@@ -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 -Nurd -x'*~' anacron-2.3.orig/0anacron.monthly anacron-2.3/0anacron.monthly
--- anacron-2.3.orig/0anacron.monthly   1969-12-31 19:00:00.000000000 -0500
+++ anacron-2.3/0anacron.monthly        2005-12-01 12:55:39.000000000 -0500
[...1615 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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to