2014-10-05 21:48:02 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# netcat-openbsd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-05-28 14:04:49 +02:00
|
|
|
NETCAT_OPENBSD_VERSION = debian/1.195-2
|
2019-04-30 15:28:26 +02:00
|
|
|
NETCAT_OPENBSD_SITE = https://salsa.debian.org/debian/netcat-openbsd.git
|
|
|
|
NETCAT_OPENBSD_SITE_METHOD = git
|
2017-03-30 15:43:38 +02:00
|
|
|
NETCAT_OPENBSD_LICENSE = BSD-3-Clause
|
2015-06-02 23:11:34 +02:00
|
|
|
NETCAT_OPENBSD_LICENSE_FILES = debian/copyright
|
2014-10-05 21:48:02 +02:00
|
|
|
NETCAT_OPENBSD_DEPENDENCIES = host-pkgconf libbsd
|
|
|
|
|
|
|
|
define NETCAT_OPENBSD_APPLY_DEBIAN_PATCHES
|
|
|
|
if [ -d $(@D)/debian/patches ]; then \
|
2014-10-22 18:20:10 +02:00
|
|
|
$(APPLY_PATCHES) $(@D) $(@D)/debian/patches *.dpatch; \
|
2014-10-05 21:48:02 +02:00
|
|
|
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))
|