14839eca9a
anonscm.debian.org has been discontinued and now hosts a page pointing to salsa.debian.org. Switch to the new upstream URL, explicitly setting the method to git now that we use an HTTPS URL. Signed-off-by: John Keeping <john@metanate.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
31 lines
925 B
Makefile
31 lines
925 B
Makefile
################################################################################
|
|
#
|
|
# netcat-openbsd
|
|
#
|
|
################################################################################
|
|
|
|
NETCAT_OPENBSD_VERSION = debian/1.190-1
|
|
NETCAT_OPENBSD_SITE = https://salsa.debian.org/debian/netcat-openbsd.git
|
|
NETCAT_OPENBSD_SITE_METHOD = git
|
|
NETCAT_OPENBSD_LICENSE = BSD-3-Clause
|
|
NETCAT_OPENBSD_LICENSE_FILES = debian/copyright
|
|
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))
|