2 # Copyright (C) 2011 Nuno Goncalves <nunojpg@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 # * uClibcpp not supported, performance +100x slower. libstdcpp is being used. https://bugs.busybox.net/show_bug.cgi?id=2545
10 # * liblua is still not recognized/blindly accepted. Impossible to compile with support
13 include $(TOPDIR
)/rules.mk
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
18 PKG_SOURCE_URL
:=http
://nmap.org
/dist/
19 PKG_MD5SUM
:=0b80d2cb92ace5ebba8095a4c2850275
22 include $(INCLUDE_DIR
)/package.mk
24 NMAP_DEPENDS
:=+libpcap
+libstdcpp
25 NCAT_DEPENDS
:=+libpcap
26 NPING_DEPENDS
:=+libpcap
+libpthread
27 NDIFF_DEPENDS
:=+python
29 define Package
/nmap
/default
34 MAINTAINER
:=Nuno Goncalves
<nunojpg@gmail.com
>
38 $(call Package
/nmap
/default
)
39 DEPENDS
:=$(NMAP_DEPENDS
)
40 TITLE
:=Utility for network exploration or security auditing
43 define Package
/nmap-ssl
44 $(call Package
/nmap
/default
)
45 DEPENDS
:=$(NMAP_DEPENDS
) +libopenssl
47 TITLE
:=Nmap
(with OpenSSL support
)
51 $(call Package
/nmap
/default
)
52 DEPENDS
:=$(NCAT_DEPENDS
)
53 TITLE
:=Much-improved reimplementation of Netcat
56 define Package
/ncat-ssl
57 $(call Package
/nmap
/default
)
58 DEPENDS
:=$(NCAT_DEPENDS
) +libopenssl
60 TITLE
:=Ncat
(with OpenSSL support
)
64 $(call Package
/nmap
/default
)
65 DEPENDS
:=$(NPING_DEPENDS
)
66 TITLE
:=Network packet generation tool
/ ping utility
70 $(call Package
/nmap
/default
)
71 DEPENDS
:=$(NDIFF_DEPENDS
)
72 TITLE
:=Utility to compare the results of Nmap scans
76 --with-libdnet
=included \
77 --with-libpcre
=included \
78 --with-libpcap
="$(STAGING_DIR)/usr" \
81 CONFIGURE_VARS
+= CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti"
83 ifeq ($(BUILD_VARIANT
),ssl
)
84 CONFIGURE_ARGS
+= --with-openssl
="$(STAGING_DIR)/usr"
86 CONFIGURE_ARGS
+= --without-openssl
89 define Package
/nmap
/install
90 $(INSTALL_DIR
) $(1)/usr
/bin
91 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nmap
$(1)/usr
/bin
/
92 $(INSTALL_DIR
) $(1)/usr
/share
/nmap
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/nmap
/* $(1)/usr
/share
/nmap
/
96 define Package
/nmap-ssl
/install
97 $(INSTALL_DIR
) $(1)/usr
/bin
98 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nmap
$(1)/usr
/bin
/
99 $(INSTALL_DIR
) $(1)/usr
/share
/nmap
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/nmap
/* $(1)/usr
/share
/nmap
/
103 define Package
/ncat
/install
104 $(INSTALL_DIR
) $(1)/usr
/bin
105 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ncat
$(1)/usr
/bin
/
108 define Package
/ncat-ssl
/install
109 $(INSTALL_DIR
) $(1)/usr
/bin
110 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ncat
$(1)/usr
/bin
/
111 $(INSTALL_DIR
) $(1)/usr
/share
/ncat
112 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/ncat
/ca-bundle.crt
$(1)/usr
/share
/ncat
/
115 define Package
/ndiff
/install
116 $(INSTALL_DIR
) $(1)/usr
/bin
117 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ndiff
$(1)/usr
/bin
/
120 define Package
/nping
/install
121 $(INSTALL_DIR
) $(1)/usr
/bin
122 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nping
$(1)/usr
/bin
/
126 $(eval
$(call BuildPackage
,nmap
))
127 $(eval
$(call BuildPackage
,nmap-ssl
))
128 $(eval
$(call BuildPackage
,ncat
))
129 $(eval
$(call BuildPackage
,ncat-ssl
))
130 $(eval
$(call BuildPackage
,nping
))
131 $(eval
$(call BuildPackage
,ndiff
))