From 6500c8a27534895557e4f5ed046e244a51e2b721 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 28 Apr 2015 09:08:26 -0300 Subject: Sanitize nmap version, add port_category, run_depends and fix pbi checking --- config/nmap/nmap.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/nmap') diff --git a/config/nmap/nmap.inc b/config/nmap/nmap.inc index f66f6be9..632d4b2d 100644 --- a/config/nmap/nmap.inc +++ b/config/nmap/nmap.inc @@ -32,14 +32,14 @@ function nmap_install() { $destination_file = "/usr/local/share/nmap/nmap-mac-prefixes"; $pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); switch ($pfs_version) { - case "1.2": - case "2.0": - return null; case "2.1": $source_file = "/usr/pbi/nmap-" . php_uname("m") . "/share/nmap/nmap-mac-prefixes"; break; - default: + case "2.2": $source_file = "/usr/pbi/nmap-" . php_uname("m") . "/local/share/nmap/nmap-mac-prefixes"; + break; + default: + return null; } /* Only copy the file if it doesn't exist */ if (file_exists($source_file) && !file_exists($destination_file)) { -- cgit v1.2.3