mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
New port: nast
Nast is a packet sniffer and a LAN analyzer based on Libnet and Libpcap. PR: 51310 Submitted by: Kirill Ponomarew <ponomarew@oberon.net>
This commit is contained in:
parent
18b67ce51d
commit
b5007127c8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79754
@ -326,6 +326,7 @@
|
||||
SUBDIR += naim
|
||||
SUBDIR += nam
|
||||
SUBDIR += napshare
|
||||
SUBDIR += nast
|
||||
SUBDIR += nat
|
||||
SUBDIR += nbtscan
|
||||
SUBDIR += nc
|
||||
|
48
net/nast/Makefile
Normal file
48
net/nast/Makefile
Normal file
@ -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>
|
1
net/nast/distinfo
Normal file
1
net/nast/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (nast-0.1.7d.tar.gz) = 9470ca94be6cd7a359212f1d5888b58e
|
62
net/nast/files/patch-configure
Normal file
62
net/nast/files/patch-configure
Normal file
@ -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 #
|
19
net/nast/pkg-descr
Normal file
19
net/nast/pkg-descr
Normal file
@ -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
|
1
net/nast/pkg-plist
Normal file
1
net/nast/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
bin/nast
|
Loading…
Reference in New Issue
Block a user