configs/bananapro: bump Linux to 4.10.4
[buildroot-gz.git] / package / netcat-openbsd / netcat-openbsd.mk
blob5abfc7e165b2622a94a837b430abe81b90f5fbce
1 ################################################################################
3 # netcat-openbsd
5 ################################################################################
7 NETCAT_OPENBSD_VERSION = debian/1.105-7
8 NETCAT_OPENBSD_SITE = git://anonscm.debian.org/collab-maint/netcat-openbsd
9 NETCAT_OPENBSD_LICENSE = BSD-3c
10 NETCAT_OPENBSD_LICENSE_FILES = debian/copyright
11 NETCAT_OPENBSD_DEPENDENCIES = host-pkgconf libbsd
13 # Ensure Busybox gets built/installed before, so that this package
14 # overrides Busybox nc.
15 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
16 NETCAT_OPENBSD_DEPENDENCIES += busybox
17 endif
19 define NETCAT_OPENBSD_APPLY_DEBIAN_PATCHES
20 if [ -d $(@D)/debian/patches ]; then \
21 $(APPLY_PATCHES) $(@D) $(@D)/debian/patches *.dpatch; \
23 endef
25 NETCAT_OPENBSD_POST_PATCH_HOOKS += NETCAT_OPENBSD_APPLY_DEBIAN_PATCHES
27 define NETCAT_OPENBSD_BUILD_CMDS
28 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
29 endef
31 define NETCAT_OPENBSD_INSTALL_TARGET_CMDS
32 $(INSTALL) -m 755 -D $(@D)/nc $(TARGET_DIR)/usr/bin/nc
33 endef
35 $(eval $(generic-package))