Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2005 10:53:57 +0300 (MSK)
From:      "Dennis S.Davidoff" <null@1system.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        mnag@FreeBSD.org
Subject:   ports/89656: Update port: net/cnupm
Message-ID:  <20051128075357.12CA03BD2E@hosting.1system.ru>
Resent-Message-ID: <200511280800.jAS80CRX060706@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         89656
>Category:       ports
>Synopsis:       Update port: net/cnupm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 28 08:00:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dennis S.Davidoff
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD hosting.1system.ru 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Oct 12 14:43:54 MSD 2005 root@hosting.1system.ru:/usr/obj/usr/src/sys/HOSTING i386


	
>Description:
	Update port: net/cnupm The BPF Traffic Collector to v3.10
	These changes has been added:
	- enc interface support in obsd
	- port aggregate support
>How-To-Repeat:
	
>Fix:

	

--- cnupm.sh 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
#	cnupm/files
#	cnupm/files/cnupm.sh.in
#	cnupm/Makefile
#	cnupm/distinfo
#	cnupm/pkg-descr
#	cnupm/pkg-message
#	cnupm/pkg-plist
#
echo c - cnupm
mkdir -p cnupm > /dev/null 2>&1
echo c - cnupm/files
mkdir -p cnupm/files > /dev/null 2>&1
echo x - cnupm/files/cnupm.sh.in
sed 's/^X//' >cnupm/files/cnupm.sh.in << 'END-of-cnupm/files/cnupm.sh.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/net/cnupm/files/cnupm.sh.in,v 1.1 2005/06/22 15:40:51 lawrance Exp $
X#
X
X#
X# Add the following lines to /etc/rc.conf to enable rsyncd:
X#
X# cnupm_enable="YES"
X# cnupm_ifaces="rl0"	# Change this with your interface!
X# cnupm_flags=""		# Set this one to override default flags
X#
X# See cnupm(8) for flags
X#
X
X. %%RC_SUBR%%
X
Xname=cnupm
Xrcvar=`set_rcvar`
Xcommand=%%PREFIX%%/sbin/cnupm
Xcnupm_flags="-ep -f inet -u cnupm"
X
Xload_rc_config ${name}
X
Xcnupm_enable=${cnupm_enable:-"NO"}
X
Xcase ${cnupm_enable} in
X[Yy][Ee][Ss])
X	if [ -z ${cnupm_iface} ]; then
X		err 1 "cnupm_iface is not set - edit /etc/rc.conf"
X	fi
Xesac
X
Xcnupm_flags="-i ${cnupm_iface} ${cnupm_flags:-""}"
Xpidfile=~${name}/${name}-${cnupm_iface}.pid
X
Xrun_rc_command "$1"
END-of-cnupm/files/cnupm.sh.in
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@1system.ru>
X#
X# $FreeBSD: ports/net/cnupm/Makefile,v 1.3 2005/10/21 23:12:56 mnag Exp $
X#
X
XPORTNAME=	cnupm
XPORTVERSION=	3.10
XCATEGORIES=	net ipv6
XMASTER_SITES=	http://pdp-11.org.ru/~form/cnupm/files/ \
X		${MASTER_SITE_LOCAL}
XMASTER_SITE_SUBDIR=	mnag/${PORTNAME}
X
XMAINTAINER=	null@1system.ru
XCOMMENT=	The BPF Traffic Collector (IPv4/IPv6)
X
XUSE_RC_SUBR=	cnupm.sh
XMAN8=		cnupm.8 cnupmstat.8
XMANCOMPRESSED=	yes
X
XCNUPM_OWN?=	cnupm
XCNUPM_GRP?=	cnupm
X
XPW=		/usr/sbin/pw
X
XPLIST_SUB+=	CNUPM_OWN="${CNUPM_OWN}" CNUPM_GRP="${CNUPM_GRP}"
X
Xpost-install:
X	${PW} groupshow ${CNUPM_GRP} 2>/dev/null || ${PW} groupadd \
X		-n ${CNUPM_GRP}
X	${PW} usershow ${CNUPM_OWN} 2>/dev/null || ${PW} useradd \
X		-n ${CNUPM_OWN} -c 'Cnupm traffic collector' \
X		-g ${CNUPM_GRP} -s /sbin/nologin
X	${INSTALL} -o ${CNUPM_OWN} -g ${CNUPM_GRP} -m 750 -d ${PREFIX}/var/cnupm
X	${PW} usermod -n ${CNUPM_OWN} -d ${PREFIX}/var/cnupm
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X
X	@${CAT} ${PKGMESSAGE}
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.10.tar.gz) = 51a1db5ebb06ff50f3d6774eb308ca3c
XSIZE (cnupm-3.10.tar.gz) = 35522
END-of-cnupm/distinfo
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-message
sed 's/^X//' >cnupm/pkg-message << 'END-of-cnupm/pkg-message'
X************************************************************
X
XAdd the following lines to /etc/rc.conf to enable cnupm:
X
Xcnupm_enable="YES"
Xcnupm_iface="rl0"	# Change this with your interface!
X#cnupm_flags=""		# Set this one to override default flags
X
XSee cnupm(8) for flags
X
X************************************************************
END-of-cnupm/pkg-message
echo x - cnupm/pkg-plist
sed 's/^X//' >cnupm/pkg-plist << 'END-of-cnupm/pkg-plist'
Xsbin/cnupm
Xsbin/cnupmstat
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@exec pw groupshow %%CNUPM_GRP%% 2>/dev/null || pw groupadd -n %%CNUPM_GRP%%
X@exec pw usershow %%CNUPM_OWN%% 2>/dev/null || pw useradd -n %%CNUPM_OWN%% -c 'Cnupm traffic collector' -g %%CNUPM_GRP%% -s /sbin/nologin
X@exec install -o %%CNUPM_OWN%% -g %%CNUPM_GRP%% -m 750 -d %D/var/cnupm
X@exec pw usermod -n %%CNUPM_OWN%% -d %D/var/cnupm
X@unexec rmdir %D/var/cnupm 2>/dev/null || true
END-of-cnupm/pkg-plist
exit
--- cnupm.sh ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051128075357.12CA03BD2E>