From 7fc693bc32fbea34ae4fd8f2e110226ddc904625 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Wed, 5 Feb 2003 12:30:01 +0000 Subject: 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 --- net/bpft/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ net/bpft/distinfo | 1 + net/bpft/files/patch-Makefile | 20 ++++++++++++++++++++ net/bpft/files/patch-pathnames | 17 +++++++++++++++++ net/bpft/pkg-comment | 1 + net/bpft/pkg-descr | 8 ++++++++ net/bpft/pkg-install | 4 ++++ net/bpft/pkg-plist | 15 +++++++++++++++ 8 files changed, 106 insertions(+) create mode 100644 net/bpft/Makefile create mode 100644 net/bpft/distinfo create mode 100644 net/bpft/files/patch-Makefile create mode 100644 net/bpft/files/patch-pathnames create mode 100644 net/bpft/pkg-comment create mode 100644 net/bpft/pkg-descr create mode 100644 net/bpft/pkg-install create mode 100644 net/bpft/pkg-plist (limited to 'net/bpft') diff --git a/net/bpft/Makefile b/net/bpft/Makefile new file mode 100644 index 000000000000..882725798161 --- /dev/null +++ b/net/bpft/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: bpft +# Date created: 26 August 2002 +# Whom: El Vampiro +# +# $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 diff --git a/net/bpft/distinfo b/net/bpft/distinfo new file mode 100644 index 000000000000..fd8c0fbb3d37 --- /dev/null +++ b/net/bpft/distinfo @@ -0,0 +1 @@ +MD5 (bpft-4.0_29-07-2002.tgz) = 6e7c8f843b91fb9c771027bb8d9879c7 diff --git a/net/bpft/files/patch-Makefile b/net/bpft/files/patch-Makefile new file mode 100644 index 000000000000..c3710ba0cd67 --- /dev/null +++ b/net/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/bpft/files/patch-pathnames b/net/bpft/files/patch-pathnames new file mode 100644 index 000000000000..5c122d2a0661 --- /dev/null +++ b/net/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/bpft/pkg-comment b/net/bpft/pkg-comment new file mode 100644 index 000000000000..174d45126439 --- /dev/null +++ b/net/bpft/pkg-comment @@ -0,0 +1 @@ +The BPF Traffic collector diff --git a/net/bpft/pkg-descr b/net/bpft/pkg-descr new file mode 100644 index 000000000000..ede6d3b56d20 --- /dev/null +++ b/net/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/bpft/pkg-install b/net/bpft/pkg-install new file mode 100644 index 000000000000..deeadea00ab4 --- /dev/null +++ b/net/bpft/pkg-install @@ -0,0 +1,4 @@ +#!/bin/sh + +DBDIR=/usr/local/var/bpft +mkdir -p $DBDIR diff --git a/net/bpft/pkg-plist b/net/bpft/pkg-plist new file mode 100644 index 000000000000..3843b5786173 --- /dev/null +++ b/net/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 -- cgit v1.2.3