From 11de846965f8112dc4c14689f272419358b456bd Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 22 Jan 2009 19:55:00 +0000 Subject: PHPService change paths for installation --- packages/phpservice/phpservice.inc | 22 +++++++++++----------- packages/phpservice/phpservice.xml | 16 ++++++++-------- packages/phpservice/phpservice_php.tmp | 2 +- packages/phpservice/phpservice_php_edit.tmp | 2 +- pkg_config.7.xml | 2 +- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/phpservice/phpservice.inc b/packages/phpservice/phpservice.inc index bed136b2..24ad4e61 100644 --- a/packages/phpservice/phpservice.inc +++ b/packages/phpservice/phpservice.inc @@ -153,12 +153,12 @@ function sync_package_phpservice() function sync_package() { - global $config; - sync_package_phpservice(); + global $config; + sync_package_phpservice(); - //if (!is_dir('/usr/local/www/phpservice/')) { - //exec("mkdir /usr/local/www/phpservice/"); - //} + if (!is_dir('/usr/local/www/packages/phpservice/')) { + exec("mkdir /usr/local/www/packages/phpservice/"); + } } @@ -170,17 +170,17 @@ function php_install_command() conf_mount_rw(); config_lock(); - //if (!is_dir('/usr/local/www/phpservice/')) { - //exec("mkdir /usr/local/www/phpservice/"); - //} + if (!is_dir('/usr/local/www/packages/phpservice/')) { + exec("mkdir /usr/local/www/packages/phpservice/"); + } //rename PHP files from .tmp to .php - exec("cp /tmp/phpservice_php.tmp /usr/local/www/phpservice_php.php"); + exec("cp /tmp/phpservice_php.tmp /usr/local/www/packages/phpservice/phpservice_php.php"); unlink_if_exists("/tmp/phpservice_php.tmp"); - exec("cp /tmp/phpservice.tmp /usr/local/pkg/phpservice.php"); - unlink_if_exists("/tmp/phpservice.tmp"); + exec("cp /tmp/phpservice_php_edit.tmp /usr/local/www/packages/phpservice/phpservice_php_edit.php"); + unlink_if_exists("/tmp/phpservice_php_edit.tmp"); //write_config(); diff --git a/packages/phpservice/phpservice.xml b/packages/phpservice/phpservice.xml index 03e51d26..7ac7a845 100644 --- a/packages/phpservice/phpservice.xml +++ b/packages/phpservice/phpservice.xml @@ -41,7 +41,7 @@ Describe your package requirements here Currently there are no FAQ items provided. PHP Service Settings - 0.1 + 0.2 Settings /usr/local/pkg/phpservice.inc @@ -49,12 +49,12 @@ PHP Service settings.
Services
phpservice.xml - /phpservice.php + /packages/phpservice_php.php
PHPService - phpservice.sh - phpservice + phpservice.sh + phpservice PHP Service @@ -65,7 +65,7 @@ Settings - /phpservice_php.php + /packages/phpservice_php.php @@ -81,7 +81,7 @@ http://www.pfsense.com/packages/config/phpservice/phpservice.inc - /usr/local/www/ + /tmp/ 0755 http://www.pfsense.com/packages/config/phpservice/phpservice_php.tmp @@ -107,10 +107,10 @@ - sync_package_phpservice_settings(); + sync_package(); - sync_package_phpservice_settings(); + sync_package(); php_install_command(); diff --git a/packages/phpservice/phpservice_php.tmp b/packages/phpservice/phpservice_php.tmp index 2e054a18..21315780 100644 --- a/packages/phpservice/phpservice_php.tmp +++ b/packages/phpservice/phpservice_php.tmp @@ -59,7 +59,7 @@ include("head.inc"); diff --git a/packages/phpservice/phpservice_php_edit.tmp b/packages/phpservice/phpservice_php_edit.tmp index 0e03131f..a077a3ba 100644 --- a/packages/phpservice/phpservice_php_edit.tmp +++ b/packages/phpservice/phpservice_php_edit.tmp @@ -100,7 +100,7 @@ function show_advanced_config() { diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 1ec3edca..99799575 100644 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -94,7 +94,7 @@ http://files.pfsense.org/packages/7/All/ - 0.1 + 0.2 Alpha 1.2.1 markjcrane@gmail.com -- cgit v1.2.3