svn commit: r307283 - in head/net/tdetect: . files
Pawel Pekala
pawel at FreeBSD.org
Sat Nov 10 14:52:34 UTC 2012
Author: pawel
Date: Sat Nov 10 14:52:33 2012
New Revision: 307283
URL: http://svnweb.freebsd.org/changeset/ports/307283
Log:
- Add MASTER_SITES
- Use ECHO_MSG, SUB_FILES
- Switch to PLIST_FILES
PR: ports/172043
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Feature safe: yes
Added:
head/net/tdetect/files/pkg-message.in (contents, props changed)
Deleted:
head/net/tdetect/pkg-message
head/net/tdetect/pkg-plist
Modified:
head/net/tdetect/Makefile
head/net/tdetect/files/patch-Makefile
Modified: head/net/tdetect/Makefile
==============================================================================
--- head/net/tdetect/Makefile Sat Nov 10 14:45:55 2012 (r307282)
+++ head/net/tdetect/Makefile Sat Nov 10 14:52:33 2012 (r307283)
@@ -1,30 +1,29 @@
-# New ports collection makefile for: tdetect
-# Date created: Sun Jan 31, 1997
-# Whom: shipley at dis.org
-#
+# Created by: shipley at dis.org
# $FreeBSD$
-#
PORTNAME= tdetect
PORTVERSION= 0.2
CATEGORIES= net
-MASTER_SITES= # disappeared
+MASTER_SITES= PACKETSTORM/UNIX/loggers
MAINTAINER= ports at 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>
Modified: head/net/tdetect/files/patch-Makefile
==============================================================================
--- head/net/tdetect/files/patch-Makefile Sat Nov 10 14:45:55 2012 (r307282)
+++ head/net/tdetect/files/patch-Makefile Sat Nov 10 14:52:33 2012 (r307283)
@@ -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
Added: head/net/tdetect/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/tdetect/files/pkg-message.in Sat Nov 10 14:52:33 2012 (r307283)
@@ -0,0 +1,6 @@
+
+IMPORTANT!
+
+Dont forget to edit %%PREFIX%%/etc/rc.d/tdetect.sh
+and set ETHERNETDEV to the name of the ethernet device you wish to monitor
+
More information about the svn-ports-head
mailing list