diff options
Diffstat (limited to 'net/tdetect')
-rw-r--r-- | net/tdetect/Makefile | 6 | ||||
-rw-r--r-- | net/tdetect/pkg-message | 2 |
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 |