diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-01-17 16:49:54 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@windriver.com> | 2012-01-17 16:49:54 -0600 |
commit | 12cb67c6d4eb2dda60f3e991894174ab5b317177 (patch) | |
tree | 668916d24208b0b850463b942f619ac9aa223854 | |
parent | 3ffef353316263c96045c6e90a3153e0aadcdc9e (diff) | |
download | meta-selinux-12cb67c6d4eb2dda60f3e991894174ab5b317177.tar.gz |
libsemanage: Add version 2.1.0
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r-- | recipes-security/selinux/libsemanage_2.1.0.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-security/selinux/libsemanage_2.1.0.bb b/recipes-security/selinux/libsemanage_2.1.0.bb new file mode 100644 index 0000000..c67dbae --- /dev/null +++ b/recipes-security/selinux/libsemanage_2.1.0.bb | |||
@@ -0,0 +1,36 @@ | |||
1 | SUMMARY = "SELinux binary policy manipulation library" | ||
2 | DESCRIPTION = "libsemanage provides an API for the manipulation of SELinux binary policies. \ | ||
3 | It is used by checkpolicy (the policy compiler) and similar tools, as well \ | ||
4 | as by programs like load_policy that need to perform specific transformations \ | ||
5 | on binary policies such as customizing policy boolean settings." | ||
6 | SECTION = "base" | ||
7 | PR = "r1" | ||
8 | LICENSE = "LGPLv2.1+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" | ||
10 | |||
11 | include selinux.inc | ||
12 | inherit lib_package | ||
13 | |||
14 | SRC_URI[md5sum] = "d97b0700138dfcc0a9db55a26adffc70" | ||
15 | SRC_URI[sha256sum] = "004c05e32326b1658a85743a950b322d509032dc7c7f652989d7a20ec3652d0f" | ||
16 | |||
17 | DEPENDS += "libsepol libselinux ustr bzip2" | ||
18 | |||
19 | EXTRA_OEMAKE += "INCLUDEDIR='${STAGING_INCDIR}' LIBDIR='${STAGING_LIBDIR}' PYLIBVER='python${PYTHON_BASEVERSION}' PYINC='${STAGING_INCDIR}/$(PYLIBVER)' PYLIB='${STAGING_LIBDIR}/$(PYLIBVER)' PYTHONLIBDIR='$(PYLIB)'" | ||
20 | |||
21 | do_compile() { | ||
22 | oe_runmake all pywrap | ||
23 | } | ||
24 | |||
25 | do_install_append() { | ||
26 | rm ${D}${libdir}/libsemanage.so | ||
27 | ln -s libsemanage.so.1 ${D}${base_libdir}/libsemanage.so | ||
28 | |||
29 | count=0 ; while [ -n "$libdir" -a "$libdir" != "." -a "$libdir" != "/" ]; do count=$(expr $count + 1); libdir=`dirname $libdir` ; done | ||
30 | |||
31 | relpath="" | ||
32 | newcount=0 ; while [ $newcount -lt $count ]; do if [ $newcount -ne 0 ]; then relpath+="/" ; fi ; relpath+=".." ; newcount=$(expr $newcount + 1) ; done | ||
33 | |||
34 | ln -sf $relpath/${base_libdir}/libsemanage.so.1 ${D}${libdir}/libsemanage.so | ||
35 | } | ||
36 | |||