2012-07-04 06:52:17 +00:00
|
|
|
# Template file for 'nmap'
|
|
|
|
pkgname=nmap
|
2014-08-23 10:48:07 +00:00
|
|
|
version=6.47
|
2015-03-04 15:04:30 +00:00
|
|
|
revision=5
|
2012-07-04 06:52:17 +00:00
|
|
|
build_style=gnu-configure
|
2014-09-22 13:17:38 +00:00
|
|
|
configure_args="--without-ndiff --with-openssl $(vopt_with lua liblua)"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="libpcap-devel pcre-devel libressl-devel $(vopt_if lua lua-devel)"
|
2012-07-04 06:52:17 +00:00
|
|
|
short_desc="Utility for network discovery and security auditing"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-07-04 06:52:17 +00:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://nmap.org"
|
|
|
|
distfiles="http://nmap.org/dist/nmap-$version.tar.bz2"
|
2014-08-23 10:48:07 +00:00
|
|
|
checksum=8fa11e9e203ce2d81a207db5ca4f110a525f6c01c1dd0018325a7112a51aa591
|
2013-04-14 02:36:19 +00:00
|
|
|
|
2013-06-12 13:27:13 +00:00
|
|
|
# Package build options
|
2014-08-17 07:33:56 +00:00
|
|
|
build_options="lua"
|
|
|
|
build_options_default="lua"
|
2013-06-12 13:27:13 +00:00
|
|
|
|
2014-08-17 07:33:56 +00:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
subpackages="nmapfe"
|
|
|
|
makedepends+=" pygtk-devel"
|
|
|
|
configure_args+=" --with-zenmap"
|
2013-06-12 13:27:13 +00:00
|
|
|
else
|
2014-08-17 07:33:56 +00:00
|
|
|
subpackages=""
|
2013-06-12 13:27:13 +00:00
|
|
|
configure_args+=" --without-zenmap"
|
|
|
|
fi
|
|
|
|
|
2013-04-14 02:36:19 +00:00
|
|
|
nmapfe_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="nmap>=$version desktop-file-utils pygtk"
|
|
|
|
pycompile_module="radialnet zenmapCore zenmapGUI"
|
2014-08-17 07:33:56 +00:00
|
|
|
short_desc+=" - GTK Frontend"
|
2013-04-14 02:36:19 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|