diff options
Diffstat (limited to 'recipes-security/scapy/python-scapy.inc')
| -rw-r--r-- | recipes-security/scapy/python-scapy.inc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/recipes-security/scapy/python-scapy.inc b/recipes-security/scapy/python-scapy.inc index 43ef959..99f30a7 100644 --- a/recipes-security/scapy/python-scapy.inc +++ b/recipes-security/scapy/python-scapy.inc | |||
| @@ -5,10 +5,12 @@ LICENSE = "GPLv2" | |||
| 5 | 5 | ||
| 6 | LIC_FILES_CHKSUM = "file://bin/scapy;beginline=9;endline=13;md5=1d5249872cc54cd4ca3d3879262d0c69" | 6 | LIC_FILES_CHKSUM = "file://bin/scapy;beginline=9;endline=13;md5=1d5249872cc54cd4ca3d3879262d0c69" |
| 7 | 7 | ||
| 8 | SRC_URI[md5sum] = "e6a03d8c924a6bbde1e86fc58bd2b9d6" | 8 | S = "${WORKDIR}/git" |
| 9 | SRC_URI[sha256sum] = "1baa048936207ceb1a4281a0e1e3b4317667c754872a0bb4734c5213c468e86a" | ||
| 10 | 9 | ||
| 11 | inherit pypi | 10 | SRCREV = "bad14cb1a5aee29f8107fbe8ad008d4645f14da7" |
| 11 | SRC_URI = "git://github.com/secdev/scapy.git" | ||
| 12 | |||
| 13 | inherit ptest | ||
| 12 | 14 | ||
| 13 | do_install_append() { | 15 | do_install_append() { |
| 14 | if [ "${PYTHON_PN}" = "python3" ]; then | 16 | if [ "${PYTHON_PN}" = "python3" ]; then |
| @@ -17,6 +19,11 @@ do_install_append() { | |||
| 17 | fi | 19 | fi |
| 18 | } | 20 | } |
| 19 | 21 | ||
| 22 | do_install_ptest() { | ||
| 23 | install -m 0644 ${S}/test/regression.uts ${D}${PTEST_PATH} | ||
| 24 | sed -i 's,@PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest | ||
| 25 | } | ||
| 26 | |||
| 20 | RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \ | 27 | RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \ |
| 21 | ${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \ | 28 | ${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \ |
| 22 | ${PYTHON_PN}-threading ${PYTHON_PN}-numbers ${PYTHON_PN}-pycrypto" | 29 | ${PYTHON_PN}-threading ${PYTHON_PN}-numbers ${PYTHON_PN}-pycrypto" |
