[packages] add missing & update current urls
[openwrt/svn-archive/archive.git] / net / nmap / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nmap
11 PKG_VERSION:=4.20
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.insecure.org/nmap/dist
16 PKG_MD5SUM:=ea50419f99472200c4184a304e3831ea
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/nmap
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libdnet +libpcap +libpcre +uclibcxx
26 TITLE:=Network exploration and/or security auditing utility
27 URL:=http://nmap.org/
28 endef
29
30 define Package/nmap/description
31 A free open source utility for network exploration or security auditing.
32 endef
33
34 CONFIGURE_ARGS += \
35 --without-openssl \
36 --without-nmapfe \
37 --with-libdnet="$(STAGING_DIR)/usr" \
38 --with-libpcap="$(STAGING_DIR)/usr" \
39 --with-libpcre="$(STAGING_DIR)/usr" \
40
41 CONFIGURE_VARS += \
42 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
43 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
44 LIBS="-nodefaultlibs -luClibc++ -lgcc" \
45
46 define Package/nmap/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmap $(1)/usr/bin/
49 $(INSTALL_DIR) $(1)/usr/share/nmap
50 for file in mac-prefixes os-fingerprints protocols rpc service-probes services; do \
51 $(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$$$file $(1)/usr/share/nmap/ ; \
52 done
53 endef
54
55 $(eval $(call BuildPackage,nmap))