ports/66275: New port: net/cnupm The BPF Traffic Collector (IPv4/IPv6)

Dennis S.Davidoff null at cvs.1system.ru
Wed May 5 08:20:16 UTC 2004


>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 at 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 <null at 1system.ru>
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 at 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 <bsd.port.mk>
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 at exec pw groupshow %%CNUPM_GRP%% 2>/dev/null || pw group add -n cnupm -g %%CNUPM_GID%%
X at 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 at exec install -o cnupm -g cnupm -m 750 -d %D/var/cnupm
X at exec pw user mod -n cnupm -d %D/var/cnupm
X at unexec rmdir %D/var/cnupm 2>/dev/null || true
END-of-cnupm/pkg-plist
exit
--- cnupm.arc ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list