Skip to content

Commit

Permalink
syncli-net: fix nmap for ARMv5 (SynoCommunity#6256)
Browse files Browse the repository at this point in the history
- use cross/libpcap/Makefile for all libpcap versions
- update libpcap (latest) to v1.10.5
- limit libpcap to v1.9.1 for ARMv5
- include mac-vendor list for arp-scan
- remove bin/ndiff (python2 script)
  • Loading branch information
hgy59 committed Oct 9, 2024
1 parent b870800 commit ebae4b5
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 42 deletions.
9 changes: 1 addition & 8 deletions cross/arp-scan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PKG_DIST_SITE = https://github.com/royhills/arp-scan/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

OPTIONAL_DEPENDS = cross/libpcap cross/libpcap_1.9
DEPENDS = cross/libpcap

HOMEPAGE = https://www.royhills.co.uk/wiki/index.php/Arp-scan_User_Guide
COMMENT = Command-line tool for system discovery and fingerprinting. It constructs and sends ARP requests to the specified IP addresses, and displays any responses that are received.
Expand All @@ -22,13 +22,6 @@ ADDITIONAL_CPPFLAGS = -O3

include ../../mk/spksrc.cross-cc.mk

ifeq ($(findstring $(ARCH),$(OLD_PPC_ARCHS)),$(ARCH))
DEPENDS = cross/libpcap_1.9
else
DEPENDS = cross/libpcap
endif


.PHONY: arp-scan_pre_configure
arp-scan_pre_configure:
$(RUN) autoreconf --install
3 changes: 1 addition & 2 deletions cross/arp-scan/PLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
rsc:bin/arp-fingerprint
bin:bin/arp-scan
rsc:bin/get-iab
rsc:bin/get-oui
rsc:etc/arp-scan/mac-vendor.txt
rsc:share/arp-scan
2 changes: 2 additions & 0 deletions cross/libpcap_1.9/Makefile → cross/libpcap-1.9/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PKG_DIST_SITE = https://www.tcpdump.org/release
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

# this is the latests version that builds for OLD_PPC_ARCHS
# we use this version for ARMv5 since newer versions are not working (#6256)
# we use this version for ARMv7L since versions > 1.10.4 fail to build

DEPENDS =

Expand Down
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions cross/libpcap-latest/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PKG_NAME = libpcap
PKG_VERS = 1.10.5
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://www.tcpdump.org/release
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

# latest version for OLD_PPC_ARCHS adn ARMv5 is 1.9.1
UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS) $(ARMv5_ARCHS)
# latest version for ARMv7L is 1.10.4
UNSUPPORTED_ARCHS += $(ARMv7L_ARCHS)

HOMEPAGE = https://www.tcpdump.org/
COMMENT = Portable C/C++ library for network traffic capture.
LICENSE = BSD

GNU_CONFIGURE = 1
CONFIGURE_ARGS = --with-pcap=linux
ADDITIONAL_CFLAGS = -O

include ../../mk/spksrc.cross-cc.mk
2 changes: 1 addition & 1 deletion cross/libpcap/PLIST → cross/libpcap-latest/PLIST
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
lnk:lib/libpcap.so
lnk:lib/libpcap.so.1
lib:lib/libpcap.so.1.10.4
lib:lib/libpcap.so.1.10.5
3 changes: 3 additions & 0 deletions cross/libpcap-latest/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libpcap-1.10.5.tar.xz SHA1 ac029ecbd003a4b9c181867a9c500ad2d79935e8
libpcap-1.10.5.tar.xz SHA256 84fa89ac6d303028c1c5b754abff77224f45eca0a94eb1a34ff0aa9ceece3925
libpcap-1.10.5.tar.xz MD5 3d67f8b17db94a00a05636616fb0489b
27 changes: 9 additions & 18 deletions cross/libpcap/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
PKG_NAME = libpcap
PKG_VERS = 1.10.4
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://www.tcpdump.org/release
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
PKG_NAME = libpcap-main

DEPENDS =
OPTIONAL_DEPENDS = cross/libpcap-latest
OPTIONAL_DEPENDS += cross/libpcap-1.9

# latest version for OLD_PPC_ARCHS is 1.9.1
UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS)
include ../../mk/spksrc.main-depends.mk

HOMEPAGE = https://www.tcpdump.org/
COMMENT = Portable C/C++ library for network traffic capture.
LICENSE = BSD

GNU_CONFIGURE = 1
CONFIGURE_ARGS = --with-pcap=linux
ADDITIONAL_CFLAGS = -O

include ../../mk/spksrc.cross-cc.mk
ifeq ($(findstring $(ARCH),$(OLD_PPC_ARCHS) $(ARMv5_ARCHS) $(ARMv7L_ARCHS)),$(ARCH))
DEPENDS = cross/libpcap-1.9
else
DEPENDS = cross/libpcap-latest
endif
3 changes: 0 additions & 3 deletions cross/libpcap/digests

