ports/51310: New port: net/nast

Kirill Ponomarew ponomarew at oberon.net
Wed Apr 23 14:00:27 UTC 2003


>Number:         51310
>Category:       ports
>Synopsis:       New port: net/nast
>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:   Wed Apr 23 07:00:25 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kirill Ponomarew
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Oberon.net 
>Environment:
 
        
>Description:
New port: net/nast

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.

>How-To-Repeat:
>Fix:


# 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:
#
#	net/nast/Makefile
#	net/nast/distinfo
#	net/nast/files
#	net/nast/pkg-descr
#	net/nast/pkg-plist
#	net/nast/files/patch-configure
#
echo x - net/nast/Makefile
sed 's/^X//' >net/nast/Makefile << 'END-of-net/nast/Makefile'
X# New ports collection makefile for:  nast
X# Date created:        Sun Apr  6 10:12:16 CEST 2003
X# Whom:                Kirill Ponomarew <ponomarew at oberon.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	nast
XPORTVERSION=	0.1.7d
XCATEGORIES=	net
XMASTER_SITES=	http://nast.berlios.de/src/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	ponomarew at oberon.net
XCOMMENT=	Nast is a packet sniffer
X
XBUILD_DEPENDS=  ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet-devel
XLIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config
X
XMAN8=		nast.8
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
X
X.include <bsd.port.pre.mk>
X
Xpre-everything::
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} ""#######################################################
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "You need /usr/ports/net/libnet-devel to build this port
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} ""#######################################################
X	@${ECHO_MSG} ""
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
X	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${PREFIX}/man/man8/
X
Xpost-install:
X	${CHMOD} 0755 ${PREFIX}/bin/${PORTNAME}
X
X.include <bsd.port.post.mk>
END-of-net/nast/Makefile
echo x - net/nast/distinfo
sed 's/^X//' >net/nast/distinfo << 'END-of-net/nast/distinfo'
XMD5 (nast-0.1.7d.tar.gz) = 9470ca94be6cd7a359212f1d5888b58e
END-of-net/nast/distinfo
echo c - net/nast/files
mkdir -p net/nast/files > /dev/null 2>&1
echo x - net/nast/pkg-descr
sed 's/^X//' >net/nast/pkg-descr << 'END-of-net/nast/pkg-descr'
XNast is a packet sniffer and a LAN analyzer based on Libnet and Libpcap.
XAs analyzer tool, it has many features like:
X
X              * Build LAN hosts list
X              * Follow a TCP-DATA stream
X              * Find LAN internet gateways
X              * Discorver promiscous nodes
X              * Reset an established connection
X              * Perform a single half-open portscanner
X              * Perform a multi half-open portscanner
X              * Find link type (hub or switch)
X              * Catch daemon banner of LAN nodes
X              * Control arp answers to discover possible arp-spoofings
X              * Byte couting with an optional filter
X              * Write reports logging
X
XIt also provides a ncurses menu.
X
XWWW: http://nast.berlios.de
END-of-net/nast/pkg-descr
echo x - net/nast/pkg-plist
sed 's/^X//' >net/nast/pkg-plist << 'END-of-net/nast/pkg-plist'
Xbin/nast
END-of-net/nast/pkg-plist
echo x - net/nast/files/patch-configure
sed 's/^X//' >net/nast/files/patch-configure << 'END-of-net/nast/files/patch-configure'
X--- configure.orig	Wed Apr 23 15:02:33 2003
X+++ configure	Wed Apr 23 15:08:08 2003
X@@ -252,7 +252,7 @@
X #
X # Initializations.
X #
X-ac_default_prefix=/usr/local
X+ac_default_prefix=${PREFIX}
X ac_config_libobj_dir=.
X cross_compiling=no
X subdirs=
X@@ -273,7 +273,7 @@
X PACKAGE_BUGREPORT='embyte at madlab.it'
X 
X ac_unique_file="main.c"
X-ac_default_prefix=/usr/local
X+ac_default_prefix=${PREFIX}
X # Factoring default headers for most tests.
X ac_includes_default="\
X #include <stdio.h>
X@@ -320,11 +320,11 @@
X # The variables have the same names as the options, with
X # dashes changed to underlines.
X cache_file=/dev/null
X-exec_prefix=NONE
X+exec_prefix=${PREFIX}
X no_create=
X no_recursion=
X-prefix=NONE
X-program_prefix=NONE
X+prefix=${PREFIX}
X+program_prefix=${PREFIX}
X program_suffix=NONE
X program_transform_name=s,x,x,
X silent=
X@@ -1157,7 +1157,7 @@
X # Let the site file select an alternate cache file if it wants to.
X # Prefer explicitly selected file to automatically selected ones.
X if test -z "$CONFIG_SITE"; then
X-  if test "x$prefix" != xNONE; then
X+  if test "x$prefix" != x${PREFIX}; then
X     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
X   else
X     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
X@@ -1430,17 +1430,6 @@
X echo "$as_me: WARNING: Your OS seems to be officially unsupported yet" >&2;}
X 	;;
X esac
X-
X-
X-################
X-# Setup prefix #
X-################
X-
X-
X-if test "$prefix" = "NONE"; then
X-   prefix="/usr/local"
X-   fi
X-
X 
X #######################
X # Checks for compiler #
END-of-net/nast/files/patch-configure
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list