diff options
Diffstat (limited to 'recipes-security/selinux/selinux-python.inc')
| -rw-r--r-- | recipes-security/selinux/selinux-python.inc | 106 |
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 @@ | |||
| 1 | SUMMARY = "Python modules and various SELinux utilities." | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | This package contains Python modules sepolgen, sepolicy; And the \ | ||
| 4 | SELinux utilities audit2allow, chcat, semanage ..." | ||
| 5 | |||
| 6 | SECTION = "base" | ||
| 7 | LICENSE = "GPLv2+" | ||
| 8 | |||
| 9 | SRC_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 | |||
| 14 | inherit python-dir | ||
| 15 | |||
| 16 | DEPENDS += "python-native libsepol" | ||
| 17 | RDEPENDS_${BPN}-audit2allow += "\ | ||
| 18 | python-textutils \ | ||
| 19 | libselinux-python \ | ||
| 20 | ${BPN}-sepolgen \ | ||
| 21 | " | ||
| 22 | RDEPENDS_${BPN}-chcat += "\ | ||
| 23 | python-codecs \ | ||
| 24 | python-shell \ | ||
| 25 | python-stringold \ | ||
| 26 | python-unixadmin \ | ||
| 27 | libselinux-python \ | ||
| 28 | ${BPN} \ | ||
| 29 | " | ||
| 30 | RDEPENDS_${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 | " | ||
| 41 | RDEPENDS_${BPN}-semanage += "\ | ||
| 42 | python-core \ | ||
| 43 | python-ipy \ | ||
| 44 | python-compression \ | ||
| 45 | python-xml \ | ||
| 46 | libselinux-python \ | ||
| 47 | ${BPN} \ | ||
| 48 | " | ||
| 49 | RDEPENDS_${BPN}-sepolicy += "\ | ||
| 50 | python-argparse \ | ||
| 51 | python-codecs \ | ||
| 52 | python-core \ | ||
| 53 | python-syslog \ | ||
| 54 | ${BPN} \ | ||
| 55 | " | ||
| 56 | RDEPENDS_${BPN}-sepolgen-ifgen += "\ | ||
| 57 | python \ | ||
| 58 | libselinux-python \ | ||
| 59 | " | ||
| 60 | |||
| 61 | PACKAGES =+ "\ | ||
| 62 | ${PN}-audit2allow \ | ||
| 63 | ${PN}-sepolgen-ifgen \ | ||
| 64 | ${PN}-chcat \ | ||
| 65 | ${PN}-semanage \ | ||
| 66 | ${PN}-sepolgen \ | ||
| 67 | ${PN}-sepolicy \ | ||
| 68 | " | ||
| 69 | FILES_${PN}-audit2allow = "\ | ||
| 70 | ${bindir}/audit2allow \ | ||
| 71 | ${bindir}/audit2why \ | ||
| 72 | " | ||
| 73 | FILES_${PN}-chcat = "\ | ||
| 74 | ${bindir}/chcat \ | ||
| 75 | " | ||
| 76 | FILES_${PN}-semanage = "\ | ||
| 77 | ${sbindir}/semanage \ | ||
| 78 | ${datadir}/bash-completion/completions/semanage \ | ||
| 79 | " | ||
| 80 | # The ${bindir}/sepolgen is a symlink to ${bindir}/sepolicy | ||
| 81 | FILES_${PN}-sepolicy += "\ | ||
| 82 | ${bindir}/sepolgen \ | ||
| 83 | ${bindir}/sepolicy \ | ||
| 84 | ${datadir}/bash-completion/completions/sepolicy \ | ||
| 85 | " | ||
| 86 | FILES_${PN}-sepolgen-ifgen += "\ | ||
| 87 | ${bindir}/sepolgen-ifgen \ | ||
| 88 | ${bindir}/sepolgen-ifgen-attr-helper \ | ||
| 89 | " | ||
| 90 | FILES_${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 | ||
| 95 | FILES_${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 | |||
| 101 | EXTRA_OEMAKE += "LIBSEPOLA=${STAGING_LIBDIR}/libsepol.a" | ||
| 102 | do_install() { | ||
| 103 | oe_runmake DESTDIR=${D} \ | ||
| 104 | PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ | ||
| 105 | install | ||
| 106 | } | ||
