aboutsummaryrefslogtreecommitdiffstats
path: root/config/vhosts/vhosts.inc
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2010-01-21 02:13:58 -0700
committermcrane <mctch@yahoo.com>2010-01-21 02:13:58 -0700
commit15f8d5df1d870f6a7ef6294e238318710a6b865a (patch)
tree63c88fa92a31f2893e0058c55332d284ba08c2b8 /config/vhosts/vhosts.inc
parent7cb54c38f33767524898e525f8c6c7f7b9019214 (diff)
downloadpfsense-packages-15f8d5df1d870f6a7ef6294e238318710a6b865a.tar.gz
pfsense-packages-15f8d5df1d870f6a7ef6294e238318710a6b865a.tar.bz2
pfsense-packages-15f8d5df1d870f6a7ef6294e238318710a6b865a.zip
vHosts package enable support for FreeBSD 8.
Diffstat (limited to 'config/vhosts/vhosts.inc')
-rw-r--r--config/vhosts/vhosts.inc20
1 files changed, 16 insertions, 4 deletions
diff --git a/config/vhosts/vhosts.inc b/config/vhosts/vhosts.inc
index 6cea0c04..ad85f439 100644
--- a/config/vhosts/vhosts.inc
+++ b/config/vhosts/vhosts.inc
@@ -673,6 +673,7 @@ function vhosts_sync_package_php()
unset($tmp);
fclose($fout);
+ if (!function_exists('write_rcfile')) { require("/etc/inc/service-utils.inc"); }
write_rcfile(array(
"file" => "vhosts-".$ipaddress."-".$port."-ssl.sh",
"start" => "/usr/local/sbin/lighttpd -f /var/etc/lighty-vhosts-".$ipaddress."-".$port."-ssl.conf",
@@ -733,6 +734,11 @@ function php_install_command() {
}
if(stristr(php_uname('r'), '7.2') == TRUE) {
+ if (!file_exists('/usr/local/php5')) {
+ chdir('/usr/local/');
+ exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/php5.tar.gz");
+ exec("tar zxvf /usr/local/php5.tar.gz -C /usr/local/");
+ }
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");
@@ -750,6 +756,13 @@ function php_install_command() {
exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd7.2/usr.local.lib/lib/libxml2.a");
}
}
+ if(stristr(php_uname('r'), '8.0') == TRUE) {
+ if (!file_exists('/usr/local/php5')) {
+ chdir('/usr/local/');
+ exec ("fetch http://www.pfsense.com/packages/config/vhosts/freebsd8.0/php5.tar.gz");
+ exec("tar zxvf /usr/local/php5.tar.gz -C /usr/local/");
+ }
+ }
//rename PHP files from .tmp to .php
exec("cp /tmp/vhosts_php.tmp /usr/local/www/packages/vhosts/vhosts_php.php");
@@ -758,16 +771,15 @@ function php_install_command() {
exec("cp /tmp/vhosts_php_edit.tmp /usr/local/www/packages/vhosts/vhosts_php_edit.php");
unlink_if_exists("/tmp/vhosts_php_edit.tmp");
+ chdir('/tmp/');
+ exec ("fetch http://www.pfsense.com/packages/config/vhosts/system_advanced_create_certs.tmp");
exec("cp /tmp/system_advanced_create_certs.tmp /usr/local/www/packages/vhosts/system_advanced_create_certs.php");
unlink_if_exists("/tmp/system_advanced_create_certs.tmp");
- //extract php5
- chdir('/tmp');
- exec("tar zxvf /tmp/php5.tar.gz -C /usr/local/");
- unlink_if_exists("/tmp/php5.tar.gz");
//write_config();
+ if (!function_exists('write_rcfile')) { require("/etc/inc/service-utils.inc"); }
write_rcfile(array(
"file" => "vhosts-http.sh",
"start" => "/usr/local/sbin/lighttpd -f /var/etc/lighty-vhosts-http.conf",