pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/daemontools This package's installation bears...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c7310098c198
branches: trunk
changeset: 506313:c7310098c198
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Sat Jan 14 07:00:30 2006 +0000
description:
This package's installation bears little resemblance to DJB's
instructions. We're not ready to accommodate /package yet, but we
can at least avoid giving bad advice and installing a misleading
rc.d script. Setting up svscan and /service for the first time can
be confusing enough for a new user on its own merits. Bump
PKGREVISION.
diffstat:
sysutils/daemontools/DEINSTALL | 13 -----------
sysutils/daemontools/DESCR | 15 ++++++++++--
sysutils/daemontools/Makefile | 21 ++---------------
sysutils/daemontools/PLIST | 4 +--
sysutils/daemontools/files/svscan.sh.sample | 34 -----------------------------
5 files changed, 16 insertions(+), 71 deletions(-)
diffs (138 lines):
diff -r d252f1ed5853 -r c7310098c198 sysutils/daemontools/DEINSTALL
--- a/sysutils/daemontools/DEINSTALL Sat Jan 14 03:22:51 2006 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-# $NetBSD: DEINSTALL,v 1.2 2004/05/02 17:50:05 xtraeme Exp $
-
-case "$2" in
- DEINSTALL) rmdir 2>/dev/null @@SERVICEDIR@@ || cat <<EOF
-
-=============================================================
-Your service directory @@SERVICEDIR@@ was not removed.
-If you no longer need it, remove it by hand.
-=============================================================
-
-EOF
- ;;
-esac
diff -r d252f1ed5853 -r c7310098c198 sysutils/daemontools/DESCR
--- a/sysutils/daemontools/DESCR Sat Jan 14 03:22:51 2006 +0000
+++ b/sysutils/daemontools/DESCR Sat Jan 14 07:00:30 2006 +0000
@@ -1,3 +1,12 @@
-Daemontools is a small set of /very/ useful utilities, from Dan
-Bernstein. They are mainly used for controlling processes, and
-maintaining logfiles.
+daemontools is a collection of tools for managing UNIX services.
+
+supervise monitors a service. It starts the service and restarts
+the service if it dies. Setting up a new service is easy: all
+supervise needs is a directory with a run script that runs the
+service.
+
+multilog saves error messages to one or more logs. It optionally
+timestamps each line and, for each log, includes or excludes lines
+matching specified patterns. It automatically rotates logs to limit
+the amount of disk space used. If the disk fills up, it pauses and
+tries again, without losing any data.
diff -r d252f1ed5853 -r c7310098c198 sysutils/daemontools/Makefile
--- a/sysutils/daemontools/Makefile Sat Jan 14 03:22:51 2006 +0000
+++ b/sysutils/daemontools/Makefile Sat Jan 14 07:00:30 2006 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.26 2006/01/13 18:01:52 joerg Exp $
+# $NetBSD: Makefile,v 1.27 2006/01/14 07:00:30 schmonz Exp $
DISTNAME= daemontools-0.76
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/daemontools/ ftp://cr.yp.to/daemontools/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MANPAGES}
@@ -19,24 +20,12 @@
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
DJB_SLASHPACKAGE= YES
-SAMPLERC= svscan.sh.sample
-SERVICEDIR?= ${VARBASE}/spool/service
CMDDIR= ${WRKSRC}/command
-PLIST_SUBST+= SERVICEDIR=${SERVICEDIR:Q}
-DEINSTALL_FILE= ${WRKDIR}/.DEINSTALL
-
-INSTALLATION_DIRS= bin man man/man8 share/examples/daemontools
+INSTALLATION_DIRS= bin man man/man8
SUBST_FILES.djbware+= src/error.h
-post-build:
- ${SED} -e "s,@@PREFIX@@,${PREFIX}," \
- -e "s,@@SERVICEDIR@@,${SERVICEDIR},g" \
- ${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
- ${SED} "s,@@SERVICEDIR@@,${SERVICEDIR},g" \
- ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
-
do-install:
(while read cmd; do \
if ${FILE_CMD} ${CMDDIR}/$$cmd | ${EGREP} "(executable .* script|shell script|text)" >/dev/null 2>&1; then \
@@ -47,10 +36,6 @@
done) < ${WRKSRC}/package/commands
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/daemontools
- ${INSTALL_DATA} ${WRKDIR}/${SAMPLERC} \
- ${PREFIX}/share/examples/daemontools
- ${INSTALL_DATA_DIR} ${SERVICEDIR}
cd ${WRKDIR}/*-man; for i in 8; do \
for j in *.$$i; do ${INSTALL_MAN} $$j ${PREFIX}/man/man$$i; done \
done
diff -r d252f1ed5853 -r c7310098c198 sysutils/daemontools/PLIST
--- a/sysutils/daemontools/PLIST Sat Jan 14 03:22:51 2006 +0000
+++ b/sysutils/daemontools/PLIST Sat Jan 14 07:00:30 2006 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2004/05/02 17:50:05 xtraeme Exp $
+@comment $NetBSD: PLIST,v 1.5 2006/01/14 07:00:30 schmonz Exp $
bin/envdir
bin/envuidgid
bin/fghack
@@ -33,5 +33,3 @@
man/man8/svstat.8
man/man8/tai64n.8
man/man8/tai64nlocal.8
-share/examples/daemontools/svscan.sh.sample
-@dirrm share/examples/daemontools
diff -r d252f1ed5853 -r c7310098c198 sysutils/daemontools/files/svscan.sh.sample
--- a/sysutils/daemontools/files/svscan.sh.sample Sat Jan 14 03:22:51 2006 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#!/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 @@SERVICEDIR@@ 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 '@@PREFIX@@/bin/svscan @@SERVICEDIR@@ &'
Home |
Main Index |
Thread Index |
Old Index