You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  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:=semodule-utils
  7. PKG_VERSION:=3.1
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/20200710
  11. PKG_HASH:=0cc37f9cec751d9c2abb5f2b228b060567e973cb47c19b53b8a4a7378baaa853
  12. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  13. PKG_LICENSE:=GPL-2.0-only
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. HOST_BUILD_DEPENDS:=libsemanage/host
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/host-build.mk
  20. define Package/semodule-utils
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. DEPENDS:=+libsepol
  24. TITLE:=SELinux policy utilities for dealing with modules
  25. URL:=http://selinuxproject.org/page/Main_Page
  26. endef
  27. define Package/semodule-utils/description
  28. Semodule-utils is a collection of utilities for dealing with
  29. policy modules.
  30. endef
  31. HOST_MAKE_FLAGS += \
  32. PREFIX=$(STAGING_DIR_HOSTPKG) \
  33. SBINDIR=$(STAGING_DIR_HOSTPKG)/sbin \
  34. ETCDIR=$(STAGING_DIR_HOSTPKG)/etc
  35. define Package/semodule-utils/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  38. endef
  39. $(eval $(call HostBuild))
  40. $(eval $(call BuildPackage,semodule-utils))