From 22378beb581b113def1dc392ef75306a2168a163 Mon Sep 17 00:00:00 2001 From: Alin Nastac Date: Mon, 1 Jul 2019 10:57:26 +0200 Subject: iproute2: add libcap support, enabled in ip-full Preserve optionality of libcap by having configuration script follow the HAVE_CAP environment variable, used similarly to the HAVE_ELF variable. Signed-off-by: Alin Nastac Signed-off-by: Hans Dedecker [PKG_RELEASE increase/refresh patches] (backported from commit a6da3f9ef746101b84a6f530f5a40de28341b69a) Signed-off-by: Jo-Philipp Wich --- .../utils/iproute2/patches/150-keep_libcap_optional.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/network/utils/iproute2/patches/150-keep_libcap_optional.patch (limited to 'package/network/utils/iproute2/patches') diff --git a/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch b/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch new file mode 100644 index 0000000000..05336a737c --- /dev/null +++ b/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch @@ -0,0 +1,11 @@ +--- a/configure ++++ b/configure +@@ -313,7 +313,7 @@ EOF + + check_cap() + { +- if ${PKG_CONFIG} libcap --exists; then ++ if [ "${HAVE_CAP}" = "y" ] && ${PKG_CONFIG} libcap --exists; then + echo "HAVE_CAP:=y" >>$CONFIG + echo "yes" + -- cgit v1.2.3