2012-07-04 08:52:17 +02:00
|
|
|
# Template file for 'nmap'
|
|
|
|
pkgname=nmap
|
2012-11-30 17:07:47 +01:00
|
|
|
version=6.25
|
2013-06-12 15:27:13 +02:00
|
|
|
revision=2
|
2012-07-04 08:52:17 +02:00
|
|
|
build_style=gnu-configure
|
2013-06-12 15:27:13 +02:00
|
|
|
configure_args="--without-ndiff"
|
|
|
|
makedepends="libpcap-devel pcre-devel>=8.30"
|
2012-07-04 08:52:17 +02:00
|
|
|
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"
|
2012-11-30 17:07:47 +01:00
|
|
|
checksum=3349cc6d36b86b95ca2b8075d16615a3a598cef494920d6652f9a8bf9f7660b5
|
2012-07-04 08:52:17 +02:00
|
|
|
long_desc="
|
|
|
|
Nmap (Network Mapper) is a free and open source utility for network discovery
|
|
|
|
and security auditing. Many systems and network administrators also find it
|
|
|
|
useful for tasks such as network inventory, managing service upgrade schedules,
|
|
|
|
and monitoring host or service uptime. Nmap uses raw IP packets in novel ways to
|
|
|
|
determine what hosts are available on the network, what services (application
|
|
|
|
name and version) those hosts are offering, what operating systems (and OS
|
|
|
|
versions) they are running, what type of packet filters/firewalls are in use, and
|
|
|
|
dozens of other characteristics. It was designed to rapidly scan large networks,
|
|
|
|
but works fine against single hosts."
|
2013-04-14 04:36:19 +02:00
|
|
|
|
2013-06-12 15:27:13 +02:00
|
|
|
# Package build options
|
|
|
|
build_options="lua ssl"
|
|
|
|
desc_option_lua="Enable support for Lua scripting"
|
|
|
|
desc_option_ssl="Enable support for SSL"
|
|
|
|
|
|
|
|
# Enable ssl option by default.
|
|
|
|
build_options_default="ssl"
|
|
|
|
|
|
|
|
if [ "$build_option_lua" ]; then
|
|
|
|
configure_args+=" --with-liblua"
|
|
|
|
makedepends+=" lua-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --without-liblua"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_ssl" ]; then
|
|
|
|
configure_args+=" --with-openssl=$XBPS_CROSS_BASE/usr"
|
|
|
|
makedepends+=" openssl-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --without-openssl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" --without-zenmap"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# XXX disable nmapfe in cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
makedepends+=" pygtk-devel"
|
|
|
|
|
2013-04-14 04:36:19 +02:00
|
|
|
nmapfe_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="nmap>=$version desktop-file-utils pygtk"
|
|
|
|
pycompile_module="radialnet zenmapCore zenmapGUI"
|
|
|
|
short_desc="${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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-12 15:27:13 +02:00
|
|
|
fi #!CROSS_BUILD
|
|
|
|
|
2013-04-14 04:36:19 +02:00
|
|
|
nmap_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|