aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-04-24 09:38:24 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-04-24 09:38:24 -0300
commit9ef01b709e3779e344e8387dfd7a90f21b5ff922 (patch)
tree6e85b55ac02169bc7473e464c6a5f783792a5d6b /config/snort
parent411ac565d7267970dfa6f5ee7952f6e713490e6f (diff)
downloadpfsense-packages-9ef01b709e3779e344e8387dfd7a90f21b5ff922.tar.gz
pfsense-packages-9ef01b709e3779e344e8387dfd7a90f21b5ff922.tar.bz2
pfsense-packages-9ef01b709e3779e344e8387dfd7a90f21b5ff922.zip
Use macros defined in snort_defs.inc
Diffstat (limited to 'config/snort')
-rwxr-xr-xconfig/snort/snort.inc2
-rwxr-xr-xconfig/snort/snort_check_for_rule_updates.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index b9a022fd..64ab6ea5 100755
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -3096,7 +3096,7 @@ function snort_deinstall() {
global $config, $g;
$snortdir = SNORTDIR;
- $snortlibdir = "/usr/pbi/snort-" . php_uname("m") . "/lib";
+ $snortlibdir = SNORT_PBI_BASEDIR . "lib";
$snortlogdir = SNORTLOGDIR;
$rcdir = RCFILEPREFIX;
$snort_rules_upd_log = SNORT_RULES_UPD_LOGFILE;
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index 3106cb7b..842e39d5 100755
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -38,7 +38,7 @@ require("/usr/local/pkg/snort/snort_defs.inc");
global $g, $config, $pkg_interface, $snort_gui_include, $rebuild_rules;
$snortdir = SNORTDIR;
-$snortlibdir = "/usr/pbi/snort-" . php_uname("m") . "/lib";
+$snortlibdir = SNORT_PBI_BASEDIR . "lib";
$snortlogdir = SNORTLOGDIR;
$snortiprepdir = SNORT_IPREP_PATH;
$snortbindir = SNORT_PBI_BINDIR;