[openwrt/openwrt] secilc: adds new package

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 8 21:15:59 EDT 2020


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/9ee7c1ec60e23f25f5d275c6439ce93aec914e1c

commit 9ee7c1ec60e23f25f5d275c6439ce93aec914e1c
Author: Dominick Grift <dominick.grift at defensec.nl>
AuthorDate: Wed Sep 30 12:17:19 2020 +0200

    secilc: adds new package
    
    Signed-off-by: Dominick Grift <dominick.grift at defensec.nl>
---
 package/utils/secilc/Makefile | 65 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/package/utils/secilc/Makefile b/package/utils/secilc/Makefile
new file mode 100644
index 0000000000..708b81659c
--- /dev/null
+++ b/package/utils/secilc/Makefile
@@ -0,0 +1,65 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=secilc
+PKG_VERSION:=3.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/20200710
+PKG_HASH:=86117246fec3017af710a9ff7c1dae3ed1cd571e232a86cff3e2a3de2d6aa65c
+HOST_BUILD_DEPENDS:=libsepol/host
+
+PKG_MAINTAINER:=Dominick Grift <dominick.grift at defensec.nl>
+PKG_CPE_ID:=cpe:/a:selinuxproject:secilc
+PKG_LICENSE:=BSD-2-Clause
+PKG_LICENSE_FILES:=COPYING
+
+include $(INCLUDE_DIR)/host-build.mk
+include $(INCLUDE_DIR)/nls.mk
+include $(INCLUDE_DIR)/package.mk
+
+HOST_LDFLAGS+=-Wl,-rpath=$(STAGING_DIR_HOSTPKG)/lib
+HOST_MAKE_FLAGS += \
+	DESTDIR=$(STAGING_DIR_HOSTPKG) \
+	PREFIX=
+
+define Package/secilc
+	SECTION:=utils
+	CATEGORY:=Utilities
+	TITLE:=SELinux Common Intermediate Language (CIL) Compiler
+	URL:=http://selinuxproject.org/page/Main_Page
+endef
+
+define Package/secilc/description
+	The SELinux CIL Compiler is a compiler that converts the CIL language as
+	described on the CIL design wiki into a kernel binary policy file.
+	Please see the CIL Design Wiki at:
+	http://github.com/SELinuxProject/cil/wiki/
+	for more information about the goals and features on the CIL language.
+endef
+
+define Build/Compile
+	$(call Build/Compile/Default,secilc)
+endef
+
+define Host/Compile
+	$(call Host/Compile/Default,secilc)
+endef
+
+define Host/Install
+	$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
+	$(INSTALL_BIN) $(HOST_BUILD_DIR)/secilc $(STAGING_DIR_HOSTPKG)/bin
+endef
+
+define Package/secilc/install
+	$(INSTALL_DIR) $(1)/usr/bin
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/secilc $(1)/usr/bin
+endef
+
+$(eval $(call BuildPackage,secilc))
+$(eval $(call HostBuild))



More information about the lede-commits mailing list