2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://download.insecure.org
/nmap
/dist
17 PKG_MD5SUM
:=ea50419f99472200c4184a304e3831ea
19 include $(INCLUDE_DIR
)/package.mk
24 DEPENDS
:=+libdnet
+libpcap
+libpcre
+uclibcxx
25 TITLE
:=Network exploration and
/or security auditing utility
26 URL
:=http
://www.insecure.org
/nmap
/
29 define Package
/nmap
/description
30 A free open source utility for network exploration or security auditing.
36 --with-libdnet
="$(STAGING_DIR)/usr" \
37 --with-libpcap
="$(STAGING_DIR)/usr" \
38 --with-libpcre
="$(STAGING_DIR)/usr" \
41 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
42 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
43 LIBS
="-nodefaultlibs -luClibc++ -lgcc" \
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 define Package
/nmap
/install
52 $(INSTALL_DIR
) $(1)/usr
/bin
53 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nmap
$(1)/usr
/bin
/
54 $(INSTALL_DIR
) $(1)/usr
/share
/nmap
55 for file in mac-prefixes os-fingerprints protocols rpc service-probes services
; do \
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/nmap
/nmap-
$$$$file $(1)/usr
/share
/nmap
/ ; \
60 $(eval
$(call BuildPackage
,nmap
))