From nuno.antunes@gmail.com  Fri Oct  7 22:47:35 2005
Return-Path: <nuno.antunes@gmail.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5415E16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  7 Oct 2005 22:47:35 +0000 (GMT)
	(envelope-from nuno.antunes@gmail.com)
Received: from www.nantunes.org (bl7-163-22.dsl.telepac.pt [85.240.163.22])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6100E43D45
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  7 Oct 2005 22:47:34 +0000 (GMT)
	(envelope-from nuno.antunes@gmail.com)
Received: from localhost (localhost [172.16.0.2])
	by www.nantunes.org (Postfix) with ESMTP id 120902E5D2
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  7 Oct 2005 23:51:12 +0100 (WEST)
Received: from www.nantunes.org ([172.16.0.2])
 by localhost (www.nantunes.org [172.16.0.2]) (amavisd-new, port 10024)
 with LMTP id 29566-07 for <FreeBSD-gnats-submit@freebsd.org>;
 Fri,  7 Oct 2005 23:51:05 +0100 (WEST)
Received: from pt1wgfdc.ip.lab (unknown [192.168.0.12])
	by www.nantunes.org (Postfix) with ESMTP id B09EE2E4E8
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  7 Oct 2005 23:51:05 +0100 (WEST)
Message-Id: <1128725243.0@pt1wgfdc.ip.lab>
Date: Fri, 7 Oct 2005 23:47:23 +0100
From: "Nuno Antunes" <nuno.antunes@gmail.com>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [NEW PORT] net/ng_car - Committed Access Rate node for netgraph
X-Send-Pr-Version: gtk-send-pr 0.4.6 
X-GNATS-Notify:

>Number:         87098
>Category:       ports
>Synopsis:       [NEW PORT] net/ng_car - Committed Access Rate node for netgraph
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mnag
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 07 22:50:17 GMT 2005
>Closed-Date:    Sat Oct 08 18:56:09 GMT 2005
>Last-Modified:  Sat Oct 08 18:56:09 GMT 2005
>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@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@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@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@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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->mnag 
Responsible-Changed-By: mnag 
Responsible-Changed-When: Sat Oct 8 18:27:19 GMT 2005 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87098 
State-Changed-From-To: open->closed 
State-Changed-By: mnag 
State-Changed-When: Sat Oct 8 18:56:08 GMT 2005 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87098 
>Unformatted:
