Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=secilc
  7. PKG_VERSION:=3.5
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
  11. PKG_HASH:=3eebc5a1f97847fa530cf90654b9f3b8f21a13c9ea3d07495325651580cd3373
  12. HOST_BUILD_DEPENDS:=libsepol/host
  13. PKG_MAINTAINER:=Dominick Grift <dominick.grift@defensec.nl>
  14. PKG_CPE_ID:=cpe:/a:selinuxproject:secilc
  15. PKG_LICENSE:=BSD-2-Clause
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. HOST_LDFLAGS+=-Wl,-rpath=$(STAGING_DIR_HOSTPKG)/lib
  21. HOST_MAKE_FLAGS += \
  22. DESTDIR=$(STAGING_DIR_HOSTPKG) \
  23. PREFIX=
  24. define Package/secilc
  25. SECTION:=utils
  26. CATEGORY:=Utilities
  27. TITLE:=SELinux Common Intermediate Language (CIL) Compiler
  28. URL:=http://selinuxproject.org/page/Main_Page
  29. DEPENDS:=+libsepol
  30. endef
  31. define Package/secilc/description
  32. The SELinux CIL Compiler is a compiler that converts the CIL language as
  33. described on the CIL design wiki into a kernel binary policy file.
  34. Please see the CIL Design Wiki at:
  35. http://github.com/SELinuxProject/cil/wiki/
  36. for more information about the goals and features on the CIL language.
  37. endef
  38. define Build/Compile
  39. $(call Build/Compile/Default,secilc)
  40. endef
  41. define Host/Compile
  42. $(call Host/Compile/Default,secilc)
  43. endef
  44. define Host/Install
  45. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
  46. $(INSTALL_BIN) $(HOST_BUILD_DIR)/secilc $(STAGING_DIR_HOSTPKG)/bin
  47. endef
  48. define Package/secilc/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_BUILD_DIR)/secilc $(1)/usr/bin
  51. endef
  52. $(eval $(call BuildPackage,secilc))
  53. $(eval $(call HostBuild))