diff options
author | nbm <nbm@FreeBSD.org> | 2000-06-22 17:22:15 +0800 |
---|---|---|
committer | nbm <nbm@FreeBSD.org> | 2000-06-22 17:22:15 +0800 |
commit | 45f3d4f1291adfa2113fce83a662880027948b61 (patch) | |
tree | fdf4291a64012049538355ed1bae1cbdfe729961 /sysutils/daemontools/Makefile | |
parent | 37c45874b19097ddabf3e888cec513bb83b2cbe5 (diff) | |
download | freebsd-ports-gnome-45f3d4f1291adfa2113fce83a662880027948b61.tar.gz freebsd-ports-gnome-45f3d4f1291adfa2113fce83a662880027948b61.tar.zst freebsd-ports-gnome-45f3d4f1291adfa2113fce83a662880027948b61.zip |
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/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/daemontools/Makefile b/sysutils/daemontools/Makefile index 5904f65e3b30..f78311cb94df 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> |