diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-05 12:30:01 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-05 12:30:01 +0000 |
commit | 7fc693bc32fbea34ae4fd8f2e110226ddc904625 (patch) | |
tree | 7369e93912ed0c0ab2d584d0110362704cd46f7e /net-mgmt | |
parent | Update: net/ddup (3.0.1) (diff) |
New port: net/bpft
The BPF Traffic collector
Enhanced version of trafd (/usr/ports/net/trafd/)
WWW: http://bpft.by.ru/
PR: ports/42020
Submitted by: El Vampiro <vampiro@rootshell.ru>
Notes
Notes:
svn path=/head/; revision=74854
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/bpft/Makefile | 40 | ||||
-rw-r--r-- | net-mgmt/bpft/distinfo | 1 | ||||
-rw-r--r-- | net-mgmt/bpft/files/patch-Makefile | 20 | ||||
-rw-r--r-- | net-mgmt/bpft/files/patch-pathnames | 17 | ||||
-rw-r--r-- | net-mgmt/bpft/pkg-comment | 1 | ||||
-rw-r--r-- | net-mgmt/bpft/pkg-descr | 8 | ||||
-rw-r--r-- | net-mgmt/bpft/pkg-install | 4 | ||||
-rw-r--r-- | net-mgmt/bpft/pkg-plist | 15 |
8 files changed, 106 insertions, 0 deletions
diff --git a/net-mgmt/bpft/Makefile b/net-mgmt/bpft/Makefile new file mode 100644 index 000000000000..882725798161 --- /dev/null +++ b/net-mgmt/bpft/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: bpft +# Date created: 26 August 2002 +# Whom: El Vampiro <vampiro@rootshell.ru> +# +# $FreeBSD$ + +PORTNAME= bpft +PORTVERSION= 4.0 +CATEGORIES= net +MASTER_SITES= http://bpft.by.ru/ \ + ftp://vampiro.rootshell.ru/pub/FreeBSD/distfiles/ +EXTRACT_SUFX= _29-07-2002.tgz + +MAINTAINER= vampiro@rootshell.ru + +WRKSRC= ${WRKDIR}/bpft +MAN1= traflog.1 trafstat.1 +MAN8= trafstatd.8 trafd.8 +MANCOMPRESSED= yes + +pre-everything: + @${ECHO_MSG} + @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" + @${ECHO_MSG} "!!! WARNING !!!" + @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" + @${ECHO_MSG} + @${ECHO_MSG} "This port uses original trafd binaries layout" + @${ECHO_MSG} "Original trafd and bpft binaries layout are mutually exclusive" + @${ECHO_MSG} + +post-install: + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/WhatsNew ${DOCSDIR} + ${STRIP_CMD} ${PREFIX}/sbin/trafd + ${STRIP_CMD} ${PREFIX}/sbin/trafstatd + ${STRIP_CMD} ${PREFIX}/bin/trafstat + ${STRIP_CMD} ${PREFIX}/bin/traflog + +.include <bsd.port.mk> diff --git a/net-mgmt/bpft/distinfo b/net-mgmt/bpft/distinfo new file mode 100644 index 000000000000..fd8c0fbb3d37 --- /dev/null +++ b/net-mgmt/bpft/distinfo @@ -0,0 +1 @@ +MD5 (bpft-4.0_29-07-2002.tgz) = 6e7c8f843b91fb9c771027bb8d9879c7 diff --git a/net-mgmt/bpft/files/patch-Makefile b/net-mgmt/bpft/files/patch-Makefile new file mode 100644 index 000000000000..c3710ba0cd67 --- /dev/null +++ b/net-mgmt/bpft/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig Sun Dec 2 11:44:35 2001 ++++ Makefile Wed Feb 5 04:24:20 2003 +@@ -43,8 +43,6 @@ + # + + +-PREFIX=/usr/local +- + # Man pages prefix + PREFIX_MANPAGES=${PREFIX}/man/man + PREFIX_CATMANPAGES=${PREFIX}/man/cat +@@ -59,7 +57,7 @@ + PATH_SBINDIR=${PREFIX}/sbin + + # Trailing slash directory, summary traffic log files will be put there. +-PATH_TOSAVE=${PREFIX}/var/trafd/ ++PATH_TOSAVE=${PREFIX}/var/bpft/ + + # Full pathname where locate trafstat program. + PATH_TRAFSTAT=${PREFIX}/bin/trafstat diff --git a/net-mgmt/bpft/files/patch-pathnames b/net-mgmt/bpft/files/patch-pathnames new file mode 100644 index 000000000000..5c122d2a0661 --- /dev/null +++ b/net-mgmt/bpft/files/patch-pathnames @@ -0,0 +1,17 @@ +--- include/pathnames.h.orig Mon Aug 26 11:24:39 2002 ++++ include/pathnames.h Mon Aug 26 11:25:09 2002 +@@ -49,12 +49,12 @@ + + /* where unerased tmp directory */ + #ifndef _PATH_VARTMP +-#define _PATH_VARTMP "/usr/local/var/trafd/tmp/" ++#define _PATH_VARTMP "/usr/local/var/bpft/tmp/" + #endif + + /* where backuped data */ + #ifndef PATH_TOSAVE +-#define PATH_TOSAVE "/usr/local/var/trafd/" ++#define PATH_TOSAVE "/usr/local/var/bpft/" + #endif + + /* where locate trafstat */ diff --git a/net-mgmt/bpft/pkg-comment b/net-mgmt/bpft/pkg-comment new file mode 100644 index 000000000000..174d45126439 --- /dev/null +++ b/net-mgmt/bpft/pkg-comment @@ -0,0 +1 @@ +The BPF Traffic collector diff --git a/net-mgmt/bpft/pkg-descr b/net-mgmt/bpft/pkg-descr new file mode 100644 index 000000000000..ede6d3b56d20 --- /dev/null +++ b/net-mgmt/bpft/pkg-descr @@ -0,0 +1,8 @@ +The BPF Traffic collector + +Enhanced version of trafd (/usr/ports/net/trafd/) + +WWW: http://bpft.by.ru/ + +- El Vampiro +vampiro@rootshell.ru diff --git a/net-mgmt/bpft/pkg-install b/net-mgmt/bpft/pkg-install new file mode 100644 index 000000000000..deeadea00ab4 --- /dev/null +++ b/net-mgmt/bpft/pkg-install @@ -0,0 +1,4 @@ +#!/bin/sh + +DBDIR=/usr/local/var/bpft +mkdir -p $DBDIR diff --git a/net-mgmt/bpft/pkg-plist b/net-mgmt/bpft/pkg-plist new file mode 100644 index 000000000000..3843b5786173 --- /dev/null +++ b/net-mgmt/bpft/pkg-plist @@ -0,0 +1,15 @@ +sbin/trafd +sbin/trafstatd +bin/trafstart +bin/trafstop +bin/trafsave +bin/trafdump +bin/trafstat +bin/traflog +etc/traflog.format +etc/rc.d/trafd.sh +share/doc/bpft/README +share/doc/bpft/WhatsNew +@dirrm var/bpft +@dirrm var +@dirrm share/doc/bpft |