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 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
26 NMAP_DEPENDS
:=+libpcap
+libstdcpp
27 NCAT_DEPENDS
:=+libpcap
28 NPING_DEPENDS
:=+libpcap
+libpthread
29 NDIFF_DEPENDS
:=+python
31 define Package
/nmap
/default
36 MAINTAINER
:=Nuno Goncalves
<nunojpg@gmail.com
>
40 $(call Package
/nmap
/default
)
41 DEPENDS
:=$(NMAP_DEPENDS
)
43 TITLE
:=Utility for network exploration or security auditing
46 define Package
/nmap-ssl
47 $(call Package
/nmap
/default
)
48 DEPENDS
:=$(NMAP_DEPENDS
) +libopenssl
50 TITLE
:=Nmap
(with OpenSSL support
)
54 $(call Package
/nmap
/default
)
55 DEPENDS
:=$(NCAT_DEPENDS
)
57 TITLE
:=Much-improved reimplementation of Netcat
60 define Package
/ncat-ssl
61 $(call Package
/nmap
/default
)
62 DEPENDS
:=$(NCAT_DEPENDS
) +libopenssl
64 TITLE
:=Ncat
(with OpenSSL support
)
68 $(call Package
/nmap
/default
)
69 DEPENDS
:=$(NPING_DEPENDS
)
71 TITLE
:=Network packet generation tool
/ ping utility
75 $(call Package
/nmap
/default
)
76 DEPENDS
:=$(NDIFF_DEPENDS
)
78 TITLE
:=Utility to compare the results of Nmap scans
82 --with-libdnet
=included \
83 --with-libpcre
=included \
84 --with-libpcap
="$(STAGING_DIR)/usr" \
87 CONFIGURE_VARS
+= CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti"
89 ifeq ($(BUILD_VARIANT
),ssl
)
90 CONFIGURE_ARGS
+= --with-openssl
="$(STAGING_DIR)/usr"
92 CONFIGURE_ARGS
+= --without-openssl
95 define Package
/nmap
/install
96 $(INSTALL_DIR
) $(1)/usr
/bin
97 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nmap
$(1)/usr
/bin
/
98 $(INSTALL_DIR
) $(1)/usr
/share
/nmap
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/nmap
/* $(1)/usr
/share
/nmap
/
102 define Package
/nmap-ssl
/install
103 $(INSTALL_DIR
) $(1)/usr
/bin
104 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nmap
$(1)/usr
/bin
/
105 $(INSTALL_DIR
) $(1)/usr
/share
/nmap
106 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/nmap
/* $(1)/usr
/share
/nmap
/
109 define Package
/ncat
/install
110 $(INSTALL_DIR
) $(1)/usr
/bin
111 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ncat
$(1)/usr
/bin
/
114 define Package
/ncat-ssl
/install
115 $(INSTALL_DIR
) $(1)/usr
/bin
116 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ncat
$(1)/usr
/bin
/
117 $(INSTALL_DIR
) $(1)/usr
/share
/ncat
118 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/ncat
/ca-bundle.crt
$(1)/usr
/share
/ncat
/
121 define Package
/ndiff
/install
122 $(INSTALL_DIR
) $(1)/usr
/bin
123 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ndiff
$(1)/usr
/bin
/
126 define Package
/nping
/install
127 $(INSTALL_DIR
) $(1)/usr
/bin
128 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nping
$(1)/usr
/bin
/
132 $(eval
$(call BuildPackage
,nmap
))
133 $(eval
$(call BuildPackage
,nmap-ssl
))
134 $(eval
$(call BuildPackage
,ncat
))
135 $(eval
$(call BuildPackage
,ncat-ssl
))
136 $(eval
$(call BuildPackage
,nping
))
137 $(eval
$(call BuildPackage
,ndiff
))