From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 14 18:50:28 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 458F1106566B for ; Fri, 14 Oct 2011 18:50:28 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 21B748FC28 for ; Fri, 14 Oct 2011 18:50:28 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9EIoRPA052260 for ; Fri, 14 Oct 2011 18:50:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9EIoR7W052255; Fri, 14 Oct 2011 18:50:27 GMT (envelope-from gnats) Resent-Date: Fri, 14 Oct 2011 18:50:27 GMT Resent-Message-Id: <201110141850.p9EIoR7W052255@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F52410656A6 for ; Fri, 14 Oct 2011 18:44:18 +0000 (UTC) (envelope-from tkato432@yahoo.com) Received: from msa105lp.auone-net.jp (msa105lp.auone-net.jp [222.3.140.168]) by mx1.freebsd.org (Postfix) with ESMTP id C4F7A8FC18 for ; Fri, 14 Oct 2011 18:44:17 +0000 (UTC) Received: from msa105lp.auone-net.jp (MSA105lp [172.27.12.183]) by msa105lp.auone-net.jp (au one net msa) with ESMTP id C7B28570259 for ; Sat, 15 Oct 2011 03:35:00 +0900 (JST) Received: from localhost.localdomain (ZT046175.ppp.dion.ne.jp [59.128.46.175]) by msa105lp.auone-net.jp (au one net msa) with ESMTP id 2D49B50037 for ; Sat, 15 Oct 2011 03:34:57 +0900 (JST) Message-Id: <20111015025914.5cec4768.tkato432@yahoo.com> Date: Sat, 15 Oct 2011 02:59:14 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/161639: Update port: net-mgmt/flow-extract X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2011 18:50:28 -0000 >Number: 161639 >Category: ports >Synopsis: Update port: net-mgmt/flow-extract >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 14 18:50:27 UTC 2011 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.4-RELEASE-p3 i386 >Organization: >Environment: >Description: - Update MASTER_SITES and WWW: line - Add LICENSE - Support CFLAGS properly - Support PLIST_FILES Remove file: files/patch-Makefile >How-To-Repeat: >Fix: diff -urN /usr/ports/net-mgmt/flow-extract/Makefile net-mgmt/flow-extract/Makefile --- /usr/ports/net-mgmt/flow-extract/Makefile 2011-08-03 15:44:14.000000000 +0900 +++ net-mgmt/flow-extract/Makefile 2011-09-16 18:05:07.000000000 +0900 @@ -7,25 +7,31 @@ PORTNAME= flow-extract PORTVERSION= 2.61 +PORTREVISION= 1 CATEGORIES= net-mgmt -MASTER_SITES= http://itservices.uchicago.edu/groups/security/tools/flow-extract/ -DISTNAME= flow-extract-${PORTVERSION} +MASTER_SITES= http://answers.uchicago.edu/images/group68/19876/ MAINTAINER= ports@FreeBSD.org COMMENT= Cisco NetFlow awk-like extracting tool -BUILD_DEPENDS= flow-cat:${PORTSDIR}/net-mgmt/flow-tools +LICENSE= GPLv1 +LICENSE_FILE= ${WRKSRC}/COPYING -MAN1= flow-extract.1 -PLIST_FILES= bin/flow-extract +BUILD_DEPENDS= ${LOCALBASE}/include/ftlib.h:${PORTSDIR}/net-mgmt/flow-tools WRKSRC= ${WRKDIR}/${PORTNAME} -post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}" +MAKE_JOBS_SAFE= yes + +MAN1= flow-extract.1 +PLIST_FILES= bin/flow-extract + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS= ${LOCALBASE}/lib/libft.a -lz do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/flow-extract ${PREFIX}/bin - @${INSTALL_MAN} ${WRKSRC}/flow-extract.1 ${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/flow-extract ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/flow-extract.1 ${MANPREFIX}/man/man1 .include diff -urN /usr/ports/net-mgmt/flow-extract/files/patch-Makefile net-mgmt/flow-extract/files/patch-Makefile --- /usr/ports/net-mgmt/flow-extract/files/patch-Makefile 2008-05-15 02:25:23.000000000 +0900 +++ net-mgmt/flow-extract/files/patch-Makefile 1970-01-01 09:00:00.000000000 +0900 @@ -1,39 +0,0 @@ ---- /home/barzog/Makefile 2008-05-11 02:57:48.000000000 +0000 -+++ Makefile 2008-05-11 02:59:59.000000000 +0000 -@@ -10,10 +10,10 @@ - # - # For SunOS 5, use LIBS=-lsocket -lnsl - # --CC=gcc --FLAGS=-ggdb3 -gstabs -D_FILE_OFFSET_BITS=64 --LIBS=-L/opt/lib -R/opt/lib /opt/lib/libft.a -lsocket -lnsl -lz --INCLUDES=-I/opt/include -+#CC=gcc -+#FLAGS=-ggdb3 -gstabs -D_FILE_OFFSET_BITS=64 -+#LIBS=-L/opt/lib -R/opt/lib /opt/lib/libft.a -lsocket -lnsl -lz -+#INCLUDES=-I/opt/include - # - # For Linux - # -@@ -22,9 +22,9 @@ - #INCLUDES= - # - # For BSD --FLAGS=-ggdb3 -gstabs -D_FILE_OFFSET_BITS=64 --LIBS=-L/usr/local/netflow/lib /usr/local/netflow/lib/libft.a -lz --INCLUDES=-I/usr/local/netflow/include -+CC ?= cc -+LIBS=-L%%PREFIX%%/lib -lft -lz -+INCLUDES=-I%%PREFIX%%/include - # - # - #------------------------------------------------------------------------ -@@ -36,7 +36,7 @@ - - #CC = cc - LIB=$(LIBS) --CFLAGS=-O $(FLAGS) $(INCLUDES) -+CFLAGS=$(INCLUDES) - - all: flow-extract - diff -urN /usr/ports/net-mgmt/flow-extract/pkg-descr net-mgmt/flow-extract/pkg-descr --- /usr/ports/net-mgmt/flow-extract/pkg-descr 2009-12-21 15:56:27.000000000 +0900 +++ net-mgmt/flow-extract/pkg-descr 2011-09-15 17:38:16.000000000 +0900 @@ -1,6 +1,3 @@ -A copy of this package can be found at: -WWW: http://security.uchicago.edu/tools/net-forensics/ - This package is a port of TAMU's extract program from NetLogger to look at flow data instead of netlogger data. Blame Larry for it's faults, not TAMU. Blame me for the FreeBSD port, not Larry :-) @@ -13,3 +10,5 @@ In order for this to compile you will need flowtools from Mark Fullmer's (net-mgmt/flow-tools port). + +WWW: http://answers.uchicago.edu/page.php?id=19876 >Release-Note: >Audit-Trail: >Unformatted: