summaryrefslogtreecommitdiffstats
path: root/sysutils/daemontools/Makefile
diff options
context:
space:
mode:
authornbm <nbm@FreeBSD.org>2000-06-22 09:22:15 +0000
committernbm <nbm@FreeBSD.org>2000-06-22 09:22:15 +0000
commit45f3d4f1291adfa2113fce83a662880027948b61 (patch)
treefdf4291a64012049538355ed1bae1cbdfe729961 /sysutils/daemontools/Makefile
parent37c45874b19097ddabf3e888cec513bb83b2cbe5 (diff)
downloadFreeBSD-ports-45f3d4f1291adfa2113fce83a662880027948b61.zip
FreeBSD-ports-45f3d4f1291adfa2113fce83a662880027948b61.tar.gz
Add a sample rc file for svscan startup, in partial fulfillment of the
PR. I'll leave the creation of the directory, whatever it may be, to the user. PR: ports/19191 Submitted by: Mario Sergio Fujikawa Ferreira <lioux@linf.unb.br>
Diffstat (limited to 'sysutils/daemontools/Makefile')
-rw-r--r--sysutils/daemontools/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/daemontools/Makefile b/sysutils/daemontools/Makefile
index 5904f65..f78311c 100644
--- a/sysutils/daemontools/Makefile
+++ b/sysutils/daemontools/Makefile
@@ -17,9 +17,22 @@ NO_PACKAGE= Unsure of djb\'s license
ALL_TARGET= it
INSTALL_TARGET= setup check
+SAMPLERC= svscan.sh.sample
+SERVICEDIR?= /var/service/
+
post-patch:
@echo "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
@echo "${CC} -s" > ${WRKSRC}/conf-ld
@echo "${PREFIX}" > ${WRKSRC}/conf-home
+post-build:
+ @${SED} "s!/usr/local/!${PREFIX}/!;s!/var/service!${SERVICEDIR}!g" \
+ ${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
+
+post-install:
+ @${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
+ ${PREFIX}/share/examples/${PORTNAME}
+ @${INSTALL_DATA} ${WRKDIR}/${SAMPLERC} \
+ ${PREFIX}/share/examples/${PORTNAME}
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud