1 ################################################################################
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
19 define NETCAT_OPENBSD_APPLY_DEBIAN_PATCHES
20 if
[ -d
$(@D
)/debian
/patches
]; then \
21 $(APPLY_PATCHES
) $(@D
) $(@D
)/debian
/patches
*.dpatch
; \
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
)
31 define NETCAT_OPENBSD_INSTALL_TARGET_CMDS
32 $(INSTALL
) -m
755 -D
$(@D
)/nc
$(TARGET_DIR
)/usr
/bin
/nc
35 $(eval
$(generic-package
))