diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-12-27 15:44:55 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-12-27 15:44:55 +0000 |
commit | e33a65e92051c438038e9a5c63a56e717a8468a2 (patch) | |
tree | 1c30f88b85d449338e1c4683c45ca164583077b6 | |
parent | 9da1342e0f0f87e2739b846004021736c4c8dcbd (diff) | |
download | pkgsrc-e33a65e92051c438038e9a5c63a56e717a8468a2.tar.gz |
Added daemontools-0.7:
Daemontools is a small set of /very/ useful utilities, from Dan
Bernstein. They are mainly used for controlling processes, and
maintaining logfiles.
Submitted by Tomasz Luchowski <zuntum@eik.pl> in PR 11674.
-rw-r--r-- | sysutils/daemontools/Makefile | 44 | ||||
-rw-r--r-- | sysutils/daemontools/files/md5 | 4 | ||||
-rw-r--r-- | sysutils/daemontools/files/svscan.sh.sample | 34 | ||||
-rw-r--r-- | sysutils/daemontools/pkg/COMMENT | 1 | ||||
-rw-r--r-- | sysutils/daemontools/pkg/DEINSTALL | 18 | ||||
-rw-r--r-- | sysutils/daemontools/pkg/DESCR | 3 | ||||
-rw-r--r-- | sysutils/daemontools/pkg/PLIST | 32 |
7 files changed, 136 insertions, 0 deletions
diff --git a/sysutils/daemontools/Makefile b/sysutils/daemontools/Makefile new file mode 100644 index 00000000000..9559014392e --- /dev/null +++ b/sysutils/daemontools/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/12/27 15:44:55 hubertf Exp $ +# FreeBSD Id: ports/sysutils/daemontools/Makefile,v 1.8 2000/12/03 05:16:41 steve Exp + +DISTNAME= daemontools-0.70 +CATEGORIES= sysutils +MASTER_SITES= http://cr.yp.to/daemontools/ \ + ftp://cr.yp.to/daemontools/ \ + http://zuntum.eik.pl/pkgsrc/distfiles/ + +PATCH_SITES= http://www.fefe.de/daemontools/ +PATCHFILES= daemontools-0.70-man.diff.bz2 +PATCH_DIST_STRIP= -p1 + +MAINTAINER= zuntum@eik.pl +HOMEPAGE= http://cr.yp.to/daemontools.html + +ALL_TARGET= it +INSTALL_TARGET= setup check +SAMPLERC= svscan.sh.sample +SERVICEDIR?= /var/spool/service + +PLIST_SUBST+= SERVICEDIR=${SERVICEDIR} +DEINSTALL_FILE= ${WRKDIR}/.DEINSTALL + +post-patch: + @${ECHO} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc + @${ECHO} "${CC} -s" > ${WRKSRC}/conf-ld + @${ECHO} "${PREFIX}" > ${WRKSRC}/conf-home + +post-build: + @${SED} \ + -e "s!/usr/local/!${PREFIX}/!" \ + -e "s!/var/service!${SERVICEDIR}!g" \ + ${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC} + @${SED} \ + -e "s!/var/service!${SERVICEDIR}!g" \ + ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/daemontools + ${INSTALL_DATA} ${WRKDIR}/${SAMPLERC} ${PREFIX}/share/examples/daemontools + ${INSTALL_DATA_DIR} ${SERVICEDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/daemontools/files/md5 b/sysutils/daemontools/files/md5 new file mode 100644 index 00000000000..bf282bd9a02 --- /dev/null +++ b/sysutils/daemontools/files/md5 @@ -0,0 +1,4 @@ +$NetBSD: md5,v 1.1.1.1 2000/12/27 15:44:55 hubertf Exp $ + +MD5 (daemontools-0.70.tar.gz) = c88e8c5e4453b4df41571f60eaa0baf3 +MD5 (daemontools-0.70-man.diff.bz2) = bb7cbd7f2e06fd0e192ad09b6a7733b8 diff --git a/sysutils/daemontools/files/svscan.sh.sample b/sysutils/daemontools/files/svscan.sh.sample new file mode 100644 index 00000000000..ab67f451307 --- /dev/null +++ b/sysutils/daemontools/files/svscan.sh.sample @@ -0,0 +1,34 @@ +#!/bin/sh + +# Surely advice 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 +# +# 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} + +exec /bin/csh -cf '/usr/local/bin/svscan /var/service &' diff --git a/sysutils/daemontools/pkg/COMMENT b/sysutils/daemontools/pkg/COMMENT new file mode 100644 index 00000000000..9f1c8ff6bbe --- /dev/null +++ b/sysutils/daemontools/pkg/COMMENT @@ -0,0 +1 @@ +Service monitoring and logging utilities by djb diff --git a/sysutils/daemontools/pkg/DEINSTALL b/sysutils/daemontools/pkg/DEINSTALL new file mode 100644 index 00000000000..559e4a282e5 --- /dev/null +++ b/sysutils/daemontools/pkg/DEINSTALL @@ -0,0 +1,18 @@ +#! /bin/sh +# +# $NetBSD: DEINSTALL,v 1.1.1.1 2000/12/27 15:44:55 hubertf Exp $ +# + +case "$2" in + DEINSTALL) rmdir 2>/dev/null /var/service || cat <<EOF + +============================================================= +Note that the config files for this package under +/var/service are not removed in the deinstallation +process. You should remove those by hand, if you no longer +need them. +============================================================= + +EOF + ;; +esac diff --git a/sysutils/daemontools/pkg/DESCR b/sysutils/daemontools/pkg/DESCR new file mode 100644 index 00000000000..ef8ef5ac5f3 --- /dev/null +++ b/sysutils/daemontools/pkg/DESCR @@ -0,0 +1,3 @@ +Daemontools is a small set of /very/ useful utilities, from Dan +Bernstein. They are mainly used for controlling processes, and +maintaining logfiles. diff --git a/sysutils/daemontools/pkg/PLIST b/sysutils/daemontools/pkg/PLIST new file mode 100644 index 00000000000..479fa881068 --- /dev/null +++ b/sysutils/daemontools/pkg/PLIST @@ -0,0 +1,32 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/27 15:44:55 hubertf Exp $ +bin/envdir +bin/envuidgid +bin/fghack +bin/multilog +bin/setlock +bin/setuidgid +bin/softlimit +bin/supervise +bin/svc +bin/svok +bin/svscan +bin/svstat +bin/tai64n +bin/tai64nlocal +man/man1/envdir.1 +man/man1/envuidgid.1 +man/man1/setlock.1 +man/man1/setuidgid.1 +man/man1/softlimit.1 +man/man1/tai64n.1 +man/man1/tai64nlocal.1 +man/man8/fghack.8 +man/man8/multilog.8 +man/man8/supervise.8 +man/man8/svc.8 +man/man8/svok.8 +man/man8/svscan.8 +man/man8/svstat.8 +share/examples/daemontools/svscan.sh.sample +@dirrm share/examples/daemontools +@exec mkdir ${SERVICEDIR} || true |