2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-01-24 18:02:45 +01:00
|
|
|
#
|
|
|
|
# netcat
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-01-24 18:02:45 +01:00
|
|
|
|
2013-01-20 10:45:47 +01:00
|
|
|
NETCAT_VERSION = 0.7.1
|
|
|
|
NETCAT_SITE = http://downloads.sourceforge.net/project/netcat/netcat/$(NETCAT_VERSION)
|
2017-03-30 15:43:32 +02:00
|
|
|
NETCAT_LICENSE = GPL-2.0+
|
2013-10-14 16:05:39 +02:00
|
|
|
NETCAT_LICENSE_FILES = COPYING
|
2007-01-24 18:02:45 +01:00
|
|
|
|
2018-04-01 00:28:21 +02:00
|
|
|
# Ensure Busybox gets built/installed before, so that this package
|
|
|
|
# overrides Busybox nc.
|
2017-10-12 17:14:18 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
NETCAT_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
2018-04-01 00:28:21 +02:00
|
|
|
# Netcat doesn't overwrite a pre-existing 'nc' (e.g. from busybox) so
|
|
|
|
# force-remove it.
|
|
|
|
define NETCAT_RMOVE_NC_LINK
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/nc
|
|
|
|
endef
|
|
|
|
NETCAT_PRE_INSTALL_TARGET_HOOKS += NETCAT_RMOVE_NC_LINK
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|