summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/checkpolicy_3.2.bb
blob: 99ac47082a40e3522eac264655bc1f923c27977e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SUMMARY = "SELinux policy compiler"
DESCRIPTION = "\
This package contains checkpolicy, the SELinux policy compiler. Only \
required for building policies. 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."
SECTION = "base"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833"

require selinux_common.inc

DEPENDS += "libsepol bison-native flex-native"

EXTRA_OEMAKE += "LEX='flex'"
EXTRA_OEMAKE += "LIBSEPOLA=${STAGING_LIBDIR}/libsepol.a"

S = "${WORKDIR}/git/checkpolicy"

do_install:append() {
    install test/dismod ${D}/${bindir}/sedismod
    install test/dispol ${D}/${bindir}/sedispol
}

BBCLASSEXTEND = "native"