2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=https
://github.com
/SELinuxProject
/selinux
/releases
/download
/20200710
14 PKG_HASH
:=dfc7707070520c93b14fbbdfdbe081364d806bf28e3e79e10318c2594c77bbb2
16 HOST_BUILD_DEPENDS
:=libselinux
/host
18 PKG_MAINTAINER
:=Thomas Petazzoni
<thomas.petazzoni@bootlin.com
>
19 PKG_CPE_ID
:=cpe
:/a
:selinuxproject
:checkpolicy
20 PKG_LICENSE
:=GPL-2.0
-or-later
21 PKG_LICENSE_FILES
:=COPYING
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/checkpolicy
28 TITLE
:=SELinux policy compiler
29 URL
:=http
://selinuxproject.org
/page
/Main_Page
32 define Package
/checkpolicy
/description
33 checkpolicy is the SELinux policy compiler. It uses libsepol
34 to generate the binary policy. checkpolicy uses the static
35 libsepol since it deals with low level details of the policy
36 that have not been encapsulated
/abstracted by a proper
37 shared library interface.
40 include $(INCLUDE_DIR
)/host-build.mk
43 PREFIX
=$(STAGING_DIR_HOSTPKG
)
45 define Package
/checkpolicy
/install
46 $(INSTALL_DIR
) $(1)/usr
/bin
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
50 $(eval
$(call HostBuild
))
51 $(eval
$(call BuildPackage
,checkpolicy
))