diff mbox series

[OpenWrt-Devel,packages,08/11] utils/checkpolicy: new package

Message ID 20191122095556.688191-9-thomas.petazzoni@bootlin.com
State Not Applicable
Headers show
Series SELinux support: packages feed changes | expand

Commit Message

Thomas Petazzoni Nov. 22, 2019, 9:55 a.m. UTC
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 utils/checkpolicy/Makefile | 42 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 utils/checkpolicy/Makefile
diff mbox series

Patch

diff --git a/utils/checkpolicy/Makefile b/utils/checkpolicy/Makefile
new file mode 100644
index 000000000..305e3b507
--- /dev/null
+++ b/utils/checkpolicy/Makefile
@@ -0,0 +1,42 @@ 
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=checkpolicy
+PKG_VERSION:=2.9
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/20190315
+PKG_HASH:=a946c32b284532447857e4c48830f8816867c61220c8c08bdd32e6f691335f8e
+HOST_BUILD_DEPENDS:=libselinux/host
+
+PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/checkpolicy
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=SELinux policy compiler
+  URL:=http://selinuxproject.org/page/Main_Page
+endef
+
+define Package/checkpolicy/description
+	checkpolicy is the SELinux policy compiler. It uses libsepol
+	to generate the binary policy. checkpolicy uses the static
+	libsepol since it deals with low level details of the policy
+	that have not been encapsulated/abstracted by a proper
+	shared library interface.
+endef
+
+include $(INCLUDE_DIR)/host-build.mk
+
+HOST_MAKE_FLAGS += \
+	PREFIX=$(STAGING_DIR_HOSTPKG)
+
+$(eval $(call HostBuild))
+$(eval $(call BuildPackage,checkpolicy))