aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-02-24 02:20:26 -0700
committermcrane <mctch@yahoo.com>2009-02-24 02:20:26 -0700
commit151b508b15ae0e3c36e687404bb3f703765974e1 (patch)
treeb53474901dddc29f15efcc177f26a4cafc4c06f0 /config
parent3aedbcaac44b929581a5ac7a9c89d43b4e9fcb08 (diff)
downloadpfsense-packages-151b508b15ae0e3c36e687404bb3f703765974e1.tar.gz
pfsense-packages-151b508b15ae0e3c36e687404bb3f703765974e1.tar.bz2
pfsense-packages-151b508b15ae0e3c36e687404bb3f703765974e1.zip
FreeSWITCH move 1.2.1 and 1.2.2 to previous build while 1.2.3 and 2.0 use the latest FreeSWITCH build.
Diffstat (limited to 'config')
-rw-r--r--config/freeswitch/freeswitch.inc36
-rw-r--r--config/freeswitch/freeswitch.xml14
2 files changed, 31 insertions, 19 deletions
diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc
index fbc34bde..83871601 100644
--- a/config/freeswitch/freeswitch.inc
+++ b/config/freeswitch/freeswitch.inc
@@ -35,11 +35,6 @@
*/
-$freeswitch_build_version = "1.0.3";
-$freeswitch_build_revision = "12228";
-$freeswitch_package_version = "0.8.1";
-
-
function guid()
{
if (function_exists('com_create_guid')){
@@ -1677,10 +1672,7 @@ function sync_package_freeswitch()
function freeswitch_php_install_command()
{
global $config;
- global $freeswitch_build_version;
- global $freeswitch_build_revision;
- global $freeswitch_package_version;
-
+ $freeswitch_package_version = "0.8.2";
conf_mount_rw();
config_lock();
@@ -1691,8 +1683,28 @@ function freeswitch_php_install_command()
exec("mkdir /usr/local/www/freeswitch/");
}
- exec("tar zxvf /tmp/freeswitch.tgz -C /usr/local/");
- unlink_if_exists("/tmp/freeswitch.tgz");
+ $struname = exec('uname -v');
+ if (stristr($struname, 'FreeBSD 7.0')) {
+ $freebsd_version = "7.0";
+ exec("cd /tmp; fetch
+http://www.portableusbapps.com/packages/config/freeswitch/freeswitch.1.jun.2009.tgz");
+ exec("tar zxvf /tmp/freeswitch.1.jun.2009.tgz -C
+/usr/local/");
+ unlink_if_exists("/tmp/freeswitch.1.jun.2009.tgz");
+
+ $freeswitch_build_version = "1.0.2";
+ $freeswitch_build_revision = "";
+ }
+ else {
+ exec("cd /tmp; fetch
+http://www.portableusbapps.com/packages/config/freeswitch/freeswitch.tgz");
+ exec("tar zxvf /tmp/freeswitch.tgz -C /usr/local/");
+ unlink_if_exists("/tmp/freeswitch.tgz");
+
+ $freeswitch_build_version = "1.0.3";
+ $freeswitch_build_revision = "12228";
+ }
+
//make a backup copy of the default config
exec("cp -R /usr/local/freeswitch/conf /usr/local/freeswitch/conf.rev".$freeswitch_build_revision.".orig");
@@ -2243,4 +2255,4 @@ function freeswitch_deinstall_command()
}
-?> \ No newline at end of file
+?>
diff --git a/config/freeswitch/freeswitch.xml b/config/freeswitch/freeswitch.xml
index 3fa497de..58ea5165 100644
--- a/config/freeswitch/freeswitch.xml
+++ b/config/freeswitch/freeswitch.xml
@@ -44,7 +44,7 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>FreeSWITCH Settings</name>
- <version>0.8.1</version>
+ <version>0.8.2</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
@@ -113,11 +113,6 @@
</tabs>
<configpath>installedpackages->package->$packagename->configuration->freeswitchsettings</configpath>
<additional_files_needed>
- <prefix>/tmp/</prefix>
- <chmod>0755</chmod>
- <item>http://www.portableusbapps.com/packages/config/freeswitch/freeswitch.tgz</item>
- </additional_files_needed>
- <additional_files_needed>
<prefix>/usr/local/pkg/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/freeswitch/freeswitch.inc</item>
@@ -167,6 +162,11 @@
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/freeswitch/libodbc.so.1</item>
</additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/lib/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/freeswitch/libiconv.so.3</item>
+ </additional_files_needed>
<additional_files_needed>
<prefix>/tmp/</prefix>
<chmod>0755</chmod>
@@ -484,4 +484,4 @@
<custom_php_deinstall_command>
freeswitch_deinstall_command();
</custom_php_deinstall_command>
-</packagegui> \ No newline at end of file
+</packagegui>