void-packages/srcpkgs/nmap/template
2017-08-02 14:57:53 -06:00

41 lines
1.2 KiB
Bash

# Template file for 'nmap'
pkgname=nmap
version=7.60
revision=1
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 pcre-devel libressl-devel $(vopt_if lua lua52-devel)"
short_desc="Utility for network discovery and security auditing"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://nmap.org"
distfiles="https://nmap.org/dist/nmap-${version}.tar.bz2"
checksum=a8796ecc4fa6c38aad6139d9515dc8113023a82e9d787e5a5fb5fa1b05516f21
post_install() {
# do not use bundled certificates, use only system ones
rm -f ${DESTDIR}/usr/share/ncat/ca-bundle.crt
}
zenmap_package() {
noarch=yes
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
}
}