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>
This commit is contained in:
David W. Chapman Jr. 2001-06-18 05:03:14 +00:00
parent afc120f6ea
commit 3b28c7db04
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44153
8 changed files with 58 additions and 0 deletions

View file

@ -369,6 +369,7 @@
SUBDIR += tn5250
SUBDIR += totd
SUBDIR += traceroute
SUBDIR += trafcount
SUBDIR += trafd
SUBDIR += trafshow
SUBDIR += tridiavnc

30
net/trafcount/Makefile Normal file
View file

@ -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>

1
net/trafcount/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (trafcount-0.2.1.tar.gz) = 18ab6b5f82ac70567121c6e92a14050d

View file

@ -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>

View file

@ -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>

View file

@ -0,0 +1 @@
Ethernet Traffic Counter

3
net/trafcount/pkg-descr Normal file
View file

@ -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.

3
net/trafcount/pkg-plist Normal file
View file

@ -0,0 +1,3 @@
bin/trafcount
etc/rc.d/trafcount.sh
libexec/trafcount.ko