mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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
This commit is contained in:
parent
5199a4419a
commit
257ead1336
6 changed files with 52 additions and 0 deletions
|
@ -514,6 +514,7 @@
|
||||||
SUBDIR += net6
|
SUBDIR += net6
|
||||||
SUBDIR += netatalk3
|
SUBDIR += netatalk3
|
||||||
SUBDIR += netcat
|
SUBDIR += netcat
|
||||||
|
SUBDIR += netdiscover
|
||||||
SUBDIR += netembryo
|
SUBDIR += netembryo
|
||||||
SUBDIR += nethogs
|
SUBDIR += nethogs
|
||||||
SUBDIR += netmap
|
SUBDIR += netmap
|
||||||
|
|
25
net/netdiscover/Makefile
Normal file
25
net/netdiscover/Makefile
Normal 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
3
net/netdiscover/distinfo
Normal 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
|
10
net/netdiscover/files/patch-src_data__al.h
Normal file
10
net/netdiscover/files/patch-src_data__al.h
Normal 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"
|
10
net/netdiscover/files/patch-src_misc.c
Normal file
10
net/netdiscover/files/patch-src_misc.c
Normal 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"
|
3
net/netdiscover/pkg-descr
Normal file
3
net/netdiscover/pkg-descr
Normal 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.
|
Loading…
Add table
Reference in a new issue