lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 1 | SUMMARY = "SELinux library and simple utilities" |
| 2 | DESCRIPTION = "libselinux provides an API for SELinux applications to get and set \ |
| 3 | process and file security contexts and to obtain security policy \ |
| 4 | decisions. Required for any applications that use the SELinux API." |
| 5 | SECTION = "base" |
| 6 | LICENSE = "PD" |
| 7 | |
| 8 | inherit lib_package python3native |
| 9 | |
| 10 | DEPENDS += "libsepol libpcre" |
| 11 | DEPENDS_append_libc-musl = " fts" |
| 12 | |
| 13 | def get_policyconfigarch(d): |
| 14 | import re |
| 15 | target = d.getVar('TARGET_ARCH') |
| 16 | p = re.compile('i.86') |
| 17 | target = p.sub('i386',target) |
| 18 | return "ARCH=%s" % (target) |
| 19 | EXTRA_OEMAKE += "${@get_policyconfigarch(d)}" |
| 20 | |
| 21 | EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'" |
| 22 | EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts" |
| 23 | |
| 24 | BBCLASSEXTEND = "native" |