--- /dev/null
+config BR2_PACKAGE_LIBCAP
+ bool "libcap"
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # XATTR_NAME_CAPS
+ help
+ This library implements the user-space interfaces to the
+ POSIX 1003.1e capabilities available in Linux kernels. These
+ capabilities are a partitioning of the all powerful root
+ privilege into a set of distinct privileges.
+
+ http://sites.google.com/site/fullycapable/
+
+if BR2_PACKAGE_LIBCAP
+
+config BR2_PACKAGE_LIBCAP_TOOLS
+ bool "install tools"
+ depends on BR2_USE_MMU
+ help
+ Install setcap, getcap, getpcaps and capsh tools.
+
+ For these tools to run properly, you should enable, in your
+ kernel configuration, extended file attributes/security labels
+ support for the file system type used on target system (e.g.
+ CONFIG_EXT2_FS_XATTR and CONFIG_EXT2_FS_SECURITY for ext2).
+
+endif
+
+comment "libcap needs a toolchain w/ headers >= 3.0"
+ depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0