diff --git a/srcpkgs/nmap/template b/srcpkgs/nmap/template index b1a15b21e68..d31cbd23278 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() {