mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-31 12:50:19 +00:00
scapy: Fix shebang for python3
Both scapy and UTscapy have python in the shebang line regardless of whether python3-scapy or python-scapy was built. Signed-off-by: Scott Ellis <scott@jumpnowtek.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
3d812a22c2
commit
5e7b4a96ad
@@ -10,6 +10,13 @@ SRC_URI[sha256sum] = "1baa048936207ceb1a4281a0e1e3b4317667c754872a0bb4734c5213c4
|
|||||||
|
|
||||||
inherit pypi
|
inherit pypi
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
if [ "${PYTHON_PN}" = "python3" ]; then
|
||||||
|
sed -i -e 's/python/python3/' ${D}${bindir}/scapy
|
||||||
|
sed -i -e 's/python/python3/' ${D}${bindir}/UTscapy
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \
|
RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \
|
||||||
${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \
|
${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \
|
||||||
${PYTHON_PN}-threading ${PYTHON_PN}-numbers ${PYTHON_PN}-pycrypto"
|
${PYTHON_PN}-threading ${PYTHON_PN}-numbers ${PYTHON_PN}-pycrypto"
|
||||||
|
|||||||
Reference in New Issue
Block a user