summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--time/vixie-cron/DESCR11
-rw-r--r--time/vixie-cron/Makefile26
-rw-r--r--time/vixie-cron/PLIST7
-rw-r--r--time/vixie-cron/distinfo6
-rw-r--r--time/vixie-cron/files/cron.sh16
-rw-r--r--time/vixie-cron/patches/patch-aa17
6 files changed, 83 insertions, 0 deletions
diff --git a/time/vixie-cron/DESCR b/time/vixie-cron/DESCR
new file mode 100644
index 00000000000..c1547a3c2c5
--- /dev/null
+++ b/time/vixie-cron/DESCR
@@ -0,0 +1,11 @@
+Vixie Cron is a popular implementation of cron for running scheduled
+commands for the system and regular users.
+
+This is a version of 'cron' that is known to run on most systems. It is
+functionally based on the SysV cron, which means that each user can have
+their own crontab file (all crontab files are stored in a read-protected
+directory).
+
+A message is logged each time a command is executed; also, the files
+"allow" and "deny" can be used to control access to the "crontab" command
+(which installs crontabs).
diff --git a/time/vixie-cron/Makefile b/time/vixie-cron/Makefile
new file mode 100644
index 00000000000..ba72f59a365
--- /dev/null
+++ b/time/vixie-cron/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/03/08 18:38:14 reed Exp $
+
+DISTNAME= cron_4.1
+PKGNAME= vixie-cron-4.1
+CATEGORIES= sysutils time
+MASTER_SITES= ftp://ftp.isc.org/isc/cron/
+EXTRACT_SUFX= .shar
+
+MAINTAINER= reed@reedmedia.net
+COMMENT= Execute and maintain scheduled commands
+
+SPECIAL_PERMS+= bin/crontab ${SETUID_ROOT_PERMS}
+PKG_DESTDIR_SUPPORT= user-destdir
+
+# Don't extract into WRKDIR because rc.d script is replaced with binary
+EXTRACT_CMD= ${MKDIR} ${WRKSRC} && cd ${WRKSRC} && ${CAT} $$extract_file | ${SH}
+
+RCD_SCRIPTS= cron
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
+INSTALLATION_DIRS+= ${PKGMANDIR}/man8 sbin
+OWN_DIRS+= ${VARBASE}/cron
+BUILD_DEFS+= VARBASE
+CPPFLAGS+= -DCRONDIR=\"${VARBASE:Q}/cron\"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/time/vixie-cron/PLIST b/time/vixie-cron/PLIST
new file mode 100644
index 00000000000..dfebe23ac9b
--- /dev/null
+++ b/time/vixie-cron/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/03/08 18:38:14 reed Exp $
+bin/crontab
+man/man1/crontab.1
+man/man5/crontab.5
+man/man8/cron.8
+sbin/cron
+share/examples/rc.d/cron
diff --git a/time/vixie-cron/distinfo b/time/vixie-cron/distinfo
new file mode 100644
index 00000000000..396e1afe965
--- /dev/null
+++ b/time/vixie-cron/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/03/08 18:38:14 reed Exp $
+
+SHA1 (cron_4.1.shar) = 77c52a492b075a77f87eded9dfdbf4bf9ba0ac91
+RMD160 (cron_4.1.shar) = a9a8d3fe6c851d7fcd098676f2edc0bc310f695e
+Size (cron_4.1.shar) = 205506 bytes
+SHA1 (patch-aa) = dc237791d5053e2f1ca3a9b8d0783498ab359ffe
diff --git a/time/vixie-cron/files/cron.sh b/time/vixie-cron/files/cron.sh
new file mode 100644
index 00000000000..5563d249a35
--- /dev/null
+++ b/time/vixie-cron/files/cron.sh
@@ -0,0 +1,16 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+
+# PROVIDE: cron
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="cron"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/time/vixie-cron/patches/patch-aa b/time/vixie-cron/patches/patch-aa
new file mode 100644
index 00000000000..143daf9e107
--- /dev/null
+++ b/time/vixie-cron/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/03/08 18:38:14 reed Exp $
+
+--- Makefile.orig 2002-10-31 17:16:19.000000000 -0800
++++ Makefile 2002-10-31 17:19:48.000000000 -0800
+@@ -49,10 +49,10 @@
+
+ #################################### begin configurable stuff
+ #<<DESTROOT is assumed to have ./etc, ./bin, and ./man subdirectories>>
+-DESTROOT = $(DESTDIR)/usr
++DESTROOT = $(DESTDIR)/$(PREFIX)
+ DESTSBIN = $(DESTROOT)/sbin
+ DESTBIN = $(DESTROOT)/bin
+-DESTMAN = $(DESTROOT)/share/man
++DESTMAN = $(DESTROOT)/$(PKGMANDIR)
+ #<<need bitstring.h>>
+ INCLUDE = -I.
+ #INCLUDE =