summaryrefslogtreecommitdiff
path: root/net/tdetect
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>1999-11-01 01:07:57 +0000
committerMichael Haro <mharo@FreeBSD.org>1999-11-01 01:07:57 +0000
commit384d2bda4ea71dec7c41e8a0730dfe7db46b0e89 (patch)
tree9a91b0446ac88c683ad846da1bd67463d9bc607b /net/tdetect
parentUpdate to version 19991020. (diff)
move install message to pkg/MESSAGE and remove extra strip
Notes
Notes: svn path=/head/; revision=22767
Diffstat (limited to 'net/tdetect')
-rw-r--r--net/tdetect/Makefile6
-rw-r--r--net/tdetect/pkg-message2
2 files changed, 2 insertions, 6 deletions
diff --git a/net/tdetect/Makefile b/net/tdetect/Makefile
index 72018a1293d4..f414b326c967 100644
--- a/net/tdetect/Makefile
+++ b/net/tdetect/Makefile
@@ -28,17 +28,13 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tdetect ${PREFIX}/sbin/tdetect
post-install:
- strip ${PREFIX}/sbin/tdetect
@if [ ! -f ${PREFIX}/etc/rc.d/tdetect.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/tdetect.sh startup file."; \
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/tdetect.sh; \
${ECHO} "ETHERNETDEV=ed0" >> ${PREFIX}/etc/rc.d/tdetect.sh; \
${ECHO} '[ -x ${PREFIX}/sbin/tdetect ] && ${PREFIX}/sbin/tdetect $$ETHERNETDEV && ${ECHO} -n " tdetect"' >> ${PREFIX}/etc/rc.d/tdetect.sh; \
${CHMOD} 750 ${PREFIX}/etc/rc.d/tdetect.sh; \
- ${ECHO} ''; \
- ${ECHO} 'IMPORTANT edit ${PREFIX}/etc/rc.d/tdetect.sh and set "ETHERNETDEV" to'; \
- ${ECHO} "the name of the ethernetdev you wish to monitor"; \
- ${ECHO} ''; \
+ ${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}; \
fi
.include <bsd.port.post.mk>
diff --git a/net/tdetect/pkg-message b/net/tdetect/pkg-message
index 6d0ac14bcc39..813a6b742082 100644
--- a/net/tdetect/pkg-message
+++ b/net/tdetect/pkg-message
@@ -1,6 +1,6 @@
IMPORTANT!
-Dont forget to edit ${PREFIX}/etc/rc.d/tdetect.sh
+Dont forget to edit /usr/local/etc/rc.d/tdetect.sh
and set ETHERNETDEV to the name of the ethernet device you wish to monitor