ports/90787: Update port net/cnupm

Dennis S.Davidoff null at 1system.ru
Thu Dec 22 08:30:08 UTC 2005


>Number:         90787
>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:   Thu Dec 22 08:30:05 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 at hosting.1system.ru:/usr/obj/usr/src/sys/HOSTING i386


	
>Description:
Update cnupm to 3.11 version.

Changes:

o Correctly initialize supplementary group list for systems w/o login classes.
o Author finished support cnupm, now cnupm supported by support at openbsd.ru
>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/pkg-descr
#	cnupm/pkg-message
#	cnupm/pkg-plist
#	cnupm/distinfo
#
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 at 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.11
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 at 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/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 at exec pw groupshow %%CNUPM_GRP%% 2>/dev/null || pw groupadd -n %%CNUPM_GRP%%
X at exec pw usershow %%CNUPM_OWN%% 2>/dev/null || pw useradd -n %%CNUPM_OWN%% -c 'Cnupm traffic collector' -g %%CNUPM_GRP%% -s /sbin/nologin
X at exec install -o %%CNUPM_OWN%% -g %%CNUPM_GRP%% -m 750 -d %D/var/cnupm
X at exec pw usermod -n %%CNUPM_OWN%% -d %D/var/cnupm
X at unexec rmdir %D/var/cnupm 2>/dev/null || true
END-of-cnupm/pkg-plist
echo x - cnupm/distinfo
sed 's/^X//' >cnupm/distinfo << 'END-of-cnupm/distinfo'
XMD5 (cnupm-3.11.tar.gz) = b409d12042cef1ceff85fb8823345d68
XSIZE (cnupm-3.11.tar.gz) = 35596
END-of-cnupm/distinfo
exit
--- cnupm.sh ends here ---


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



More information about the freebsd-ports-bugs mailing list