diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2004-11-24 02:45:09 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2004-11-24 02:45:09 +0000 |
commit | c347b4b3e66a00e0e7c54da3ebaa576308ebc0b5 (patch) | |
tree | b40ebe9d55b29ed2e91d19d21a9b54a1033360dc /sysutils/anacron | |
parent | ed28c0223058b7ed8c696b08808223abc56ecd0c (diff) | |
download | ports-c347b4b3e66a00e0e7c54da3ebaa576308ebc0b5.tar.gz ports-c347b4b3e66a00e0e7c54da3ebaa576308ebc0b5.zip |
Notes
Diffstat (limited to 'sysutils/anacron')
-rw-r--r-- | sysutils/anacron/Makefile | 8 | ||||
-rw-r--r-- | sysutils/anacron/files/patch-aa | 27 | ||||
-rw-r--r-- | sysutils/anacron/pkg-message | 6 | ||||
-rw-r--r-- | sysutils/anacron/pkg-plist | 1 |
4 files changed, 35 insertions, 7 deletions
diff --git a/sysutils/anacron/Makefile b/sysutils/anacron/Makefile index 567b4913b635..0dfa6d52c06f 100644 --- a/sysutils/anacron/Makefile +++ b/sysutils/anacron/Makefile @@ -7,7 +7,7 @@ PORTNAME= anacron PORTVERSION= 2.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= anacron @@ -18,9 +18,13 @@ COMMENT= Schedules periodic jobs on systems that are not permanently up MAN8= anacron.8 MAN5= anacrontab.5 USE_GMAKE= yes +PKGMESSAGE= ${WRKDIR}/pkg-message post-install: - ${CAT} pkg-message + ${CAT} ${PKGMESSAGE} ${STRIP_CMD} ${PREFIX}/sbin/anacron +post-patch: + @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message >${PKGMESSAGE} + .include <bsd.port.mk> diff --git a/sysutils/anacron/files/patch-aa b/sysutils/anacron/files/patch-aa index 06bad332b54b..66a6ff010b60 100644 --- a/sysutils/anacron/files/patch-aa +++ b/sysutils/anacron/files/patch-aa @@ -1,6 +1,6 @@ diff -uN ../anacron-2.3/Makefile ./Makefile --- ../anacron-2.3/Makefile Fri Jun 23 00:26:11 2000 -+++ ./Makefile Thu Aug 26 11:52:13 2004 ++++ ./Makefile Sun Nov 21 14:29:24 2004 @@ -19,16 +19,16 @@ # `COPYING' that comes with the Anacron source distribution. @@ -31,11 +31,12 @@ diff -uN ../anacron-2.3/Makefile ./Makefile $(MANDIR)/man5 $(MANDIR)/man8 .PHONY: install -@@ -72,6 +72,7 @@ +@@ -72,6 +72,8 @@ $(INSTALL_PROGRAM) anacron $(BINDIR)/anacron $(INSTALL_DATA) anacrontab.5 $(MANDIR)/man5/anacrontab.5 $(INSTALL_DATA) anacron.8 $(MANDIR)/man8/anacron.8 + $(INSTALL_DATA) anacrontab.sample $(PREFIX)/etc/anacrontab.sample ++ $(INSTALL_DATA) anacron.sh $(PREFIX)/etc/rc.d/anacron.sh .PHONY: clean clean: @@ -69,6 +70,28 @@ diff -uN ../anacron-2.3/anacron.8 ./anacron.8 Contains specifications of jobs. See \fBanacrontab(5)\fR for a complete description. .TP +diff -uN ../anacron-2.3/anacron.sh ./anacron.sh +--- ../anacron-2.3/anacron.sh Thu Jan 1 01:00:00 1970 ++++ ./anacron.sh Sun Nov 21 11:34:51 2004 +@@ -0,0 +1,18 @@ ++#!/bin/sh ++# ++# initialization/shutdown script for anacron ++ ++# PROVIDE: anacron ++# REQUIRE: LOGIN ++# KEYWORD: FreeBSD ++ ++. /etc/rc.subr ++ ++prefix=/usr/local ++ ++name="anacron" ++rcvar=`set_rcvar` ++command="$prefix/sbin/anacron" ++ ++load_rc_config $name ++run_rc_command "$1" diff -uN ../anacron-2.3/anacrontab.5 ./anacrontab.5 --- ../anacron-2.3/anacrontab.5 Wed Jun 21 01:12:18 2000 +++ ./anacrontab.5 Thu Aug 26 11:52:13 2004 diff --git a/sysutils/anacron/pkg-message b/sysutils/anacron/pkg-message index 83aa44a48cf7..2933cced9ff4 100644 --- a/sysutils/anacron/pkg-message +++ b/sysutils/anacron/pkg-message @@ -1,8 +1,8 @@ Configuration hints: -- Copy ${PREFIX}/etc/anacrontab.sample to ${PREFIX}/etc/anacrontab +- Copy %%PREFIX%%/etc/anacrontab.sample to %%PREFIX%%/etc/anacrontab - Activate the 'periodic' commands in anacrontab -- Deactivate the 'periodic' commands in /etc/crontab -- Add 'anacron' to /etc/rc.local +- If you want, deactivate the 'periodic' commands in /etc/crontab +- Add anacron_enable=YES to /etc/rc.conf - Read anacron(8) and anacrontab(5) diff --git a/sysutils/anacron/pkg-plist b/sysutils/anacron/pkg-plist index c96bddeba2e9..69ae2c11330c 100644 --- a/sysutils/anacron/pkg-plist +++ b/sysutils/anacron/pkg-plist @@ -1,2 +1,3 @@ sbin/anacron etc/anacrontab.sample +etc/rc.d/anacron.sh |