From 3ac45af4c58eafd559f178e2f5ae0e2c20fedf03 Mon Sep 17 00:00:00 2001 From: mcrane Date: Wed, 23 Dec 2009 15:00:58 -0700 Subject: vHosts missing dependency for php5 added for pfsense 1.2.3. --- config/vhosts/freebsd7.2/usr.local.lib/libxml2.a | Bin 0 -> 1440870 bytes config/vhosts/freebsd7.2/usr.local.lib/libxml2.la | 35 +++++++++++++++++++++ .../vhosts/freebsd7.2/usr.local.lib/libxml2.so.5 | Bin 0 -> 1334698 bytes config/vhosts/vhosts.inc | 19 +++++++++++ config/vhosts/vhosts.xml | 2 +- 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 config/vhosts/freebsd7.2/usr.local.lib/libxml2.a create mode 100644 config/vhosts/freebsd7.2/usr.local.lib/libxml2.la create mode 100644 config/vhosts/freebsd7.2/usr.local.lib/libxml2.so.5 (limited to 'config/vhosts') diff --git a/config/vhosts/freebsd7.2/usr.local.lib/libxml2.a b/config/vhosts/freebsd7.2/usr.local.lib/libxml2.a new file mode 100644 index 00000000..6c1014a3 Binary files /dev/null and b/config/vhosts/freebsd7.2/usr.local.lib/libxml2.a differ diff --git a/config/vhosts/freebsd7.2/usr.local.lib/libxml2.la b/config/vhosts/freebsd7.2/usr.local.lib/libxml2.la new file mode 100644 index 00000000..e5b6be20 --- /dev/null +++ b/config/vhosts/freebsd7.2/usr.local.lib/libxml2.la @@ -0,0 +1,35 @@ +# libxml2.la - a libtool library file +# Generated by ltmain.sh - GNU libtool 1.5.24 (1.1220.2.456 2007/06/24 02:25:32) +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libxml2.so.5' + +# Names of this library. +library_names='libxml2.so.5 libxml2.so libxml2.so' + +# The name of the static archive. +old_library='libxml2.a' + +# Libraries that this one depends upon. +dependency_libs=' -L/usr/local/lib -lz /usr/local/lib/libiconv.la -lm' + +# Version information for libxml2. +current=5 +age=0 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/usr/local/lib' diff --git a/config/vhosts/freebsd7.2/usr.local.lib/libxml2.so.5 b/config/vhosts/freebsd7.2/usr.local.lib/libxml2.so.5 new file mode 100644 index 00000000..ec728eb1 Binary files /dev/null and b/config/vhosts/freebsd7.2/usr.local.lib/libxml2.so.5 differ diff --git a/config/vhosts/vhosts.inc b/config/vhosts/vhosts.inc index e9a1a6ec..6cea0c04 100644 --- a/config/vhosts/vhosts.inc +++ b/config/vhosts/vhosts.inc @@ -732,6 +732,25 @@ function php_install_command() { exec("mkdir /usr/local/vhosts/"); } + if(stristr(php_uname('r'), '7.2') == TRUE) { + if (!file_exists('/usr/local/lib/libxml2.so.5')) { + chdir('/usr/local/lib/'); + exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/libxml2.so.5"); + } + if (!file_exists('/usr/local/lib/libxml2.so')) { + chdir('/usr/local/lib/'); + exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/libxml2.so"); + } + if (!file_exists('/usr/local/lib/libxml2.la')) { + chdir('/usr/local/lib/'); + exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/libxml2.la"); + } + if (!file_exists('/usr/local/lib/libxml2.a')) { + chdir('/usr/local/lib/'); + exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/lib/libxml2.a"); + } + } + //rename PHP files from .tmp to .php exec("cp /tmp/vhosts_php.tmp /usr/local/www/packages/vhosts/vhosts_php.php"); unlink_if_exists("/tmp/vhosts_php.tmp"); diff --git a/config/vhosts/vhosts.xml b/config/vhosts/vhosts.xml index 0b9cd769..14141044 100644 --- a/config/vhosts/vhosts.xml +++ b/config/vhosts/vhosts.xml @@ -41,7 +41,7 @@ Describe your package requirements here Currently there are no FAQ items provided. vHosts Settings - 0.6 + 0.7 Settings /usr/local/pkg/vhosts.inc -- cgit v1.2.3