diff options
-rw-r--r-- | config/varnish3/varnish.inc | 2 | ||||
-rw-r--r-- | 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 @@ <website>http://varnish-cache.org</website> <pkginfolink>https://doc.pfsense.org/index.php/Varnish_package</pkginfolink> <category>Services</category> - <version>3.0.5_3 pkg v.0.2.4</version> + <version>0.2.4</version> <status>RC</status> <required_version>2.2</required_version> <config_file>https://packages.pfsense.org/packages/config/varnish3/varnish_backends.xml</config_file> <configurationfile>varnish_backends.xml</configurationfile> <depends_on_package_pbi>varnish-3.0.5_3-##ARCH##.pbi</depends_on_package_pbi> + <port_category>www</port_category> + <run_depends>bin/varnishadm:www/varnish</run_depends> <build_pbi> <port>www/varnish</port> <ports_after>lang/gcc</ports_after> |