mirror of
https://git.yoctoproject.org/meta-security
synced 2026-06-02 13:30:33 +00:00
meta-security: Drop ${PYTHON_PN}
Signed-off-by: Armin Kuster <akuster808@gmail.com> --- V2] Fix typo in python3-pyinotify changes
This commit is contained in:
@@ -10,5 +10,5 @@ PYPI_PACKAGE = "Flask-Script"
|
|||||||
inherit pypi setuptools3
|
inherit pypi setuptools3
|
||||||
|
|
||||||
RDEPENDS:${PN} += "\
|
RDEPENDS:${PN} += "\
|
||||||
${PYTHON_PN}-flask \
|
python3-flask \
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ LICENSE = "MIT"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=ab173cade7965b411528464589a08382"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=ab173cade7965b411528464589a08382"
|
||||||
|
|
||||||
RDEPENDS:${PN} += "\
|
RDEPENDS:${PN} += "\
|
||||||
${PYTHON_PN}-ctypes \
|
python3-ctypes \
|
||||||
${PYTHON_PN}-fcntl \
|
python3-fcntl \
|
||||||
${PYTHON_PN}-io \
|
python3-io \
|
||||||
${PYTHON_PN}-logging \
|
python3-logging \
|
||||||
${PYTHON_PN}-misc \
|
python3-misc \
|
||||||
${PYTHON_PN}-shell \
|
python3-shell \
|
||||||
${PYTHON_PN}-threading \
|
python3-threading \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406"
|
SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406"
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ do_install:append () {
|
|||||||
do_install_ptest:append () {
|
do_install_ptest:append () {
|
||||||
install -d ${D}${PTEST_PATH}
|
install -d ${D}${PTEST_PATH}
|
||||||
install -d ${D}${PTEST_PATH}/bin
|
install -d ${D}${PTEST_PATH}/bin
|
||||||
sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest
|
sed -i -e 's/##PYTHON##/python3/g' ${D}${PTEST_PATH}/run-ptest
|
||||||
install -D ${S}/bin/* ${D}${PTEST_PATH}/bin
|
install -D ${S}/bin/* ${D}${PTEST_PATH}/bin
|
||||||
rm -f ${D}${PTEST_PATH}/bin/fail2ban-python
|
rm -f ${D}${PTEST_PATH}/bin/fail2ban-python
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ do_compile:append() {
|
|||||||
do_install:append() {
|
do_install:append() {
|
||||||
cd ${S}/tools
|
cd ${S}/tools
|
||||||
export PYTHONPATH="${D}${PYTHON_SITEPACKAGES_DIR}"
|
export PYTHONPATH="${D}${PYTHON_SITEPACKAGES_DIR}"
|
||||||
${PYTHON_PN} setup.py install --root="${D}" --prefix="${prefix}" --install-lib="${PYTHON_SITEPACKAGES_DIR}" --optimize=1 --skip-build
|
python3 setup.py install --root="${D}" --prefix="${prefix}" --install-lib="${PYTHON_SITEPACKAGES_DIR}" --optimize=1 --skip-build
|
||||||
|
|
||||||
sed -i -e "s:${PYTHON}:${USRBINPATH}/env ${PYTHON_PN}:g" "${D}${bindir}"/tpm2_ptool
|
sed -i -e "s:${PYTHON}:${USRBINPATH}/env python3:g" "${D}${bindir}"/tpm2_ptool
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-tools"
|
PACKAGES =+ "${PN}-tools"
|
||||||
@@ -44,4 +44,4 @@ FILES:${PN} += "\
|
|||||||
INSANE_SKIP:${PN} += "dev-so"
|
INSANE_SKIP:${PN} += "dev-so"
|
||||||
|
|
||||||
RDEPENDS:${PN} = "p11-kit tpm2-tools "
|
RDEPENDS:${PN} = "p11-kit tpm2-tools "
|
||||||
RDEPENDS:${PN}-tools = "${PYTHON_PN}-pyyaml ${PYTHON_PN}-cryptography ${PYTHON_PN}-pyasn1-modules"
|
RDEPENDS:${PN}-tools = "python3-pyyaml python3-cryptography python3-pyasn1-modules"
|
||||||
|
|||||||
@@ -104,9 +104,9 @@ do_install () {
|
|||||||
# Remove /var/run as it is created on startup
|
# Remove /var/run as it is created on startup
|
||||||
rm -rf ${D}${localstatedir}/run
|
rm -rf ${D}${localstatedir}/run
|
||||||
|
|
||||||
sed -i -e "s:#!.*$:#!${USRBINPATH}/env ${PYTHON_PN}:g" ${D}${bindir}/suricatasc
|
sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${bindir}/suricatasc
|
||||||
sed -i -e "s:#!.*$:#!${USRBINPATH}/env ${PYTHON_PN}:g" ${D}${bindir}/suricatactl
|
sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${bindir}/suricatactl
|
||||||
sed -i -e "s:#!.*$:#!${USRBINPATH}/env ${PYTHON_PN}:g" ${D}${libdir}/suricata/python/suricata/sc/suricatasc.py
|
sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${libdir}/suricata/python/suricata/sc/suricatasc.py
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_ontarget:${PN} () {
|
pkg_postinst_ontarget:${PN} () {
|
||||||
|
|||||||
Reference in New Issue
Block a user