Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
From aeadf40bc0ebbb9fea8de8bc6786a2eccf02fa34 Mon Sep 17 00:00:00 2001
|
||||
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Date: Sat, 29 Jun 2024 16:50:36 +0200
|
||||
Subject: [PATCH] libdnet: always build a static library
|
||||
|
||||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
[Julien: rebased patch on version 7.95]
|
||||
Signed-off-by: Julien Olivain <ju.o@free.fr>
|
||||
---
|
||||
libdnet-stripped/configure.gnu | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
create mode 100644 libdnet-stripped/configure.gnu
|
||||
|
||||
diff --git a/libdnet-stripped/configure.gnu b/libdnet-stripped/configure.gnu
|
||||
new file mode 100644
|
||||
index 0000000..989fee4
|
||||
--- /dev/null
|
||||
+++ b/libdnet-stripped/configure.gnu
|
||||
@@ -0,0 +1,3 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+exec "${0%.gnu}" "${@}" --enable-static --disable-shared
|
||||
--
|
||||
2.45.2
|
||||
|
||||
50
package/nmap/Config.in
Normal file
50
package/nmap/Config.in
Normal file
@@ -0,0 +1,50 @@
|
||||
config BR2_PACKAGE_NMAP
|
||||
bool "nmap"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_LIBLINEAR
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
select BR2_PACKAGE_NMAP_NMAP \
|
||||
if !BR2_PACKAGE_NMAP_NCAT && !BR2_PACKAGE_NMAP_NPING
|
||||
help
|
||||
Nmap ("Network Mapper") is a free and open source (license)
|
||||
utility for network discovery and security auditing.
|
||||
|
||||
http://nmap.org
|
||||
|
||||
if BR2_PACKAGE_NMAP
|
||||
|
||||
config BR2_PACKAGE_NMAP_NCAT
|
||||
bool "install ncat"
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
help
|
||||
Ncat is a feature-packed networking utility which reads and
|
||||
writes data across networks from the command line. Ncat was
|
||||
written for the Nmap Project as a much-improved
|
||||
reimplementation of the venerable Netcat.
|
||||
|
||||
A symlink to "nc" is installed if neither netcat or
|
||||
netcat-openbsd is selected.
|
||||
|
||||
comment "a symlink from ncat to 'nc' will be installed"
|
||||
depends on BR2_PACKAGE_NMAP_NCAT
|
||||
depends on !BR2_PACKAGE_NETCAT
|
||||
depends on !BR2_PACKAGE_NETCAT_OPENBSD
|
||||
|
||||
config BR2_PACKAGE_NMAP_NMAP
|
||||
bool "install nmap"
|
||||
select BR2_PACKAGE_PCRE2
|
||||
help
|
||||
This option installs 'nmap' itself.
|
||||
|
||||
config BR2_PACKAGE_NMAP_NPING
|
||||
bool "install nping"
|
||||
help
|
||||
This option installs the 'nping' tool.
|
||||
|
||||
endif
|
||||
|
||||
comment "nmap-nmap needs a toolchain w/ C++, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS)
|
||||
6
package/nmap/nmap.hash
Normal file
6
package/nmap/nmap.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://nmap.org/dist/sigs/nmap-7.99.tar.bz2.digest.txt (lowercase)
|
||||
sha256 df512492ffd108e53a27a06f26d8635bbe89e0e569455dc8ffef058c035d51b2 nmap-7.99.tar.bz2
|
||||
sha512 9ff69659b76573eb10b6e472a0217032fd5fed20f0ac971b3736a4222fb6251c5fbf381ebea7ede313b8ff2feac90a848f645000c61200772d01b843594f4ba4 nmap-7.99.tar.bz2
|
||||
|
||||
# Locally calculated
|
||||
sha256 9d9a9a763c0e6145172cfe7d8483e23b38ce60b6c79a82e4894242917bdae6d3 LICENSE
|
||||
87
package/nmap/nmap.mk
Normal file
87
package/nmap/nmap.mk
Normal file
@@ -0,0 +1,87 @@
|
||||
################################################################################
|
||||
#
|
||||
# nmap
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NMAP_VERSION = 7.99
|
||||
NMAP_SITE = https://nmap.org/dist
|
||||
NMAP_SOURCE = nmap-$(NMAP_VERSION).tar.bz2
|
||||
NMAP_DEPENDENCIES = liblinear libpcap
|
||||
NMAP_CONF_OPTS = --without-liblua --without-zenmap \
|
||||
--with-libdnet=included
|
||||
NMAP_LICENSE = nmap license
|
||||
NMAP_LICENSE_FILES = LICENSE
|
||||
NMAP_CPE_ID_VENDOR = nmap
|
||||
NMAP_SELINUX_MODULES = netutils
|
||||
|
||||
# needed by libpcap
|
||||
NMAP_LIBS_FOR_STATIC_LINK += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
NMAP_CONF_ENV += LIBS="$(NMAP_LIBS_FOR_STATIC_LINK)"
|
||||
endif
|
||||
|
||||
# for 0001-libdnet-wrapper-configure.patch
|
||||
define NMAP_WRAPPER_EXEC
|
||||
chmod +x $(@D)/libdnet-stripped/configure.gnu
|
||||
endef
|
||||
NMAP_POST_PATCH_HOOKS += NMAP_WRAPPER_EXEC
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSSH2),y)
|
||||
NMAP_CONF_OPTS += --with-libssh2="$(STAGING_DIR)/usr"
|
||||
NMAP_DEPENDENCIES += libssh2
|
||||
NMAP_LIBS_FOR_STATIC_LINK += `$(PKG_CONFIG_HOST_BINARY) --libs libssh2`
|
||||
else
|
||||
NMAP_CONF_OPTS += --without-libssh2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
NMAP_CONF_OPTS += --with-openssl="$(STAGING_DIR)/usr"
|
||||
NMAP_DEPENDENCIES += host-pkgconf openssl
|
||||
NMAP_LIBS_FOR_STATIC_LINK += `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
|
||||
else
|
||||
NMAP_CONF_OPTS += --without-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
NMAP_CONF_OPTS += --with-libz="$(STAGING_DIR)/usr"
|
||||
NMAP_DEPENDENCIES += zlib
|
||||
else
|
||||
NMAP_CONF_OPTS += --without-libz
|
||||
endif
|
||||
|
||||
NMAP_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NMAP_NCAT),y)
|
||||
NMAP_CONF_OPTS += --with-ncat
|
||||
NMAP_MAKE_OPTS += build-ncat
|
||||
NMAP_INSTALL_TARGET_OPTS += install-ncat
|
||||
else
|
||||
NMAP_CONF_OPTS += --without-ncat
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NMAP_NMAP),y)
|
||||
NMAP_DEPENDENCIES += pcre2
|
||||
NMAP_CONF_OPTS += --with-libpcre="$(STAGING_DIR)/usr"
|
||||
NMAP_MAKE_OPTS += nmap
|
||||
NMAP_INSTALL_TARGET_OPTS += install-nmap
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NMAP_NPING),y)
|
||||
NMAP_CONF_OPTS += --with-nping
|
||||
NMAP_MAKE_OPTS += build-nping
|
||||
NMAP_INSTALL_TARGET_OPTS += install-nping
|
||||
else
|
||||
NMAP_CONF_OPTS += --without-nping
|
||||
endif
|
||||
|
||||
# Add a symlink to "nc" if none of the competing netcats is selected
|
||||
ifeq ($(BR2_PACKAGE_NMAP_NCAT):$(BR2_PACKAGE_NETCAT)$(BR2_PACKAGE_NETCAT_OPENBSD),y:)
|
||||
define NMAP_INSTALL_NCAT_SYMLINK
|
||||
ln -fs ncat $(TARGET_DIR)/usr/bin/nc
|
||||
endef
|
||||
NMAP_POST_INSTALL_TARGET_HOOKS += NMAP_INSTALL_NCAT_SYMLINK
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user