ports/88123: New port: net/trafshow5 Real-time network traffic visualisation
Serge Maslov
serge at maslov.biz
Fri Oct 28 10:40:16 UTC 2005
>Number: 88123
>Category: ports
>Synopsis: New port: net/trafshow5 Real-time network traffic visualisation
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 28 10:40:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Serge Maslov
>Release:
>Organization:
and Information Sciences, Novosibirsk, Russia
>Environment:
--- trafshow5.port begins here ---
# 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:
#
# trafshow5
# trafshow5/files
# trafshow5/files/patch-colormask.c
# trafshow5/files/patch-trafshow.1
# trafshow5/files/patch-trafshow.c
# trafshow5/Makefile
# trafshow5/distinfo
# trafshow5/pkg-descr
# trafshow5/pkg-plist
#
echo c - trafshow5
mkdir -p trafshow5 > /dev/null 2>&1
echo c - trafshow5/files
mkdir -p trafshow5/files > /dev/null 2>&1
echo x - trafshow5/files/patch-colormask.c
sed 's/^X//' >trafshow5/files/patch-colormask.c << 'END-of-trafshow5/files/patch-colormask.c'
X--- colormask.c.orig Fri Oct 28 15:18:10 2005
X+++ colormask.c Fri Oct 28 15:18:53 2005
X@@ -381,7 +381,7 @@
X (void)strcat(buf, ".");
X (void)strcat(buf, progname);
X if ((fp = fopen(buf, "r")) == NULL) {
X- (void)strcpy(buf, "/etc/");
X+ (void)strcpy(buf, "@@PREFIX@@/etc/");
X (void)strcat(buf, progname);
X if ((fp = fopen(buf, "r")) == NULL) return 0;
X }
END-of-trafshow5/files/patch-colormask.c
echo x - trafshow5/files/patch-trafshow.1
sed 's/^X//' >trafshow5/files/patch-trafshow.1 << 'END-of-trafshow5/files/patch-trafshow.1'
X--- trafshow.1.orig Fri Oct 28 15:20:01 2005
X+++ trafshow.1 Fri Oct 28 15:20:31 2005
X@@ -81,7 +81,7 @@
X \fBHint\fP: Please use \fI0\fP to reduce output just for network services.
X .TP
X \fB-c\fP \fIconf\fP
X-Use alternate color \fIconfig file\fP instead of default \fI/etc/trafshow\fP.
X+Use alternate color \fIconfig file\fP instead of default \fI%%PREFIX%%/etc/trafshow\fP.
X .TP
X \fB-i\fP \fIname\fP
X Listen on the specified network interface \fIname\fP.
X@@ -123,7 +123,7 @@
X Please see \fBtcpdump\fP(1) man page for syntax of \fBfilter expression\fP.
X .SH FILES
X .TP
X-.I /etc/trafshow
X+.I %%PREFIX%%/etc/trafshow
X The default colors configuration file if any.
X .TP
X .I $HOME/.trafshow
END-of-trafshow5/files/patch-trafshow.1
echo x - trafshow5/files/patch-trafshow.c
sed 's/^X//' >trafshow5/files/patch-trafshow.c << 'END-of-trafshow5/files/patch-trafshow.c'
X--- trafshow.c.orig Fri Oct 28 15:21:01 2005
X+++ trafshow.c Fri Oct 28 15:21:12 2005
X@@ -748,7 +748,7 @@
X -n Don't convert numeric values to names\n\
X -b To place a backflow near to the main stream\n\
X -a len To aggregate IP addresses using the prefix length\n\
X- -c conf Color config file instead of default /etc/trafshow\n\
X+ -c conf Color config file instead of default @@PREFIX@@/etc/trafshow\n\
X -i ifname Network interface name; all by default\n\
X -s str To search & follow for string in the list show\n\
X -u port UDP port number to listen for Cisco Netflow; default %d\n\
END-of-trafshow5/files/patch-trafshow.c
echo x - trafshow5/Makefile
sed 's/^X//' >trafshow5/Makefile << 'END-of-trafshow5/Makefile'
X# New ports collection makefile for: trafshow
X# Date created: 26 October 2005
X# Whom: serge at maslov.biz
X#
X# $FreeBSD$
X#
X
XPORTNAME= trafshow
XPORTVERSION= 5.2.1
XCATEGORIES= net
XMASTER_SITES= ${MASTER_SITE_NETBSD} \
X ftp://ftp.nsk.su/pub/RinetSoftware/
XEXTRACT_SUFX= .tgz
X
XMAINTAINER= Serge at Maslov.biz
XCOMMENT= Full screen visualization of network traffic
X
XCONFLICTS= trafshow-3.* trafshow-4.*
X
XUNIQUENAME?= ${PORTNAME}5
X
X.include <bsd.port.pre.mk>
X
X#Not using this stuff yet?
X#OPTIONS= X11 "Use X11 libs" off
X#
X#.if defined(WITH_X11)
X#USE_XLIB= yes
X#.endif
X
X.if ${OSVERSION} < 400010
XLIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
X.endif
X
XUSE_REINPLACE= yes
XGNU_CONFIGURE= yes
XALL_TARGET= trafshow
X
XMAN1= trafshow.1
X
Xpost-patch:
X @${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" ${WRKSRC}/*.c
X @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/trafshow.1
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
X ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
X ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow.dist
X ${CP} ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow
X
X.include <bsd.port.post.mk>
END-of-trafshow5/Makefile
echo x - trafshow5/distinfo
sed 's/^X//' >trafshow5/distinfo << 'END-of-trafshow5/distinfo'
XMD5 (trafshow-5.2.1.tgz) = e3ad2e3f1aac2e1bac9b467df44cf8f0
XSIZE (trafshow-5.2.1.tgz) = 123770
END-of-trafshow5/distinfo
echo x - trafshow5/pkg-descr
sed 's/^X//' >trafshow5/pkg-descr << 'END-of-trafshow5/pkg-descr'
XTrafShow continuously displays the information regarding packet
Xtraffic on the configured network interface that matches the boolean
Xexpression. It periodically sorts and updates this information. It
Xmay be useful for locating suspicious network traffic on the net.
X
XWWW: http://soft.risp.ru/trafshow/index_en.shtml
END-of-trafshow5/pkg-descr
echo x - trafshow5/pkg-plist
sed 's/^X//' >trafshow5/pkg-plist << 'END-of-trafshow5/pkg-plist'
Xbin/trafshow
X at unexec if cmp -s %D/etc/trafshow %D/etc/trafshow.dist; then rm -f %D/etc/trafshow; fi
Xetc/trafshow.dist
X at exec if [ ! -f %D/etc/trafshow.dist ]; then cp -p %D/%F %B/trafshow.dist; fi
END-of-trafshow5/pkg-plist
exit
--- trafshow5.port ends here ---
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list