Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update synocli-net #6269

Merged
merged 7 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
7 changes: 0 additions & 7 deletions cross/bind/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ COMMENT = BIND (Berkeley Internet Name Domain) is a complete, highly portable i
LICENSE = MPL 2.0

GNU_CONFIGURE = 1
PRE_CONFIGURE_TARGET = bind_pre_configure
PRE_COMPILE_TARGET = bind_pre_compile

ADDITIONAL_CFLAGS = -O2
Expand All @@ -48,12 +47,6 @@ CONFIGURE_ARGS += BUILD_LIBS="$(LIBS)"

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

.PHONY: bind_pre_configure
bind_pre_configure:
@$(MSG) Install libtool binary
sudo apt-get update
sudo apt-get install -y libtool-bin

.PHONY: bind_pre_compile
# libns and libisccfg must be available in the install location at compile time
# otherwise the compilation of some binaries (rndc, dig, tools, ...) fails
Expand Down
26 changes: 26 additions & 0 deletions cross/bind/patches/001-disable-l1-cache-runtime-check.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Disable L1 cache alignment runtime check
#
# on most Synology systems the sysconf function returns 0
# instead of ISC_OS_CACHELINE_SIZE (64)
# only on x64 systems the value is 64 (cpuinfo: "cache_alignment : 64")
#
# The first attempt was to disable the definition of HAVE_SYSCONF
# by CONFIGURE_ARGS += ac_cv_func_sysconf=no, but this did not work
# (HAVE_SYSCONF must be defined elsewhere)
#
# So far remove the runtime check for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) only,
# and keep the sysconf call to evaluate the number of cpus in os.c
#
--- lib/isc/os.c.orig 2022-01-12 12:04:23.274225500 +0100
+++ lib/isc/os.c 2024-10-14 23:18:34.813233430 +0200
@@ -80,8 +80,8 @@
isc__os_initialize(void) {
ncpus_initialize();
#if defined(HAVE_SYSCONF) && defined(_SC_LEVEL1_DCACHE_LINESIZE)
- long s = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
- RUNTIME_CHECK((size_t)s == (size_t)ISC_OS_CACHELINE_SIZE);
+// long s = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
+// RUNTIME_CHECK((size_t)s == (size_t)ISC_OS_CACHELINE_SIZE);
#endif
}

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 and 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
2 changes: 1 addition & 1 deletion cross/socat/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME = socat
PKG_VERS = 1.8.0.0
PKG_VERS = 1.8.0.1
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = http://www.dest-unreach.org/socat/download
Expand Down
6 changes: 3 additions & 3 deletions cross/socat/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
socat-1.8.0.0.tar.bz2 SHA1 45915619996db1159ea79a6a23ec3ae27db6eeb9
socat-1.8.0.0.tar.bz2 SHA256 e1de683dd22ee0e3a6c6bbff269abe18ab0c9d7eb650204f125155b9005faca7
socat-1.8.0.0.tar.bz2 MD5 51f9ecdf5d942d0a3c150ea400eb89ef
socat-1.8.0.1.tar.bz2 SHA1 6cf8b255108fc6bd7ab67fed61e0b52b21150fc4
socat-1.8.0.1.tar.bz2 SHA256 6a283565db7cf86292c6f70504c58abb03e29888adeed5a6c5f3457e803c1b81
socat-1.8.0.1.tar.bz2 MD5 e53a6e8e8594ac87476fe4ae361bbcd1
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
1 change: 1 addition & 0 deletions diyspk/bind/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ include ../../mk/spksrc.spk.mk

ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
DEPENDS += cross/bind_9.16
SPK_VERS = 9.16.45
else
DEPENDS += cross/bind
endif
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
16 changes: 16 additions & 0 deletions diyspk/rsync/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SPK_NAME = rsync
SPK_VERS = 3.3.0
SPK_REV = 1

DEPENDS = cross/rsync_update

MAINTAINER = SynoCommunity
DESCRIPTION = Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use.
STARTABLE = no

HOMEPAGE = https://rsync.samba.org/
LICENSE = GPLv3

SPK_COMMANDS = bin/rsync bin/rsync-ssl

include ../../mk/spksrc.spk.mk
2 changes: 1 addition & 1 deletion diyspk/socat/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SPK_NAME = socat
SPK_VERS = 1.8.0.0
SPK_VERS = 1.8.0.1
SPK_REV = 1

DEPENDS = cross/socat
Expand Down
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
Loading