aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-04-27 10:51:56 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-04-27 10:51:56 -0300
commit7a4ab0bd9e8fa424eeafa6c76677d324df4cd6d2 (patch)
tree4dee008a15d52b759793730b02622850fd5dd880 /config
parent942f489ef647252418d9b78440b3b6403de86df4 (diff)
downloadpfsense-packages-7a4ab0bd9e8fa424eeafa6c76677d324df4cd6d2.tar.gz
pfsense-packages-7a4ab0bd9e8fa424eeafa6c76677d324df4cd6d2.tar.bz2
pfsense-packages-7a4ab0bd9e8fa424eeafa6c76677d324df4cd6d2.zip
Sanitize lightsquid version, add port_category, run_depends and fix pbi checking
Diffstat (limited to 'config')
-rw-r--r--config/lightsquid/lightsquid.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/lightsquid/lightsquid.inc b/config/lightsquid/lightsquid.inc
index 054713a1..9e51913f 100644
--- a/config/lightsquid/lightsquid.inc
+++ b/config/lightsquid/lightsquid.inc
@@ -41,15 +41,15 @@ else update_log("File 'squid.inc' not found.");
$pfs_version = substr(trim(file_get_contents("/etc/version")),0,3);
switch ($pfs_version) {
- case "1.2":
- case "2.0":
- define('LIGHTSQUID_BASE','/usr/local');
- break;
case "2.1":
define('LIGHTSQUID_BASE', '/usr/pbi/lightsquid-' . php_uname("m"));
break;
- default:
+ case "2.2":
define('LIGHTSQUID_BASE', '/usr/pbi/lightsquid-' . php_uname("m") . '/local');
+ break;
+ default:
+ define('LIGHTSQUID_BASE','/usr/local');
+ break;
}
define ('CMD_PKGDELETE', 'pkg_delete lightsquid-1.7.1');
@@ -471,4 +471,4 @@ function ls_cleanup_bad_link($link) {
}
}
-?> \ No newline at end of file
+?>