diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-11-26 10:42:57 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-12-15 12:15:43 -0500 |
commit | 8cecf2e8ccb439c416557ee7b12806f878863cd9 (patch) | |
tree | e9cdebd0453c60e297b6bcec28a8d707dc9dbf6f /config/suricata/suricata_post_install.php | |
parent | 06c72562c805fc81701be9779686c26fcbc03320 (diff) | |
download | pfsense-packages-8cecf2e8ccb439c416557ee7b12806f878863cd9.tar.gz pfsense-packages-8cecf2e8ccb439c416557ee7b12806f878863cd9.tar.bz2 pfsense-packages-8cecf2e8ccb439c416557ee7b12806f878863cd9.zip |
Consolidate DEFINES into a single INC file for ease of future maintenance.
Diffstat (limited to 'config/suricata/suricata_post_install.php')
-rw-r--r-- | config/suricata/suricata_post_install.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/config/suricata/suricata_post_install.php b/config/suricata/suricata_post_install.php index 04c86eaf..73ba7f50 100644 --- a/config/suricata/suricata_post_install.php +++ b/config/suricata/suricata_post_install.php @@ -48,18 +48,20 @@ require_once("config.inc"); require_once("functions.inc"); require_once("/usr/local/pkg/suricata/suricata.inc"); +require("/usr/local/pkg/suricata/suricata_defs.inc"); global $config, $g, $rebuild_rules, $pkg_interface, $suricata_gui_include; /**************************************** * Define any new constants here that * * may not be yet defined in the old * - * "suricata.inc" include file that * - * might be cached and used by the * - * package manager installation code. * + * "suricata_defs.inc" include file * + * that might be cached and used by * + * the package manager installation * + * code. * * * * This is a hack to work around the * - * fact the old version of suricata.inc * + * fact the old version of the inc file * * is cached and used instead of the * * updated version icluded with the * * updated GUI package. * @@ -68,9 +70,11 @@ if (!defined('SURICATA_SID_MODS_PATH')) define('SURICATA_SID_MODS_PATH', '/var/db/suricata/sidmods/'); if (!defined('SURICATA_IPREP_PATH')) define('SURICATA_IPREP_PATH', '/var/db/suricata/iprep/'); +if (!defined('SURICATA_PBI_BASEDIR')) + define('SURICATA_PBI_BASEDIR', '/usr/pbi/suricata-' . php_uname("m")); /**************************************** - * End of PHP cachine workaround * + * End of PHP caching workaround * ****************************************/ // Initialize some common values from defined constants |