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.

49 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:=1
  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_INSTALL:=1
  13. HOST_BUILD_DEPENDS:=libsemanage/host
  14. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  15. PKG_LICENSE:=GPL-2.0-only
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/host-build.mk
  19. define Package/semodule-utils
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. DEPENDS:= +policycoreutils
  23. TITLE:=SELinux policy utilities for dealing with modules
  24. URL:=http://selinuxproject.org/page/Main_Page
  25. endef
  26. define Package/semodule-utils/description
  27. Semodule-utils is a collection of utilities for dealing with
  28. policy modules.
  29. endef
  30. HOST_MAKE_FLAGS += \
  31. PREFIX=$(STAGING_DIR_HOSTPKG) \
  32. SBINDIR=$(STAGING_DIR_HOSTPKG)/sbin \
  33. ETCDIR=$(STAGING_DIR_HOSTPKG)/etc
  34. define Package/semodule-utils/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  37. endef
  38. $(eval $(call HostBuild))
  39. $(eval $(call BuildPackage,semodule-utils))