From owner-svn-ports-head@FreeBSD.ORG Sat Nov 10 14:52:34 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 08B2C68C; Sat, 10 Nov 2012 14:52:34 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id DAE8A8FC12; Sat, 10 Nov 2012 14:52:33 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAAEqXcx036669; Sat, 10 Nov 2012 14:52:33 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAAEqXII036666; Sat, 10 Nov 2012 14:52:33 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201211101452.qAAEqXII036666@svn.freebsd.org> From: Pawel Pekala Date: Sat, 10 Nov 2012 14:52:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307283 - in head/net/tdetect: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2012 14:52:34 -0000 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 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@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 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 +