|
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=iproute2
|
|
PKG_NAME:=iproute2
|
|
|
PKG_VERSION:=5.1.0
|
|
PKG_VERSION:=5.1.0
|
|
|
-PKG_RELEASE:=1
|
|
|
|
|
|
|
+PKG_RELEASE:=2
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/net/iproute2
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/net/iproute2
|
|
@@ -47,7 +47,7 @@ $(call Package/iproute2/Default)
|
|
|
VARIANT:=full
|
|
VARIANT:=full
|
|
|
PROVIDES:=ip
|
|
PROVIDES:=ip
|
|
|
ALTERNATIVES:=300:/sbin/ip:/usr/libexec/ip-full
|
|
ALTERNATIVES:=300:/sbin/ip:/usr/libexec/ip-full
|
|
|
- DEPENDS:=+libnl-tiny +libelf +(PACKAGE_devlink||PACKAGE_rdma):libmnl
|
|
|
|
|
|
|
+ DEPENDS:=+libnl-tiny +libelf +(PACKAGE_devlink||PACKAGE_rdma):libmnl +libcap
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
define Package/tc
|
|
define Package/tc
|
|
@@ -55,43 +55,43 @@ $(call Package/iproute2/Default)
|
|
|
TITLE:=Traffic control utility
|
|
TITLE:=Traffic control utility
|
|
|
VARIANT:=tc
|
|
VARIANT:=tc
|
|
|
PROVIDES:=tc
|
|
PROVIDES:=tc
|
|
|
- DEPENDS:=+kmod-sched-core +libxtables +libelf +(PACKAGE_devlink||PACKAGE_rdma):libmnl
|
|
|
|
|
|
|
+ DEPENDS:=+kmod-sched-core +libxtables +libelf +(PACKAGE_devlink||PACKAGE_rdma):libmnl +PACKAGE_ip-full:libcap
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
define Package/genl
|
|
define Package/genl
|
|
|
$(call Package/iproute2/Default)
|
|
$(call Package/iproute2/Default)
|
|
|
TITLE:=General netlink utility frontend
|
|
TITLE:=General netlink utility frontend
|
|
|
- DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf
|
|
|
|
|
|
|
+ DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf +PACKAGE_ip-full:libcap
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
define Package/ip-bridge
|
|
define Package/ip-bridge
|
|
|
$(call Package/iproute2/Default)
|
|
$(call Package/iproute2/Default)
|
|
|
TITLE:=Bridge configuration utility from iproute2
|
|
TITLE:=Bridge configuration utility from iproute2
|
|
|
- DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf
|
|
|
|
|
|
|
+ DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf +PACKAGE_ip-full:libcap
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
define Package/ss
|
|
define Package/ss
|
|
|
$(call Package/iproute2/Default)
|
|
$(call Package/iproute2/Default)
|
|
|
TITLE:=Socket statistics utility
|
|
TITLE:=Socket statistics utility
|
|
|
- DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf
|
|
|
|
|
|
|
+ DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf +PACKAGE_ip-full:libcap
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
define Package/nstat
|
|
define Package/nstat
|
|
|
$(call Package/iproute2/Default)
|
|
$(call Package/iproute2/Default)
|
|
|
TITLE:=Network statistics utility
|
|
TITLE:=Network statistics utility
|
|
|
- DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf
|
|
|
|
|
|
|
+ DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf +PACKAGE_ip-full:libcap
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
define Package/devlink
|
|
define Package/devlink
|
|
|
$(call Package/iproute2/Default)
|
|
$(call Package/iproute2/Default)
|
|
|
TITLE:=Network devlink utility
|
|
TITLE:=Network devlink utility
|
|
|
- DEPENDS:=+libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf
|
|
|
|
|
|
|
+ DEPENDS:=+libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf +PACKAGE_ip-full:libcap
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
define Package/rdma
|
|
define Package/rdma
|
|
|
$(call Package/iproute2/Default)
|
|
$(call Package/iproute2/Default)
|
|
|
TITLE:=Network rdma utility
|
|
TITLE:=Network rdma utility
|
|
|
- DEPENDS:=+libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf
|
|
|
|
|
|
|
+ DEPENDS:=+libmnl +(PACKAGE_tc||PACKAGE_ip-full):libelf +PACKAGE_ip-full:libcap
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),tiny)
|
|
ifeq ($(BUILD_VARIANT),tiny)
|
|
@@ -100,6 +100,7 @@ endif
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),full)
|
|
ifeq ($(BUILD_VARIANT),full)
|
|
|
HAVE_ELF:=y
|
|
HAVE_ELF:=y
|
|
|
|
|
+ HAVE_CAP:=y
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),tc)
|
|
ifeq ($(BUILD_VARIANT),tc)
|
|
@@ -130,6 +131,7 @@ MAKE_FLAGS += \
|
|
|
IP_CONFIG_TINY=$(IP_CONFIG_TINY) \
|
|
IP_CONFIG_TINY=$(IP_CONFIG_TINY) \
|
|
|
HAVE_ELF=$(HAVE_ELF) \
|
|
HAVE_ELF=$(HAVE_ELF) \
|
|
|
HAVE_MNL=$(HAVE_MNL) \
|
|
HAVE_MNL=$(HAVE_MNL) \
|
|
|
|
|
+ HAVE_CAP=$(HAVE_CAP) \
|
|
|
IPT_LIB_DIR=/usr/lib/iptables \
|
|
IPT_LIB_DIR=/usr/lib/iptables \
|
|
|
XT_LIB_DIR=/usr/lib/iptables \
|
|
XT_LIB_DIR=/usr/lib/iptables \
|
|
|
FPIC="$(FPIC)"
|
|
FPIC="$(FPIC)"
|