diff options
author | Scott Ellis <scottellis.developer@gmail.com> | 2019-01-19 14:58:52 -0500 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-02-11 18:00:54 -0800 |
commit | 5e7b4a96ad9c711d7bd4c6be9845705cb5248418 (patch) | |
tree | 7a48c76cad3564813a64b5d7cf67327a1df4e10d | |
parent | 3d812a22c20640002a6ca8cd7a62e7215ee898ed (diff) | |
download | meta-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.inc | 7 |
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 | ||
11 | inherit pypi | 11 | inherit pypi |
12 | 12 | ||
13 | do_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 | |||
13 | RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \ | 20 | RDEPENDS_${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" |