initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
libdnet: always build a static library
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff --git a/libdnet-stripped/configure.gnu b/libdnet-stripped/configure.gnu
|
||||
--- /dev/null
|
||||
+++ b/libdnet-stripped/configure.gnu
|
||||
@@ -0,0 +1,3 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+exec "${0%.gnu}" "${@}" --enable-static --disable-shared
|
||||
@@ -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.
|
||||
|
||||
If 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_PCRE
|
||||
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)
|
||||
@@ -0,0 +1,5 @@
|
||||
# From https://nmap.org/dist/sigs/nmap-7.92.tar.bz2.digest.txt (lowercase)
|
||||
sha256 a5479f2f8a6b0b2516767d2f7189c386c1dc858d997167d7ec5cfc798c7571a1 nmap-7.92.tar.bz2
|
||||
|
||||
# Locally calculated
|
||||
sha256 133794301a764dfe8a60e38601e56657b7113e0337b452189725bbbed58baea0 LICENSE
|
||||
@@ -0,0 +1,87 @@
|
||||
################################################################################
|
||||
#
|
||||
# nmap
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NMAP_VERSION = 7.92
|
||||
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 += pcre
|
||||
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