1999-10-25 05:31:14 +02:00
|
|
|
# New ports collection makefile for: tdetect
|
1999-05-03 04:49:35 +02:00
|
|
|
# Ports collection makefile for: tdetect
|
|
|
|
# Version required: 0.2
|
|
|
|
# Date created: Sun Jan 31, 1997
|
|
|
|
# Whom: shipley@dis.org
|
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1999-05-03 04:49:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= tdetect-0.2
|
|
|
|
PKGNAME= tdetect-0.2.1
|
1999-10-25 05:31:14 +02:00
|
|
|
CATEGORIES= net
|
1999-05-03 04:49:35 +02:00
|
|
|
MASTER_SITES= http://sb.123.org/ \
|
|
|
|
http://www.genocide2600.com/~tattooman/unix-loggers/ \
|
|
|
|
http://ftp.ceti.com.pl/pub/scout/progs/Unix/
|
|
|
|
|
|
|
|
MAINTAINER= shipley@dis.org
|
|
|
|
|
|
|
|
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; \
|
1999-07-04 21:18:49 +02:00
|
|
|
${ECHO} "ETHERNETDEV=ed0" >> ${PREFIX}/etc/rc.d/tdetect.sh; \
|
1999-08-28 00:30:39 +02:00
|
|
|
${ECHO} '[ -x ${PREFIX}/sbin/tdetect ] && ${PREFIX}/sbin/tdetect \$ETHERNETDEV && ${ECHO} -n " tdetect"' >> ${PREFIX}/etc/rc.d/tdetect.sh; \
|
1999-08-22 21:01:07 +02:00
|
|
|
${CHMOD} 750 ${PREFIX}/etc/rc.d/tdetect.sh; \
|
1999-07-04 21:18:49 +02:00
|
|
|
${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} ''; \
|
1999-05-03 04:49:35 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|