2013-09-19 17:17:52 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# iputils
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
IPUTILS_VERSION = s20121011
|
2014-07-31 10:46:58 +02:00
|
|
|
IPUTILS_SITE = http://www.skbuff.net/iputils
|
2013-09-19 17:17:52 +02:00
|
|
|
IPUTILS_SOURCE = iputils-$(IPUTILS_VERSION).tar.bz2
|
|
|
|
IPUTILS_LICENSE = GPLv2+ BSD-3c
|
|
|
|
# Only includes a license file for BSD
|
|
|
|
IPUTILS_LICENSE_FILES = ninfod/COPYING
|
2015-04-19 14:40:00 +02:00
|
|
|
IPUTILS_DEPENDENCIES = openssl
|
2013-09-19 17:17:52 +02:00
|
|
|
|
|
|
|
# Build after busybox so target ends up with this package's full
|
|
|
|
# versions of the applications instead of busybox applets.
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
IPUTILS_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Disabling CAP_SETPCAP (file capabilities)
|
2014-09-27 21:32:38 +02:00
|
|
|
IPUTILS_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) USE_CAP=no USE_SYSFS=no\
|
2013-09-19 17:17:52 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
|
2015-04-19 14:40:00 +02:00
|
|
|
arping clockdiff ping rarpd rdisc tftpd tracepath \
|
|
|
|
ping6 tracepath6 traceroute6
|
2013-09-19 17:17:52 +02:00
|
|
|
|
|
|
|
define IPUTILS_BUILD_CMDS
|
2014-09-27 21:32:38 +02:00
|
|
|
$(MAKE) -C $(@D) $(IPUTILS_MAKE_OPTS)
|
2013-09-19 17:17:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IPUTILS_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/arping $(TARGET_DIR)/sbin/arping
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/clockdiff $(TARGET_DIR)/bin/clockdiff
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/ping $(TARGET_DIR)/bin/ping
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/rarpd $(TARGET_DIR)/sbin/rarpd
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/rdisc $(TARGET_DIR)/sbin/rdisc
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/tftpd $(TARGET_DIR)/usr/sbin/in.tftpd
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/tracepath $(TARGET_DIR)/bin/tracepath
|
2015-04-19 14:40:00 +02:00
|
|
|
$(INSTALL) -D -m 755 $(@D)/ping6 $(TARGET_DIR)/bin/ping6
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/tracepath6 $(TARGET_DIR)/bin/tracepath6
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/traceroute6 $(TARGET_DIR)/bin/traceroute6
|
2013-09-19 17:17:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|