lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 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 | |
| 11 | inherit python3native |
| 12 | |
| 13 | DEPENDS += "python3 libsepol" |
| 14 | RDEPENDS_${BPN}-audit2allow += "\ |
| 15 | python3-core \ |
| 16 | libselinux-python \ |
| 17 | ${BPN}-sepolgen \ |
| 18 | " |
| 19 | RDEPENDS_${BPN}-chcat += "\ |
| 20 | python3-core \ |
| 21 | python3-codecs \ |
| 22 | python3-shell \ |
| 23 | python3-stringold \ |
| 24 | python3-unixadmin \ |
| 25 | libselinux-python \ |
| 26 | ${BPN} \ |
| 27 | " |
| 28 | RDEPENDS_${BPN} += "\ |
| 29 | python3-core \ |
| 30 | python3-codecs \ |
| 31 | python3-io \ |
| 32 | python3-ipy \ |
| 33 | python3-stringold \ |
| 34 | python3-syslog \ |
| 35 | python3-unixadmin \ |
| 36 | libselinux-python \ |
| 37 | libsemanage-python \ |
| 38 | setools \ |
| 39 | " |
| 40 | RDEPENDS_${BPN}-semanage += "\ |
| 41 | python3-core \ |
| 42 | python3-ipy \ |
| 43 | python3-compression \ |
| 44 | python3-xml \ |
| 45 | python3-misc \ |
| 46 | libselinux-python \ |
| 47 | ${BPN} \ |
| 48 | " |
| 49 | RDEPENDS_${BPN}-sepolicy += "\ |
| 50 | python3-core \ |
| 51 | python3-codecs \ |
| 52 | python3-syslog \ |
| 53 | ${BPN} \ |
| 54 | " |
| 55 | RDEPENDS_${BPN}-sepolgen-ifgen += "\ |
| 56 | python3-core \ |
| 57 | libselinux-python \ |
| 58 | " |
| 59 | |
| 60 | PACKAGES =+ "\ |
| 61 | ${PN}-audit2allow \ |
| 62 | ${PN}-sepolgen-ifgen \ |
| 63 | ${PN}-chcat \ |
| 64 | ${PN}-semanage \ |
| 65 | ${PN}-sepolgen \ |
| 66 | ${PN}-sepolicy \ |
| 67 | " |
| 68 | FILES_${PN}-audit2allow = "\ |
| 69 | ${bindir}/audit2allow \ |
| 70 | ${bindir}/audit2why \ |
| 71 | " |
| 72 | FILES_${PN}-chcat = "\ |
| 73 | ${bindir}/chcat \ |
| 74 | " |
| 75 | FILES_${PN}-semanage = "\ |
| 76 | ${sbindir}/semanage \ |
| 77 | ${datadir}/bash-completion/completions/semanage \ |
| 78 | " |
| 79 | # The ${bindir}/sepolgen is a symlink to ${bindir}/sepolicy |
| 80 | FILES_${PN}-sepolicy += "\ |
| 81 | ${bindir}/sepolgen \ |
| 82 | ${bindir}/sepolicy \ |
| 83 | ${datadir}/bash-completion/completions/sepolicy \ |
| 84 | " |
| 85 | FILES_${PN}-sepolgen-ifgen += "\ |
| 86 | ${bindir}/sepolgen-ifgen \ |
| 87 | ${bindir}/sepolgen-ifgen-attr-helper \ |
| 88 | " |
| 89 | FILES_${PN}-sepolgen += "\ |
| 90 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolgen* \ |
| 91 | ${localstatedir}/lib/sepolgen/perm_map \ |
| 92 | " |
| 93 | |
| 94 | FILES_${PN} += "\ |
| 95 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/seobject.py* \ |
| 96 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolicy*.egg-info \ |
| 97 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolicy/* \ |
| 98 | " |
| 99 | |
| 100 | EXTRA_OEMAKE += "LIBSEPOLA=${STAGING_LIBDIR}/libsepol.a" |
| 101 | |
| 102 | do_install() { |
| 103 | oe_runmake DESTDIR="${D}" \ |
| 104 | PYLIBVER='python${PYTHON_BASEVERSION}' \ |
| 105 | PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ |
| 106 | install |
| 107 | } |