[packages] fix nmap build variants (#9387)
authorFlorian Fainelli <florian@openwrt.org>
Fri, 20 May 2011 10:05:33 +0000 (10:05 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 20 May 2011 10:05:33 +0000 (10:05 +0000)
The default variant of nmap does not appear to be building correctly, if
at all (all invocations of configure have --with-openssl).  Add a nossl
variant to fix building.

Set PKG_BULID_DIR to differ between variants to prevent overlapping of
builds.

Signed-off-by: Kevin Locke <klocke@digitalenginesoftware.com>
SVN-Revision: 26951

net/nmap/Makefile

index 87208e92a1d27af3d2663a5d4245a5437b4c1371..c80e6c1f9266ddbd5abd5b1eb94a60cfb0828b4c 100644 (file)
 include $(TOPDIR)/rules.mk
 PKG_NAME:=nmap
 PKG_VERSION:=5.51
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://nmap.org/dist/
 PKG_MD5SUM:=0b80d2cb92ace5ebba8095a4c2850275
 PKG_INSTALL:=1
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
+
 include $(INCLUDE_DIR)/package.mk
 
 NMAP_DEPENDS:=+libpcap +libstdcpp
@@ -37,6 +39,7 @@ endef
 define Package/nmap
 $(call Package/nmap/default)
   DEPENDS:=$(NMAP_DEPENDS)
+  VARIANT:=nossl
   TITLE:=Utility for network exploration or security auditing
 endef
 
@@ -50,6 +53,7 @@ endef
 define Package/ncat
 $(call Package/nmap/default)
   DEPENDS:=$(NCAT_DEPENDS)
+  VARIANT:=nossl
   TITLE:=Much-improved reimplementation of Netcat
 endef
 
@@ -63,12 +67,14 @@ endef
 define Package/nping
 $(call Package/nmap/default)
   DEPENDS:=$(NPING_DEPENDS)
+  VARIANT:=nossl
   TITLE:=Network packet generation tool / ping utility
 endef
 
 define Package/ndiff
 $(call Package/nmap/default)
   DEPENDS:=$(NDIFF_DEPENDS)
+  VARIANT:=nossl
   TITLE:=Utility to compare the results of Nmap scans
 endef