aboutsummaryrefslogtreecommitdiffstats
path: root/config/bandwidthd/bandwidthd.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-04-28 10:45:18 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-04-28 10:45:18 -0300
commit578824e9239e2d414aa899b51557e6c5a10dec69 (patch)
treef8c9ad6413f6f67c8fd0df8da496fc588760710a /config/bandwidthd/bandwidthd.inc
parente936ec53eeea5c41c4b53459c8f5954f84cd2bad (diff)
downloadpfsense-packages-578824e9239e2d414aa899b51557e6c5a10dec69.tar.gz
pfsense-packages-578824e9239e2d414aa899b51557e6c5a10dec69.tar.bz2
pfsense-packages-578824e9239e2d414aa899b51557e6c5a10dec69.zip
Sanitize bandwidthd version, add port_category, run_depends and fix pbi checking
Diffstat (limited to 'config/bandwidthd/bandwidthd.inc')
-rw-r--r--config/bandwidthd/bandwidthd.inc11
1 files changed, 5 insertions, 6 deletions
diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc
index b7ef3bbd..ac5cc116 100644
--- a/config/bandwidthd/bandwidthd.inc
+++ b/config/bandwidthd/bandwidthd.inc
@@ -31,18 +31,17 @@
// Check pfSense version
$pfs_version = substr(trim(file_get_contents("/etc/version")),0,3);
switch ($pfs_version) {
- case "1.2":
- case "2.0":
- define('PKG_BANDWIDTHD_BASE', '/usr/local/bandwidthd');
- define('PKG_BANDWIDTHD_RUNTIME_LIBRARY_ENV', '');
- break;
case "2.1":
define('PKG_BANDWIDTHD_BASE', '/usr/pbi/bandwidthd-' . php_uname("m") . '/bandwidthd');
define('PKG_BANDWIDTHD_RUNTIME_LIBRARY_ENV', '');
break;
- default:
+ case "2.2":
define('PKG_BANDWIDTHD_BASE', '/usr/pbi/bandwidthd-' . php_uname("m") . '/local/bandwidthd');
define('PKG_BANDWIDTHD_RUNTIME_LIBRARY_ENV', 'LD_LIBRARY_PATH=/usr/pbi/bandwidthd-' . php_uname("m") . '/local/lib');
+ break;
+ default:
+ define('PKG_BANDWIDTHD_BASE', '/usr/local/bandwidthd');
+ define('PKG_BANDWIDTHD_RUNTIME_LIBRARY_ENV', '');
}
// End: Check pfSense version