Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:=checkpolicy
  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:=7aa48ab2222a0b9881111d6d7f70c3014d3d9338827d9e02df105a68c0df5dbc
  12. PKG_INSTALL:=1
  13. PKG_BUILD_DEPENDS:=libselinux
  14. HOST_BUILD_DEPENDS:=libselinux/host
  15. PKG_MAINTAINER:=Thomas Petazzoni <[email protected]>
  16. PKG_CPE_ID:=cpe:/a:selinuxproject:checkpolicy
  17. PKG_LICENSE:=GPL-2.0-or-later
  18. PKG_LICENSE_FILES:=COPYING
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/checkpolicy
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=SELinux policy compiler
  24. URL:=http://selinuxproject.org/page/Main_Page
  25. endef
  26. define Package/checkpolicy/description
  27. checkpolicy is the SELinux policy compiler. It uses libsepol
  28. to generate the binary policy. checkpolicy uses the static
  29. libsepol since it deals with low level details of the policy
  30. that have not been encapsulated/abstracted by a proper
  31. shared library interface.
  32. endef
  33. include $(INCLUDE_DIR)/host-build.mk
  34. HOST_MAKE_FLAGS += \
  35. PREFIX=$(STAGING_DIR_HOSTPKG)
  36. define Package/checkpolicy/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  39. endef
  40. $(eval $(call HostBuild))
  41. $(eval $(call BuildPackage,checkpolicy))