update buildroot to 2017.02.11
This commit is contained in:
8
bsp/buildroot-2017.02.11/package/iputils/Config.in
Normal file
8
bsp/buildroot-2017.02.11/package/iputils/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_IPUTILS
|
||||
bool "iputils"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
This package is set of small useful utilities for Linux networking.
|
||||
It includes complete versions of ping, traceroute, etc.
|
||||
|
||||
https://github.com/iputils/iputils
|
||||
2
bsp/buildroot-2017.02.11/package/iputils/iputils.hash
Normal file
2
bsp/buildroot-2017.02.11/package/iputils/iputils.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 79e22e940b6f52c37810657c8f12e7ba85692b517d6cd6e90cbceac2d94fc5e8 iputils-55828d1fef3fed7f07abcbf7be9282a9662e78c7.tar.gz
|
||||
84
bsp/buildroot-2017.02.11/package/iputils/iputils.mk
Normal file
84
bsp/buildroot-2017.02.11/package/iputils/iputils.mk
Normal file
@@ -0,0 +1,84 @@
|
||||
################################################################################
|
||||
#
|
||||
# iputils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# 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
|
||||
# latest changes including msul support, removing a libsysfs dependency
|
||||
# and IPv6 updates.
|
||||
# http://www.spinics.net/lists/netdev/msg279881.html
|
||||
|
||||
IPUTILS_VERSION = 55828d1fef3fed7f07abcbf7be9282a9662e78c7
|
||||
IPUTILS_SITE = $(call github,iputils,iputils,$(IPUTILS_VERSION))
|
||||
IPUTILS_LICENSE = GPLv2+, BSD-3c, BSD-4c
|
||||
# Only includes a license file for BSD
|
||||
IPUTILS_LICENSE_FILES = ninfod/COPYING
|
||||
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
||||
IPUTILS_MAKE_OPTS += USE_GCRYPT=yes
|
||||
IPUTILS_DEPENDENCIES += libgcrypt
|
||||
# When gettext is enabled (BR2_PACKAGE_GETTEXT=y), and provides libintl
|
||||
# (BR2_NEEDS_GETTEXT=y), libgpg-error will link with libintl, and libgpg-error
|
||||
# is pulled in by libgcrypt. Since iputils doesn't use libtool, we have to link
|
||||
# with libintl explicitly for static linking.
|
||||
ifeq ($(BR2_STATIC_LIBS)$(BR2_NEEDS_GETTEXT)$(BR2_PACKAGE_GETTEXT),yyy)
|
||||
IPUTILS_MAKE_OPTS += ADDLIB='-lintl'
|
||||
endif
|
||||
else
|
||||
IPUTILS_MAKE_OPTS += USE_GCRYPT=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NETTLE),y)
|
||||
IPUTILS_MAKE_OPTS += USE_NETTLE=yes
|
||||
IPUTILS_DEPENDENCIES += nettle
|
||||
else
|
||||
IPUTILS_MAKE_OPTS += USE_NETTLE=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
IPUTILS_MAKE_OPTS += USE_CRYPTO=yes
|
||||
IPUTILS_DEPENDENCIES += openssl
|
||||
else
|
||||
IPUTILS_MAKE_OPTS += USE_CRYPTO=no
|
||||
endif
|
||||
|
||||
define IPUTILS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(IPUTILS_MAKE_OPTS)
|
||||
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
|
||||
$(INSTALL) -D -m 755 $(@D)/traceroute6 $(TARGET_DIR)/bin/traceroute6
|
||||
endef
|
||||
|
||||
define IPUTILS_PERMISSIONS
|
||||
/bin/ping f 4755 0 0 - - - - -
|
||||
/bin/traceroute6 f 4755 0 0 - - - - -
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user