1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

- Add startup script.

PR:		ports/74287
Submitted by:	maintainer
This commit is contained in:
Sergey Matveychuk 2004-11-24 02:45:09 +00:00
parent ed28c02230
commit c347b4b3e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122268
4 changed files with 35 additions and 7 deletions

View File

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

View File

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

View File

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

View File

@ -1,2 +1,3 @@
sbin/anacron
etc/anacrontab.sample
etc/rc.d/anacron.sh