summaryrefslogtreecommitdiffstats
path: root/sysutils/daemontools
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2002-01-04 14:38:13 +0000
committerroam <roam@FreeBSD.org>2002-01-04 14:38:13 +0000
commita9b8976aba8589c52ee0e19d1f0b7598d6521240 (patch)
treea5cea7a36038953208dd0830dea94119ba4fac30 /sysutils/daemontools
parentfc418abdd5b058fcff9f4df342228f4805c2917c (diff)
downloadFreeBSD-ports-a9b8976aba8589c52ee0e19d1f0b7598d6521240.zip
FreeBSD-ports-a9b8976aba8589c52ee0e19d1f0b7598d6521240.tar.gz
Update to 0.76.
Assume maintainership. Reviewed by: nbm Approved by: nbm
Diffstat (limited to 'sysutils/daemontools')
-rw-r--r--sysutils/daemontools/Makefile18
-rw-r--r--sysutils/daemontools/distinfo2
-rw-r--r--sysutils/daemontools/files/patch-Makefile26
-rw-r--r--sysutils/daemontools/files/patch-supervise.c24
-rw-r--r--sysutils/daemontools/files/svscan.sh.sample3
-rw-r--r--sysutils/daemontools/pkg-plist3
6 files changed, 45 insertions, 31 deletions
diff --git a/sysutils/daemontools/Makefile b/sysutils/daemontools/Makefile
index 465aeb9..7bc4107 100644
--- a/sysutils/daemontools/Makefile
+++ b/sysutils/daemontools/Makefile
@@ -6,14 +6,14 @@
#
PORTNAME= daemontools
-PORTVERSION= 0.70
-PORTREVISION= 1
+PORTVERSION= 0.76
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/daemontools/ \
ftp://cr.yp.to/daemontools/
-MAINTAINER= nbm@FreeBSD.org
+MAINTAINER= roam@FreeBSD.org
+WRKSRC= ${WRKDIR}/admin/${DISTNAME}/src
NO_PACKAGE= "Unsure of djb\'s license"
ALL_TARGET= it
@@ -24,13 +24,21 @@ SERVICEDIR?= /var/service/
post-patch:
@echo "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
- @echo "${CC} -s" > ${WRKSRC}/conf-ld
- @echo "${PREFIX}" > ${WRKSRC}/conf-home
+ @echo "${CC} ${STRIP}" > ${WRKSRC}/conf-ld
post-build:
@${SED} "s!/usr/local/!${PREFIX}/!;s!/var/service!${SERVICEDIR}!g" \
${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} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
${PREFIX}/share/examples/${PORTNAME}
diff --git a/sysutils/daemontools/distinfo b/sysutils/daemontools/distinfo
index 211f9bd..6aa5381 100644
--- a/sysutils/daemontools/distinfo
+++ b/sysutils/daemontools/distinfo
@@ -1 +1 @@
-MD5 (daemontools-0.70.tar.gz) = c88e8c5e4453b4df41571f60eaa0baf3
+MD5 (daemontools-0.76.tar.gz) = 1871af2453d6e464034968a0fbcb2bfc
diff --git a/sysutils/daemontools/files/patch-Makefile b/sysutils/daemontools/files/patch-Makefile
new file mode 100644
index 0000000..4b4939a
--- /dev/null
+++ b/sysutils/daemontools/files/patch-Makefile
@@ -0,0 +1,26 @@
+--- Makefile.old Fri Aug 31 15:16:47 2001
++++ Makefile Fri Aug 31 15:17:04 2001
+@@ -82,10 +82,9 @@
+ chkshsgr.o: chkshsgr.c compile
+ ./compile chkshsgr.c
+
+-choose: choose.sh home warn-auto.sh
++choose: choose.sh warn-auto.sh
+ rm -f choose
+ cat warn-auto.sh choose.sh \
+- | sed s}HOME}"`head -1 home`"}g \
+ > choose
+ chmod 555 choose
+
+@@ -387,10 +386,9 @@
+ pathexec.h str.h strerr.h svscan.c wait.h
+ ./compile svscan.c
+
+-svscanboot: home svscanboot.sh warn-auto.sh
++svscanboot: svscanboot.sh warn-auto.sh
+ rm -f svscanboot
+ cat warn-auto.sh svscanboot.sh \
+- | sed s}HOME}"`head -1 home`"}g \
+ > svscanboot
+ chmod 555 svscanboot
+
diff --git a/sysutils/daemontools/files/patch-supervise.c b/sysutils/daemontools/files/patch-supervise.c
deleted file mode 100644
index bb9416d..0000000
--- a/sysutils/daemontools/files/patch-supervise.c
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -urN supervise.c supervise.c
---- supervise.c Mon Mar 6 07:21:09 2000
-+++ supervise.c Mon Apr 23 11:15:10 2001
-@@ -90,7 +90,12 @@
- void trystart(void)
- {
- int f;
-+ static int firstpassed = 0;
-
-+ if (firstpassed)
-+ sleep(1);
-+ else
-+ firstpassed = 1;
- switch(f = fork()) {
- case -1:
- strerr_warn4(WARNING,"unable to fork for ",dir,", sleeping 60 seconds: ",&strerr_sys);
-@@ -105,7 +110,6 @@
- pid = f;
- pidchange();
- announce();
-- sleep(1);
- }
-
- void doit(void)
diff --git a/sysutils/daemontools/files/svscan.sh.sample b/sysutils/daemontools/files/svscan.sh.sample
index ab67f45..8f23113 100644
--- a/sysutils/daemontools/files/svscan.sh.sample
+++ b/sysutils/daemontools/files/svscan.sh.sample
@@ -31,4 +31,5 @@
#ulimit -s ${MINSEGMENT}
#ulimit -u ${MAXCHILD}
-exec /bin/csh -cf '/usr/local/bin/svscan /var/service &'
+exec /bin/csh -cf '/usr/local/bin/svscan /var/service |& '\
+'/usr/local/bin/readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................ &'
diff --git a/sysutils/daemontools/pkg-plist b/sysutils/daemontools/pkg-plist
index bedaad4..058755f 100644
--- a/sysutils/daemontools/pkg-plist
+++ b/sysutils/daemontools/pkg-plist
@@ -1,9 +1,11 @@
bin/svscan
+bin/svscanboot
bin/supervise
bin/svc
bin/svok
bin/svstat
bin/fghack
+bin/pgrphack
bin/multilog
bin/tai64n
bin/tai64nlocal
@@ -12,3 +14,4 @@ bin/setuidgid
bin/envuidgid
bin/envdir
bin/setlock
+bin/readproctitle
OpenPOWER on IntegriCloud