aboutsummaryrefslogtreecommitdiff
path: root/net/ng_car
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2005-10-08 18:54:22 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2005-10-08 18:54:22 +0000
commit3754b283d4cd60c71271844fad4b855838f6b0c7 (patch)
tree75502ed8a069604a8a341a86f7632be4fc971a1a /net/ng_car
parentf70216f3c3364a04f9f1fd9e34d6251426de686c (diff)
downloadports-3754b283d4cd60c71271844fad4b855838f6b0c7.tar.gz
ports-3754b283d4cd60c71271844fad4b855838f6b0c7.zip
Notes
Diffstat (limited to 'net/ng_car')
-rw-r--r--net/ng_car/Makefile36
-rw-r--r--net/ng_car/distinfo2
-rw-r--r--net/ng_car/files/patch-Makefile16
-rw-r--r--net/ng_car/pkg-descr7
-rw-r--r--net/ng_car/pkg-message7
-rw-r--r--net/ng_car/pkg-plist2
6 files changed, 70 insertions, 0 deletions
diff --git a/net/ng_car/Makefile b/net/ng_car/Makefile
new file mode 100644
index 000000000000..e68f3c613404
--- /dev/null
+++ b/net/ng_car/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: ng_car
+# Date Created: Sep 26, 2005
+# Whom: Nuno Antunes <nuno.antunes@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ng_car
+PORTVERSION= 0.1
+CATEGORIES= net
+MASTER_SITES= http://npf.pt.freebsd.org/~l1/softs/
+
+MAINTAINER= nuno.antunes@gmail.com
+COMMENT= Netgraph committed access rate node
+
+NO_PACKAGE= Should be in sync with the kernel to work correctly
+
+PLIST_SUB= KMODDIR=${KMODDIR}
+
+MAN4= ng_car.4
+MANCOMPRESSED= yes
+
+.if !exists(${SRC_BASE}/sys/Makefile)
+IGNORE= This port requires kernel sources
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+IGNORE= Not supported < 5.x
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/net/ng_car/distinfo b/net/ng_car/distinfo
new file mode 100644
index 000000000000..73b1072c3da2
--- /dev/null
+++ b/net/ng_car/distinfo
@@ -0,0 +1,2 @@
+MD5 (ng_car-0.1.tar.gz) = 9f738d24fa47afc47d7d691dbfbd21bb
+SIZE (ng_car-0.1.tar.gz) = 5710
diff --git a/net/ng_car/files/patch-Makefile b/net/ng_car/files/patch-Makefile
new file mode 100644
index 000000000000..9f4271cef0f3
--- /dev/null
+++ b/net/ng_car/files/patch-Makefile
@@ -0,0 +1,16 @@
+--- Makefile.orig Mon Sep 26 22:18:41 2005
++++ Makefile Thu Oct 6 22:30:52 2005
+@@ -2,7 +2,13 @@
+ SRCS= ng_car.c
+
+ MAN= ng_car.4
++MANDIR= ${PREFIX}/man/man
+
+ #CFLAGS+= -g
+
+ .include <bsd.kmod.mk>
++.include <bsd.man.mk>
++
++all: _manpages
++
++install: _maninstall
diff --git a/net/ng_car/pkg-descr b/net/ng_car/pkg-descr
new file mode 100644
index 000000000000..71a8c3c0edc2
--- /dev/null
+++ b/net/ng_car/pkg-descr
@@ -0,0 +1,7 @@
+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.
+
+WWW: http://npf.pt.FreeBSD.org/
+Author: Nuno Antunes <nuno.antunes@gmail.com>
diff --git a/net/ng_car/pkg-message b/net/ng_car/pkg-message
new file mode 100644
index 000000000000..d74241a48c1a
--- /dev/null
+++ b/net/ng_car/pkg-message
@@ -0,0 +1,7 @@
+*******************************************************************************
+* *
+* This port contains a prebuilt kernel module. Due to the ever changing *
+* nature of FreeBSD it may be necessary to rebuild the module after a kernel *
+* source update. To do this reinstall the port. *
+* *
+*******************************************************************************
diff --git a/net/ng_car/pkg-plist b/net/ng_car/pkg-plist
new file mode 100644
index 000000000000..0a5882acde4c
--- /dev/null
+++ b/net/ng_car/pkg-plist
@@ -0,0 +1,2 @@
+@cwd /
+%%KMODDIR%%/ng_car.ko