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
/3.2
14 PKG_HASH
:=9b1c81fa86fe3867842164448d90c8e7ea94b2987497809c65d4caa87a5c5bc8
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
))