Add an rcscript and move MESSAGE to README

take maintainership
ok Andreas Kahari (old maintainer), gonzalo@
This commit is contained in:
giovanni 2012-11-20 15:14:41 +00:00
parent 9efcdb7f33
commit c5d18905f8
6 changed files with 23 additions and 22 deletions

View File

@ -1,16 +1,16 @@
# $OpenBSD: Makefile,v 1.11 2011/05/11 07:45:52 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.12 2012/11/20 15:14:41 giovanni Exp $
COMMENT= periodic command scheduler
DISTNAME= anacron-2.3
REVISION = 2
REVISION = 3
CATEGORIES= sysutils
HOMEPAGE= http://sourceforge.net/projects/anacron/
MAINTAINER= Andreas Kahari <andreas.kahari@gmail.com>
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
# 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"

View File

@ -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

View File

@ -1,10 +1,12 @@
@comment $OpenBSD: PLIST,v 1.5 2011/05/11 07:45:52 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.6 2012/11/20 15:14:41 giovanni Exp $
@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

View File

@ -18,14 +18,5 @@ PATH=${PREFIX}/sbin:${PREFIX}/bin:/sbin:/bin:/usr/sbin:/usr/bin
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.

View File

@ -1,2 +0,0 @@
Remember to restore any changes you made to root's crontab
when installing anacron.

View File

@ -0,0 +1,12 @@
#!/bin/sh
#
# $OpenBSD: anacron.rc,v 1.1 2012/11/20 15:14:41 giovanni Exp $
daemon="${TRUEPREFIX}/sbin/anacron"
daemon_flags="-s"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1