Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2002 12:40:28 +0700 (OMSST)
From:      El Vampiro <vampiro@rootshell.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42020: New port: net/bpft
Message-ID:  <20020826054028.146545361@vampiro.rootshell.ru>

next in thread | raw e-mail | index | archive | help

>Number:         42020
>Category:       ports
>Synopsis:       New port: net/bpft
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 25 22:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     El Vampiro
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD vampiro.rsb.local 4.6-STABLE FreeBSD 4.6-STABLE #0: Sun Aug 25 11:30:05 OMSST 2002 root@vampiro.rsb.local:/usr/obj/usr/src/sys/VAMPIRO i386


>Description:
The BPF Traffic collector

Enhanced version of trafd (/usr/ports/net/trafd/)

WWW: http://bpft.by.ru/

>How-To-Repeat:
make install
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	bpft
#	bpft/Makefile
#	bpft/distinfo
#	bpft/pkg-comment
#	bpft/pkg-descr
#	bpft/pkg-plist
#	bpft/files
#	bpft/files/patch-Makefile
#	bpft/files/patch-pathnames
#	bpft/pkg-install
#
echo c - bpft
mkdir -p bpft > /dev/null 2>&1
echo x - bpft/Makefile
sed 's/^X//' >bpft/Makefile << 'END-of-bpft/Makefile'
X# New ports collection makefile for:   bpft
X# Date created:        26 August 2002
X# Whom:            El Vampiro <vampiro@rootshell.ru>
X#
X# $FreeBSD$
X
XPORTNAME=	bpft
XPORTVERSION=	4.0
XCATEGORIES=	net
XMASTER_SITES=	http://bpft.by.ru/ \
X		ftp://vampiro.rootshell.ru/pub/FreeBSD/distfiles/
XEXTRACT_SUFX=	_29-07-2002.tgz
X
XMAINTAINER=	vampiro@rootshell.ru
X
XWRKSRC=		${WRKDIR}/bpft
XMAN1=		traflog.1 trafstat.1
XMAN8=		trafstatd.8 trafd.8
XMANCOMPRESSED=	yes
X
Xpre-everything:
X	@${ECHO_MSG}
X	@${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
X	@${ECHO_MSG} "!!!                         WARNING                           !!!"
X	@${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
X	@${ECHO_MSG}
X	@${ECHO_MSG} "This port uses original trafd binaries layout"
X	@${ECHO_MSG} "Original trafd and bpft binaries layout are mutually exclusive"
X	@${ECHO_MSG}
X
Xpost-install:
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/WhatsNew ${DOCSDIR}
X	${STRIP_CMD} ${PREFIX}/sbin/trafd
X	${STRIP_CMD} ${PREFIX}/sbin/trafstatd
X	${STRIP_CMD} ${PREFIX}/bin/trafstat
X	${STRIP_CMD} ${PREFIX}/bin/traflog
X
X.include <bsd.port.mk>
END-of-bpft/Makefile
echo x - bpft/distinfo
sed 's/^X//' >bpft/distinfo << 'END-of-bpft/distinfo'
XMD5 (bpft-4.0_29-07-2002.tgz) = 6e7c8f843b91fb9c771027bb8d9879c7
END-of-bpft/distinfo
echo x - bpft/pkg-comment
sed 's/^X//' >bpft/pkg-comment << 'END-of-bpft/pkg-comment'
XThe BPF Traffic collector
END-of-bpft/pkg-comment
echo x - bpft/pkg-descr
sed 's/^X//' >bpft/pkg-descr << 'END-of-bpft/pkg-descr'
XThe BPF Traffic collector
X
XEnhanced version of trafd (/usr/ports/net/trafd/)
X
XWWW: http://bpft.by.ru/
X
X- El Vampiro
Xvampiro@rootshell.ru
END-of-bpft/pkg-descr
echo x - bpft/pkg-plist
sed 's/^X//' >bpft/pkg-plist << 'END-of-bpft/pkg-plist'
Xsbin/trafd
Xsbin/trafstatd
Xbin/trafstart
Xbin/trafstop
Xbin/trafsave
Xbin/trafdump
Xbin/trafstat
Xbin/traflog
Xetc/traflog.format
Xetc/rc.d/trafd.sh
Xshare/doc/bpft/README
Xshare/doc/bpft/WhatsNew
X@dirrm var/bpft
X@dirrm var
X@dirrm share/doc/bpft
END-of-bpft/pkg-plist
echo c - bpft/files
mkdir -p bpft/files > /dev/null 2>&1
echo x - bpft/files/patch-Makefile
sed 's/^X//' >bpft/files/patch-Makefile << 'END-of-bpft/files/patch-Makefile'
X--- Makefile.orig	Mon Aug 26 11:47:55 2002
X+++ Makefile	Mon Aug 26 11:48:22 2002
X@@ -59,7 +59,7 @@
X PATH_SBINDIR=${PREFIX}/sbin
X 
X # Trailing slash directory, summary traffic log files will be put there.
X-PATH_TOSAVE=${PREFIX}/var/trafd/
X+PATH_TOSAVE=${PREFIX}/var/bpft/
X 
X # Full pathname where locate trafstat program.
X PATH_TRAFSTAT=${PREFIX}/bin/trafstat
END-of-bpft/files/patch-Makefile
echo x - bpft/files/patch-pathnames
sed 's/^X//' >bpft/files/patch-pathnames << 'END-of-bpft/files/patch-pathnames'
X--- include/pathnames.h.orig	Mon Aug 26 11:24:39 2002
X+++ include/pathnames.h	Mon Aug 26 11:25:09 2002
X@@ -49,12 +49,12 @@
X 
X /* where unerased tmp directory */
X #ifndef	_PATH_VARTMP
X-#define	_PATH_VARTMP		"/usr/local/var/trafd/tmp/"
X+#define	_PATH_VARTMP		"/usr/local/var/bpft/tmp/"
X #endif
X 
X /* where backuped data */
X #ifndef	PATH_TOSAVE
X-#define	PATH_TOSAVE		"/usr/local/var/trafd/"
X+#define	PATH_TOSAVE		"/usr/local/var/bpft/"
X #endif
X 
X /* where locate trafstat */
END-of-bpft/files/patch-pathnames
echo x - bpft/pkg-install
sed 's/^X//' >bpft/pkg-install << 'END-of-bpft/pkg-install'
X#!/bin/sh
X
XDBDIR=/usr/local/var/bpft
Xmkdir -p $DBDIR
END-of-bpft/pkg-install
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020826054028.146545361>