From ebae4b593af32b037209a0930bf545d5b4b2fd28 Mon Sep 17 00:00:00 2001 From: hgy59 Date: Wed, 9 Oct 2024 20:51:31 +0200 Subject: [PATCH] syncli-net: fix nmap for ARMv5 (#6256) - 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) --- cross/arp-scan/Makefile | 9 +------ cross/arp-scan/PLIST | 3 +-- cross/{libpcap_1.9 => libpcap-1.9}/Makefile | 2 ++ cross/{libpcap_1.9 => libpcap-1.9}/PLIST | 0 cross/{libpcap_1.9 => libpcap-1.9}/digests | 0 cross/libpcap-latest/Makefile | 23 ++++++++++++++++ cross/{libpcap => libpcap-latest}/PLIST | 2 +- cross/libpcap-latest/digests | 3 +++ .../001-pcap-linux_fix-undefined-symbol.patch | 0 cross/libpcap/Makefile | 27 +++++++------------ cross/libpcap/digests | 3 --- cross/nmap/PLIST | 1 - cross/nmap_7.92/Makefile | 2 +- cross/nmap_7.92/PLIST | 1 - diyspk/arp-scan/Makefile | 4 +-- diyspk/nmap/Makefile | 3 ++- spk/synocli-net/Makefile | 8 +++--- 17 files changed, 49 insertions(+), 42 deletions(-) rename cross/{libpcap_1.9 => libpcap-1.9}/Makefile (76%) rename cross/{libpcap_1.9 => libpcap-1.9}/PLIST (100%) rename cross/{libpcap_1.9 => libpcap-1.9}/digests (100%) create mode 100644 cross/libpcap-latest/Makefile rename cross/{libpcap => libpcap-latest}/PLIST (60%) create mode 100644 cross/libpcap-latest/digests rename cross/{libpcap => libpcap-latest}/patches/001-pcap-linux_fix-undefined-symbol.patch (100%) delete mode 100644 cross/libpcap/digests diff --git a/cross/arp-scan/Makefile b/cross/arp-scan/Makefile index 4b54deb9c34..cbea9a4193a 100644 --- a/cross/arp-scan/Makefile +++ b/cross/arp-scan/Makefile @@ -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. @@ -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 diff --git a/cross/arp-scan/PLIST b/cross/arp-scan/PLIST index f2869136a9b..7871eb0b48c 100644 --- a/cross/arp-scan/PLIST +++ b/cross/arp-scan/PLIST @@ -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 diff --git a/cross/libpcap_1.9/Makefile b/cross/libpcap-1.9/Makefile similarity index 76% rename from cross/libpcap_1.9/Makefile rename to cross/libpcap-1.9/Makefile index 23850310686..d9bdbccdd43 100644 --- a/cross/libpcap_1.9/Makefile +++ b/cross/libpcap-1.9/Makefile @@ -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 = diff --git a/cross/libpcap_1.9/PLIST b/cross/libpcap-1.9/PLIST similarity index 100% rename from cross/libpcap_1.9/PLIST rename to cross/libpcap-1.9/PLIST diff --git a/cross/libpcap_1.9/digests b/cross/libpcap-1.9/digests similarity index 100% rename from cross/libpcap_1.9/digests rename to cross/libpcap-1.9/digests diff --git a/cross/libpcap-latest/Makefile b/cross/libpcap-latest/Makefile new file mode 100644 index 00000000000..0fc84a35c4c --- /dev/null +++ b/cross/libpcap-latest/Makefile @@ -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 diff --git a/cross/libpcap/PLIST b/cross/libpcap-latest/PLIST similarity index 60% rename from cross/libpcap/PLIST rename to cross/libpcap-latest/PLIST index 2dc37b06742..2761a956178 100644 --- a/cross/libpcap/PLIST +++ b/cross/libpcap-latest/PLIST @@ -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 diff --git a/cross/libpcap-latest/digests b/cross/libpcap-latest/digests new file mode 100644 index 00000000000..ffd60481b7d --- /dev/null +++ b/cross/libpcap-latest/digests @@ -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 diff --git a/cross/libpcap/patches/001-pcap-linux_fix-undefined-symbol.patch b/cross/libpcap-latest/patches/001-pcap-linux_fix-undefined-symbol.patch similarity index 100% rename from cross/libpcap/patches/001-pcap-linux_fix-undefined-symbol.patch rename to cross/libpcap-latest/patches/001-pcap-linux_fix-undefined-symbol.patch diff --git a/cross/libpcap/Makefile b/cross/libpcap/Makefile index 2189730cf24..0bba3e03316 100644 --- a/cross/libpcap/Makefile +++ b/cross/libpcap/Makefile @@ -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 diff --git a/cross/libpcap/digests b/cross/libpcap/digests deleted file mode 100644 index bc3899a4c79..00000000000 --- a/cross/libpcap/digests +++ /dev/null @@ -1,3 +0,0 @@ -libpcap-1.10.4.tar.gz SHA1 818cbe70179c73eebfe1038854665f33aac64245 -libpcap-1.10.4.tar.gz SHA256 ed19a0383fad72e3ad435fd239d7cd80d64916b87269550159d20e47160ebe5f -libpcap-1.10.4.tar.gz MD5 0322e28dd76cda8066bb6d00fee5969b diff --git a/cross/nmap/PLIST b/cross/nmap/PLIST index 0ea56bb5d2b..33b04726e2e 100644 --- a/cross/nmap/PLIST +++ b/cross/nmap/PLIST @@ -1,5 +1,4 @@ bin:bin/ncat -rsc:bin/ndiff bin:bin/nmap bin:bin/nping rsc:share/ncat diff --git a/cross/nmap_7.92/Makefile b/cross/nmap_7.92/Makefile index bfc5a92180e..920ddfc8a8c 100644 --- a/cross/nmap_7.92/Makefile +++ b/cross/nmap_7.92/Makefile @@ -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. diff --git a/cross/nmap_7.92/PLIST b/cross/nmap_7.92/PLIST index 0ea56bb5d2b..33b04726e2e 100644 --- a/cross/nmap_7.92/PLIST +++ b/cross/nmap_7.92/PLIST @@ -1,5 +1,4 @@ bin:bin/ncat -rsc:bin/ndiff bin:bin/nmap bin:bin/nping rsc:share/ncat diff --git a/diyspk/arp-scan/Makefile b/diyspk/arp-scan/Makefile index 1b0280ccac1..074d658bf64 100644 --- a/diyspk/arp-scan/Makefile +++ b/diyspk/arp-scan/Makefile @@ -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 diff --git a/diyspk/nmap/Makefile b/diyspk/nmap/Makefile index d5eec25e57e..a7e8d01be9a 100644 --- a/diyspk/nmap/Makefile +++ b/diyspk/nmap/Makefile @@ -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 diff --git a/spk/synocli-net/Makefile b/spk/synocli-net/Makefile index ba5479b2ca1..8d6e625a7d0 100644 --- a/spk/synocli-net/Makefile +++ b/spk/synocli-net/Makefile @@ -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 @@ -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.
2. Update bind to v9.17.22 (on ARMv5 v9.16.45).
3. Update inetutils (telnet, whois) to v2.5.
4. Update openssl to v3.1.5.
5. Update openssh to v9.6p1.
6. Update screen to v4.9.1.
7. Update ser2net to v4.6.0.
8. Update socat to v1.8.0.0.
9. Add xxHsum tools, bundled with rsync." +CHANGELOG = "1. Update aria2 to v1.37.0.
2. Update bind to v9.17.22 (on ARMv5 v9.16.45).
3. Update inetutils (telnet, whois) to v2.5.
4. Update openssl to v3.1.7.
5. Update openssh to v9.6p1.
6. Update screen to v4.9.1.
7. Update ser2net to v4.6.0.
8. Update socat to v1.8.0.1.
9. Add xxHsum tools, bundled with rsync.
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