pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/vixie-cron Import package from pkgsrc-wip: vixie-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/21503c8ce87e
branches:  trunk
changeset: 539582:21503c8ce87e
user:      reed <reed%pkgsrc.org@localhost>
date:      Sat Mar 08 18:38:14 2008 +0000

description:
Import package from pkgsrc-wip: vixie-cron.
(Note this has some differences from NetBSD's cron, such
as by default users can't have own crontabs unless allowed.)

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

diffstat:

 time/vixie-cron/DESCR            |  11 +++++++++++
 time/vixie-cron/Makefile         |  26 ++++++++++++++++++++++++++
 time/vixie-cron/PLIST            |   7 +++++++
 time/vixie-cron/distinfo         |   6 ++++++
 time/vixie-cron/files/cron.sh    |  16 ++++++++++++++++
 time/vixie-cron/patches/patch-aa |  17 +++++++++++++++++
 6 files changed, 83 insertions(+), 0 deletions(-)

diffs (107 lines):

diff -r b6494a2939a2 -r 21503c8ce87e time/vixie-cron/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/vixie-cron/DESCR     Sat Mar 08 18:38:14 2008 +0000
@@ -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 -r b6494a2939a2 -r 21503c8ce87e time/vixie-cron/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/vixie-cron/Makefile  Sat Mar 08 18:38:14 2008 +0000
@@ -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@localhost
+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 -r b6494a2939a2 -r 21503c8ce87e time/vixie-cron/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/vixie-cron/PLIST     Sat Mar 08 18:38:14 2008 +0000
@@ -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 -r b6494a2939a2 -r 21503c8ce87e time/vixie-cron/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/vixie-cron/distinfo  Sat Mar 08 18:38:14 2008 +0000
@@ -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 -r b6494a2939a2 -r 21503c8ce87e time/vixie-cron/files/cron.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/vixie-cron/files/cron.sh     Sat Mar 08 18:38:14 2008 +0000
@@ -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 -r b6494a2939a2 -r 21503c8ce87e time/vixie-cron/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/vixie-cron/patches/patch-aa  Sat Mar 08 18:38:14 2008 +0000
@@ -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      =



Home | Main Index | Thread Index | Old Index