void-packages/srcpkgs/nmap/template

49 lines
1.4 KiB
Bash

# Template file for 'nmap'
pkgname=nmap
version=7.70
revision=4
build_style=gnu-configure
build_options="lua"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="lua"
fi
configure_args="--without-ndiff --with-openssl --with-zenmap $(vopt_with lua liblua)"
hostmakedepends="python"
makedepends="libpcap-devel libressl-devel pcre-devel $(vopt_if lua lua52-devel)"
short_desc="Utility for network discovery and security auditing"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://nmap.org"
distfiles="https://nmap.org/dist/nmap-${version}.tar.bz2"
checksum=847b068955f792f4cc247593aca6dc3dc4aae12976169873247488de147a6e18
pre_check() {
# Disable zenmap tests
# https://github.com/nmap/nmap/issues/662
# https://github.com/nmap/nmap/issues/666
# https://github.com/nmap/nmap/issues/85
sed -i 's|check-zenmap ||g' Makefile
}
post_install() {
# do not use bundled certificates, use only system ones
rm -f ${DESTDIR}/usr/share/ncat/ca-bundle.crt
}
zenmap_package() {
archs=noarch
depends="${sourcepkg}-${version}_${revision} pygtk"
pycompile_module="radialnet zenmapCore zenmapGUI"
short_desc+=" - GUI Frontend"
pkg_install() {
vmove usr/bin/nmapfe
vmove usr/bin/xnmap
vmove usr/bin/zenmap
vmove usr/lib
vmove usr/share/applications
vmove usr/share/zenmap
vmove usr/share/man/man1/zenmap.1
rm -f ${DESTDIR}/usr/bin/uninstall_zenmap
}
}