From e7937d33567de29b1cfcad1f3ef40566eb9d9d89 Mon Sep 17 00:00:00 2001 From: Piraty Date: Thu, 26 Dec 2024 02:53:16 +0100 Subject: [PATCH] nmap: fix zenmap datadir --- srcpkgs/nmap/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/nmap/template b/srcpkgs/nmap/template index b1a15b21e682c4..d31cbd23278df1 100644 --- a/srcpkgs/nmap/template +++ b/srcpkgs/nmap/template @@ -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() {