@ -13,31 +13,32 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := nmap
PKG_VERSION := 7.7 0
PKG_RELEASE := 2
PKG_VERSION := 7.8 0
PKG_RELEASE := 1
PKG_MAINTAINER := Nuno Goncalves <nunojpg@gmail.com>
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.bz2
PKG_SOURCE_URL := https://nmap.org/dist/
PKG_HASH := 847b068955f792f4cc247593aca6dc3dc4aae12976169873247488de147a6e18
PKG_LICENSE := GPL-2.0
PKG_HASH := fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa
PKG_LICENSE := GPL-2.0-only
PKG_LICENSE_FILES := COPYING
PKG_CPE_ID := cpe:/a:nmap:nmap
PKG_BUILD_PARALLEL := 1
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e . . / . . / l a n g / p y t h o n / p y t h o n 3 - p a c k a g e . m k
NMAP_DEPENDS := +libpcap +libstdcpp +zlib +libpcre
NCAT_DEPENDS := +libpcap
NPING_DEPENDS := +libpcap +libpthread +libstdcpp
NDIFF_DEPENDS := +python
d e f i n e P a c k a g e / n m a p / d e f a u l t
SUBMENU:= NMAP Suite
SECTION:= net
CATEGORY:= Network
URL:= http://nmap.org/
URL:= https ://nmap.org/
e n d e f
d e f i n e P a c k a g e / n m a p
@ -54,6 +55,13 @@ $(call Package/nmap/default)
TITLE:= Nmap ( with OpenSSL support)
e n d e f
d e f i n e P a c k a g e / n m a p - f u l l
$( call Package /nmap /default )
DEPENDS:= $( NMAP_DEPENDS) +libopenssl +liblua5.3 +libssh2
VARIANT:= full
TITLE:= Nmap ( with OpenSSL and scripting support)
e n d e f
d e f i n e P a c k a g e / n c a t
$( call Package /nmap /default )
DEPENDS:= $( NCAT_DEPENDS)
@ -68,6 +76,13 @@ $(call Package/nmap/default)
TITLE:= Ncat ( with OpenSSL support)
e n d e f
d e f i n e P a c k a g e / n c a t - f u l l
$( call Package /nmap /default )
DEPENDS:= $( NCAT_DEPENDS) +libopenssl +liblua5.3
VARIANT:= full
TITLE:= Ncat ( with OpenSSL and scripting support)
e n d e f
d e f i n e P a c k a g e / n p i n g
$( call Package /nmap /default )
DEPENDS:= $( NPING_DEPENDS)
@ -84,40 +99,73 @@ endef
d e f i n e P a c k a g e / n d i f f
$( call Package /nmap /default )
DEPENDS:= $( NDIFF_DEPENDS)
VARIANT:= nossl
DEPENDS:= +python3-light +python3-xml
VARIANT:= python3
TITLE:= Utility to compare the results of Nmap scans
e n d e f
CONFIGURE_ARGS += \
--with-libdnet= included \
--with-libpcre= " $( STAGING_DIR) /usr " \
--with-liblinear= included \
--with-libpcap= " $( STAGING_DIR) /usr " \
--without-liblua \
--with-libpcre= " $( STAGING_DIR) /usr " \
--with-libz= " $( STAGING_DIR) /usr " \
--with-ncat \
--without-localdirs \
--without-ndiff \
--without-nmap-update \
--without-subversion \
--without-zenmap
# --with-libnbase=included
# --with-libnsock=included
# --without-apr
i f e q ( $( BUILD_VARIANT ) , f u l l )
CONFIGURE_ARGS += \
--with-liblua= " $( STAGING_DIR) /usr " \
--with-libssh2= " $( STAGING_DIR) /usr " \
--with-openssl= " $( STAGING_DIR) /usr " \
--without-nping
e l s e i f e q ( $( BUILD_VARIANT ) , s s l )
CONFIGURE_ARGS += \
--with-nping \
--with-openssl= " $( STAGING_DIR) /usr " \
--without-liblua \
--without-libssh2
e l s e # nossl
CONFIGURE_ARGS += \
--with-nping \
--without-liblua \
--without-libssh2 \
--without-openssl
e n d i f
CONFIGURE_VARS += \
ac_cv_dnet_bsd_bpf = no \
CXXFLAGS = " $$ $$ CXXFLAGS -fno-builtin "
ac_cv_dnet_bsd_bpf = no
i f e q ( $( BUILD_VARIANT ) , s s l )
CONFIGURE_ARGS += --with-openssl= " $( STAGING_DIR) /usr " --without-libssh2
e l s e
CONFIGURE_ARGS += --without-openssl
PYTHON3_PKG_SETUP_DIR := ndiff
PYTHON3_PKG_SETUP_ARGS :=
i f e q ( $( BUILD_VARIANT ) , p y t h o n 3 )
Build/Configure:= :
Build/Install:= :
e n d i f
d e f i n e P a c k a g e / n m a p / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/nmap $( 1) /usr/bin/
$( INSTALL_DIR) $( 1) /usr/share/nmap
$( CP) $( PKG_INSTALL_DIR) /usr/share/nmap/* $( 1) /usr/share/nmap/
$( INSTALL_DATA ) $( PKG_INSTALL_DIR) /usr/share/nmap/nmap * $( 1) /usr/share/nmap/
e n d e f
d e f i n e P a c k a g e / n m a p - s s l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/nmap $( 1) /usr/bin/
$( INSTALL_DIR) $( 1) /usr/share/nmap
$( CP) $( PKG_INSTALL_DIR) /usr/share/nmap/* $( 1) /usr/share/nmap/
P a c k a g e / n m a p - s s l / install = $( Package/nmap/install)
d e f i n e P a c k a g e / n m a p - f u l l / i n s t a l l
$( call Package/nmap/install,$( 1) )
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/share/nmap/nse_main.lua $( 1) /usr/share/nmap/
$( CP) $( PKG_INSTALL_DIR) /usr/share/nmap/{ nselib,scripts} $( 1) /usr/share/nmap/
e n d e f
d e f i n e P a c k a g e / n c a t / i n s t a l l
@ -126,31 +174,34 @@ define Package/ncat/install
e n d e f
d e f i n e P a c k a g e / n c a t - s s l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/ncat $( 1) /usr/bin/
$( call Package/ncat/install,$( 1) )
$( INSTALL_DIR) $( 1) /usr/share/ncat
$( CP ) $( PKG_INSTALL_DIR) /usr/share/ncat/ca-bundle.crt $( 1) /usr/share/ncat/
$( INSTALL_DATA ) $( PKG_INSTALL_DIR) /usr/share/ncat/ca-bundle.crt $( 1) /usr/share/ncat/
e n d e f
d e f i n e P a c k a g e / n d i f f / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/ndiff $( 1) /usr/bin/
e n d e f
P a c k a g e / n c a t - f u l l / install = $( Package/ncat-ssl/install)
d e f i n e P a c k a g e / n p i n g / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/nping $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / n p i n g - s s l / i n s t a l l
P a c k a g e / n p i n g - s s l / install = $( Package/nping/install)
d e f i n e P y 3 P a c k a g e / n d i f f / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/nping $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/ndiff $( 1) /usr/bin/
e n d e f
$( eval $ ( call BuildPackage ,nmap ) )
$( eval $ ( call BuildPackage ,nmap -ssl ) )
$( eval $ ( call BuildPackage ,nmap -full ) )
$( eval $ ( call BuildPackage ,ncat ) )
$( eval $ ( call BuildPackage ,ncat -ssl ) )
$( eval $ ( call BuildPackage ,ncat -full ) )
$( eval $ ( call BuildPackage ,nping ) )
$( eval $ ( call BuildPackage ,nping -ssl ) )
$( eval $ ( call Py 3Package ,ndiff ) )
$( eval $ ( call BuildPackage ,ndiff ) )
$( eval $ ( call BuildPackage ,ndiff -src ) )