summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2013-01-04 15:12:42 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2013-01-05 13:12:57 +0800
commit17335d322c10f2b741bdca5d49a02d557e634736 (patch)
treefe3aa008194d9d04916bd9231abfabc714d9ef1e
parent1f3b70427ca5a729f0a8e5969825abbcc4964a20 (diff)
downloadmeta-selinux-17335d322c10f2b741bdca5d49a02d557e634736.tar.gz
selinux packages: create include files.
Create include files for selinux userspace packages: * checkpolicy.inc * libselinux.inc * libsemanage.inc * libsepol.inc * policycoreutils.inc * sepolgen.inc Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/selinux/checkpolicy.inc24
-rw-r--r--recipes-security/selinux/checkpolicy_2.1.8.bb27
-rw-r--r--recipes-security/selinux/checkpolicy_git.bb30
-rw-r--r--recipes-security/selinux/libselinux.inc43
-rw-r--r--recipes-security/selinux/libselinux_2.1.9.bb44
-rw-r--r--recipes-security/selinux/libselinux_git.bb47
-rw-r--r--recipes-security/selinux/libsemanage.inc43
-rw-r--r--recipes-security/selinux/libsemanage_2.1.6.bb44
-rw-r--r--recipes-security/selinux/libsemanage_git.bb47
-rw-r--r--recipes-security/selinux/libsepol.inc14
-rw-r--r--recipes-security/selinux/libsepol_2.1.4.bb15
-rw-r--r--recipes-security/selinux/libsepol_git.bb18
-rw-r--r--recipes-security/selinux/policycoreutils.inc86
-rw-r--r--recipes-security/selinux/policycoreutils_2.1.10.bb87
-rw-r--r--recipes-security/selinux/policycoreutils_git.bb89
-rw-r--r--recipes-security/selinux/selinux_git.inc4
-rw-r--r--recipes-security/selinux/sepolgen.inc34
-rw-r--r--recipes-security/selinux/sepolgen_1.1.5.bb35
-rw-r--r--recipes-security/selinux/sepolgen_git.bb39
19 files changed, 285 insertions, 485 deletions
diff --git a/recipes-security/selinux/checkpolicy.inc b/recipes-security/selinux/checkpolicy.inc
new file mode 100644
index 0000000..096f938
--- /dev/null
+++ b/recipes-security/selinux/checkpolicy.inc
@@ -0,0 +1,24 @@
1PRINC = "1"
2
3SUMMARY = "SELinux policy compiler"
4DESCRIPTION = "\
5This package contains checkpolicy, the SELinux policy compiler. Only \
6required for building policies. It uses libsepol to generate the \
7binary policy. checkpolicy uses the static libsepol since it deals \
8with low level details of the policy that have not been \
9encapsulated/abstracted by a proper shared library interface."
10
11SECTION = "base"
12LICENSE = "GPLv2+"
13
14DEPENDS += "libsepol libselinux bison-native flex-native"
15
16EXTRA_OEMAKE += "PREFIX=${D}"
17EXTRA_OEMAKE += "LEX='flex'"
18
19do_install_append() {
20 install test/dismod ${D}/${bindir}/sedismod
21 install test/dispol ${D}/${bindir}/sedispol
22}
23
24BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/checkpolicy_2.1.8.bb b/recipes-security/selinux/checkpolicy_2.1.8.bb
index e2b9f67..d0fd759 100644
--- a/recipes-security/selinux/checkpolicy_2.1.8.bb
+++ b/recipes-security/selinux/checkpolicy_2.1.8.bb
@@ -1,30 +1,9 @@
1SUMMARY = "SELinux policy compiler"
2DESCRIPTION = "\
3This package contains checkpolicy, the SELinux policy compiler. Only \
4required for building policies. It uses libsepol to generate the \
5binary policy. checkpolicy uses the static libsepol since it deals \
6with low level details of the policy that have not been \
7encapsulated/abstracted by a proper shared library interface."
8
9SECTION = "base"
10PR = "r2" 1PR = "r2"
11LICENSE = "GPLv2+"
12LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
13 2
14include selinux_20120216.inc 3include selinux_20120216.inc
4include ${BPN}.inc
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
15 7
16SRC_URI[md5sum] = "e7b5d62873d4efc8a502b75f042f6735" 8SRC_URI[md5sum] = "e7b5d62873d4efc8a502b75f042f6735"
17SRC_URI[sha256sum] = "8ed586fd2ccf9900f86e38b72af4aa5cc3bade35d0fa19c53ac1a3d59fe0013a" 9SRC_URI[sha256sum] = "8ed586fd2ccf9900f86e38b72af4aa5cc3bade35d0fa19c53ac1a3d59fe0013a"
18
19DEPENDS += "libsepol libselinux bison-native flex-native"
20
21EXTRA_OEMAKE += "PREFIX=${D}"
22EXTRA_OEMAKE += "LEX='flex'"
23
24BBCLASSEXTEND = "native"
25
26do_install_append() {
27 install test/dismod ${D}/${bindir}/sedismod
28 install test/dispol ${D}/${bindir}/sedispol
29}
30
diff --git a/recipes-security/selinux/checkpolicy_git.bb b/recipes-security/selinux/checkpolicy_git.bb
index be4f335..32240c1 100644
--- a/recipes-security/selinux/checkpolicy_git.bb
+++ b/recipes-security/selinux/checkpolicy_git.bb
@@ -1,31 +1,7 @@
1SUMMARY = "SELinux policy compiler"
2DESCRIPTION = "\
3This package contains checkpolicy, the SELinux policy compiler. Only \
4required for building policies. It uses libsepol to generate the \
5binary policy. checkpolicy uses the static libsepol since it deals \
6with low level details of the policy that have not been \
7encapsulated/abstracted by a proper shared library interface."
8
9SECTION = "base"
10PR = "r2" 1PR = "r2"
11LICENSE = "GPLv2+"
12LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
13DEFAULT_PREFERENCE = "-1"
14
15include selinux_git.inc
16
17SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e"
18PV = "2.1.8+git${SRCPV}" 2PV = "2.1.8+git${SRCPV}"
19 3
20DEPENDS += "libsepol libselinux bison-native flex-native" 4include selinux_git.inc
21 5include ${BPN}.inc
22EXTRA_OEMAKE += "PREFIX=${D}"
23EXTRA_OEMAKE += "LEX='flex'"
24
25BBCLASSEXTEND = "native"
26
27do_install_append() {
28 install test/dismod ${D}/${bindir}/sedismod
29 install test/dispol ${D}/${bindir}/sedispol
30}
31 6
7LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
diff --git a/recipes-security/selinux/libselinux.inc b/recipes-security/selinux/libselinux.inc
new file mode 100644
index 0000000..575ebbc
--- /dev/null
+++ b/recipes-security/selinux/libselinux.inc
@@ -0,0 +1,43 @@
1PRINC = "1"
2
3SUMMARY = "SELinux library and simple utilities"
4DESCRIPTION = "libselinux provides an API for SELinux applications to get and set \
5process and file security contexts and to obtain security policy \
6decisions. Required for any applications that use the SELinux API."
7SECTION = "base"
8LICENSE = "PD"
9
10inherit lib_package pythonnative
11
12DEPENDS += "libsepol python swig-native"
13
14PACKAGES += "${PN}-python"
15FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*"
16FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*"
17
18def get_policyconfigarch(d):
19 import re
20 target = d.getVar('TARGET_ARCH', True)
21 p = re.compile('i.86')
22 target = p.sub('i386',target)
23 return "ARCH=%s" % (target)
24EXTRA_OEMAKE += "${@get_policyconfigarch(d)}"
25
26do_compile_append() {
27 oe_runmake pywrap -j1 \
28 INCLUDEDIR='${STAGING_INCDIR}' \
29 LIBDIR='${STAGING_LIBDIR}' \
30 PYLIBVER='python${PYTHON_BASEVERSION}' \
31 PYINC='-I${STAGING_INCDIR}/$(PYLIBVER)' \
32 PYLIB='-L${STAGING_LIBDIR}/$(PYLIBVER) -l$(PYLIBVER)' \
33 PYTHONLIBDIR='${PYLIB}'
34}
35
36do_install_append() {
37 oe_runmake install-pywrap swigify \
38 DESTDIR=${D} \
39 PYLIBVER='python${PYTHON_BASEVERSION}' \
40 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
41}
42
43BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/libselinux_2.1.9.bb b/recipes-security/selinux/libselinux_2.1.9.bb
index 40fbf10..8d4fc3f 100644
--- a/recipes-security/selinux/libselinux_2.1.9.bb
+++ b/recipes-security/selinux/libselinux_2.1.9.bb
@@ -1,49 +1,11 @@
1SUMMARY = "SELinux library and simple utilities"
2DESCRIPTION = "libselinux provides an API for SELinux applications to get and set \
3process and file security contexts and to obtain security policy \
4decisions. Required for any applications that use the SELinux API."
5SECTION = "base"
6PR = "r3" 1PR = "r3"
7LICENSE = "PD"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0"
9 2
10include selinux_20120216.inc 3include selinux_20120216.inc
11inherit lib_package pythonnative 4include ${BPN}.inc
5
6LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0"
12 7
13SRC_URI[md5sum] = "8ea0548dd65e9479b357ba1447f89221" 8SRC_URI[md5sum] = "8ea0548dd65e9479b357ba1447f89221"
14SRC_URI[sha256sum] = "749d4b39c80aa9df8247b8b3187ab72442c0dbad6e70bf312e25052bd4e7063f" 9SRC_URI[sha256sum] = "749d4b39c80aa9df8247b8b3187ab72442c0dbad6e70bf312e25052bd4e7063f"
15 10
16SRC_URI += "file://libselinux-fix-init-load-policy.patch" 11SRC_URI += "file://libselinux-fix-init-load-policy.patch"
17
18DEPENDS += "libsepol python swig-native"
19
20PACKAGES += "${PN}-python"
21FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*"
22FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*"
23
24def get_policyconfigarch(d):
25 import re
26 target = d.getVar('TARGET_ARCH', True)
27 p = re.compile('i.86')
28 target = p.sub('i386',target)
29 return "ARCH=%s" % (target)
30EXTRA_OEMAKE += "${@get_policyconfigarch(d)}"
31
32do_compile_append() {
33 oe_runmake pywrap -j1 \
34 INCLUDEDIR='${STAGING_INCDIR}' \
35 LIBDIR='${STAGING_LIBDIR}' \
36 PYLIBVER='python${PYTHON_BASEVERSION}' \
37 PYINC='-I${STAGING_INCDIR}/$(PYLIBVER)' \
38 PYLIB='-L${STAGING_LIBDIR}/$(PYLIBVER) -l$(PYLIBVER)' \
39 PYTHONLIBDIR='${PYLIB}'
40}
41
42do_install_append() {
43 oe_runmake install-pywrap swigify \
44 DESTDIR=${D} \
45 PYLIBVER='python${PYTHON_BASEVERSION}' \
46 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
47}
48
49BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/libselinux_git.bb b/recipes-security/selinux/libselinux_git.bb
index 893fac5..902e859 100644
--- a/recipes-security/selinux/libselinux_git.bb
+++ b/recipes-security/selinux/libselinux_git.bb
@@ -1,48 +1,9 @@
1SUMMARY = "SELinux library and simple utilities"
2DESCRIPTION = "libselinux provides an API for SELinux applications to get and set \
3process and file security contexts and to obtain security policy \
4decisions. Required for any applications that use the SELinux API."
5SECTION = "base"
6PR = "r3" 1PR = "r3"
7LICENSE = "PD"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0"
9DEFAULT_PREFERENCE = "-1"
10
11include selinux_git.inc
12inherit lib_package pythonnative
13
14SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e"
15PV = "2.1.9+git${SRCPV}" 2PV = "2.1.9+git${SRCPV}"
16 3
17DEPENDS += "libsepol python swig-native" 4include selinux_git.inc
18 5include ${BPN}.inc
19PACKAGES += "${PN}-python"
20FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*"
21FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*"
22
23def get_git_policyconfigarch(d):
24 import re
25 target = d.getVar('TARGET_ARCH', True)
26 p = re.compile('i.86')
27 target = p.sub('i386',target)
28 return "ARCH=%s" % (target)
29EXTRA_OEMAKE += "${@get_git_policyconfigarch(d)}"
30
31do_compile_append() {
32 oe_runmake pywrap -j1 \
33 INCLUDEDIR='${STAGING_INCDIR}' \
34 LIBDIR='${STAGING_LIBDIR}' \
35 PYLIBVER='python${PYTHON_BASEVERSION}' \
36 PYINC='-I${STAGING_INCDIR}/$(PYLIBVER)' \
37 PYLIB='-L${STAGING_LIBDIR}/$(PYLIBVER) -l$(PYLIBVER)' \
38 PYTHONLIBDIR='${PYLIB}'
39}
40 6
41do_install_append() { 7LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0"
42 oe_runmake install-pywrap swigify \
43 DESTDIR=${D} \
44 PYLIBVER='python${PYTHON_BASEVERSION}' \
45 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
46}
47 8
48BBCLASSEXTEND = "native" 9SRC_URI += "file://libselinux-fix-init-load-policy.patch"
diff --git a/recipes-security/selinux/libsemanage.inc b/recipes-security/selinux/libsemanage.inc
new file mode 100644
index 0000000..dfc3006
--- /dev/null
+++ b/recipes-security/selinux/libsemanage.inc
@@ -0,0 +1,43 @@
1PRINC = "1"
2
3SUMMARY = "SELinux binary policy manipulation library"
4DESCRIPTION = "libsemanage provides an API for the manipulation of SELinux binary policies. \
5It is used by checkpolicy (the policy compiler) and similar tools, as well \
6as by programs like load_policy that need to perform specific transformations \
7on binary policies such as customizing policy boolean settings."
8SECTION = "base"
9LICENSE = "LGPLv2.1+"
10
11inherit lib_package
12
13DEPENDS += "libsepol libselinux ustr bzip2 python bison-native flex-native"
14
15PACKAGES += "${PN}-python"
16FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
17FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*"
18
19do_compile_append() {
20 oe_runmake pywrap \
21 INCLUDEDIR='${STAGING_INCDIR}' \
22 LIBDIR='${STAGING_LIBDIR}' \
23 PYLIBVER='python${PYTHON_BASEVERSION}' \
24 PYINC='-I${STAGING_INCDIR}/$(PYLIBVER)' \
25 PYLIB='-L${STAGING_LIBDIR}/$(PYLIBVER) -l$(PYLIBVER)' \
26 PYTHONLIBDIR='${PYLIB}'
27}
28
29do_install() {
30 oe_runmake install \
31 DESTDIR="${D}" \
32 PREFIX="${D}/${prefix}" \
33 INCLUDEDIR="${D}/${includedir}" \
34 LIBDIR="${D}/${libdir}" \
35 SHLIBDIR="${D}/${libdir}"
36
37 oe_runmake install-pywrap swigify \
38 DESTDIR=${D} \
39 PYLIBVER='python${PYTHON_BASEVERSION}' \
40 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
41}
42
43BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/libsemanage_2.1.6.bb b/recipes-security/selinux/libsemanage_2.1.6.bb
index b808b68..a6825ff 100644
--- a/recipes-security/selinux/libsemanage_2.1.6.bb
+++ b/recipes-security/selinux/libsemanage_2.1.6.bb
@@ -1,52 +1,14 @@
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 = "r3" 1PR = "r3"
8LICENSE = "LGPLv2.1+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
10 2
11include selinux_20120216.inc 3include selinux_20120216.inc
12inherit lib_package 4include ${BPN}.inc
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
13 7
14SRC_URI[md5sum] = "b49d75602432d8cfad8a3e5a0a966f07" 8SRC_URI[md5sum] = "b49d75602432d8cfad8a3e5a0a966f07"
15SRC_URI[sha256sum] = "64e6849fe50fb463ec0ba24653a26e3452fa4aaa7d7e192213d5c5a7c525aebb" 9SRC_URI[sha256sum] = "64e6849fe50fb463ec0ba24653a26e3452fa4aaa7d7e192213d5c5a7c525aebb"
16 10
17DEPENDS += "libsepol libselinux ustr bzip2 python bison-native flex-native"
18
19SRC_URI += "file://Fix-segfault-for-standard-policy.patch \ 11SRC_URI += "file://Fix-segfault-for-standard-policy.patch \
20 file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \ 12 file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \
21 file://libsemanage-semanage.conf-for-cross-compile.patch \ 13 file://libsemanage-semanage.conf-for-cross-compile.patch \
22 file://libsemanage-fix-path-len-limit.patch" 14 file://libsemanage-fix-path-len-limit.patch"
23
24PACKAGES += "${PN}-python"
25FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
26FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*"
27
28do_compile_append() {
29 oe_runmake pywrap \
30 INCLUDEDIR='${STAGING_INCDIR}' \
31 LIBDIR='${STAGING_LIBDIR}' \
32 PYLIBVER='python${PYTHON_BASEVERSION}' \
33 PYINC='-I${STAGING_INCDIR}/$(PYLIBVER)' \
34 PYLIB='-L${STAGING_LIBDIR}/$(PYLIBVER) -l$(PYLIBVER)' \
35 PYTHONLIBDIR='${PYLIB}'
36}
37
38do_install() {
39 oe_runmake install \
40 DESTDIR="${D}" \
41 PREFIX="${D}/${prefix}" \
42 INCLUDEDIR="${D}/${includedir}" \
43 LIBDIR="${D}/${libdir}" \
44 SHLIBDIR="${D}/${libdir}"
45
46 oe_runmake install-pywrap swigify \
47 DESTDIR=${D} \
48 PYLIBVER='python${PYTHON_BASEVERSION}' \
49 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
50}
51
52BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/libsemanage_git.bb b/recipes-security/selinux/libsemanage_git.bb
index 71cb1ab..be4623d 100644
--- a/recipes-security/selinux/libsemanage_git.bb
+++ b/recipes-security/selinux/libsemanage_git.bb
@@ -1,53 +1,12 @@
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 = "r3" 1PR = "r3"
8LICENSE = "LGPLv2.1+" 2PV = "2.1.6+git${SRCPV}"
9LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
10DEFAULT_PREFERENCE = "-1"
11 3
12include selinux_git.inc 4include selinux_git.inc
13inherit lib_package 5include ${BPN}.inc
14 6
15SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e" 7LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
16PV = "2.1.6+git${SRCPV}"
17
18DEPENDS += "libsepol libselinux ustr bzip2 python bison-native flex-native"
19 8
20SRC_URI += "file://Fix-segfault-for-standard-policy.patch \ 9SRC_URI += "file://Fix-segfault-for-standard-policy.patch \
21 file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \ 10 file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \
22 file://libsemanage-semanage.conf-for-cross-compile.patch \ 11 file://libsemanage-semanage.conf-for-cross-compile.patch \
23 file://libsemanage-fix-path-len-limit.patch" 12 file://libsemanage-fix-path-len-limit.patch"
24
25PACKAGES += "${PN}-python"
26FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
27FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*"
28
29do_compile_append() {
30 oe_runmake pywrap \
31 INCLUDEDIR='${STAGING_INCDIR}' \
32 LIBDIR='${STAGING_LIBDIR}' \
33 PYLIBVER='python${PYTHON_BASEVERSION}' \
34 PYINC='-I${STAGING_INCDIR}/$(PYLIBVER)' \
35 PYLIB='-L${STAGING_LIBDIR}/$(PYLIBVER) -l$(PYLIBVER)' \
36 PYTHONLIBDIR='${PYLIB}'
37}
38
39do_install() {
40 oe_runmake install \
41 DESTDIR="${D}" \
42 PREFIX="${D}/${prefix}" \
43 INCLUDEDIR="${D}/${includedir}" \
44 LIBDIR="${D}/${libdir}" \
45 SHLIBDIR="${D}/${libdir}"
46
47 oe_runmake install-pywrap swigify \
48 DESTDIR=${D} \
49 PYLIBVER='python${PYTHON_BASEVERSION}' \
50 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
51}
52
53BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/libsepol.inc b/recipes-security/selinux/libsepol.inc
new file mode 100644
index 0000000..8f0dc33
--- /dev/null
+++ b/recipes-security/selinux/libsepol.inc
@@ -0,0 +1,14 @@
1PRINC = "1"
2
3SUMMARY = "SELinux binary policy manipulation library"
4DESCRIPTION = "libsepol provides an API for the manipulation of SELinux binary policies. \
5It is used by checkpolicy (the policy compiler) and similar tools, as well \
6as by programs like load_policy that need to perform specific transformations \
7on binary policies such as customizing policy boolean settings."
8SECTION = "base"
9LICENSE = "LGPLv2+"
10
11inherit lib_package
12
13BBCLASSEXTEND = "native"
14
diff --git a/recipes-security/selinux/libsepol_2.1.4.bb b/recipes-security/selinux/libsepol_2.1.4.bb
index 4e795a2..eac1ed1 100644
--- a/recipes-security/selinux/libsepol_2.1.4.bb
+++ b/recipes-security/selinux/libsepol_2.1.4.bb
@@ -1,20 +1,11 @@
1SUMMARY = "SELinux binary policy manipulation library"
2DESCRIPTION = "libsepol 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" 1PR = "r1"
8LICENSE = "LGPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
10 2
11include selinux_20120216.inc 3include selinux_20120216.inc
12inherit lib_package 4include ${BPN}.inc
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
13 7
14SRC_URI[md5sum] = "909dae553edb34ea2224002a0c529cb0" 8SRC_URI[md5sum] = "909dae553edb34ea2224002a0c529cb0"
15SRC_URI[sha256sum] = "8f5ea42ae6cc00b21f0e5f31f354d19fcce3edfe9328971d266245718714b1e8" 9SRC_URI[sha256sum] = "8f5ea42ae6cc00b21f0e5f31f354d19fcce3edfe9328971d266245718714b1e8"
16 10
17SRC_URI += "file://libsepol-Change-ranlib-for-cross-compiling.patch" 11SRC_URI += "file://libsepol-Change-ranlib-for-cross-compiling.patch"
18
19BBCLASSEXTEND = "native"
20
diff --git a/recipes-security/selinux/libsepol_git.bb b/recipes-security/selinux/libsepol_git.bb
index cb6e62e..f7d801c 100644
--- a/recipes-security/selinux/libsepol_git.bb
+++ b/recipes-security/selinux/libsepol_git.bb
@@ -1,21 +1,9 @@
1SUMMARY = "SELinux binary policy manipulation library"
2DESCRIPTION = "libsepol 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" 1PR = "r1"
8LICENSE = "LGPLv2+" 2PV = "2.1.4+git${SRCPV}"
9LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
10DEFAULT_PREFERENCE = "-1"
11 3
12include selinux_git.inc 4include selinux_git.inc
13inherit lib_package 5include ${BPN}.inc
14 6
15SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e" 7LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
16PV = "2.1.4+git${SRCPV}"
17 8
18SRC_URI += "file://libsepol-Change-ranlib-for-cross-compiling.patch" 9SRC_URI += "file://libsepol-Change-ranlib-for-cross-compiling.patch"
19
20BBCLASSEXTEND = "native"
21
diff --git a/recipes-security/selinux/policycoreutils.inc b/recipes-security/selinux/policycoreutils.inc
new file mode 100644
index 0000000..e105db2
--- /dev/null
+++ b/recipes-security/selinux/policycoreutils.inc
@@ -0,0 +1,86 @@
1PRINC = "1"
2
3SUMMARY = "SELinux policy core utilities"
4DESCRIPTION = "policycoreutils contains the policy core utilities that are required \
5for basic operation of a SELinux system. These utilities include \
6load_policy to load policies, setfiles to label filesystems, newrole \
7to switch roles, and run_init to run /etc/init.d scripts in the proper \
8context."
9SECTION = "base"
10LICENSE = "GPLv2+"
11
12SRC_URI += "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}"
13
14PAM_SRC_URI = "file://pam.d/newrole \
15 file://pam.d/run_init \
16 "
17
18DEPENDS += "libsepol libselinux libsemanage"
19DEPENDS += "${@['', '${EXTRA_DEPENDS}']['${PN}' != '${BPN}-native']}"
20EXTRA_DEPENDS = "libcap-ng libcgroup"
21EXTRA_DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}"
22
23RDEPENDS_${BPN} += "\
24 libselinux-python \
25 libsemanage-python \
26 sepolgen \
27 "
28RDEPENDS_${BPN} += "\
29 python \
30 python-unixadmin \
31 python-shell \
32 python-crypt \
33 python-subprocess \
34 python-syslog \
35 python-textutils \
36 python-ipy \
37 "
38
39RDEPENDS_${BPN} += "setools setools-libs ${BPN}-python"
40
41WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}"
42ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}"
43
44PACKAGES =+ "${PN}-python ${PN}-sandbox"
45FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
46FILES_${PN}-sandbox = "${datadir}/sandbox/*"
47FILES_${PN}-sandbox += "${bindir}/sandbox"
48FILES_${PN}-sandbox += "${sbindir}/seunshare"
49
50inherit pythonnative
51
52AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `"
53PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `"
54EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ', d)} INOTIFYH=n"
55EXTRA_OEMAKE += "PREFIX=${D}"
56EXTRA_OEMAKE += "INITDIR=${D}/etc/init.d"
57
58BBCLASSEXTEND = "native"
59
60PCU_NATIVE_CMDS = "setfiles semodule_package semodule semodule_link semodule_expand semodule_deps"
61
62do_compile_virtclass-native() {
63 for PCU_CMD in ${PCU_NATIVE_CMDS} ; do
64 oe_runmake -C $PCU_CMD \
65 INCLUDEDIR='${STAGING_INCDIR}' \
66 LIBDIR='${STAGING_LIBDIR}'
67 done
68}
69
70do_install_virtclass-native() {
71 for PCU_CMD in ${PCU_NATIVE_CMDS} ; do
72 oe_runmake -C $PCU_CMD install \
73 DESTDIR="${D}" \
74 PREFIX="${D}/${prefix}" \
75 SBINDIR="${D}/${base_sbindir}"
76 done
77}
78
79do_install_append() {
80 test "${CLASSOVERRIDE}" = "class-native" && return 0
81
82 if [ -e ${WORKDIR}/pam.d ]; then
83 install -d ${D}${sysconfdir}/pam.d/
84 install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/
85 fi
86}
diff --git a/recipes-security/selinux/policycoreutils_2.1.10.bb b/recipes-security/selinux/policycoreutils_2.1.10.bb
index 44f5ee8..6feb3cb 100644
--- a/recipes-security/selinux/policycoreutils_2.1.10.bb
+++ b/recipes-security/selinux/policycoreutils_2.1.10.bb
@@ -1,94 +1,13 @@
1SUMMARY = "SELinux policy core utilities"
2DESCRIPTION = "policycoreutils contains the policy core utilities that are required \
3for basic operation of a SELinux system. These utilities include \
4load_policy to load policies, setfiles to label filesystems, newrole \
5to switch roles, and run_init to run /etc/init.d scripts in the proper \
6context."
7SECTION = "base"
8PR = "r7" 1PR = "r7"
9LICENSE = "GPLv2+"
10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
11 2
12include selinux_20120216.inc 3include selinux_20120216.inc
4include ${BPN}.inc
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
13 7
14SRC_URI[md5sum] = "fefdede2815cdd2ba8b68599fef1f257" 8SRC_URI[md5sum] = "fefdede2815cdd2ba8b68599fef1f257"
15SRC_URI[sha256sum] = "8bbbc36b7d375edff891503932da93e37553f0dd7bdceded7ce9a45c80bec3d1" 9SRC_URI[sha256sum] = "8bbbc36b7d375edff891503932da93e37553f0dd7bdceded7ce9a45c80bec3d1"
16 10
17SRC_URI += "file://policycoreutils-fix-format-security.patch \ 11SRC_URI += "file://policycoreutils-fix-format-security.patch \
18 file://policycoreutils-remove-empty-po-files.patch \ 12 file://policycoreutils-remove-empty-po-files.patch \
19 ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \
20 " 13 "
21
22PAM_SRC_URI = "file://pam.d/newrole \
23 file://pam.d/run_init \
24 "
25
26DEPENDS += "libsepol libselinux libsemanage"
27DEPENDS += "${@['', '${EXTRA_DEPENDS}']['${PN}' != '${BPN}-native']}"
28EXTRA_DEPENDS = "libcap-ng libcgroup"
29EXTRA_DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}"
30
31RDEPENDS_${BPN} += "\
32 libselinux-python \
33 libsemanage-python \
34 sepolgen \
35 "
36RDEPENDS_${BPN} += "\
37 python \
38 python-unixadmin \
39 python-shell \
40 python-crypt \
41 python-subprocess \
42 python-syslog \
43 python-textutils \
44 python-ipy \
45 "
46
47RDEPENDS_${BPN} += "setools setools-libs ${BPN}-python"
48
49WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}"
50ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}"
51
52PACKAGES =+ "${PN}-python ${PN}-sandbox"
53FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
54FILES_${PN}-sandbox = "${datadir}/sandbox/*"
55FILES_${PN}-sandbox += "${bindir}/sandbox"
56FILES_${PN}-sandbox += "${sbindir}/seunshare"
57
58inherit pythonnative
59
60AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `"
61PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `"
62EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ', d)} INOTIFYH=n"
63EXTRA_OEMAKE += "PREFIX=${D}"
64EXTRA_OEMAKE += "INITDIR=${D}/etc/init.d"
65
66BBCLASSEXTEND = "native"
67
68PCU_NATIVE_CMDS = "setfiles semodule_package semodule semodule_link semodule_expand semodule_deps"
69
70do_compile_virtclass-native() {
71 for PCU_CMD in ${PCU_NATIVE_CMDS} ; do
72 oe_runmake -C $PCU_CMD \
73 INCLUDEDIR='${STAGING_INCDIR}' \
74 LIBDIR='${STAGING_LIBDIR}'
75 done
76}
77
78do_install_virtclass-native() {
79 for PCU_CMD in ${PCU_NATIVE_CMDS} ; do
80 oe_runmake -C $PCU_CMD install \
81 DESTDIR="${D}" \
82 PREFIX="${D}/${prefix}" \
83 SBINDIR="${D}/${base_sbindir}"
84 done
85}
86
87do_install_append() {
88 test "${CLASSOVERRIDE}" = "class-native" && return 0
89
90 if [ -e ${WORKDIR}/pam.d ]; then
91 install -d ${D}${sysconfdir}/pam.d/
92 install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/
93 fi
94}
diff --git a/recipes-security/selinux/policycoreutils_git.bb b/recipes-security/selinux/policycoreutils_git.bb
index 1d7ad5c..cef84f1 100644
--- a/recipes-security/selinux/policycoreutils_git.bb
+++ b/recipes-security/selinux/policycoreutils_git.bb
@@ -1,94 +1,11 @@
1SUMMARY = "SELinux policy core utilities"
2DESCRIPTION = "policycoreutils contains the policy core utilities that are required \
3for basic operation of a SELinux system. These utilities include \
4load_policy to load policies, setfiles to label filesystems, newrole \
5to switch roles, and run_init to run /etc/init.d scripts in the proper \
6context."
7SECTION = "base"
8PR = "r7" 1PR = "r7"
9LICENSE = "GPLv2+" 2PV = "2.1.10+git${SRCPV}"
10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
11DEFAULT_PREFERENCE = "-1"
12 3
13include selinux_git.inc 4include selinux_git.inc
5include ${BPN}.inc
14 6
15SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e" 7LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
16PV = "2.1.10+git${SRCPV}"
17 8
18SRC_URI += "file://policycoreutils-fix-format-security.patch \ 9SRC_URI += "file://policycoreutils-fix-format-security.patch \
19 file://policycoreutils-remove-empty-po-files.patch \ 10 file://policycoreutils-remove-empty-po-files.patch \
20 ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \
21 " 11 "
22
23PAM_SRC_URI = "file://pam.d/newrole \
24 file://pam.d/run_init \
25 "
26
27DEPENDS += "libsepol libselinux libsemanage"
28DEPENDS += "${@['', '${EXTRA_DEPENDS}']['${PN}' != '${BPN}-native']}"
29EXTRA_DEPENDS = "libcap-ng libcgroup"
30EXTRA_DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}"
31
32RDEPENDS_${BPN} += "\
33 libselinux-python \
34 libsemanage-python \
35 sepolgen \
36 "
37RDEPENDS_${BPN} += "\
38 python \
39 python-unixadmin \
40 python-shell \
41 python-crypt \
42 python-subprocess \
43 python-syslog \
44 python-textutils \
45 python-ipy \
46 "
47RDEPENDS_${BPN} += "setools setools-libs ${BPN}-python"
48
49WARN_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${WARN_QA}', d)}"
50ERROR_QA := "${@oe_filter_out('unsafe-references-in-scripts', '${ERROR_QA}', d)}"
51
52PACKAGES =+ "${PN}-python ${PN}-sandbox"
53FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
54FILES_${PN}-sandbox = "${datadir}/sandbox/*"
55FILES_${PN}-sandbox += "${bindir}/sandbox"
56FILES_${PN}-sandbox += "${sbindir}/seunshare"
57
58inherit pythonnative
59
60AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `"
61PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `"
62EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ', d)} INOTIFYH=n"
63EXTRA_OEMAKE += "PREFIX=${D}"
64EXTRA_OEMAKE += "INITDIR=${D}/etc/init.d"
65
66BBCLASSEXTEND = "native"
67
68PCU_NATIVE_CMDS = "setfiles semodule_package semodule semodule_link semodule_expand semodule_deps"
69
70do_compile_virtclass-native() {
71 for PCU_CMD in ${PCU_NATIVE_CMDS} ; do
72 oe_runmake -C $PCU_CMD \
73 INCLUDEDIR='${STAGING_INCDIR}' \
74 LIBDIR='${STAGING_LIBDIR}'
75 done
76}
77
78do_install_virtclass-native() {
79 for PCU_CMD in ${PCU_NATIVE_CMDS} ; do
80 oe_runmake -C $PCU_CMD install \
81 DESTDIR="${D}" \
82 PREFIX="${D}/${prefix}" \
83 SBINDIR="${D}/${base_sbindir}"
84 done
85}
86
87do_install_append() {
88 test "${CLASSOVERRIDE}" = "class-native" && return 0
89
90 if [ -e ${WORKDIR}/pam.d ]; then
91 install -d ${D}${sysconfdir}/pam.d/
92 install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/
93 fi
94}
diff --git a/recipes-security/selinux/selinux_git.inc b/recipes-security/selinux/selinux_git.inc
index 1301d6f..5dd1aad 100644
--- a/recipes-security/selinux/selinux_git.inc
+++ b/recipes-security/selinux/selinux_git.inc
@@ -1,3 +1,5 @@
1SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e"
2
1SRC_URI = "git://oss.tresys.com/git/selinux.git;protocol=http" 3SRC_URI = "git://oss.tresys.com/git/selinux.git;protocol=http"
2SRC_URI[md5sum] = "4ec64a0d24aaa77c80b86e74d271e464" 4SRC_URI[md5sum] = "4ec64a0d24aaa77c80b86e74d271e464"
3SRC_URI[sha256sum] = "9c8a8643c9a4dd0eb76fcda1420d636b750b84b27656c6f8bc6886a829d7e520" 5SRC_URI[sha256sum] = "9c8a8643c9a4dd0eb76fcda1420d636b750b84b27656c6f8bc6886a829d7e520"
@@ -5,3 +7,5 @@ SRC_URI[sha256sum] = "9c8a8643c9a4dd0eb76fcda1420d636b750b84b27656c6f8bc6886a829
5S = "${WORKDIR}/git/${BPN}" 7S = "${WORKDIR}/git/${BPN}"
6 8
7include selinux_common.inc 9include selinux_common.inc
10
11DEFAULT_PREFERENCE = "-1"
diff --git a/recipes-security/selinux/sepolgen.inc b/recipes-security/selinux/sepolgen.inc
new file mode 100644
index 0000000..05e6544
--- /dev/null
+++ b/recipes-security/selinux/sepolgen.inc
@@ -0,0 +1,34 @@
1PRINC = "1"
2
3SUMMARY = "Python modules for supporting various SELinux utilities."
4DESCRIPTION = "\
5This package contains a Python module that forms the core of the \
6modern audit2allow (which is a part of the package policycoreutils). \
7The sepolgen library is structured to give flexibility to the \
8application using it. The library contains: Reference Policy \
9Representation, which are Objects for representing policies and the \
10reference policy interfaces. Secondly, it has objects and algorithms \
11for representing access and sets of access in an abstract way and \
12searching that access. It also has a parser for reference policy \
13"headers". It contains infrastructure for parsing SELinux related \
14messages as produced by the audit system. It has facilities for \
15generating policy based on required access."
16
17SECTION = "base"
18LICENSE = "LGPLv2+"
19
20FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
21
22DEPENDS += "python"
23
24FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/site-packages \
25 /var/lib/sepolgen"
26
27do_install() {
28 oe_runmake DESTDIR=${D} \
29 PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \
30 install
31}
32
33BBCLASSEXTEND = "native"
34
diff --git a/recipes-security/selinux/sepolgen_1.1.5.bb b/recipes-security/selinux/sepolgen_1.1.5.bb
index 318a57c..f4031d9 100644
--- a/recipes-security/selinux/sepolgen_1.1.5.bb
+++ b/recipes-security/selinux/sepolgen_1.1.5.bb
@@ -1,39 +1,10 @@
1SUMMARY = "Python modules for supporting various SELinux utilities."
2DESCRIPTION = "\
3This package contains a Python module that forms the core of the \
4modern audit2allow (which is a part of the package policycoreutils). \
5The sepolgen library is structured to give flexibility to the \
6application using it. The library contains: Reference Policy \
7Representation, which are Objects for representing policies and the \
8reference policy interfaces. Secondly, it has objects and algorithms \
9for representing access and sets of access in an abstract way and \
10searching that access. It also has a parser for reference policy \
11"headers". It contains infrastructure for parsing SELinux related \
12messages as produced by the audit system. It has facilities for \
13generating policy based on required access."
14
15SECTION = "base"
16PR = "r1" 1PR = "r1"
17LICENSE = "LGPLv2+"
18LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
19 2
20include selinux_20120216.inc 3include selinux_20120216.inc
4include ${BPN}.inc
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
21 7
22SRC_URI[md5sum] = "4ecadef3880019d8cdc08896687608b1" 8SRC_URI[md5sum] = "4ecadef3880019d8cdc08896687608b1"
23SRC_URI[sha256sum] = "16c2b10510be7dbb2dc0967aedb2d69c654ca52ed03d04881c17d2f8b863b3bb" 9SRC_URI[sha256sum] = "16c2b10510be7dbb2dc0967aedb2d69c654ca52ed03d04881c17d2f8b863b3bb"
24 10
25FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
26
27DEPENDS += "python"
28
29FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/site-packages \
30 /var/lib/sepolgen"
31
32do_install() {
33 oe_runmake DESTDIR=${D} \
34 PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \
35 install
36}
37
38BBCLASSEXTEND = "native"
39
diff --git a/recipes-security/selinux/sepolgen_git.bb b/recipes-security/selinux/sepolgen_git.bb
index 68d5a2f..4c8b7df 100644
--- a/recipes-security/selinux/sepolgen_git.bb
+++ b/recipes-security/selinux/sepolgen_git.bb
@@ -1,40 +1,7 @@
1SUMMARY = "Python modules for supporting various SELinux utilities."
2DESCRIPTION = "\
3This package contains a Python module that forms the core of the \
4modern audit2allow (which is a part of the package policycoreutils). \
5The sepolgen library is structured to give flexibility to the \
6application using it. The library contains: Reference Policy \
7Representation, which are Objects for representing policies and the \
8reference policy interfaces. Secondly, it has objects and algorithms \
9for representing access and sets of access in an abstract way and \
10searching that access. It also has a parser for reference policy \
11"headers". It contains infrastructure for parsing SELinux related \
12messages as produced by the audit system. It has facilities for \
13generating policy based on required access."
14
15SECTION = "base"
16PR = "r1" 1PR = "r1"
17LICENSE = "LGPLv2+" 2PV = "1.1.5+git${SRCPV}"
18LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
19DEFAULT_PREFERENCE = "-1"
20 3
21include selinux_git.inc 4include selinux_git.inc
22 5include ${BPN}.inc
23SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e"
24PV = "1.1.5+git${SRCPV}"
25 6
26FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" 7LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
27
28DEPENDS += "python"
29
30FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/site-packages \
31 /var/lib/sepolgen"
32
33do_install() {
34 oe_runmake DESTDIR=${D} \
35 PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \
36 install
37}
38
39BBCLASSEXTEND = "native"
40