2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-06-04 20:36:51 +02:00
|
|
|
#
|
|
|
|
# iproute2
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-06-04 20:36:51 +02:00
|
|
|
|
2018-10-26 21:37:15 +02:00
|
|
|
IPROUTE2_VERSION = 4.19.0
|
2013-09-06 08:14:15 +02:00
|
|
|
IPROUTE2_SOURCE = iproute2-$(IPROUTE2_VERSION).tar.xz
|
2011-12-05 14:00:42 +01:00
|
|
|
IPROUTE2_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/net/iproute2
|
2015-07-07 12:31:55 +02:00
|
|
|
IPROUTE2_DEPENDENCIES = host-bison host-flex host-pkgconf \
|
|
|
|
$(if $(BR2_PACKAGE_LIBMNL),libmnl)
|
2017-07-19 20:43:49 +02:00
|
|
|
IPROUTE2_LICENSE = GPL-2.0+
|
2012-08-13 22:02:39 +02:00
|
|
|
IPROUTE2_LICENSE_FILES = COPYING
|
2013-03-23 23:26:36 +01:00
|
|
|
|
2016-02-21 10:50:08 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
|
|
|
|
IPROUTE2_DEPENDENCIES += elfutils
|
|
|
|
endif
|
|
|
|
|
2015-05-21 08:07:45 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_IPTABLES)x$(BR2_STATIC_LIBS),yx)
|
2011-01-10 18:41:25 +01:00
|
|
|
IPROUTE2_DEPENDENCIES += iptables
|
2012-11-03 16:50:51 +01:00
|
|
|
else
|
2018-05-01 20:39:42 +02:00
|
|
|
define IPROUTE2_DISABLE_IPTABLES
|
2017-12-17 22:48:24 +01:00
|
|
|
# m_xt.so is built unconditionally
|
|
|
|
echo "TC_CONFIG_XT:=n" >>$(@D)/config.mk
|
2012-11-03 16:50:51 +01:00
|
|
|
endef
|
2011-01-10 18:41:25 +01:00
|
|
|
endif
|
|
|
|
|
2018-05-01 20:39:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BERKELEYDB_COMPAT185),y)
|
2013-12-02 01:28:33 +01:00
|
|
|
IPROUTE2_DEPENDENCIES += berkeleydb
|
|
|
|
endif
|
|
|
|
|
2010-09-23 14:53:23 +02:00
|
|
|
define IPROUTE2_CONFIGURE_CMDS
|
2012-11-03 09:21:25 +01:00
|
|
|
cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure
|
2018-05-01 20:39:42 +02:00
|
|
|
$(IPROUTE2_DISABLE_IPTABLES)
|
2010-09-23 14:53:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IPROUTE2_BUILD_CMDS
|
2018-05-01 20:39:42 +02:00
|
|
|
$(TARGET_MAKE_ENV) LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -DXT_LIB_DIR=\\\"/usr/lib/xtables\\\"" \
|
|
|
|
CBUILD_CFLAGS="$(HOST_CFLAGS)" $(MAKE) V=1 LIBDB_LIBS=-lpthread \
|
2013-12-02 01:28:33 +01:00
|
|
|
DBM_INCLUDE="$(STAGING_DIR)/usr/include" \
|
2015-05-07 09:20:12 +02:00
|
|
|
SHARED_LIBS="$(if $(BR2_STATIC_LIBS),n,y)" -C $(@D)
|
2010-09-23 14:53:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IPROUTE2_INSTALL_TARGET_CMDS
|
2018-05-01 20:39:42 +02:00
|
|
|
$(TARGET_MAKE_ENV) DESTDIR="$(TARGET_DIR)" $(MAKE) -C $(@D) install
|
2010-09-23 14:53:23 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|