This file was deleted.

1 change: 0 additions & 1 deletion cross/nmap/PLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
bin:bin/ncat
rsc:bin/ndiff
bin:bin/nmap
bin:bin/nping
rsc:share/ncat
Expand Down
2 changes: 1 addition & 1 deletion cross/nmap_7.92/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://nmap.org/dist
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libpcap_1.9 cross/openssl3
DEPENDS = cross/libpcap cross/openssl3

HOMEPAGE = https://nmap.org/
COMMENT = Nmap ("Network Mapper") is a free and open source utility for network discovery and security auditing.
Expand Down
1 change: 0 additions & 1 deletion cross/nmap_7.92/PLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
bin:bin/ncat
rsc:bin/ndiff
bin:bin/nmap
bin:bin/nping
rsc:share/ncat
Expand Down
4 changes: 2 additions & 2 deletions diyspk/arp-scan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ HOMEPAGE = http://www.royhills.co.uk/wiki/index.php/Arp-scan_User_Guide
LICENSE = MIT

SPK_COMMANDS = bin/arp-scan
# perl scripts (work only when perl package is installed)
SPK_COMMANDS += bin/arp-fingerprint bin/get-iab bin/get-oui
# perl script (works only when perl package is installed)
SPK_COMMANDS += bin/arp-fingerprint

include ../../mk/spksrc.spk.mk
3 changes: 2 additions & 1 deletion diyspk/nmap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ LICENSE = https://svn.nmap.org/nmap/LICENSE
include ../../mk/spksrc.archs.mk
ifeq ($(findstring $(ARCH),$(OLD_PPC_ARCHS)),$(ARCH))
DEPENDS = cross/nmap_7.92
SPK_VERS = 7.92
else
DEPENDS = cross/nmap
endif

SPK_COMMANDS = bin/ncat bin/nmap bin/nping bin/ndiff
SPK_COMMANDS = bin/ncat bin/nmap bin/nping

include ../../mk/spksrc.spk.mk
8 changes: 4 additions & 4 deletions spk/synocli-net/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = synocli-net
SPK_VERS = 2.4
SPK_REV = 18
SPK_REV = 19
SPK_ICON = src/synocli-net.png

DEPENDS = cross/screen cross/tmux cross/links cross/socat
Expand Down Expand Up @@ -52,15 +52,15 @@ MAINTAINER = ymartin59
DESCRIPTION = "SynoCli Network Tools provides a set of small command-line utilities: screen, tmux, socat, nmap, arp-scan, mtr \(My traceroute\), links, rsync, xxhsum, autossh \(including openssh, sftp and scp\), etherwake, telnet, whois, sshfs$(OPTIONAL_DESC)."
DISPLAY_NAME = SynoCli Network Tools
STARTABLE = no
CHANGELOG = "1. Update aria2 to v1.37.0.<br/>2. Update bind to v9.17.22 (on ARMv5 v9.16.45).<br/>3. Update inetutils (telnet, whois) to v2.5.<br/>4. Update openssl to v3.1.5.<br/>5. Update openssh to v9.6p1.<br/>6. Update screen to v4.9.1.<br/>7. Update ser2net to v4.6.0.<br/>8. Update socat to v1.8.0.0.<br/>9. Add xxHsum tools, bundled with rsync."
CHANGELOG = "1. Update aria2 to v1.37.0.<br/>2. Update bind to v9.17.22 (on ARMv5 v9.16.45).<br/>3. Update inetutils (telnet, whois) to v2.5.<br/>4. Update openssl to v3.1.7.<br/>5. Update openssh to v9.6p1.<br/>6. Update screen to v4.9.1.<br/>7. Update ser2net to v4.6.0.<br/>8. Update socat to v1.8.0.1.<br/>9. Add xxHsum tools, bundled with rsync.<br/>10. Fix nmap for ARMv5 archs."

HOMEPAGE = https://github.com/SynoCommunity/spksrc/wiki/FAQ-SynoCliNet
LICENSE = Each tool is licensed under it\'s respective license.

SPK_COMMANDS = bin/screen
SPK_COMMANDS += bin/tmux
SPK_COMMANDS += bin/nmap bin/nping bin/ndiff bin/ncat
SPK_COMMANDS += bin/arp-scan bin/arp-fingerprint bin/get-iab bin/get-oui
SPK_COMMANDS += bin/nmap bin/nping bin/ncat
SPK_COMMANDS += bin/arp-scan bin/arp-fingerprint
SPK_COMMANDS += bin/links
SPK_COMMANDS += bin/sshfs
SPK_COMMANDS += bin/fusermount bin/fusermount3
Expand Down

0 comments on commit ebae4b5

Please sign in to comment.