nmap: add Nping with SSL option
authorNuno Goncalves <nunojpg@gmail.com>
Sun, 6 Oct 2019 15:40:38 +0000 (17:40 +0200)
committerNuno Goncalves <nunojpg@gmail.com>
Sun, 29 Mar 2020 21:26:07 +0000 (22:26 +0100)
Signed-off-by: Henrique de Moraes Holschuh <henrique@nic.br>
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
net/nmap/Makefile

index 898374825c5dc5ddaa9d9a4c853cbeca7ac1f6e2..d0db2c0051a3b22451a1dcdfaebbe767d557fdc4 100644 (file)
@@ -75,6 +75,13 @@ $(call Package/nmap/default)
   TITLE:=Network packet generation tool / ping utility
 endef
 
+define Package/nping-ssl
+$(call Package/nmap/default)
+  DEPENDS:=$(NPING_DEPENDS) +libopenssl
+  VARIANT:=ssl
+  TITLE:=Nping (with OpenSSL support)
+endef
+
 define Package/ndiff
 $(call Package/nmap/default)
   DEPENDS:=$(NDIFF_DEPENDS)
@@ -135,10 +142,15 @@ define Package/nping/install
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nping $(1)/usr/bin/
 endef
 
+define Package/nping-ssl/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nping $(1)/usr/bin/
+endef
 
 $(eval $(call BuildPackage,nmap))
 $(eval $(call BuildPackage,nmap-ssl))
 $(eval $(call BuildPackage,ncat))
 $(eval $(call BuildPackage,ncat-ssl))
 $(eval $(call BuildPackage,nping))
+$(eval $(call BuildPackage,nping-ssl))
 $(eval $(call BuildPackage,ndiff))