diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-11-10 14:52:33 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-11-10 14:52:33 +0000 |
commit | 57453356560107ce4aed11d7ccb335c32d9b3670 (patch) | |
tree | 149658423c7681205a0413151883524a13413bc1 /net/tdetect | |
parent | b5f3820240510830d6aa87b29f2d785069d5ac25 (diff) | |
download | ports-57453356560107ce4aed11d7ccb335c32d9b3670.tar.gz ports-57453356560107ce4aed11d7ccb335c32d9b3670.zip |
Notes
Diffstat (limited to 'net/tdetect')
-rw-r--r-- | net/tdetect/Makefile | 19 | ||||
-rw-r--r-- | net/tdetect/files/patch-Makefile | 13 | ||||
-rw-r--r-- | net/tdetect/files/pkg-message.in (renamed from net/tdetect/pkg-message) | 2 | ||||
-rw-r--r-- | net/tdetect/pkg-plist | 2 |
4 files changed, 21 insertions, 15 deletions
diff --git a/net/tdetect/Makefile b/net/tdetect/Makefile index ce448bea41c0..2a541b207bdd 100644 --- a/net/tdetect/Makefile +++ b/net/tdetect/Makefile @@ -1,30 +1,29 @@ -# New ports collection makefile for: tdetect -# Date created: Sun Jan 31, 1997 -# Whom: shipley@dis.org -# +# Created by: shipley@dis.org # $FreeBSD$ -# PORTNAME= tdetect PORTVERSION= 0.2 CATEGORIES= net -MASTER_SITES= # disappeared +MASTER_SITES= PACKETSTORM/UNIX/loggers MAINTAINER= ports@FreeBSD.org COMMENT= Utility for detecting traceroutes and reporting them via syslog +PLIST_FILES= sbin/tdetect etc/rc.d/tdetect.sh +SUB_FILES= pkg-message + pre-configure: - ${REINPLACE_CMD} -e 's/trdetect/tdetect/g' ${WRKSRC}/config.h - ${REINPLACE_CMD} -e 's/LOG_AUTHPRIV/LOG_SECURITY/g' ${WRKSRC}/config.h + @${REINPLACE_CMD} -e 's/trdetect/tdetect/g' ${WRKSRC}/config.h + @${REINPLACE_CMD} -e 's/LOG_AUTHPRIV/LOG_SECURITY/g' ${WRKSRC}/config.h do-install: ${INSTALL_PROGRAM} ${WRKSRC}/tdetect ${PREFIX}/sbin/tdetect post-install: @if [ ! -f ${PREFIX}/etc/rc.d/tdetect.sh ]; then \ - ${ECHO} "Installing ${PREFIX}/etc/rc.d/tdetect.sh startup file."; \ + ${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/tdetect.sh startup file."; \ ${INSTALL_SCRIPT} -m 750 ${FILESDIR}/tdetect.sh ${PREFIX}/etc/rc.d/tdetect.sh; \ - ${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}; \ + ${CAT} ${PKGMESSAGE}; \ fi .include <bsd.port.mk> diff --git a/net/tdetect/files/patch-Makefile b/net/tdetect/files/patch-Makefile index ce7a5c22899d..31de620d9150 100644 --- a/net/tdetect/files/patch-Makefile +++ b/net/tdetect/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Wed Oct 22 16:58:23 2003 -+++ Makefile Wed Oct 22 16:58:37 2003 +--- Makefile.orig 1998-08-13 17:17:57.000000000 +0900 ++++ Makefile 2012-09-08 03:33:04.000000000 +0900 @@ -1,11 +1,11 @@ # Makefile @@ -14,3 +14,12 @@ OBJS=main.o null.o ether.o ip.o LIBS= -lpcap SRC=$(OBJS:%.o=%.c) +@@ -13,7 +13,7 @@ + all: tdetect + + tdetect: $(OBJS) +- $(CC) $(OBJS) $(LIBS) $(DEBUG) -s -o tdetect ++ $(CC) $(OBJS) $(LIBS) $(DEBUG) -o tdetect + + clean: + rm -f *.o tdetect *.b diff --git a/net/tdetect/pkg-message b/net/tdetect/files/pkg-message.in index 813a6b742082..ad7410dd89c5 100644 --- a/net/tdetect/pkg-message +++ b/net/tdetect/files/pkg-message.in @@ -1,6 +1,6 @@ IMPORTANT! -Dont forget to edit /usr/local/etc/rc.d/tdetect.sh +Dont forget to edit %%PREFIX%%/etc/rc.d/tdetect.sh and set ETHERNETDEV to the name of the ethernet device you wish to monitor diff --git a/net/tdetect/pkg-plist b/net/tdetect/pkg-plist deleted file mode 100644 index 21330e123c4c..000000000000 --- a/net/tdetect/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -sbin/tdetect -etc/rc.d/tdetect.sh |