Initial Commit
- initial default booting image
This commit is contained in:
30
package/netcat-openbsd/Config.in
Normal file
30
package/netcat-openbsd/Config.in
Normal file
@@ -0,0 +1,30 @@
|
||||
config BR2_PACKAGE_NETCAT_OPENBSD
|
||||
bool "netcat-openbsd"
|
||||
depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
|
||||
depends on !BR2_STATIC_LIBS # libbsd
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
|
||||
select BR2_PACKAGE_LIBBSD
|
||||
help
|
||||
A simple Unix utility which reads and writes data across
|
||||
network connections using TCP or UDP protocol. It is
|
||||
designed to be a reliable "back-end" tool that can be used
|
||||
directly or easily driven by other programs and scripts. At
|
||||
the same time it is a feature-rich network debugging and
|
||||
exploration tool, since it can create almost any kind of
|
||||
connection you would need and has several interesting
|
||||
built-in capabilities.
|
||||
|
||||
This package contains the OpenBSD rewrite of netcat,
|
||||
including support for IPv6, proxies, and Unix sockets.
|
||||
|
||||
https://packages.debian.org/sid/netcat-openbsd
|
||||
|
||||
comment "netcat-openbsd needs a glibc toolchain w/ dynamic library, threads, headers >= 3.12"
|
||||
depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_USES_GLIBC || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
6
package/netcat-openbsd/netcat-openbsd.hash
Normal file
6
package/netcat-openbsd/netcat-openbsd.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://snapshot.debian.org/archive/debian/20251023T202923Z/pool/main/n/netcat-openbsd/netcat-openbsd_1.234-1.dsc
|
||||
sha256 121c18d9441ec42b92a9b566468a596bbcf673894db8b12d892947552a8e3bbe netcat-openbsd_1.234.orig.tar.gz
|
||||
sha256 008892553774e23a62f4088cdcbd4428f7b764a6cdadfcb35d1793224a697996 netcat-openbsd_1.234-1.debian.tar.xz
|
||||
|
||||
# Hash for license file
|
||||
sha256 01754270c331f18613f3d0ee960d4f900ee20a82fad1b0b39f0ed34a3863a78d netcat.c
|
||||
31
package/netcat-openbsd/netcat-openbsd.mk
Normal file
31
package/netcat-openbsd/netcat-openbsd.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# netcat-openbsd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NETCAT_OPENBSD_VERSION = 1.234
|
||||
NETCAT_OPENBSD_SOURCE = netcat-openbsd_$(NETCAT_OPENBSD_VERSION).orig.tar.gz
|
||||
NETCAT_OPENBSD_PATCH = netcat-openbsd_$(NETCAT_OPENBSD_VERSION)-1.debian.tar.xz
|
||||
NETCAT_OPENBSD_SITE = https://snapshot.debian.org/archive/debian/20251023T202923Z/pool/main/n/netcat-openbsd
|
||||
NETCAT_OPENBSD_LICENSE = BSD-3-Clause
|
||||
NETCAT_OPENBSD_LICENSE_FILES = netcat.c
|
||||
NETCAT_OPENBSD_DEPENDENCIES = host-pkgconf libbsd
|
||||
|
||||
define NETCAT_OPENBSD_APPLY_DEBIAN_PATCHES
|
||||
if [ -d $(@D)/debian/patches ]; then \
|
||||
$(APPLY_PATCHES) $(@D) $(@D)/debian/patches *.dpatch; \
|
||||
fi
|
||||
endef
|
||||
|
||||
NETCAT_OPENBSD_POST_PATCH_HOOKS += NETCAT_OPENBSD_APPLY_DEBIAN_PATCHES
|
||||
|
||||
define NETCAT_OPENBSD_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define NETCAT_OPENBSD_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 755 -D $(@D)/nc $(TARGET_DIR)/usr/bin/nc
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user