From owner-freebsd-ports-bugs@FreeBSD.ORG Wed May 5 01:20:16 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 162E116A4CE for ; Wed, 5 May 2004 01:20:16 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B534A43D4C for ; Wed, 5 May 2004 01:20:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i458KFXV014864 for ; Wed, 5 May 2004 01:20:15 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i458KF4j014863; Wed, 5 May 2004 01:20:15 -0700 (PDT) (envelope-from gnats) Resent-Date: Wed, 5 May 2004 01:20:15 -0700 (PDT) Resent-Message-Id: <200405050820.i458KF4j014863@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, "Dennis S.Davidoff" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D92E16A4CE for ; Wed, 5 May 2004 01:10:44 -0700 (PDT) Received: from cvs.1system.ru (cvs.1system.ru [80.240.104.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02FF843D5A for ; Wed, 5 May 2004 01:10:42 -0700 (PDT) (envelope-from null@cvs.1system.ru) Received: from localhost (localhost [127.0.0.1]) by cvs.1system.ru (Postfix) with ESMTP id 14253368 for ; Wed, 5 May 2004 12:10:36 +0400 (MSD) Received: from cvs.1system.ru ([127.0.0.1]) by localhost (cvs.1system.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00305-04 for ; Wed, 5 May 2004 12:10:19 +0400 (MSD) Received: by cvs.1system.ru (Postfix, from userid 1001) id E23E134C; Wed, 5 May 2004 12:10:18 +0400 (MSD) Message-Id: <20040505081018.E23E134C@cvs.1system.ru> Date: Wed, 5 May 2004 12:10:18 +0400 (MSD) From: "Dennis S.Davidoff" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/66275: New port: net/cnupm The BPF Traffic Collector (IPv4/IPv6) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Dennis S.Davidoff" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 08:20:16 -0000 >Number: 66275 >Category: ports >Synopsis: New port: net/cnupm The BPF Traffic Collector (IPv4/IPv6) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed May 05 01:20:15 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Dennis S.Davidoff >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: System: FreeBSD cvs.1system.ru 4.9-STABLE FreeBSD 4.9-STABLE #1: Fri Dec 26 17:35:44 MSK 2003 root@cvs.1system.ru:/usr/obj/usr/src/sys/CVS i386 >Description: The cnupm is an IP/IPv6 traffic collector daemon; it listens on a network interface for IP/IPv6 packets that match the boolean expression (see tcpdump(8) for more information) and collects the following statistics: o address family (INET/INET6) o IP/IPv6 protocol number o source IP/IPv6 address o source TCP/UDP port o destination IP/IPv6 address o destination TCP/UDP port o total number of bytes trasferred WWW: http://pdp-11.org.ru/~form/cnupm >How-To-Repeat: >Fix: --- cnupm.arc begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # cnupm/Makefile # cnupm/distinfo # cnupm/files # cnupm/pkg-descr # cnupm/pkg-plist # echo x - cnupm/Makefile sed 's/^X//' >cnupm/Makefile << 'END-of-cnupm/Makefile' X# New ports collection makefile for: cnupm X# Date created: 29 October 2003 X# Whom: Dennis S.Davidoff X# X# $FreeBSD$ X# X XPORTNAME= cnupm XPORTVERSION= 3.5 XCATEGORIES= net ipv6 XMASTER_SITES= http://pdp-11.org.ru/~form/cnupm/files/ X XMAINTAINER= null@1system.ru XCOMMENT= The BPF Traffic Collector (IPv4/IPv6) X XMAN8= cnupm.8 cnupmstat.8 XMANCOMPRESSED= yes X XCNUPM_OWN?= cnupm XCNUPM_GRP?= cnupm XCNUPM_UID?= 666 XCNUPM_GID?= 666 X XPW= /usr/sbin/pw X XPLIST_SUB+= CNUPM_OWN="${CNUPM_OWN}" CNUPM_GRP="${CNUPM_GRP}" \ X CNUPM_UID="${CNUPM_UID}" CNUPM_GID="${CNUPM_GID}" X Xpost-install: X ${PW} groupshow ${CNUPM_GRP} 2>/dev/null || ${PW} group add \ X -n ${CNUPM_GRP} -g ${CNUPM_GID} X ${PW} user show ${CNUPM_OWN} 2>/dev/null || ${PW} user add \ X -n ${CNUPM_OWN} -c 'Cnupm traffic collector' \ X -u ${CNUPM_UID} -g ${CNUPM_GID} -s /sbin/nologin X ${INSTALL} -o ${CNUPM_OWN} -g ${CNUPM_GRP} -m 750 -d ${PREFIX}/var/cnupm X ${PW} user mod -n ${CNUPM_OWN} -d ${PREFIX}/var/cnupm X ${INSTALL} -m 755 ${FILESDIR}/cnupm.sh ${PREFIX}/etc/rc.d X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} X.endif X @${ECHO_CMD} '*********************************************************' X @${ECHO_CMD} '' X @${ECHO_CMD} 'You should add the following lines to your /etc/rc.conf:' X @${ECHO_CMD} '' X @${ECHO_CMD} 'cnupm="YES"' X @${ECHO_CMD} 'cnupm_ifaces="rl0" # Change this with your interface(s)!' X @${ECHO_CMD} '#cnupm_flags="" # set this one to override dafaults flags' X @${ECHO_CMD} '' X @${ECHO_CMD} 'Also look at ${PREFIX}/etc/rc.d/cnupm.sh' X @${ECHO_CMD} '' X @${ECHO_CMD} '*********************************************************' X X.include END-of-cnupm/Makefile echo x - cnupm/distinfo sed 's/^X//' >cnupm/distinfo << 'END-of-cnupm/distinfo' XMD5 (cnupm-3.5.tar.gz) = c9b1f2670e7bd7aaeda6fa26d0434f4f XSIZE (cnupm-3.5.tar.gz) = 31984 END-of-cnupm/distinfo echo c - cnupm/files mkdir -p cnupm/files > /dev/null 2>&1 echo x - cnupm/pkg-descr sed 's/^X//' >cnupm/pkg-descr << 'END-of-cnupm/pkg-descr' XThe cnupm is an IP/IPv6 traffic collector daemon; it listens on a network Xinterface for IP/IPv6 packets that match the boolean expression (see Xtcpdump(8) for more information) and collects the following statistics: X X o address family (INET/INET6) X o IP/IPv6 protocol number X o source IP/IPv6 address X o source TCP/UDP port X o destination IP/IPv6 address X o destination TCP/UDP port X o total number of bytes trasferred X XWWW: http://pdp-11.org.ru/~form/cnupm END-of-cnupm/pkg-descr echo x - cnupm/pkg-plist sed 's/^X//' >cnupm/pkg-plist << 'END-of-cnupm/pkg-plist' Xetc/rc.d/cnupm.sh Xsbin/cnupm Xsbin/cnupmstat X%%PORTDOCS%%share/doc/cnupm/README X%%PORTDOCS%%@dirrm share/doc/cnupm X@exec pw groupshow %%CNUPM_GRP%% 2>/dev/null || pw group add -n cnupm -g %%CNUPM_GID%% X@exec pw user show %%CNUPM_OWN%% 2>/dev/null || pw user add -n %%CNUPM_OWN%% -c 'Cnupm traffic collector' -u %%CNUPM_UID%% -g %%CNUPM_GID%% -s /sbin/nologin X@exec install -o cnupm -g cnupm -m 750 -d %D/var/cnupm X@exec pw user mod -n cnupm -d %D/var/cnupm X@unexec rmdir %D/var/cnupm 2>/dev/null || true END-of-cnupm/pkg-plist exit --- cnupm.arc ends here --- >Release-Note: >Audit-Trail: >Unformatted: