aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/Makefile1
-rw-r--r--net/nast/Makefile48
-rw-r--r--net/nast/distinfo1
-rw-r--r--net/nast/files/patch-configure62
-rw-r--r--net/nast/pkg-descr19
-rw-r--r--net/nast/pkg-plist1
6 files changed, 132 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index f6d12dc49985..3a0764ec2ef5 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -326,6 +326,7 @@
SUBDIR += naim
SUBDIR += nam
SUBDIR += napshare
+ SUBDIR += nast
SUBDIR += nat
SUBDIR += nbtscan
SUBDIR += nc
diff --git a/net/nast/Makefile b/net/nast/Makefile
new file mode 100644
index 000000000000..579594cc2a36
--- /dev/null
+++ b/net/nast/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: nast
+# Date created: Sun Apr 6 10:12:16 CEST 2003
+# Whom: Kirill Ponomarew <ponomarew@oberon.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= nast
+PORTVERSION= 0.1.7d
+CATEGORIES= net
+MASTER_SITES= http://nast.berlios.de/src/
+DISTNAME= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= ponomarew@oberon.net
+COMMENT= Nast is a packet sniffer
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet-devel
+
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config
+
+MAN8= nast.8
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+
+.include <bsd.port.pre.mk>
+
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} ""#######################################################
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "You need ${PORTSDIR}/net/libnet-devel to build this port
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} ""#######################################################
+ @${ECHO_MSG} ""
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${PREFIX}/man/man8/
+
+post-install:
+ ${CHMOD} 0755 ${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.post.mk>
diff --git a/net/nast/distinfo b/net/nast/distinfo
new file mode 100644
index 000000000000..ac3143a65bde
--- /dev/null
+++ b/net/nast/distinfo
@@ -0,0 +1 @@
+MD5 (nast-0.1.7d.tar.gz) = 9470ca94be6cd7a359212f1d5888b58e
diff --git a/net/nast/files/patch-configure b/net/nast/files/patch-configure
new file mode 100644
index 000000000000..362b46b4365a
--- /dev/null
+++ b/net/nast/files/patch-configure
@@ -0,0 +1,62 @@
+--- configure.orig Wed Apr 23 15:02:33 2003
++++ configure Wed Apr 23 15:08:08 2003
+@@ -252,7 +252,7 @@
+ #
+ # Initializations.
+ #
+-ac_default_prefix=/usr/local
++ac_default_prefix=${PREFIX}
+ ac_config_libobj_dir=.
+ cross_compiling=no
+ subdirs=
+@@ -273,7 +273,7 @@
+ PACKAGE_BUGREPORT='embyte@madlab.it'
+
+ ac_unique_file="main.c"
+-ac_default_prefix=/usr/local
++ac_default_prefix=${PREFIX}
+ # Factoring default headers for most tests.
+ ac_includes_default="\
+ #include <stdio.h>
+@@ -320,11 +320,11 @@
+ # The variables have the same names as the options, with
+ # dashes changed to underlines.
+ cache_file=/dev/null
+-exec_prefix=NONE
++exec_prefix=${PREFIX}
+ no_create=
+ no_recursion=
+-prefix=NONE
+-program_prefix=NONE
++prefix=${PREFIX}
++program_prefix=${PREFIX}
+ program_suffix=NONE
+ program_transform_name=s,x,x,
+ silent=
+@@ -1157,7 +1157,7 @@
+ # Let the site file select an alternate cache file if it wants to.
+ # Prefer explicitly selected file to automatically selected ones.
+ if test -z "$CONFIG_SITE"; then
+- if test "x$prefix" != xNONE; then
++ if test "x$prefix" != x${PREFIX}; then
+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+ else
+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+@@ -1430,17 +1430,6 @@
+ echo "$as_me: WARNING: Your OS seems to be officially unsupported yet" >&2;}
+ ;;
+ esac
+-
+-
+-################
+-# Setup prefix #
+-################
+-
+-
+-if test "$prefix" = "NONE"; then
+- prefix="/usr/local"
+- fi
+-
+
+ #######################
+ # Checks for compiler #
diff --git a/net/nast/pkg-descr b/net/nast/pkg-descr
new file mode 100644
index 000000000000..89763f60c61e
--- /dev/null
+++ b/net/nast/pkg-descr
@@ -0,0 +1,19 @@
+Nast is a packet sniffer and a LAN analyzer based on Libnet and Libpcap.
+As analyzer tool, it has many features like:
+
+ * Build LAN hosts list
+ * Follow a TCP-DATA stream
+ * Find LAN internet gateways
+ * Discorver promiscous nodes
+ * Reset an established connection
+ * Perform a single half-open portscanner
+ * Perform a multi half-open portscanner
+ * Find link type (hub or switch)
+ * Catch daemon banner of LAN nodes
+ * Control arp answers to discover possible arp-spoofings
+ * Byte couting with an optional filter
+ * Write reports logging
+
+It also provides a ncurses menu.
+
+WWW: http://nast.berlios.de
diff --git a/net/nast/pkg-plist b/net/nast/pkg-plist
new file mode 100644
index 000000000000..3c1f2e8ebbea
--- /dev/null
+++ b/net/nast/pkg-plist
@@ -0,0 +1 @@
+bin/nast