2017-12-16 14:01:49 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# traceroute
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
TRACEROUTE_VERSION = 2.1.0
|
|
|
|
TRACEROUTE_SITE = http://downloads.sourceforge.net/traceroute/traceroute/traceroute-$(TRACEROUTE_VERSION)
|
|
|
|
|
|
|
|
TRACEROUTE_LICENSE = GPL-2.0+, LGPL-2.1+
|
|
|
|
TRACEROUTE_LICENSE_FILES = COPYING COPYING.LIB
|
|
|
|
|
|
|
|
# Prefer full-featured traceroute over busybox's version
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
TRACEROUTE_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
|
|
|
define TRACEROUTE_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define TRACEROUTE_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
2017-12-17 09:56:04 +01:00
|
|
|
DESTDIR=$(TARGET_DIR) prefix=/usr install \
|
|
|
|
INSTALL=$(INSTALL) -C $(@D)
|
2017-12-16 14:01:49 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|