diff options
author | pawel <pawel@FreeBSD.org> | 2012-11-10 22:52:33 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2012-11-10 22:52:33 +0800 |
commit | bd76303dbc92318490357c07bcdb414f9e66c39d (patch) | |
tree | 149658423c7681205a0413151883524a13413bc1 | |
parent | 77125d3fd78c2fe61f68ed08d331794126a4aac0 (diff) | |
download | freebsd-ports-gnome-bd76303dbc92318490357c07bcdb414f9e66c39d.tar.gz freebsd-ports-gnome-bd76303dbc92318490357c07bcdb414f9e66c39d.tar.zst freebsd-ports-gnome-bd76303dbc92318490357c07bcdb414f9e66c39d.zip |
- Add MASTER_SITES
- Use ECHO_MSG, SUB_FILES
- Switch to PLIST_FILES
PR: ports/172043
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Feature safe: yes
-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 |