Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/base In directory vz-cvs-3.sog:/tmp/cvs-serv7989
Added Files: anacron.info anacron.patch Log Message: Move to 10.7. --- NEW FILE: anacron.info --- Package: anacron Version: 2.3 Revision: 6 Description: Periodic command scheduler License: GPL Maintainer: Christian Swinehart <cswineh...@users.sourceforge.net> Provides: cron-service BuildDepends: fink (>= 0.24.12) Depends: daemonic, debianutils Conflicts: cron-service Source: mirror:sourceforge:anacron/%n-%v.tar.gz Source-MD5: 865cc1dfe1ed75c470d3e6de13763f03 SetCPPFLAGS: -I. PatchFile: %n.patch PatchFile-MD5: e0c44f5e3f2a5d049995a406be9b9f91 PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | 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 if [ -f "/etc/crontab" ]; then cat /etc/crontab | grep -v "%p/sbin/anacron" > /etc/a_very_temporary_crontab mv /etc/a_very_temporary_crontab /etc/crontab fi 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 --- 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 [...1623 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 + ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs