summaryrefslogtreecommitdiffstats
path: root/recipes-security/scapy/python-scapy.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/scapy/python-scapy.inc')
-rw-r--r--recipes-security/scapy/python-scapy.inc13
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
6LIC_FILES_CHKSUM = "file://bin/scapy;beginline=9;endline=13;md5=1d5249872cc54cd4ca3d3879262d0c69" 6LIC_FILES_CHKSUM = "file://bin/scapy;beginline=9;endline=13;md5=1d5249872cc54cd4ca3d3879262d0c69"
7 7
8SRC_URI[md5sum] = "e6a03d8c924a6bbde1e86fc58bd2b9d6" 8S = "${WORKDIR}/git"
9SRC_URI[sha256sum] = "1baa048936207ceb1a4281a0e1e3b4317667c754872a0bb4734c5213c468e86a"
10 9
11inherit pypi 10SRCREV = "bad14cb1a5aee29f8107fbe8ad008d4645f14da7"
11SRC_URI = "git://github.com/secdev/scapy.git"
12
13inherit ptest
12 14
13do_install_append() { 15do_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
22do_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
20RDEPENDS_${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \ 27RDEPENDS_${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"