kumquat-buildroot/package/netcat-openbsd/netcat-openbsd.mk
Fabrice Fontaine 3d24fb7e7b package/netcat-openbsd: bump to version 1.218
- Use official tarball so NETCAT_OPENBSD_VERSION will match what is
  returned by https://release-monitoring.org
- Use netcat.c as the license file

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-02-06 11:24:05 +01:00

32 lines
1.0 KiB
Makefile

################################################################################
#
# netcat-openbsd
#
################################################################################
NETCAT_OPENBSD_VERSION = 1.218
NETCAT_OPENBSD_SOURCE = netcat-openbsd_$(NETCAT_OPENBSD_VERSION).orig.tar.gz
NETCAT_OPENBSD_PATCH = netcat-openbsd_$(NETCAT_OPENBSD_VERSION)-3.debian.tar.xz
NETCAT_OPENBSD_SITE = http://snapshot.debian.org/archive/debian/20211206T030211Z/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))