void-packages/srcpkgs/nmap/template
2016-03-23 05:42:22 +01:00

39 lines
1.1 KiB
Bash

# Template file for 'nmap'
pkgname=nmap
version=7.11
revision=1
build_style=gnu-configure
build_options="lua"
build_options_default="lua"
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="http://nmap.org"
distfiles="http://nmap.org/dist/nmap-${version}.tar.bz2"
checksum=13fa971555dec00e495a5b72c1f9efa1363b8e6c7388a2f05117cb0778c0954a
post_install() {
# do not use bundled certificates, use only system ones
rm -f ${DESTDIR}/usr/share/ncat/ca-bundle.crt
}
zenmap_package() {
noarch=yes
replaces="nmapfe>=0"
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
}
}