Skip to content

Commit

Permalink
Update synocli net (#4195)
Browse files Browse the repository at this point in the history
* update cli-net tools; add: arp-scan, update: screen, socat, nmap, include links
- update screen to version 4.8.0
- update socat to version 1.7.3.4
- update nmap to version 7.80
- add arp-scan version 1.9.7 (#3519)
- add diyspk for screen, socat, sshfs, nmap, arp-scan, links, tmux
* fix ndiff of nmap
* remove spk/sshfs
- sshfs is part of synocli-net
* move mosh to dedicated package and remove it from synocli-net
  • Loading branch information
hgy59 authored Oct 11, 2020
1 parent 68558c4 commit a3c6f76
Show file tree
Hide file tree
Showing 44 changed files with 194 additions and 1,272 deletions.
27 changes: 27 additions & 0 deletions cross/arp-scan/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
PKG_NAME = arp-scan
PKG_VERS = 1.9.7
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/royhills/$(PKG_NAME)/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libpcap

HOMEPAGE = http://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.
LICENSE = MIT

GNU_CONFIGURE = 1
PRE_CONFIGURE_TARGET = arp-scan_pre_configure

# use the standard C99 format (it cannot be determined due to cross compilation)
CONFIGURE_ARGS = pgac_cv_snprintf_long_long_int_format="%lld"
# needed for compilation to avoid warning "_FORTIFY_SOURCE requires compiling with optimization (-O)"
ADDITIONAL_CPPFLAGS = -O3

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

.PHONY: arp-scan_pre_configure
arp-scan_pre_configure:
$(RUN) autoreconf --install
5 changes: 5 additions & 0 deletions cross/arp-scan/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rsc:bin/arp-fingerprint
bin:bin/arp-scan
rsc:bin/get-iab
rsc:bin/get-oui
rsc:share/arp-scan
3 changes: 3 additions & 0 deletions cross/arp-scan/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
arp-scan-1.9.7.tar.gz SHA1 624475050221e782d908280362c70820d759d14d
arp-scan-1.9.7.tar.gz SHA256 e03c36e4933c655bd0e4a841272554a347cd0136faf42c4a6564059e0761c039
arp-scan-1.9.7.tar.gz MD5 da6f3945084cceba69a36e528bdbc22e
6 changes: 3 additions & 3 deletions cross/fuse/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ LICENSE = GPLv2, LGPLv2.1 (libfuse.so, libulockmgr.so)

GNU_CONFIGURE = 1
CONFIGURE_ARGS += enable_example=no
PRE_CONFIGURE_TARGET = run_makeconf
PRE_CONFIGURE_TARGET = fuse_pre_configure

ENV += MOUNT_FUSE_PATH=/$(INSTALL_PREFIX)/sbin

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

.PHONY: run_makeconf
run_makeconf:
.PHONY: fuse_pre_configure
fuse_pre_configure:
$(RUN) ./makeconf.sh
12 changes: 11 additions & 1 deletion cross/nmap/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME = nmap
PKG_VERS = 7.70
PKG_VERS = 7.80
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://nmap.org/dist
Expand All @@ -13,5 +13,15 @@ LICENSE = https://svn.nmap.org/nmap/COPYING

GNU_CONFIGURE = 1
CONFIGURE_ARGS = --without-zenmap --without-ncat --with-liblua=included --with-libpcre=included
# needed for compilation to avoid warning "_FORTIFY_SOURCE requires compiling with optimization (-O)"
ADDITIONAL_CPPFLAGS = -O3

POST_INSTALL_TARGET = nmap_post_install

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


.PHONY: nmap_post_install
nmap_post_install:
sed -i -e '1 s|^#!/usr/bin/python2|#!/usr/bin/python|g' $(STAGING_INSTALL_PREFIX)/bin/ndiff
cp $(STAGING_INSTALL_PREFIX)/lib/python2.7/site-packages/ndiff.py $(STAGING_INSTALL_PREFIX)/bin/
1 change: 1 addition & 0 deletions cross/nmap/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
rsc:bin/ndiff
bin:bin/nmap
bin:bin/nping
rsc:bin/ndiff.py
rsc:share/nmap
6 changes: 3 additions & 3 deletions cross/nmap/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nmap-7.70.tar.bz2 SHA1 71057361a0953bba5967dc0385de77f3eed792de
nmap-7.70.tar.bz2 SHA256 847b068955f792f4cc247593aca6dc3dc4aae12976169873247488de147a6e18
nmap-7.70.tar.bz2 MD5 84eb6fbe788e0d4918c2b1e39421bf79
nmap-7.80.tar.bz2 SHA1 cfd8162192cfe2623f5770b8ed3c6237791ff6bf
nmap-7.80.tar.bz2 SHA256 fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa
nmap-7.80.tar.bz2 MD5 d37b75b06d1d40f27b76d60db420a1f5
25 changes: 9 additions & 16 deletions cross/screen/Makefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
PKG_NAME = screen
PKG_VERS = 4.0.3
PKG_VERS = 4.8.0
PKG_EXT = tar.gz
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
PKG_DIST_SITE = http://ftp.gnu.org/gnu/$(PKG_NAME)
PKG_DIST_NAME = $(PKG_DIR).$(PKG_EXT)

DEPENDS = cross/ncurses
DEPENDS = cross/ncursesw

HOMEPAGE = https://www.gnu.org/software/screen/
COMMENT = Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.
LICENSE = GPLv2

GNU_CONFIGURE = 1
PRE_CONFIGURE_TARGET = screen_pre_configure_target
INSTALL_TARGET = screen_install_target

PATCHES_LEVEL = 1

CONFIGURE_ARGS = --with-pty-mode=0620 --with-pty-group=5
#TODO: Do like in OE, put this in the toolchain configuration file
CONFIGURE_ARGS += screen_cv_sys_bcopy_overlap=no screen_cv_sys_memcpy_overlap=no screen_cv_sys_memmove_overlap=no screen_cv_sys_fifo_broken_impl=no
CONFIGURE_ARGS += screen_cv_sys_fifo_usable=yes screen_cv_sys_select_broken_retval=no screen_cv_sys_sockets_nofs=no screen_cv_sys_sockets_usable=yes
CONFIGURE_ARGS += screen_cv_sys_terminfo_used=yes
PRE_CONFIGURE_TARGET = screen_pre_configure
INSTALL_TARGET = screen_install


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

.PHONY: screen_pre_configure_target
screen_pre_configure_target:
.PHONY: screen_pre_configure
screen_pre_configure:
$(RUN) autoconf

.PHONY: screen_install_target
screen_install_target:
.PHONY: screen_install
screen_install:
$(RUN) install -c screen $(STAGING_INSTALL_PREFIX)/bin/$(PKG_NAME)
6 changes: 3 additions & 3 deletions cross/screen/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
screen-4.0.3.tar.gz SHA1 7bc6e2f0959ffaae6f52d698c26c774e7dec3545
screen-4.0.3.tar.gz SHA256 78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77
screen-4.0.3.tar.gz MD5 8506fd205028a96c741e4037de6e3c42
screen-4.8.0.tar.gz SHA1 2328927e10e68d357bdfec7bd740726011e834e9
screen-4.8.0.tar.gz SHA256 6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1
screen-4.8.0.tar.gz MD5 d276213d3acd10339cd37848b8c4ab1e
Loading

0 comments on commit a3c6f76

Please sign in to comment.