net/netdiscover: Add new port

Netdiscover is an arp packet-based network address discovery tool

PR:		277932
Approved by:	garga (mentor)
Differential Revision:	https://reviews.freebsd.org/D44551
2024Q2
gatekeeper 2024-04-01 10:47:09 -03:00 committed by Gabriel M. Dutra
parent 5199a4419a
commit 257ead1336
6 changed files with 52 additions and 0 deletions

View File

@ -514,6 +514,7 @@
SUBDIR += net6
SUBDIR += netatalk3
SUBDIR += netcat
SUBDIR += netdiscover
SUBDIR += netembryo
SUBDIR += nethogs
SUBDIR += netmap

25
net/netdiscover/Makefile Normal file
View File

@ -0,0 +1,25 @@
PORTNAME= netdiscover
DISTVERSION= 0.10
CATEGORIES= net
MAINTAINER= tiago.gasiba@gmail.com
COMMENT= Network address discovering tool
WWW= https://github.com/netdiscover-scanner/netdiscover
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf
USE_GITHUB= yes
GH_ACCOUNT= netdiscover-scanner
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
PLIST_FILES= sbin/netdiscover \
share/man/man8/netdiscover.8.gz
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/netdiscover
.include <bsd.port.mk>

3
net/netdiscover/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1711306722
SHA256 (netdiscover-scanner-netdiscover-0.10_GH0.tar.gz) = dc331da2052ef1b0e8de50b8550c63f1e10720101df8f075efe6adeb2dad4afd
SIZE (netdiscover-scanner-netdiscover-0.10_GH0.tar.gz) = 403310

View File

@ -0,0 +1,10 @@
--- src/data_al.h.orig 2024-03-24 19:35:17 UTC
+++ src/data_al.h
@@ -30,6 +30,7 @@
#include <pthread.h>
#include "screen.h"
+#include <pcap/pcap.h>
#ifdef __cplusplus
extern "C"

View File

@ -0,0 +1,10 @@
--- src/misc.c.orig 2024-03-24 19:35:50 UTC
+++ src/misc.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
+#include <pcap/pcap.h>
#include <netinet/if_ether.h>
#include "ifaces.h"

View File

@ -0,0 +1,3 @@
Netdiscover is a network address discovering tool, developed mainly for those
wireless networks without dhcp server, it also works on hub/switched networks.
Its based on arp packets, it will send arp requests and sniff for replies.