summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/selinux-python.inc
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2017-09-04 22:59:49 -0700
committerMark Hatle <mark.hatle@windriver.com>2017-09-13 19:48:51 -0500
commit1d3df562b781c7c9f9c54e65f2ac5972d2a0b022 (patch)
treec2c6f84c4cb81bc21fdb343eccc5a9df179e1fcd /recipes-security/selinux/selinux-python.inc
parenta5b5f5b328fa7f059fbfe8480bd107379bfe8d21 (diff)
downloadmeta-selinux-1d3df562b781c7c9f9c54e65f2ac5972d2a0b022.tar.gz
selinux-python: add package 2.7 (20170804)
Move packages to python/*: - policycoreutils/semanage -> python/semanage - policycoreutils/audit2allow -> python/audit2allow - policycoreutils/sepolgen-ifgen -> python/audit2allow/sepolgen-ifgen - policycoreutils/sepolicy -> python/sepolicy - policycoreutils/scripts/chcat -> python/chcat - sepolgen -> python/sepolgen * Move and rebase patches: - policycoreutils-fix-TypeError-for-seobject.py.patch - policycoreutils-fix-sepolicy-install-path.patch - policycoreutils-process-ValueError-for-sepolicy-seobject.patch * Cleanup policycoreutils.inc and policycoreutils_2.7.bb Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Update policycoreutils_git.bb Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'recipes-security/selinux/selinux-python.inc')
-rw-r--r--recipes-security/selinux/selinux-python.inc106
1 files changed, 106 insertions, 0 deletions
diff --git a/recipes-security/selinux/selinux-python.inc b/recipes-security/selinux/selinux-python.inc
new file mode 100644
index 0000000..cc907ae
--- /dev/null
+++ b/recipes-security/selinux/selinux-python.inc
@@ -0,0 +1,106 @@
1SUMMARY = "Python modules and various SELinux utilities."
2DESCRIPTION = "\
3This package contains Python modules sepolgen, sepolicy; And the \
4SELinux utilities audit2allow, chcat, semanage ..."
5
6SECTION = "base"
7LICENSE = "GPLv2+"
8
9SRC_URI += "file://fix-sepolicy-install-path.patch \
10 file://fix-TypeError-for-seobject.py.patch \
11 file://process-ValueError-for-sepolicy-seobject.patch \
12"
13
14inherit python-dir
15
16DEPENDS += "python-native libsepol"
17RDEPENDS_${BPN}-audit2allow += "\
18 python-textutils \
19 libselinux-python \
20 ${BPN}-sepolgen \
21"
22RDEPENDS_${BPN}-chcat += "\
23 python-codecs \
24 python-shell \
25 python-stringold \
26 python-unixadmin \
27 libselinux-python \
28 ${BPN} \
29"
30RDEPENDS_${BPN} += "\
31 python-codecs \
32 python-io \
33 python-ipy \
34 python-re \
35 python-stringold \
36 python-syslog \
37 python-unixadmin \
38 libselinux-python \
39 libsemanage-python \
40"
41RDEPENDS_${BPN}-semanage += "\
42 python-core \
43 python-ipy \
44 python-compression \
45 python-xml \
46 libselinux-python \
47 ${BPN} \
48"
49RDEPENDS_${BPN}-sepolicy += "\
50 python-argparse \
51 python-codecs \
52 python-core \
53 python-syslog \
54 ${BPN} \
55"
56RDEPENDS_${BPN}-sepolgen-ifgen += "\
57 python \
58 libselinux-python \
59"
60
61PACKAGES =+ "\
62 ${PN}-audit2allow \
63 ${PN}-sepolgen-ifgen \
64 ${PN}-chcat \
65 ${PN}-semanage \
66 ${PN}-sepolgen \
67 ${PN}-sepolicy \
68"
69FILES_${PN}-audit2allow = "\
70 ${bindir}/audit2allow \
71 ${bindir}/audit2why \
72"
73FILES_${PN}-chcat = "\
74 ${bindir}/chcat \
75"
76FILES_${PN}-semanage = "\
77 ${sbindir}/semanage \
78 ${datadir}/bash-completion/completions/semanage \
79"
80# The ${bindir}/sepolgen is a symlink to ${bindir}/sepolicy
81FILES_${PN}-sepolicy += "\
82 ${bindir}/sepolgen \
83 ${bindir}/sepolicy \
84 ${datadir}/bash-completion/completions/sepolicy \
85"
86FILES_${PN}-sepolgen-ifgen += "\
87 ${bindir}/sepolgen-ifgen \
88 ${bindir}/sepolgen-ifgen-attr-helper \
89"
90FILES_${PN}-sepolgen += "\
91 ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolgen* \
92 ${localstatedir}/lib/sepolgen/perm_map \
93"
94# Map to policycoreutils-python in 2.6
95FILES_${PN} += "\
96 ${libdir}/python${PYTHON_BASEVERSION}/site-packages/seobject.py* \
97 ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolicy*.egg-info \
98 ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolicy/* \
99"
100
101EXTRA_OEMAKE += "LIBSEPOLA=${STAGING_LIBDIR}/libsepol.a"
102do_install() {
103 oe_runmake DESTDIR=${D} \
104 PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \
105 install
106}