summaryrefslogtreecommitdiffstats
path: root/net/trafcount
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-06-18 05:03:14 +0000
committerdwcjr <dwcjr@FreeBSD.org>2001-06-18 05:03:14 +0000
commitf1d1484cb4ae685c377e82bac79e086f0cd3e2e2 (patch)
tree30ff5aafafb5b99d8513e12bc63723985b76b3a7 /net/trafcount
parent4560354df189ae29e0b972ed9eac6d1a83517ba4 (diff)
downloadFreeBSD-ports-f1d1484cb4ae685c377e82bac79e086f0cd3e2e2.zip
FreeBSD-ports-f1d1484cb4ae685c377e82bac79e086f0cd3e2e2.tar.gz
Add trafcount, a "loadable module for freebsd lets admin see how much
amount of data was transfered by each user" PR: 27836 Submitted by: Amir S. <amir@boom.org.il>
Diffstat (limited to 'net/trafcount')
-rw-r--r--net/trafcount/Makefile30
-rw-r--r--net/trafcount/distinfo1
-rw-r--r--net/trafcount/files/patch-client-Makefile11
-rw-r--r--net/trafcount/files/patch-module-Makefile8
-rw-r--r--net/trafcount/pkg-comment1
-rw-r--r--net/trafcount/pkg-descr3
-rw-r--r--net/trafcount/pkg-plist3
7 files changed, 57 insertions, 0 deletions
diff --git a/net/trafcount/Makefile b/net/trafcount/Makefile
new file mode 100644
index 0000000..796b782
--- /dev/null
+++ b/net/trafcount/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: trafcount
+# Date created: Sat Jun 2 16:29:22 IDT 2001
+# Whom: amir@boom.org.il
+#
+# $FreeBSD$
+#
+
+PORTNAME= trafcount
+PORTVERSION= 0.2.1
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= trafcount
+
+MAINTAINER= amir@boom.org.il
+
+STARTUP= trafcount.sh
+MAN1= trafcount.1
+
+MAN_COMPRESSED= no
+
+post-patch:
+ @${PERL} -pi.fbsd -e 's@kmoddir=/modules@kmoddir=${PREFIX}/libexec@g' ${WRKSRC}/trafcount.sh
+ @${PERL} -pi.fbsd -e 's@/usr/local@${PREFIX}@g' \
+ ${WRKSRC}/client/Makefile ${WRKSRC}/module/Makefile ${WRKSRC}/Makefile
+
+.if !exists(/usr/src/sys/Makefile)
+BROKEN= "Kernel source files required"
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/trafcount/distinfo b/net/trafcount/distinfo
new file mode 100644
index 0000000..b3959cb
--- /dev/null
+++ b/net/trafcount/distinfo
@@ -0,0 +1 @@
+MD5 (trafcount-0.2.1.tar.gz) = 18ab6b5f82ac70567121c6e92a14050d
diff --git a/net/trafcount/files/patch-client-Makefile b/net/trafcount/files/patch-client-Makefile
new file mode 100644
index 0000000..cedb055
--- /dev/null
+++ b/net/trafcount/files/patch-client-Makefile
@@ -0,0 +1,11 @@
+--- client/Makefile.orig Fri Jun 1 11:58:57 2001
++++ client/Makefile Sun Jun 17 18:29:15 2001
+@@ -1,6 +1,8 @@
+ PROG = trafcount
+ SRCS = trafcount.c ../include/trafcount.h
+ BINDIR ?= /usr/local/bin
++MANDIR = /usr/local/man/man
+ CFLAGS += -Wall
++NOMANCOMPRESS = yes
+
+ .include <bsd.prog.mk>
diff --git a/net/trafcount/files/patch-module-Makefile b/net/trafcount/files/patch-module-Makefile
new file mode 100644
index 0000000..3f56bbe
--- /dev/null
+++ b/net/trafcount/files/patch-module-Makefile
@@ -0,0 +1,8 @@
+--- module/Makefile.orig Fri Jun 1 11:20:26 2001
++++ module/Makefile Sun Jun 17 18:15:28 2001
+@@ -1,4 +1,5 @@
+ KMOD = trafcount
+ SRCS = trafcount.c ../include/trafcount.h
++KMODDIR = /usr/local/libexec
+
+ .include <bsd.kmod.mk>
diff --git a/net/trafcount/pkg-comment b/net/trafcount/pkg-comment
new file mode 100644
index 0000000..eb3bb86
--- /dev/null
+++ b/net/trafcount/pkg-comment
@@ -0,0 +1 @@
+Ethernet Traffic Counter
diff --git a/net/trafcount/pkg-descr b/net/trafcount/pkg-descr
new file mode 100644
index 0000000..38f1e40
--- /dev/null
+++ b/net/trafcount/pkg-descr
@@ -0,0 +1,3 @@
+Trafcount is a loadable kernel module that provides you the option to
+measure the total amount of bandwidth that is consumed by each of
+your users.
diff --git a/net/trafcount/pkg-plist b/net/trafcount/pkg-plist
new file mode 100644
index 0000000..e1b31ce
--- /dev/null
+++ b/net/trafcount/pkg-plist
@@ -0,0 +1,3 @@
+bin/trafcount
+etc/rc.d/trafcount.sh
+libexec/trafcount.ko
OpenPOWER on IntegriCloud