2020-08-24 03:02:45 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=checkpolicy
|
2023-05-13 09:52:17 +00:00
|
|
|
PKG_VERSION:=3.5
|
2020-08-24 03:02:45 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2021-10-22 11:51:14 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
|
2023-05-13 09:52:17 +00:00
|
|
|
PKG_HASH:=7aa48ab2222a0b9881111d6d7f70c3014d3d9338827d9e02df105a68c0df5dbc
|
2020-08-24 03:02:45 +00:00
|
|
|
PKG_INSTALL:=1
|
2020-08-31 19:41:21 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libselinux
|
2020-08-24 03:02:45 +00:00
|
|
|
HOST_BUILD_DEPENDS:=libselinux/host
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
|
|
PKG_CPE_ID:=cpe:/a:selinuxproject:checkpolicy
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/checkpolicy
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=SELinux policy compiler
|
|
|
|
URL:=http://selinuxproject.org/page/Main_Page
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/checkpolicy/description
|
|
|
|
checkpolicy is the SELinux policy compiler. It uses libsepol
|
|
|
|
to generate the binary policy. checkpolicy uses the static
|
|
|
|
libsepol since it deals with low level details of the policy
|
|
|
|
that have not been encapsulated/abstracted by a proper
|
|
|
|
shared library interface.
|
|
|
|
endef
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
HOST_MAKE_FLAGS += \
|
|
|
|
PREFIX=$(STAGING_DIR_HOSTPKG)
|
|
|
|
|
|
|
|
define Package/checkpolicy/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,checkpolicy))
|