summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ellis <scottellis.developer@gmail.com>2019-01-19 14:58:52 -0500
committerArmin Kuster <akuster808@gmail.com>2019-02-11 18:00:54 -0800
commit5e7b4a96ad9c711d7bd4c6be9845705cb5248418 (patch)
tree7a48c76cad3564813a64b5d7cf67327a1df4e10d
parent3d812a22c20640002a6ca8cd7a62e7215ee898ed (diff)
downloadmeta-security-5e7b4a96ad9c711d7bd4c6be9845705cb5248418.tar.gz
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>
-rw-r--r--recipes-security/scapy/python-scapy.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-security/scapy/python-scapy.inc b/recipes-security/scapy/python-scapy.inc
index f90b93d..43ef959 100644
--- a/recipes-security/scapy/python-scapy.inc
+++ b/recipes-security/scapy/python-scapy.inc
@@ -10,6 +10,13 @@ SRC_URI[sha256sum] = "1baa048936207ceb1a4281a0e1e3b4317667c754872a0bb4734c5213c4
10 10
11inherit pypi 11inherit pypi
12 12
13do_install_append() {
14 if [ "${PYTHON_PN}" = "python3" ]; then
15 sed -i -e 's/python/python3/' ${D}${bindir}/scapy
16 sed -i -e 's/python/python3/' ${D}${bindir}/UTscapy
17 fi
18}
19
13RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \ 20RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \
14 ${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \ 21 ${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \
15 ${PYTHON_PN}-threading ${PYTHON_PN}-numbers ${PYTHON_PN}-pycrypto" 22 ${PYTHON_PN}-threading ${PYTHON_PN}-numbers ${PYTHON_PN}-pycrypto"