Skip to content
Permalink
Browse files

Various fixes to configuration and documentation.

Bug:            https://trac.macports.org/ticket/8869
Submitted by:   master@iaas.msu.ru
Reviewed by:    noses@noses.com
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@18680 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
pguyot committed Jul 22, 2006
1 parent 07ca679 commit f807a890d71724652e6eb3e8f3fcf73917f31fd6
@@ -1,9 +1,9 @@
# $Id: Portfile,v 1.6 2006/05/13 14:26:53 mww Exp $
# $Id: Portfile,v 1.7 2006/07/22 05:22:56 pguyot Exp $

PortSystem 1.0
name trafshow
version 5.2.3
revision 0
revision 1
categories net
maintainers noses@noses.com
description continuous network traffic display
@@ -15,15 +15,22 @@ long_description TrafShow continuously displays the information regarding \
homepage http://soft.risp.ru/trafshow/index_en.shtml
platforms darwin
master_sites ftp://ftp.nsk.su/pub/RinetSoftware/
checksums md5 0b2f0bb23b7832138b7d841437b9e182
checksums md5 0b2f0bb23b7832138b7d841437b9e182 \
sha1 1c68f603f12357e932c83de850366c9b46e53d89 \
rmd160 f1ae068f898160f16ae9b3cb5f9d73ae3aece6cb
depends_lib port:libpcap \
port:ncurses
extract.suffix .tgz
patchfiles patch-domain_resolver.c patch-colormask.c
patchfiles patch-domain_resolver.c patch-colormask.c patch-trafshow.c patch-trafshow.1 \
patch-configure
build.target trafshow

pre-configure { file copy -force /usr/share/libtool/config.guess ${worksrcpath}/config.guess
file copy -force /usr/share/libtool/config.sub ${worksrcpath}/config.sub }

post-configure { reinplace "s;%%PREFIX%%;${prefix};g" ${worksrcpath}/colormask.c }
configure.env CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
post-configure { reinplace "s;%%PREFIX%%;${prefix};g" ${worksrcpath}/colormask.c
reinplace "s;%%PREFIX%%;${prefix};g" ${worksrcpath}/trafshow.c
reinplace "s;%%PREFIX%%;${prefix};g" ${worksrcpath}/trafshow.1 }

destroot { cd ${workpath}/${worksrcdir}
xinstall -m 755 -s -c trafshow ${destroot}/${prefix}/bin
@@ -0,0 +1,11 @@
--- configure.orig 2006-03-14 07:59:56.000000000 +0300
+++ configure 2006-04-25 13:00:16.000000000 +0400
@@ -3716,6 +3716,8 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
+#include <netinet/in.h>
+#include <arpa/nameser.h>
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
@@ -0,0 +1,20 @@
--- trafshow.1.org 2004-07-21 07:54:32.000000000 +0400
+++ trafshow.1 2006-05-15 20:49:40.000000000 +0400
@@ -81,7 +81,7 @@
\fBHint\fP: Please use \fI0\fP to reduce output just for network services.
.TP
\fB-c\fP \fIconf\fP
-Use alternate color \fIconfig file\fP instead of default \fI/etc/trafshow\fP.
+Use alternate color \fIconfig file\fP instead of default \fI%%PREFIX%%/etc/trafshow\fP.
.TP
\fB-i\fP \fIname\fP
Listen on the specified network interface \fIname\fP.
@@ -123,7 +123,7 @@
Please see \fBtcpdump\fP(1) man page for syntax of \fBfilter expression\fP.
.SH FILES
.TP
-.I /etc/trafshow
+.I %%PREFIX%%/etc/trafshow
The default colors configuration file if any.
.TP
.I $HOME/.trafshow
@@ -0,0 +1,11 @@
--- trafshow.c.org 2006-03-14 10:58:07.000000000 +0300
+++ trafshow.c 2006-05-15 20:50:43.000000000 +0400
@@ -862,7 +862,7 @@
-n Don't convert numeric values to names\n\
-b To place a backflow near to the main stream\n\
-a len To aggregate IP addresses using the prefix length\n\
- -c conf Color config file instead of default /etc/trafshow\n\
+ -c conf Color config file instead of default %%PREFIX%%/etc/trafshow\n\
-i ifname Network interface name; all by default\n\
-s str To search & follow for string in the list show\n\
-u port UDP port number to listen for Cisco Netflow; default %d\n\

0 comments on commit f807a89

Please sign in to comment.
You can’t perform that action at this time.