void-packages/srcpkgs/nmap/template
2014-08-17 09:33:56 +02:00

50 lines
1.2 KiB
Text

# Template file for 'nmap'
pkgname=nmap
version=6.46
revision=1
build_style=gnu-configure
configure_args="--without-ndiff --with-openssl"
makedepends="libpcap-devel pcre-devel>=8.30 libressl-devel"
short_desc="Utility for network discovery and security auditing"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://nmap.org"
distfiles="http://nmap.org/dist/nmap-$version.tar.bz2"
checksum=3f89d9053c69507fe9533c40188a6561d49607a37b1db6380aed9039d4883137
# Package build options
build_options="lua"
build_options_default="lua"
if [ "$build_option_lua" ]; then
configure_args+=" --with-liblua"
makedepends+=" lua-devel"
else
configure_args+=" --without-liblua"
fi
if [ -z "$CROSS_BUILD" ]; then
subpackages="nmapfe"
makedepends+=" pygtk-devel"
configure_args+=" --with-zenmap"
else
subpackages=""
configure_args+=" --without-zenmap"
fi
nmapfe_package() {
noarch=yes
depends="nmap>=$version desktop-file-utils pygtk"
pycompile_module="radialnet zenmapCore zenmapGUI"
short_desc+=" - GTK 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
}
}