diff options
| -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" |
