[OpenWrt-Devel] [PATCH packages 05/11] libs/libcap-ng: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Nov 22 04:55:50 EST 2019


Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 libs/libcap-ng/Makefile | 53 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 libs/libcap-ng/Makefile

diff --git a/libs/libcap-ng/Makefile b/libs/libcap-ng/Makefile
new file mode 100644
index 000000000..5cf1f2499
--- /dev/null
+++ b/libs/libcap-ng/Makefile
@@ -0,0 +1,53 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libcap-ng
+PKG_VERSION:=0.7.9
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://people.redhat.com/sgrubb/libcap-ng
+PKG_HASH:=4a1532bcf3731aade40936f6d6a586ed5a66ca4c7455e1338d1f6c3e09221328
+PKG_INSTALL:=1
+
+PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni at bootlin.com>
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libcap-ng
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=POSIX capabilities programming library
+  URL:=http://people.redhat.com/sgrubb/libcap-ng/
+endef
+
+define Package/libcap-ng/description
+	The libcap-ng library is intended to make programming with
+	posix capabilities much easier than the traditional libcap
+	library. It includes utilities that can analyse all currently
+	running applications and print out any capabilities and
+	whether or not it has an open ended bounding set.
+endef #'
+
+CONFIGURE_ARGS += --without-python
+CONFIGURE_VARS += ac_cv_prog_swig_found=no
+
+define Build/InstallDev
+	$(INSTALL_DIR) $(1)/usr/include
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
+	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libcap-ng.pc $(1)/usr/lib/pkgconfig/
+	$(INSTALL_DIR) $(1)/usr/lib
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
+endef
+
+define Package/libcap-ng/install
+	$(INSTALL_DIR) $(1)/usr/lib
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcap-ng.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libcap-ng))
-- 
2.23.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list