nmap: fix zenmap datadir

This commit is contained in:
Piraty 2024-12-26 02:53:16 +01:00
parent 9cf1301b4a
commit e7937d3356
No known key found for this signature in database
GPG key ID: 82F2CC796BD07077

View file

@ -1,7 +1,7 @@
# Template file for 'nmap'
pkgname=nmap
version=7.95
revision=2
revision=3
build_style=gnu-configure
configure_args="--without-ndiff --with-openssl --with-zenmap $(vopt_with lua liblua)"
hostmakedepends="python3-setuptools automake python3-build python3-pip pkg-config python3-cairo python3-gobject"
@ -32,6 +32,9 @@ post_install() {
# Move zenmap data to /usr/share
mv ${DESTDIR}/${py3_sitelib}/zenmapCore/data ${DESTDIR}/usr/share/zenmap
vsed -i \
-e "s@prefix = join(dirname(__file__).*@prefix = '/usr/share/zenmap'@" \
${DESTDIR}/${py3_sitelib}/zenmapCore/Paths.py
}
zenmap_package() {