a0e5aa5641
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>
44 lines
1 KiB
Makefile
44 lines
1 KiB
Makefile
# 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>
|