Hi, small update to sysutils/anacron, move MESSAGE to README and add an rcscript. Mantainer timed out. Comments ? Ok ? Cheers Giovanni
Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/anacron/Makefile,v retrieving revision 1.11 diff -u -p -r1.11 Makefile --- Makefile 11 May 2011 07:45:52 -0000 1.11 +++ Makefile 12 Nov 2012 08:17:38 -0000 @@ -3,14 +3,14 @@ COMMENT= periodic command scheduler DISTNAME= anacron-2.3 -REVISION = 2 +REVISION = 3 CATEGORIES= sysutils HOMEPAGE= http://sourceforge.net/projects/anacron/ MAINTAINER= Andreas Kahari <[email protected]> -# GPL +# GPLv2 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes @@ -20,7 +20,8 @@ WANTLIB= c MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anacron/} USE_GMAKE= Yes -USE_GROFF = Yes + +NO_REGRESS = Yes MAKE_FLAGS= ANACRONTAB="${SYSCONFDIR}/anacrontab" Index: distinfo =================================================================== RCS file: /cvs/ports/sysutils/anacron/distinfo,v retrieving revision 1.3 diff -u -p -r1.3 distinfo --- distinfo 5 Apr 2007 17:26:10 -0000 1.3 +++ distinfo 12 Nov 2012 08:17:38 -0000 @@ -1,5 +1,2 @@ -MD5 (anacron-2.3.tar.gz) = hlzB3+HtdcRw0+beE3Y/Aw== -RMD160 (anacron-2.3.tar.gz) = YT3l+GEocdkvYFnGzTJImfb7j8s= -SHA1 (anacron-2.3.tar.gz) = 0OFUEjWF6fr2FdZyMNgtfRtMCZo= SHA256 (anacron-2.3.tar.gz) = XO7m8izQib2vHAhBIA2+Vya6uvnixDK7F8H8ldpcqZ8= SIZE (anacron-2.3.tar.gz) = 24140 Index: pkg/MESSAGE =================================================================== RCS file: pkg/MESSAGE diff -N pkg/MESSAGE --- pkg/MESSAGE 6 Oct 2005 20:00:44 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,31 +0,0 @@ -To start using anacron: - -Create the file ${SYSCONFDIR}/anacrontab (see anacrontab(5) for -information about its format). - -The following is a simple example which runs the standard -OpenBSD daily, weekly, and monthly scripts: - ------Cut -# ${SYSCONFDIR}/anacrontab example -SHELL=/bin/sh -PATH=${PREFIX}/sbin:${PREFIX}/bin:/sbin:/bin:/usr/sbin:/usr/bin -# format: period delay job-identifier command -1 5 cron.daily sh /etc/daily 2>&1 | tee /var/log/daily.out -7 10 cron.weekly sh /etc/weekly 2>&1 | tee /var/log/weekly.out -30 15 cron.monthly sh /etc/monthly 2>&1 | tee /var/log/monthly.out ------Cut - -Comment out the invocation of these jobs in root's crontab. - -Invoke anacron from /etc/rc.local like this: - -if [ X"${anacron}" == X"YES" -a -x ${PREFIX}/sbin/anacron ]; then - echo -n ' anacron' - ${PREFIX}/sbin/anacron -s -fi - -(and add "anacron=YES" to /etc/rc.conf.local) - -If your machine is left running for more than 24h at a time, you -might also want to invoke anacron from an early morning cron job. Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/sysutils/anacron/pkg/PLIST,v retrieving revision 1.5 diff -u -p -r1.5 PLIST --- pkg/PLIST 11 May 2011 07:45:52 -0000 1.5 +++ pkg/PLIST 12 Nov 2012 08:17:38 -0000 @@ -2,9 +2,11 @@ @extraunexec rm -fr /var/spool/anacron/* @man man/man5/anacrontab.5 @man man/man8/anacron.8 -sbin/anacron +@bin sbin/anacron +@sample /var/spool/anacron/ +share/doc/pkg-readmes/${FULLPKGNAME} @comment var/ @comment var/spool/ @comment var/spool/anacron/ -@sample /var/spool/anacron/ @extra ${SYSCONFDIR}/anacrontab +@rcscript ${RCDIR}/anacron Index: pkg/README =================================================================== RCS file: pkg/README diff -N pkg/README --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/README 12 Nov 2012 08:17:38 -0000 @@ -0,0 +1,22 @@ +To start using anacron: + +Create the file ${SYSCONFDIR}/anacrontab (see anacrontab(5) for +information about its format). + +The following is a simple example which runs the standard +OpenBSD daily, weekly, and monthly scripts: + +-----Cut +# ${SYSCONFDIR}/anacrontab example +SHELL=/bin/sh +PATH=${PREFIX}/sbin:${PREFIX}/bin:/sbin:/bin:/usr/sbin:/usr/bin +# format: period delay job-identifier command +1 5 cron.daily sh /etc/daily 2>&1 | tee /var/log/daily.out +7 10 cron.weekly sh /etc/weekly 2>&1 | tee /var/log/weekly.out +30 15 cron.monthly sh /etc/monthly 2>&1 | tee /var/log/monthly.out +-----Cut + +Comment out the invocation of these jobs in root's crontab. + +If your machine is left running for more than 24h at a time, you +might also want to invoke anacron from an early morning cron job. Index: pkg/UNMESSAGE =================================================================== RCS file: pkg/UNMESSAGE diff -N pkg/UNMESSAGE --- pkg/UNMESSAGE 26 Nov 2004 17:14:49 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,2 +0,0 @@ -Remember to restore any changes you made to root's crontab -when installing anacron. Index: pkg/anacron.rc =================================================================== RCS file: pkg/anacron.rc diff -N pkg/anacron.rc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/anacron.rc 12 Nov 2012 08:17:38 -0000 @@ -0,0 +1,12 @@ +#!/bin/sh +# +# $OpenBSD$ + +daemon="${TRUEPREFIX}/sbin/anacron" +daemon_flags="-s" + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_cmd $1
