summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-01-17 16:49:54 -0600
committerMark Hatle <mark.hatle@windriver.com>2012-01-17 16:49:54 -0600
commit12cb67c6d4eb2dda60f3e991894174ab5b317177 (patch)
tree668916d24208b0b850463b942f619ac9aa223854
parent3ffef353316263c96045c6e90a3153e0aadcdc9e (diff)
downloadmeta-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.bb36
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 @@
1SUMMARY = "SELinux binary policy manipulation library"
2DESCRIPTION = "libsemanage provides an API for the manipulation of SELinux binary policies. \
3It is used by checkpolicy (the policy compiler) and similar tools, as well \
4as by programs like load_policy that need to perform specific transformations \
5on binary policies such as customizing policy boolean settings."
6SECTION = "base"
7PR = "r1"
8LICENSE = "LGPLv2.1+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
10
11include selinux.inc
12inherit lib_package
13
14SRC_URI[md5sum] = "d97b0700138dfcc0a9db55a26adffc70"
15SRC_URI[sha256sum] = "004c05e32326b1658a85743a950b322d509032dc7c7f652989d7a20ec3652d0f"
16
17DEPENDS += "libsepol libselinux ustr bzip2"
18
19EXTRA_OEMAKE += "INCLUDEDIR='${STAGING_INCDIR}' LIBDIR='${STAGING_LIBDIR}' PYLIBVER='python${PYTHON_BASEVERSION}' PYINC='${STAGING_INCDIR}/$(PYLIBVER)' PYLIB='${STAGING_LIBDIR}/$(PYLIBVER)' PYTHONLIBDIR='$(PYLIB)'"
20
21do_compile() {
22 oe_runmake all pywrap
23}
24
25do_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