ports/87098: [NEW PORT] net/ng_car - Committed Access Rate node for netgraph
Nuno Antunes
nuno.antunes at gmail.com
Fri Oct 7 22:50:24 UTC 2005
>Number: 87098
>Category: ports
>Synopsis: [NEW PORT] net/ng_car - Committed Access Rate node for netgraph
>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 07 22:50:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Nuno Antunes
>Release: FreeBSD 6.0-BETA4 i386
>Organization:
>Environment:
System: FreeBSD 6.0-BETA4 #2: Sat Sep 17 10:56:38 WEST 2005
nant at pt1wgfdc.ip.lab:/usr/obj/usr/src/sys/LIFEBOOK8010
>Description:
The ng_car netgraph module is a Committed Access Rate iplementation for netgraph. It provides an easy way to use a network interface at a rate below its specification. It uses a token bucket algorithm to measure and classify the network packets flowing through it as described on RFC 2697.
>How-To-Repeat:
>Fix:
--- ng_car.shar 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:
#
# ng_car/
# ng_car/pkg-plist
# ng_car/pkg-message
# ng_car/pkg-descr
# ng_car/distinfo
# ng_car/Makefile
# ng_car/files
# ng_car/files/patch-Makefile
#
echo c - ng_car/
mkdir -p ng_car/ > /dev/null 2>&1
echo x - ng_car/pkg-plist
sed 's/^X//' >ng_car/pkg-plist << 'END-of-ng_car/pkg-plist'
X at cwd /
X%%KMODDIR%%/ng_car.ko
END-of-ng_car/pkg-plist
echo x - ng_car/pkg-message
sed 's/^X//' >ng_car/pkg-message << 'END-of-ng_car/pkg-message'
X
X*******************************************************************************
X* This port contains a prebuilt kernel module. Due to the ever changing *
X* nature of FreeBSD it may be necessary to rebuild the module after a kernel *
X* source update. To do this reinstall the port. *
X*******************************************************************************
END-of-ng_car/pkg-message
echo x - ng_car/pkg-descr
sed 's/^X//' >ng_car/pkg-descr << 'END-of-ng_car/pkg-descr'
XThe ng_car netgraph module is a "Committed Access Rate" iplementation for
Xnetgraph. It provides an easy way to use a network interface at a rate below
Xits specification. It uses a token bucket algorithm to measure and classify the
Xnetwork packets flowing through it.
X
XWWW: http://npf.pt.FreeBSD.org/
X
X--
XNuno Antunes
X<nuno.antunes at gmail.com>
END-of-ng_car/pkg-descr
echo x - ng_car/distinfo
sed 's/^X//' >ng_car/distinfo << 'END-of-ng_car/distinfo'
XMD5 (ng_car-0.1.tar.gz) = 9f738d24fa47afc47d7d691dbfbd21bb
XSIZE (ng_car-0.1.tar.gz) = 5710
END-of-ng_car/distinfo
echo x - ng_car/Makefile
sed 's/^X//' >ng_car/Makefile << 'END-of-ng_car/Makefile'
X# New ports collection makefile for: ng_car
X# Date Created: Sep 26, 2005
X# Whom: Nuno Antunes <nuno.antunes at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= ng_car
XPORTVERSION= 0.1
XCATEGORIES= net
XMASTER_SITES= http://npf.pt.freebsd.org/~l1/softs/
X
XMAINTAINER= nuno.antunes at gmail.com
XCOMMENT= Netgraph committed access rate node
X
XNO_PACKAGE= Should be in sync with the kernel to work correctly
X
XPLIST_SUB= KMODDIR=${KMODDIR}
X
XMAN4= ng_car.4
XMANCOMPRESSED= yes
X
X.include <bsd.port.pre.mk>
X
Xpre-fetch:
X
X.if !exists(${SRC_BASE}/sys/Makefile)
X IGNORE= "This port requires kernel sources"
X.endif
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-ng_car/Makefile
echo c - ng_car/files
mkdir -p ng_car/files > /dev/null 2>&1
echo x - ng_car/files/patch-Makefile
sed 's/^X//' >ng_car/files/patch-Makefile << 'END-of-ng_car/files/patch-Makefile'
X--- Makefile.orig Mon Sep 26 22:18:41 2005
X+++ Makefile Thu Oct 6 22:30:52 2005
X@@ -2,7 +2,13 @@
X SRCS= ng_car.c
X
X MAN= ng_car.4
X+MANDIR= ${PREFIX}/man/man
X
X #CFLAGS+= -g
X
X .include <bsd.kmod.mk>
X+.include <bsd.man.mk>
X+
X+all: _manpages
X+
X+install: _maninstall
END-of-ng_car/files/patch-Makefile
exit
--- ng_car.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list