aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/bpft/Makefile40
-rw-r--r--net-mgmt/bpft/distinfo1
-rw-r--r--net-mgmt/bpft/files/patch-Makefile20
-rw-r--r--net-mgmt/bpft/files/patch-pathnames17
-rw-r--r--net-mgmt/bpft/pkg-comment1
-rw-r--r--net-mgmt/bpft/pkg-descr8
-rw-r--r--net-mgmt/bpft/pkg-install4
-rw-r--r--net-mgmt/bpft/pkg-plist15
-rw-r--r--net/Makefile1
-rw-r--r--net/bpft/Makefile40
-rw-r--r--net/bpft/distinfo1
-rw-r--r--net/bpft/files/patch-Makefile20
-rw-r--r--net/bpft/files/patch-pathnames17
-rw-r--r--net/bpft/pkg-comment1
-rw-r--r--net/bpft/pkg-descr8
-rw-r--r--net/bpft/pkg-install4
-rw-r--r--net/bpft/pkg-plist15
17 files changed, 213 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
diff --git a/net/Makefile b/net/Makefile
index 2936e55dad01..03e8628b8239 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -41,6 +41,7 @@
SUBDIR += binkd
SUBDIR += boclient
SUBDIR += bounce
+ SUBDIR += bpft
SUBDIR += bsd-airtools
SUBDIR += bsdproxy
SUBDIR += cap
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 <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/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