config FREETZ_PACKAGE_NMAP
	bool "Nmap (binary only)"
	select FREETZ_LIB_STDCXXLIB if ! FREETZ_PACKAGE_NMAP_STATIC
	select FREETZ_LIB_libpcap   if ! FREETZ_PACKAGE_NMAP_STATIC
	select FREETZ_LIB_libdnet   if ! FREETZ_PACKAGE_NMAP_STATIC
	select FREETZ_LIB_libm      if ! FREETZ_PACKAGE_NMAP_STATIC
	select FREETZ_LIB_libdl     if ! FREETZ_PACKAGE_NMAP_STATIC
	select FREETZ_PACKAGE_NMAP_services if ! FREETZ_ADD_ETCSERVICES
	select FREETZ_PACKAGE_NMAP_payloads if FREETZ_PACKAGE_NMAP_VERSION_5
	default n
	help
		Nmap ("Network Mapper") is a free and open source (license) utility for network
		exploration or 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. Nmap runs on all major computer
		operating systems, and both console and graphical versions are available.

menu "nmap options"
depends on FREETZ_PACKAGE_NMAP

choice
	depends on FREETZ_PACKAGE_NMAP
	prompt "version"
	default FREETZ_PACKAGE_NMAP_VERSION_4

	config FREETZ_PACKAGE_NMAP_VERSION_4
		bool "nmap 4.68"

	config FREETZ_PACKAGE_NMAP_VERSION_5
		bool "nmap 5.51"
		depends on FREETZ_STDCXXLIB_USE_GNULIBSTDCXX
endchoice

menu "databases"
	config FREETZ_PACKAGE_NMAP_mac_prefixes
	bool "MAC-address to manufacturer mapping"
	default n

	config FREETZ_PACKAGE_NMAP_os_db
	bool "OS fingerprinting DB"
	default n

	config FREETZ_PACKAGE_NMAP_payloads
	depends on FREETZ_PACKAGE_NMAP_VERSION_5
	bool "Payload DB"
	default y

	config FREETZ_PACKAGE_NMAP_protocols
	bool "Protocol list"
	default n

	config FREETZ_PACKAGE_NMAP_rpc
	bool "RPC grinding DB"
	default n

	config FREETZ_PACKAGE_NMAP_service_probes
	bool "Service detection probe list"
	default n

	config FREETZ_PACKAGE_NMAP_services
	bool "Service list"
	default y
endmenu

config FREETZ_PACKAGE_NMAP_ncat
	bool "include ncat"
	depends on FREETZ_PACKAGE_NMAP && FREETZ_PACKAGE_NMAP_VERSION_5
	default n
	help
		Include ncat (a much-improved reimplementation of Netcat)

config FREETZ_PACKAGE_NMAP_nping
	bool "include nping"
	depends on FREETZ_PACKAGE_NMAP && FREETZ_PACKAGE_NMAP_VERSION_5
	default n
	help
		Include nping (a network packet generation tool / ping utility)

config FREETZ_PACKAGE_NMAP_WITH_SHARED_LUA
	bool "Use system (shared) liblua"
	depends on FREETZ_PACKAGE_NMAP
	select FREETZ_LIB_liblua if ! FREETZ_PACKAGE_NMAP_STATIC
	default y
	help
		Causes system (dynamic) liblua to be used instead of the bundled one.

config FREETZ_PACKAGE_NMAP_WITH_SHARED_PCRE
	bool "Use system (shared) libpcre"
	depends on FREETZ_PACKAGE_NMAP
	select FREETZ_LIB_libpcre if ! FREETZ_PACKAGE_NMAP_STATIC
	default y
	help
		Causes system (dynamic) libpcre to be used instead of the bundled one.

config FREETZ_PACKAGE_NMAP_STATIC
	bool "create statically linked binaries"
	depends on FREETZ_PACKAGE_NMAP
	default n
	help
		Causes all libraries to be linked in statically.

endmenu
