diff --git a/sysutils/anacron/Makefile b/sysutils/anacron/Makefile index f2114f26b2c..eacead2e86a 100644 --- a/sysutils/anacron/Makefile +++ b/sysutils/anacron/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.3 2004/05/17 00:22:54 naddy Exp $ +# $OpenBSD: Makefile,v 1.4 2004/11/26 17:14:49 alek Exp $ COMMENT= "periodic command scheduler" DISTNAME= anacron-2.3 +PKGNAME= ${DISTNAME}p0 CATEGORIES= sysutils HOMEPAGE= http://sourceforge.net/projects/anacron/ diff --git a/sysutils/anacron/pkg/DEINSTALL b/sysutils/anacron/pkg/DEINSTALL deleted file mode 100644 index 32418c22da4..00000000000 --- a/sysutils/anacron/pkg/DEINSTALL +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh -# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/08/23 19:24:50 sturm Exp $ -# -# De-installation setup of anacron - -PATH=/bin:/usr/bin:/sbin:/usr/sbin -SPOOL_DIR=/var/spool/anacron - -# Function: remove the anacron spool dir -do_spooldir() -{ - if [ "$PKG_DELETE_EXTRA" != Yes -a -d $SPOOL_DIR ]; then - cat <&2 - exit 1 - ;; -esac - -exit 0 diff --git a/sysutils/anacron/pkg/INSTALL b/sysutils/anacron/pkg/INSTALL deleted file mode 100644 index 799897e2aa3..00000000000 --- a/sysutils/anacron/pkg/INSTALL +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh -# $OpenBSD: INSTALL,v 1.2 2004/05/17 00:22:54 naddy Exp $ -# -# Pre/post-installation setup of anacron - -PATH=/bin:/usr/bin:/sbin:/usr/sbin -PREFIX=${PKG_PREFIX:-/usr/local} -SPOOL_DIR=/var/spool/anacron - -# Function: set up the anacron spool dir -do_spooldir() -{ - echo "-> Creating anacron spooldir under $SPOOL_DIR" - if [ ! -d $SPOOL_DIR ]; then - install -d -o root -g wheel -m 755 $SPOOL_DIR - fi -} - -# Function: tell the user what s/he needs to do to use the port -# just installed -# -do_notice() -{ - cat <&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. -+---------- - -EOT -} - -# Verify/process the command -# -case $2 in - PRE-INSTALL) - ;; - POST-INSTALL) - do_spooldir - do_notice - ;; - *) - echo "Usage: `basename $0` distname " >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/sysutils/anacron/pkg/MESSAGE b/sysutils/anacron/pkg/MESSAGE new file mode 100644 index 00000000000..519f83002fa --- /dev/null +++ b/sysutils/anacron/pkg/MESSAGE @@ -0,0 +1,31 @@ +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. diff --git a/sysutils/anacron/pkg/PLIST b/sysutils/anacron/pkg/PLIST index 808e1e1c0c0..af5f135ee0c 100644 --- a/sysutils/anacron/pkg/PLIST +++ b/sysutils/anacron/pkg/PLIST @@ -1,10 +1,10 @@ -@comment $OpenBSD: PLIST,v 1.3 2004/10/07 05:20:18 sturm Exp $ +@comment $OpenBSD: PLIST,v 1.4 2004/11/26 17:14:49 alek Exp $ @man man/man5/anacrontab.5 @man man/man8/anacron.8 sbin/anacron @comment var/ @comment var/spool/ @comment var/spool/anacron/ +@sample /var/spool/anacron/ +@extra ${SYSCONFDIR}/anacrontab @extraunexec rm -fr /var/spool/anacron -@cwd ${SYSCONFDIR} -@extra anacrontab diff --git a/sysutils/anacron/pkg/UNMESSAGE b/sysutils/anacron/pkg/UNMESSAGE new file mode 100644 index 00000000000..ed5c7a3036c --- /dev/null +++ b/sysutils/anacron/pkg/UNMESSAGE @@ -0,0 +1,2 @@ +Remember to restore any changes you made to root's crontab +when installing anacron.