nmap: change shebang to python3

upstream nmap is python2 compatiable now, but this recipe
supports python3.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Changqing Li
2021-05-11 16:18:14 +08:00
committed by Khem Raj
parent f6b4cb0231
commit 8cf040ac76
+5 -3
View File
@@ -50,9 +50,11 @@ do_configure() {
}
do_install_append() {
if [ -f "${D}${bindir}/ndiff" ]; then
sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/ndiff
fi
for f in ndiff uninstall_ndiff; do
if [ -f ${D}${bindir}/$f ]; then
sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/$f
fi
done
}
FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"