aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2003-11-02 04:50:36 +0800
committersergei <sergei@FreeBSD.org>2003-11-02 04:50:36 +0800
commit55bf57dc4622a17ec677c181169a6abbfbca706b (patch)
treed6938384b5b55f843d7d9bfb86d411c040a9c3c8 /sysutils
parentbe864294aa1702e12bfbf91adf9e579201db305b (diff)
downloadfreebsd-ports-gnome-55bf57dc4622a17ec677c181169a6abbfbca706b.tar.gz
freebsd-ports-gnome-55bf57dc4622a17ec677c181169a6abbfbca706b.tar.zst
freebsd-ports-gnome-55bf57dc4622a17ec677c181169a6abbfbca706b.zip
Add runwhen 2003.10.31, tools for running commands at particular times.
The biggest difference between runwhen and other schedulers is that runwhen doesn't have a single daemon overseeing multiple jobs. The runwhen tools essentially act as a glorified sleep command. Perhaps runwhen does nothing that at(1) doesn't, and there are lots of things at(1) does that runwhen doesn't: - runwhen doesn't change user IDs - thus it will never run anything as the wrong user. - It doesn't keep a central daemon running at all times - thus it won't break if that daemon dies. - It doesn't require any modifications to the system boot procedure. - It doesn't log through syslog(3) - thus it won't make a mess on the console if syslogd(1) isn't running. - It doesn't centralize storage of scheduled jobs (or any other per-job information) - thus unprivileged users can install and use it without cooperation from root, and without the use of a setuid program to handle changes. - It doesn't send output through mail - thus it doesn't break if there is no mail system installed. - It doesn't check access control files - thus it doesn't gratuitously deny users. Author: Paul Jarc <prj@po.cwru.edu> WWW: http://multivac.cwru.edu/runwhen/ PR: 58789 Submitted by: David Thiel <lx@redundancy.redundancy.org>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/runwhen/Makefile44
-rw-r--r--sysutils/runwhen/distinfo1
-rw-r--r--sysutils/runwhen/files/patch-compile14
-rw-r--r--sysutils/runwhen/pkg-descr24
-rw-r--r--sysutils/runwhen/pkg-plist16
6 files changed, 100 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 265699968b88..89289eb62dfc 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -269,6 +269,7 @@
SUBDIR += ruby-log4r
SUBDIR += ruby-quota
SUBDIR += runit
+ SUBDIR += runwhen
SUBDIR += safecat
SUBDIR += samefile
SUBDIR += sarah
diff --git a/sysutils/runwhen/Makefile b/sysutils/runwhen/Makefile
new file mode 100644
index 000000000000..cfd090582d02
--- /dev/null
+++ b/sysutils/runwhen/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: runwhen
+# Date created: 2003-10-31
+# Whom: David Thiel <lx@redundancy.redundancy.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= runwhen
+PORTVERSION= 2003.10.31
+CATEGORIES= sysutils
+MASTER_SITES= http://multivac.cwru.edu/${PORTNAME}/releases/
+
+MAINTAINER= lx@redundancy.redundancy.org
+COMMENT= Tools for running commands at particular times
+
+BUILD_DEPENDS= ${LOCALBASE}/include/skalibs:${PORTSDIR}/devel/skalibs
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+
+WRKSRC= ${WRKDIR}/admin/${DISTNAME}
+ALL_TARGET= default
+
+DOCS= src/CHANGES src/TODO package/README
+
+post-patch:
+ @${REINPLACE_CMD} -e 's!gcc -O2!${CC} ${CFLAGS}!' \
+ ${WRKSRC}/conf-compile/host_compile.sh
+
+do-configure:
+ ${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-compile/package_home
+ ${ECHO_CMD} ${LOCALBASE} > ${WRKSRC}/conf-compile/depend_skalibs
+
+do-build:
+ cd ${WRKSRC} && package/compile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/sysutils/runwhen/distinfo b/sysutils/runwhen/distinfo
new file mode 100644
index 000000000000..cf2e1d90f9fd
--- /dev/null
+++ b/sysutils/runwhen/distinfo
@@ -0,0 +1 @@
+MD5 (runwhen-2003.10.31.tar.bz2) = 9553d896befbec0fec417131dee56053
diff --git a/sysutils/runwhen/files/patch-compile b/sysutils/runwhen/files/patch-compile
new file mode 100644
index 000000000000..a8a77511f68e
--- /dev/null
+++ b/sysutils/runwhen/files/patch-compile
@@ -0,0 +1,14 @@
+--- package/compile Thu Oct 30 20:56:44 2003
++++ package/compile.new Fri Oct 31 16:07:38 2003
+@@ -1426,7 +1426,10 @@
+
+ make_37() {
+ echo && echo_ Making compile/host/skalibs &&
+- ln -s "$depend_skalibs" compile/move/skalibs
++ mkdir compile/move/skalibs &&
++ ln -s "$depend_skalibs/include/skalibs" compile/move/skalibs/include &&
++ ln -s "$depend_skalibs/lib/skalibs" compile/move/skalibs/library
++
+ }
+ find_sums_37() {
+ rm -f compile/tmpdir/sums &&
diff --git a/sysutils/runwhen/pkg-descr b/sysutils/runwhen/pkg-descr
new file mode 100644
index 000000000000..1057f8a5f155
--- /dev/null
+++ b/sysutils/runwhen/pkg-descr
@@ -0,0 +1,24 @@
+The biggest difference between runwhen and other schedulers is that
+runwhen doesn't have a single daemon overseeing multiple jobs.
+The runwhen tools essentially act as a glorified sleep command.
+Perhaps runwhen does nothing that at(1) doesn't, and there are
+lots of things at(1) does that runwhen doesn't:
+
+- runwhen doesn't change user IDs - thus it will never run
+ anything as the wrong user.
+- It doesn't keep a central daemon running at all times -
+ thus it won't break if that daemon dies.
+- It doesn't require any modifications to the system boot procedure.
+- It doesn't log through syslog(3) - thus it won't make a mess
+ on the console if syslogd(1) isn't running.
+- It doesn't centralize storage of scheduled jobs (or any other
+ per-job information) - thus unprivileged users can install and use it
+ without cooperation from root, and without the use of a setuid program
+ to handle changes.
+- It doesn't send output through mail - thus it doesn't break
+ if there is no mail system installed.
+- It doesn't check access control files - thus it doesn't gratuitously
+ deny users.
+
+Author: Paul Jarc <prj@po.cwru.edu>
+WWW: http://multivac.cwru.edu/runwhen/
diff --git a/sysutils/runwhen/pkg-plist b/sysutils/runwhen/pkg-plist
new file mode 100644
index 000000000000..1d8c99e74b4a
--- /dev/null
+++ b/sysutils/runwhen/pkg-plist
@@ -0,0 +1,16 @@
+@comment $FreeBSD$
+bin/caldelay
+bin/delayrun
+bin/maxinterval
+bin/mininterval
+bin/rw-add
+bin/rw-match
+bin/rw-max
+bin/rw-min
+bin/rw-sleep
+bin/rw-sub
+bin/rw-touch
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%@dirrm %%DOCSDIR%%