2011-01-22 15:19:32 +00:00
|
|
|
#
|
2012-09-23 18:12:58 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2011-01-22 15:19:32 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
2011-01-09 16:19:02 +00:00
|
|
|
#TODO
|
2006-08-06 12:15:21 +00:00
|
|
|
#
|
2011-01-09 16:19:02 +00:00
|
|
|
# * uClibcpp not supported, performance +100x slower. libstdcpp is being used. https://bugs.busybox.net/show_bug.cgi?id=2545
|
|
|
|
# * liblua is still not recognized/blindly accepted. Impossible to compile with support
|
2006-08-06 12:15:21 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2011-11-15 03:28:37 +00:00
|
|
|
|
2006-08-06 12:15:21 +00:00
|
|
|
PKG_NAME:=nmap
|
2013-08-03 23:37:40 +00:00
|
|
|
PKG_VERSION:=6.40
|
|
|
|
PKG_RELEASE:=1
|
2011-11-15 03:28:37 +00:00
|
|
|
|
2006-08-06 12:15:21 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2011-01-09 16:19:02 +00:00
|
|
|
PKG_SOURCE_URL:=http://nmap.org/dist/
|
2013-08-03 23:37:40 +00:00
|
|
|
PKG_MD5SUM:=c0e2f3370e1fb97fb53185b15aa22aff
|
2011-11-15 03:28:37 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2011-05-20 10:05:33 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
2006-08-06 12:15:21 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-01-09 16:19:02 +00:00
|
|
|
NMAP_DEPENDS:=+libpcap +libstdcpp
|
|
|
|
NCAT_DEPENDS:=+libpcap
|
2011-11-15 03:28:37 +00:00
|
|
|
NPING_DEPENDS:=+libpcap +libpthread +libstdcpp
|
2011-01-10 12:22:12 +00:00
|
|
|
NDIFF_DEPENDS:=+python
|
2011-01-09 16:19:02 +00:00
|
|
|
|
|
|
|
define Package/nmap/default
|
|
|
|
SUBMENU:=NMAP Suite
|
2006-08-06 12:15:21 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://nmap.org/
|
2011-01-09 16:19:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nmap
|
|
|
|
$(call Package/nmap/default)
|
|
|
|
DEPENDS:=$(NMAP_DEPENDS)
|
2011-05-20 10:05:33 +00:00
|
|
|
VARIANT:=nossl
|
2011-01-10 12:22:12 +00:00
|
|
|
TITLE:=Utility for network exploration or security auditing
|
2011-01-09 16:19:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nmap-ssl
|
|
|
|
$(call Package/nmap/default)
|
|
|
|
DEPENDS:=$(NMAP_DEPENDS) +libopenssl
|
|
|
|
VARIANT:=ssl
|
2011-01-10 12:22:12 +00:00
|
|
|
TITLE:=Nmap (with OpenSSL support)
|
2011-01-09 16:19:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ncat
|
|
|
|
$(call Package/nmap/default)
|
|
|
|
DEPENDS:=$(NCAT_DEPENDS)
|
2011-05-20 10:05:33 +00:00
|
|
|
VARIANT:=nossl
|
2011-01-10 12:22:12 +00:00
|
|
|
TITLE:=Much-improved reimplementation of Netcat
|
2011-01-09 16:19:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ncat-ssl
|
|
|
|
$(call Package/nmap/default)
|
|
|
|
DEPENDS:=$(NCAT_DEPENDS) +libopenssl
|
|
|
|
VARIANT:=ssl
|
2011-01-10 12:22:12 +00:00
|
|
|
TITLE:=Ncat (with OpenSSL support)
|
2011-01-09 16:19:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nping
|
|
|
|
$(call Package/nmap/default)
|
|
|
|
DEPENDS:=$(NPING_DEPENDS)
|
2011-05-20 10:05:33 +00:00
|
|
|
VARIANT:=nossl
|
2011-01-10 12:22:12 +00:00
|
|
|
TITLE:=Network packet generation tool / ping utility
|
2011-01-09 16:19:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ndiff
|
|
|
|
$(call Package/nmap/default)
|
2011-01-10 12:22:12 +00:00
|
|
|
DEPENDS:=$(NDIFF_DEPENDS)
|
2011-05-20 10:05:33 +00:00
|
|
|
VARIANT:=nossl
|
2011-01-10 12:22:12 +00:00
|
|
|
TITLE:=Utility to compare the results of Nmap scans
|
2006-08-06 12:15:21 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2010-08-13 15:13:18 +00:00
|
|
|
--with-libdnet=included \
|
2011-01-09 16:19:02 +00:00
|
|
|
--with-libpcre=included \
|
2007-09-03 15:58:55 +00:00
|
|
|
--with-libpcap="$(STAGING_DIR)/usr" \
|
2011-01-09 16:19:02 +00:00
|
|
|
--without-liblua
|
|
|
|
|
2013-08-03 23:37:40 +00:00
|
|
|
CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-builtin"
|
2007-09-03 15:58:55 +00:00
|
|
|
|
2011-01-09 16:19:02 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
|
|
CONFIGURE_ARGS += --with-openssl="$(STAGING_DIR)/usr"
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS += --without-openssl
|
|
|
|
endif
|
2007-09-03 15:58:55 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
define Package/nmap/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmap $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/nmap
|
2011-01-09 16:19:02 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/* $(1)/usr/share/nmap/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nmap-ssl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmap $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/nmap
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/* $(1)/usr/share/nmap/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ncat/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncat $(1)/usr/bin/
|
2006-08-06 12:15:21 +00:00
|
|
|
endef
|
|
|
|
|
2011-01-09 16:19:02 +00:00
|
|
|
define Package/ncat-ssl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncat $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ncat
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/ncat/ca-bundle.crt $(1)/usr/share/ncat/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ndiff/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ndiff $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nping/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nping $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2006-08-06 12:15:21 +00:00
|
|
|
$(eval $(call BuildPackage,nmap))
|
2011-01-09 16:19:02 +00:00
|
|
|
$(eval $(call BuildPackage,nmap-ssl))
|
|
|
|
$(eval $(call BuildPackage,ncat))
|
|
|
|
$(eval $(call BuildPackage,ncat-ssl))
|
|
|
|
$(eval $(call BuildPackage,nping))
|
|
|
|
$(eval $(call BuildPackage,ndiff))
|