aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish3
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-12-01 19:23:07 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-12-01 19:23:07 -0200
commitab0a79e736a2dce9b93a7a9232f56d45f5bc1b83 (patch)
treeb8da1c692cc02deca034ea0c2fad4d70b06915ab /config/varnish3
parent8361d54a880ba771389a3bd9d8e4008ca1369b31 (diff)
downloadpfsense-packages-ab0a79e736a2dce9b93a7a9232f56d45f5bc1b83.tar.gz
pfsense-packages-ab0a79e736a2dce9b93a7a9232f56d45f5bc1b83.tar.bz2
pfsense-packages-ab0a79e736a2dce9b93a7a9232f56d45f5bc1b83.zip
Some libraries are not being found by wrapper, symlink them to PBI_DIR/local/lib
Diffstat (limited to 'config/varnish3')
-rw-r--r--config/varnish3/varnish.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc
index 82b1cbca..f14e514e 100644
--- a/config/varnish3/varnish.inc
+++ b/config/varnish3/varnish.inc
@@ -110,6 +110,17 @@ function varnish_backends_post_validate($post, &$input_errors) {
function varnish_install() {
create_varnish_rcd_file();
+
+ if (file_exists(VARNISH_LOCALBASE . '/local/lib/varnish/libvarnish.so')) {
+ @symlink(VARNISH_LOCALBASE . '/local/lib/varnish/libvarnish.so',
+ VARNISH_LOCALBASE . '/local/lib/libvarnish.so');
+ @symlink(VARNISH_LOCALBASE . '/local/lib/varnish/libvarnishcompat.so',
+ VARNISH_LOCALBASE . '/local/lib/libvarnishcompat.so');
+ @symlink(VARNISH_LOCALBASE . '/local/lib/varnish/libvcl.so',
+ VARNISH_LOCALBASE . '/local/lib/libvcl.so');
+ @symlink(VARNISH_LOCALBASE . '/local/lib/varnish/libvgz.so',
+ VARNISH_LOCALBASE . '/local/lib/libvgz.so');
+ }
}
function varnish_deinstall() {