From 9a8da001013fca6fa9c66591a7f57045ade3d96e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 27 Apr 2015 16:50:02 -0300 Subject: Sanitize varnish version, add port_category, run_depends and fix pbi checking --- config/varnish3/varnish.inc | 2 +- pkg_config.10.xml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc index 50b37990..5df8052b 100644 --- a/config/varnish3/varnish.inc +++ b/config/varnish3/varnish.inc @@ -35,7 +35,7 @@ $shortcut_section = "varnish"; $pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); -if (is_dir('/usr/pbi/varnish-' . php_uname("m"))) { +if ($pfs_version == "2.1" || $pfs_version == "2.2") { define('VARNISH_LOCALBASE', '/usr/pbi/varnish-' . php_uname("m")); } else { define('VARNISH_LOCALBASE','/usr/local'); diff --git a/pkg_config.10.xml b/pkg_config.10.xml index 4686bc74..b8686a59 100644 --- a/pkg_config.10.xml +++ b/pkg_config.10.xml @@ -631,12 +631,14 @@ http://varnish-cache.org https://doc.pfsense.org/index.php/Varnish_package Services - 3.0.5_3 pkg v.0.2.4 + 0.2.4 RC 2.2 https://packages.pfsense.org/packages/config/varnish3/varnish_backends.xml varnish_backends.xml varnish-3.0.5_3-##ARCH##.pbi + www + bin/varnishadm:www/varnish www/varnish lang/gcc -- cgit v1.2.3