Index: head/sysutils/daemontools/Makefile =================================================================== --- head/sysutils/daemontools/Makefile (revision 112508) +++ head/sysutils/daemontools/Makefile (revision 112509) @@ -1,66 +1,66 @@ # New ports collection makefile for: daemontools # Date created: 09 June 1998 # Whom: Dom Mitchell # # $FreeBSD$ # PORTNAME= daemontools PORTVERSION= 0.76 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils MASTER_SITES= http://cr.yp.to/daemontools/ \ ftp://cr.yp.to/daemontools/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} .if !defined(WITHOUT_MAN) MANDATE= -20010714 MASTER_SITES+= http://smarden.org/pape/djb/manpages/:1 DISTFILES+= ${DISTNAME}-man${MANDATE}.tar.gz:1 MAN8= envdir.8 envuidgid.8 fghack.8 multilog.8 pgrphack.8 \ readproctitle.8 setlock.8 setuidgid.8 softlimit.8 \ supervise.8 svc.8 svok.8 svscan.8 svscanboot.8 svstat.8 \ tai64n.8 tai64nlocal.8 MANCOMPRESSED= no .endif MAINTAINER= roam@FreeBSD.org COMMENT= "Service monitoring and logging utilities by djb" USE_RC_SUBR= yes RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} SERVICEDIR=${SERVICEDIR} WRKSRC= ${WRKDIR}/admin/${DISTNAME}/src NO_PACKAGE= "Unsure of djb\'s license" ALL_TARGET= it INSTALL_TARGET= setup check SAMPLERC= svscan.sh.sample SERVICEDIR?= /var/service post-patch: @${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc @${ECHO_CMD} "${CC} ${STRIP}" > ${WRKSRC}/conf-ld post-build: @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC} do-install: (while read cmd; do \ if ${FILE} ${WRKSRC}/$$cmd | ${GREP} -q "shell script"; then \ ${INSTALL_SCRIPT} ${WRKSRC}/$$cmd ${PREFIX}/bin; \ else \ ${INSTALL_PROGRAM} ${WRKSRC}/$$cmd ${PREFIX}/bin; \ fi \ done) < ${WRKSRC}/../package/commands post-install: @${INSTALL_SCRIPT} ${WRKDIR}/${SAMPLERC} ${PREFIX}/etc/rc.d/${SAMPLERC:S/.sample//} .if !defined(WITHOUT_MAN) @${INSTALL_MAN} ${WRKDIR}/daemontools-man/*.8 ${PREFIX}/man/man8/ .endif .include Property changes on: head/sysutils/daemontools/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.15 \ No newline at end of property +1.16 \ No newline at end of property Index: head/sysutils/daemontools/files/svscan.sh.sample =================================================================== --- head/sysutils/daemontools/files/svscan.sh.sample (revision 112508) +++ head/sysutils/daemontools/files/svscan.sh.sample (revision 112509) @@ -1,72 +1,72 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: svscan # REQUIRE: LOGIN # KEYWORD: FreeBSD # Define these svscan_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/svscan # # DO NOT CHANGE THESE DEFAULT VALUES HERE # # It would really, really be a Good Thing(tm) for you to enable some # of the below control variables and the apropriate ulimit. # These are only examples. # Furthermore, you should think about additional limits you might need. # Or, check login.conf(5) for a suitable alternative. # If you want to use these examples, please place into /etc/rc.conf.d/svscan. # # I really do suggest you use /var/service as your service spool directory. # Check hier(7) for reasons. # 10 Mb #MINSEGMENT=10240 # 20 Mb #MAXSEGMENT=20480 # 10 Mb #MAXFILESIZE=10240 # 100 #MAXFD=100 # 40 #MAXCHILD=40 # ulimits #ulimit -d ${MINSEGMENT} #ulimit -f ${MAXFILESIZE} #ulimit -m ${MAXSEGMENT} #ulimit -n ${MAXFD} #ulimit -s ${MINSEGMENT} #ulimit -u ${MAXCHILD} . %%RC_SUBR%% name="svscan" rcvar=`set_rcvar` command="%%PREFIX%%/bin/svscan" svscan_enable="NO" svscan_servicedir="%%SERVICEDIR%%" start_cmd="svscan_start" stop_postcmd="svscan_stop_post" load_rc_config $name required_dirs="${svscan_servicedir}" svscan_start () { /usr/bin/env \ PATH=%%PREFIX%%/sbin:%%PREFIX%%/bin:/usr/sbin:/usr/bin:/sbin:/bin \ - /bin/csh -cf "$command $svscan_servicedir |& %%PREFIX%%/bin/readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................ &" > /dev/null + /bin/sh -c "$command $svscan_servicedir 2>&1 | %%PREFIX%%/bin/readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................ &" > /dev/null } svscan_stop_post () { %%PREFIX%%/bin/svc -dx `/bin/ls -d $svscan_servicedir/* $svscan_servicedir/*/log 2>/dev/null` } run_rc_command "$1" Property changes on: head/sysutils/daemontools/files/svscan.sh.sample ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.4 \ No newline at end of property +1.5 \ No newline at end of property