Skip to content

Commit

Permalink
nmap: fix zenmap datadir
Browse files Browse the repository at this point in the history
  • Loading branch information
Piraty committed Dec 26, 2024
1 parent 9cf1301 commit e7937d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion srcpkgs/nmap/template
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit e7937d3

Please sign in to comment.