Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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:=selinux-policy
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_URL:=https://git.defensec.nl/selinux-policy.git
  9. PKG_VERSION:=1.2.5
  10. PKG_MIRROR_HASH:=81ac6e31d2f1febddbe594f3578a9c40444fc0e349075ab6abd3d3ee014a988e
  11. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  12. PKG_BUILD_DEPENDS:=secilc/host policycoreutils/host
  13. PKG_MAINTAINER:=Dominick Grift <dominick.grift@defensec.nl>
  14. PKG_CPE_ID:=cpe:/a:defensec:selinux-policy
  15. PKG_LICENSE:=Unlicense
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/selinux-policy
  19. SECTION:=system
  20. CATEGORY:=Base system
  21. TITLE:=SELinux security policy for libreCMC
  22. URL:=https://git.defensec.nl/?p=selinux-policy.git;a=summary
  23. PKGARCH:=all
  24. endef
  25. define Package/selinux-policy/description
  26. Basic SELinux Security Policy designed specifically for
  27. libreCMC and written in Common Intermediate Language.
  28. endef
  29. define Build/Compile
  30. $(call Build/Compile/Default,policy)
  31. endef
  32. define Package/selinux-policy/conffiles
  33. /etc/selinux/config
  34. endef
  35. define Package/selinux-policy/install
  36. $(INSTALL_DIR) $(1)/etc/selinux/$(PKG_NAME)/contexts/files/
  37. $(INSTALL_DIR) $(1)/etc/selinux/$(PKG_NAME)/policy/
  38. $(INSTALL_DATA) $(PKG_BUILD_DIR)/customizable_types $(1)/etc/selinux/$(PKG_NAME)/contexts/
  39. $(INSTALL_DATA) $(PKG_BUILD_DIR)/file_contexts.subs_dist $(1)/etc/selinux/$(PKG_NAME)/contexts/files/
  40. $(INSTALL_DATA) $(PKG_BUILD_DIR)/file_contexts $(1)/etc/selinux/$(PKG_NAME)/contexts/files/
  41. $(INSTALL_CONF) $(PKG_BUILD_DIR)/policy.* $(1)/etc/selinux/$(PKG_NAME)/policy/
  42. $(INSTALL_DATA) ./files/selinux-config $(1)/etc/selinux/config
  43. endef
  44. $(eval $(call BuildPackage,selinux-policy))