aboutsummaryrefslogtreecommitdiff
path: root/sysutils/daemontools/Makefile
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2005-06-07 11:05:09 +0000
committerPeter Pentchev <roam@FreeBSD.org>2005-06-07 11:05:09 +0000
commit0f300e2a91b53999e1e6851236d18dd1093ecf73 (patch)
tree81b93ba9a2d831df4681898d676e46614b64325a /sysutils/daemontools/Makefile
parent2a4b804c71e8d8817fc4e42a234791bf4615a926 (diff)
downloadports-0f300e2a91b53999e1e6851236d18dd1093ecf73.tar.gz
ports-0f300e2a91b53999e1e6851236d18dd1093ecf73.zip
Skip directories with names starting with a dot. [1]
Wihle I'm here, add a STARTUP_SCRIPT knob to specify a different name for the etc/rc.d/svscan.sh script, e.g. allowing a name like 000.svscan.sh. PR: 81677 [1] Submitted by: Renato Botelho <freebsd@galle.com.br> [1]
Notes
Notes: svn path=/head/; revision=136985
Diffstat (limited to 'sysutils/daemontools/Makefile')
-rw-r--r--sysutils/daemontools/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysutils/daemontools/Makefile b/sysutils/daemontools/Makefile
index feb11f485708..cd826a43d43a 100644
--- a/sysutils/daemontools/Makefile
+++ b/sysutils/daemontools/Makefile
@@ -7,7 +7,7 @@
PORTNAME= daemontools
PORTVERSION= 0.76
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/daemontools/ \
ftp://cr.yp.to/daemontools/
@@ -39,6 +39,8 @@ INSTALL_TARGET= setup check
SAMPLERC= svscan.sh.sample
SERVICEDIR?= /var/service
+STARTUP_SCRIPT?= ${SAMPLERC:S/.sample//}
+PLIST_SUB+= STARTUP_SCRIPT="${STARTUP_SCRIPT}"
.include <bsd.port.pre.mk>
@@ -66,7 +68,7 @@ do-install:
done) < ${WRKSRC}/../package/commands
post-install:
- @${INSTALL_SCRIPT} ${WRKDIR}/${SAMPLERC} ${PREFIX}/etc/rc.d/${SAMPLERC:S/.sample//}
+ @${INSTALL_SCRIPT} ${WRKDIR}/${SAMPLERC} ${PREFIX}/etc/rc.d/${STARTUP_SCRIPT}
.if !defined(WITHOUT_MAN)
@${INSTALL_MAN} ${WRKDIR}/daemontools-man/*.8 ${PREFIX}/man/man8/
.endif