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
/$(PKG_VERSION
)
14 PKG_HASH
:=25c84edfa3a10ab8cb073b97bc55cb66377532d54a2723da9accdabd05431485
16 PKG_BUILD_DEPENDS
:=libselinux
17 HOST_BUILD_DEPENDS
:=libselinux
/host
19 PKG_MAINTAINER
:=Thomas Petazzoni
<thomas.petazzoni@bootlin.com
>
20 PKG_CPE_ID
:=cpe
:/a
:selinuxproject
:checkpolicy
21 PKG_LICENSE
:=GPL-2.0
-or-later
22 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/checkpolicy
29 TITLE
:=SELinux policy compiler
30 URL
:=http
://selinuxproject.org
/page
/Main_Page
33 define Package
/checkpolicy
/description
34 checkpolicy is the SELinux policy compiler. It uses libsepol
35 to generate the binary policy. checkpolicy uses the static
36 libsepol since it deals with low level details of the policy
37 that have not been encapsulated
/abstracted by a proper
38 shared library interface.
41 include $(INCLUDE_DIR
)/host-build.mk
44 PREFIX
=$(STAGING_DIR_HOSTPKG
)
46 define Package
/checkpolicy
/install
47 $(INSTALL_DIR
) $(1)/usr
/bin
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
51 $(eval
$(call HostBuild
))
52 $(eval
$(call BuildPackage
,checkpolicy
))