diff --git a/net/nam/Makefile b/net/nam/Makefile new file mode 100644 index 00000000000..3ad61a0d93a --- /dev/null +++ b/net/nam/Makefile @@ -0,0 +1,27 @@ +# +# $FreeBSD: ports/net/nam/Makefile,v 1.3 1999/11/29 03:46:08 steve Exp $ +# $OpenBSD: Makefile,v 1.1.1.1 2000/01/06 03:03:07 angelos Exp $ +# + +DISTNAME= nam-src-1.0a7 +PKGNAME= nam-1.0a7 +CATEGORIES= net +MASTER_SITES= http://www-mash.cs.berkeley.edu/dist/vint/ + +MAINTAINER= angelos@openbsd.org + +BUILD_DEPENDS= ${PREFIX}/lib/libtclcl.a:${PORTSDIR}/devel/tclcl + +WRKSRC= ${WRKDIR}/${PKGNAME} + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-tcl-ver=8.2 --with-tk-ver=8.2 + +ALL_TARGET= + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/nam ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/nam.1 ${PREFIX}/man/man1 + ${MKDIR} ${PREFIX}/share/examples/nam + ${INSTALL_DATA} ${WRKSRC}/ex/* ${PREFIX}/share/examples/nam +.include diff --git a/net/nam/files/md5 b/net/nam/files/md5 new file mode 100644 index 00000000000..ea0b54201aa --- /dev/null +++ b/net/nam/files/md5 @@ -0,0 +1 @@ +MD5 (nam-src-1.0a7.tar.gz) = 23efc9428038915d180b35c6f0cfe499 diff --git a/net/nam/patches/patch-aa b/net/nam/patches/patch-aa new file mode 100644 index 00000000000..2a7985ece39 --- /dev/null +++ b/net/nam/patches/patch-aa @@ -0,0 +1,11 @@ +--- configure.orig Mon Apr 26 12:37:04 1999 ++++ configure Mon Apr 26 12:37:17 1999 +@@ -2192,7 +2192,7 @@ + # $d/unix works if $d is the 8.0 distribution + # $d/bin is for the ns-allinone distribution (kind of hacky, isn't it?) + PATH=$PATH:$d/unix:$d/bin +-for ac_prog in tclsh$TCL_VERS tclsh tclsh$TCL_OLD_VERS ++for ac_prog in tclsh$TCL_VERS tclsh8.2 tclsh$TCL_OLD_VERS + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 diff --git a/net/nam/patches/patch-ab b/net/nam/patches/patch-ab new file mode 100644 index 00000000000..f395264509d --- /dev/null +++ b/net/nam/patches/patch-ab @@ -0,0 +1,10 @@ +--- main.cc.orig Sun Nov 28 17:24:15 1999 ++++ main.cc Sun Nov 28 17:25:10 1999 +@@ -52,6 +52,7 @@ + + extern "C" { + #include ++extern int Tk_WmCmd (ClientData clientData, Tcl_Interp *interp, int argc, char **argv); + } + + static void diff --git a/net/nam/patches/patch-ac b/net/nam/patches/patch-ac new file mode 100644 index 00000000000..100715ec645 --- /dev/null +++ b/net/nam/patches/patch-ac @@ -0,0 +1,22 @@ +--- nam_stream.cc.orig Wed Jan 5 21:48:04 2000 ++++ nam_stream.cc Wed Jan 5 22:00:35 2000 +@@ -23,8 +23,10 @@ + #ifdef WIN32 + #include + #else ++#ifndef __OpenBSD__ + #include + #endif ++#endif + + #include + +@@ -408,6 +410,8 @@ + insure_backing(tell() + 1); + return getc(back_); + } ++ ++#define MAXLONG (((off_t) 1) << ((sizeof(off_t) * 8) - 1)) - 1 + + off_t + NamStreamPipe::seek(off_t offset, int whence) diff --git a/net/nam/pkg/COMMENT b/net/nam/pkg/COMMENT new file mode 100644 index 00000000000..3605a6f6e39 --- /dev/null +++ b/net/nam/pkg/COMMENT @@ -0,0 +1 @@ +The UCB/LBNL Network Animator diff --git a/net/nam/pkg/DESCR b/net/nam/pkg/DESCR new file mode 100644 index 00000000000..bc530311f89 --- /dev/null +++ b/net/nam/pkg/DESCR @@ -0,0 +1,11 @@ +Nam is a Tcl/TK based animation tool for viewing network simulation traces +and real world packet traces. It supports topology layout, packet level +animation, and various data inspection tools. + +Nam began at LBL. It has evolved substantially over the past few years. +The nam development effort is now an ongoing collaboration with +the VINT project. + +WWW: http://www-mash.cs.berkeley.edu/nam/ + +-Oscar diff --git a/net/nam/pkg/PLIST b/net/nam/pkg/PLIST new file mode 100644 index 00000000000..e8abd6b42f0 --- /dev/null +++ b/net/nam/pkg/PLIST @@ -0,0 +1,27 @@ +bin/nam +man/man1/nam.1 +share/examples/nam/README +share/examples/nam/adc.README +share/examples/nam/adc.nam.gz +share/examples/nam/dynamics-demo.nam +share/examples/nam/dynamics-demo.txt +share/examples/nam/lan.nam +share/examples/nam/lantest2.nam +share/examples/nam/losspatterns.README +share/examples/nam/losspatterns.nam +share/examples/nam/mobigen.nam +share/examples/nam/rbp_demo.README +share/examples/nam/rbp_demo.nam +share/examples/nam/rpm-vs-srm.nam +share/examples/nam/sample.nam.tcl +share/examples/nam/session.README +share/examples/nam/session.nam.gz +share/examples/nam/simple_mcast.nam +share/examples/nam/srm-example.nam +share/examples/nam/tcpecn.nam.gz +share/examples/nam/tcpsrm.nam.gz +share/examples/nam/test.nam.gz +share/examples/nam/ts100.nam.gz +share/examples/nam/ts20.nam.gz +share/examples/nam/webcache.nam +@dirrm share/examples/nam