2013-09-19 17:17:52 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# iputils
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-01-21 04:31:47 +01:00
|
|
|
# The original upstream was forked to the github repository in 2014 to
|
|
|
|
# pull fixes from other distribution and centralize the changes after
|
|
|
|
# the upstream seemed to have gone dormant. The fork contains the
|
2017-06-05 13:43:15 +02:00
|
|
|
# latest changes including musl support, removing a libsysfs dependency
|
2016-01-21 04:31:47 +01:00
|
|
|
# and IPv6 updates.
|
|
|
|
# http://www.spinics.net/lists/netdev/msg279881.html
|
|
|
|
|
2018-09-24 02:14:45 +02:00
|
|
|
IPUTILS_VERSION = s20180629
|
2016-01-21 04:31:47 +01:00
|
|
|
IPUTILS_SITE = $(call github,iputils,iputils,$(IPUTILS_VERSION))
|
2017-03-30 15:43:40 +02:00
|
|
|
IPUTILS_LICENSE = GPL-2.0+, BSD-3-Clause, BSD-4-Clause
|
2013-09-19 17:17:52 +02:00
|
|
|
# Only includes a license file for BSD
|
|
|
|
IPUTILS_LICENSE_FILES = ninfod/COPYING
|
|
|
|
|
2016-01-21 04:31:47 +01:00
|
|
|
IPUTILS_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) USE_SYSFS=no USE_IDN=no\
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
IPUTILS_MAKE_OPTS += USE_CAP=yes
|
|
|
|
IPUTILS_DEPENDENCIES += libcap
|
|
|
|
else
|
|
|
|
IPUTILS_MAKE_OPTS += USE_CAP=no
|
|
|
|
endif
|
2013-09-19 17:17:52 +02:00
|
|
|
|
2016-02-25 14:23:34 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
IPUTILS_MAKE_OPTS += USE_GCRYPT=yes
|
|
|
|
IPUTILS_DEPENDENCIES += libgcrypt
|
|
|
|
else
|
|
|
|
IPUTILS_MAKE_OPTS += USE_GCRYPT=no
|
|
|
|
endif
|
|
|
|
|
2016-02-25 14:23:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NETTLE),y)
|
|
|
|
IPUTILS_MAKE_OPTS += USE_NETTLE=yes
|
|
|
|
IPUTILS_DEPENDENCIES += nettle
|
|
|
|
else
|
|
|
|
IPUTILS_MAKE_OPTS += USE_NETTLE=no
|
|
|
|
endif
|
|
|
|
|
2016-02-25 14:23:32 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
IPUTILS_MAKE_OPTS += USE_CRYPTO=yes
|
|
|
|
IPUTILS_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
IPUTILS_MAKE_OPTS += USE_CRYPTO=no
|
|
|
|
endif
|
|
|
|
|
2013-09-19 17:17:52 +02:00
|
|
|
define IPUTILS_BUILD_CMDS
|
2016-10-14 00:13:28 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(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)/traceroute6 $(TARGET_DIR)/bin/traceroute6
|
2013-09-19 17:17:52 +02:00
|
|
|
endef
|
|
|
|
|
2018-01-13 21:19:42 +01:00
|
|
|
define IPUTILS_PERMISSIONS
|
|
|
|
/bin/ping f 4755 0 0 - - - - -
|
|
|
|
/bin/traceroute6 f 4755 0 0 - - - - -
|
|
|
|
endef
|
|
|
|
|
2013-09-19 17:17:52 +02:00
|
|
|
$(eval $(generic-package))
|