Changeset 24947


Ignore:
Timestamp:
2011-01-09T17:19:02+01:00 (7 years ago)
Author:
nunojpg
Message:

[packages] nmap: update to version 5.36TEST3, added ncat, nping, ndiff and versions with ssl support

Location:
packages/net/nmap
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/nmap/Makefile

    r22620 r24947  
     1#TODO 
    12# 
    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. 
     3# * uClibcpp not supported, performance +100x slower. libstdcpp is being used. https://bugs.busybox.net/show_bug.cgi?id=2545 
     4# * liblua is still not recognized/blindly accepted. Impossible to compile with support 
    65# 
    76 
    87include $(TOPDIR)/rules.mk 
    9  
    108PKG_NAME:=nmap 
    11 PKG_VERSION:=5.35DC1 
     9PKG_VERSION:=5.36TEST3 
    1210PKG_RELEASE:=1 
    13  
    1411PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    15 PKG_SOURCE_URL:=http://download.insecure.org/nmap/dist 
    16 PKG_MD5SUM:=5bc2f8629f26716aa78d4bfe474a5d3a 
    17  
     12PKG_SOURCE_URL:=http://nmap.org/dist/ 
     13PKG_MD5SUM:=963fd9a3daec3c6770a411339c5a27e9 
    1814PKG_INSTALL:=1 
    1915 
    2016include $(INCLUDE_DIR)/package.mk 
    2117 
    22 define Package/nmap 
     18NMAP_DEPENDS:=+libpcap +libstdcpp 
     19NCAT_DEPENDS:=+libpcap 
     20NPING_DEPENDS:=+libpcap +libpthread 
     21 
     22define Package/nmap/default 
     23  SUBMENU:=NMAP Suite 
    2324  SECTION:=net 
    2425  CATEGORY:=Network 
    25   DEPENDS:=+libdnet +libpcap +libpcre +uclibcxx 
    26   TITLE:=Network exploration and/or security auditing utility 
    2726  URL:=http://nmap.org/ 
     27  MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com> 
    2828endef 
    2929 
    30 define Package/nmap/description 
    31  A free open source utility for network exploration or security auditing. 
     30define Package/nmap 
     31$(call Package/nmap/default) 
     32  DEPENDS:=$(NMAP_DEPENDS) 
     33  TITLE:=nmap tool(without ssl support) 
     34endef 
     35 
     36define Package/nmap-ssl 
     37$(call Package/nmap/default) 
     38  DEPENDS:=$(NMAP_DEPENDS) +libopenssl 
     39  VARIANT:=ssl 
     40  TITLE:=nmap tool(with openssl support) 
     41endef 
     42 
     43define Package/ncat 
     44$(call Package/nmap/default) 
     45  DEPENDS:=$(NCAT_DEPENDS) 
     46  TITLE:=ncat tool(without ssl support) 
     47endef 
     48 
     49define Package/ncat-ssl 
     50$(call Package/nmap/default) 
     51  DEPENDS:=$(NCAT_DEPENDS) +libopenssl 
     52  VARIANT:=ssl 
     53  TITLE:=ncat tool(with openssl support) 
     54endef 
     55 
     56define Package/nping 
     57$(call Package/nmap/default) 
     58  DEPENDS:=$(NPING_DEPENDS) 
     59  TITLE:=nping tool 
     60endef 
     61 
     62define Package/ndiff 
     63$(call Package/nmap/default) 
     64  DEPENDS:=+python 
     65  TITLE:=ndiff tool 
     66endef 
     67 
     68define Package/nmap/config 
     69        source "$(SOURCE)/Config_nossl.in" 
     70endef 
     71 
     72define Package/nmap-ssl/config 
     73        source "$(SOURCE)/Config_ssl.in" 
    3274endef 
    3375 
    3476CONFIGURE_ARGS += \ 
    35         --without-openssl \ 
    36         --without-nmapfe \ 
    37         --without-liblua \ 
    3877        --with-libdnet=included \ 
     78        --with-libpcre=included \ 
    3979        --with-libpcap="$(STAGING_DIR)/usr" \ 
     80        --without-liblua 
    4081 
    41 CONFIGURE_VARS += \ 
    42         CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \ 
    43         CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \ 
    44         LDFLAGS="$$$$LDFLAGS -lm" \ 
    45         LIBS="-nodefaultlibs -luClibc++ $(LIBGCC_S)" \ 
     82CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti" 
     83 
     84ifeq ($(BUILD_VARIANT),ssl) 
     85        CONFIGURE_ARGS += --with-openssl="$(STAGING_DIR)/usr" 
     86else 
     87        CONFIGURE_ARGS += --without-openssl 
     88endif 
    4689 
    4790define Package/nmap/install 
     
    4992        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmap $(1)/usr/bin/ 
    5093        $(INSTALL_DIR) $(1)/usr/share/nmap 
    51         for file in mac-prefixes os-db os-fingerprints protocols rpc service-probes services; do \ 
    52                 $(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$$$file $(1)/usr/share/nmap/ ; \ 
    53         done 
     94        $(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/* $(1)/usr/share/nmap/ 
    5495endef 
    5596 
     97define Package/nmap-ssl/install 
     98        $(INSTALL_DIR) $(1)/usr/bin 
     99        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmap $(1)/usr/bin/ 
     100        $(INSTALL_DIR) $(1)/usr/share/nmap 
     101        $(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/* $(1)/usr/share/nmap/ 
     102endef 
     103 
     104define Package/ncat/install 
     105        $(INSTALL_DIR) $(1)/usr/bin 
     106        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncat $(1)/usr/bin/ 
     107endef 
     108 
     109define Package/ncat-ssl/install 
     110        $(INSTALL_DIR) $(1)/usr/bin 
     111        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncat $(1)/usr/bin/ 
     112        $(INSTALL_DIR) $(1)/usr/share/ncat 
     113        $(CP) $(PKG_INSTALL_DIR)/usr/share/ncat/ca-bundle.crt $(1)/usr/share/ncat/ 
     114endef 
     115 
     116define Package/ndiff/install 
     117        $(INSTALL_DIR) $(1)/usr/bin 
     118        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ndiff $(1)/usr/bin/ 
     119endef 
     120 
     121define Package/nping/install 
     122        $(INSTALL_DIR) $(1)/usr/bin 
     123        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nping $(1)/usr/bin/ 
     124endef 
     125 
     126 
    56127$(eval $(call BuildPackage,nmap)) 
     128$(eval $(call BuildPackage,nmap-ssl)) 
     129$(eval $(call BuildPackage,ncat)) 
     130$(eval $(call BuildPackage,ncat-ssl)) 
     131$(eval $(call BuildPackage,nping)) 
     132$(eval $(call BuildPackage,ndiff)) 
Note: See TracChangeset for help on using the changeset viewer.