aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_download_updates.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-12-17 20:07:34 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2013-12-17 20:07:34 -0500
commit073f3e78629de1b97945d744d4339615094b4d4e (patch)
tree0e82c6fcd878e62334759ff2c1ad031ab318e829 /config/snort/snort_download_updates.php
parent164401c547782f155d87d83a7307baa3a63fad98 (diff)
downloadpfsense-packages-073f3e78629de1b97945d744d4339615094b4d4e.tar.gz
pfsense-packages-073f3e78629de1b97945d744d4339615094b4d4e.tar.bz2
pfsense-packages-073f3e78629de1b97945d744d4339615094b4d4e.zip
Update copyright info and update for 3.0.1 release.
Diffstat (limited to 'config/snort/snort_download_updates.php')
-rwxr-xr-xconfig/snort/snort_download_updates.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/snort/snort_download_updates.php b/config/snort/snort_download_updates.php
index 1db5b6a0..5c9b8210 100755
--- a/config/snort/snort_download_updates.php
+++ b/config/snort/snort_download_updates.php
@@ -43,9 +43,14 @@ $log = $snort_rules_upd_log;
/* Grab the Snort binary version programmatically and */
/* use it to construct the proper Snort VRT rules */
-/* tarball filename. */
+/* tarball filename. Fallback to a safe default if */
+/* we fail. */
+$snortver = array();
exec("/usr/local/bin/snort -V 2>&1 |/usr/bin/grep Version | /usr/bin/cut -c20-26", $snortver);
+if (empty($snortver[0]))
+ $snortver[0] = "2.9.5.5";
$snortver[0] = str_replace(".", "", $snortver[0]);
+
$snort_rules_file = "snortrules-snapshot-{$snortver[0]}.tar.gz";
//$snort_rules_file = VRT_DNLD_FILENAME;
$snort_community_rules_filename = GPLV2_DNLD_FILENAME;