source: packages/net/nmap/Makefile @ 20781

Last change on this file since 20781 was 20781, checked in by florian, 6 years ago

[package] nmap: Add nmap-os-db to package.

This patch adds nmap-os-db to the nmap package. Nmap cannot
identify OS's without it (actually it doesn't even try).

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@…>

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1#
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.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=nmap
11PKG_VERSION:=4.20
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://download.insecure.org/nmap/dist
16PKG_MD5SUM:=ea50419f99472200c4184a304e3831ea
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/nmap
23  SECTION:=net
24  CATEGORY:=Network
25  DEPENDS:=+libdnet +libpcap +libpcre +uclibcxx
26  TITLE:=Network exploration and/or security auditing utility
27  URL:=http://nmap.org/
28endef
29
30define Package/nmap/description
31 A free open source utility for network exploration or security auditing.
32endef
33
34CONFIGURE_ARGS += \
35        --without-openssl \
36        --without-nmapfe \
37        --with-libdnet="$(STAGING_DIR)/usr" \
38        --with-libpcap="$(STAGING_DIR)/usr" \
39        --with-libpcre="$(STAGING_DIR)/usr" \
40
41CONFIGURE_VARS += \
42        CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
43        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
44        LIBS="-nodefaultlibs -luClibc++ -lgcc" \
45
46define Package/nmap/install
47        $(INSTALL_DIR) $(1)/usr/bin
48        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmap $(1)/usr/bin/
49        $(INSTALL_DIR) $(1)/usr/share/nmap
50        for file in mac-prefixes os-db os-fingerprints protocols rpc service-probes services; do \
51                $(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$$$file $(1)/usr/share/nmap/ ; \
52        done
53endef
54
55$(eval $(call BuildPackage,nmap))
Note: See TracBrowser for help on using the repository browser.