2006-08-06 12:15:21 +00:00
|
|
|
#
|
2010-03-24 04:49:34 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-08-06 12:15:21 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nmap
|
2010-08-13 15:13:18 +00:00
|
|
|
PKG_VERSION:=5.35DC1
|
|
|
|
PKG_RELEASE:=1
|
2006-08-06 12:15:21 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2006-10-30 13:54:43 +00:00
|
|
|
PKG_SOURCE_URL:=http://download.insecure.org/nmap/dist
|
2010-08-13 15:13:18 +00:00
|
|
|
PKG_MD5SUM:=5bc2f8629f26716aa78d4bfe474a5d3a
|
2006-08-06 12:15:21 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-08-06 12:15:21 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nmap
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libdnet +libpcap +libpcre +uclibcxx
|
|
|
|
TITLE:=Network exploration and/or security auditing utility
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://nmap.org/
|
2006-08-06 12:15:21 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/nmap/description
|
|
|
|
A free open source utility for network exploration or security auditing.
|
2006-08-06 12:15:21 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-openssl \
|
|
|
|
--without-nmapfe \
|
2010-08-13 15:13:18 +00:00
|
|
|
--without-liblua \
|
|
|
|
--with-libdnet=included \
|
2007-09-03 15:58:55 +00:00
|
|
|
--with-libpcap="$(STAGING_DIR)/usr" \
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
2010-08-13 15:13:18 +00:00
|
|
|
LDFLAGS="$$$$LDFLAGS -lm" \
|
2010-05-16 14:22:12 +00:00
|
|
|
LIBS="-nodefaultlibs -luClibc++ $(LIBGCC_S)" \
|
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
|
2010-04-10 18:33:06 +00:00
|
|
|
for file in mac-prefixes os-db os-fingerprints protocols rpc service-probes services; do \
|
2006-10-30 13:54:43 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$$$file $(1)/usr/share/nmap/ ; \
|
2006-08-06 12:15:21 +00:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nmap))
|