From 0e83f0b891243bb9f66ae22de36f8c0cc1b30596 Mon Sep 17 00:00:00 2001 From: cshore Date: Tue, 24 Aug 2010 13:21:35 +0000 Subject: [PATCH] [packages] net/freeswitch: Use /usr/share/freeswitch as prefix; this means freeswitch files not in bin, lib, or include will be stored under /usr/share/freeswitch. Modify the configuration so that recordings are stored on /var/lib/freeswitch/recordings by default (this is a tmpfs so should be change if persistance is needed). Allow the scripts and htdocs to have their directories set individually instead of requirings them to be under /usr/share/freeswitch. git-svn-id: svn://svn.openwrt.org/openwrt/packages@22782 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/freeswitch/files/etc.minimal/vars.xml | 2 +- net/freeswitch/files/freeswitch.default | 6 +++++- net/freeswitch/files/freeswitch.init | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/net/freeswitch/files/etc.minimal/vars.xml b/net/freeswitch/files/etc.minimal/vars.xml index e2efd7af7..de1186a06 100644 --- a/net/freeswitch/files/etc.minimal/vars.xml +++ b/net/freeswitch/files/etc.minimal/vars.xml @@ -199,5 +199,5 @@ - + diff --git a/net/freeswitch/files/freeswitch.default b/net/freeswitch/files/freeswitch.default index 61c247819..079c314a7 100644 --- a/net/freeswitch/files/freeswitch.default +++ b/net/freeswitch/files/freeswitch.default @@ -3,5 +3,9 @@ FS_DIR_ETC="$FS_DIR/etc/freeswitch" FS_DIR_MOD="$FS_DIR/usr/lib/freeswitch" FS_DIR_DB="$FS_DIR/tmp/freeswitch/db" FS_DIR_LOG="$FS_DIR/tmp/freeswitch/log" +FS_DIR_SCRIPTS="$FS_DIR/usr/share/freeswitch/scripts" +FS_DIR_HTDOCS="$FS_DIR/usr/share/freeswitch/htdocs" +FS_DIR_RECORDINGS="/var/lib/freeswitch/recordings" # NOTE: must be changed in config as well +FS_DIR_VM_STORAGE="/var/lib/freeswitch/storage" # NOTE: must be changed in config as well -OPTIONS="-conf $FS_DIR_ETC -log $FS_DIR_LOG -db $FS_DIR_DB -mod $FS_DIR_MOD" +OPTIONS="-conf $FS_DIR_ETC -log $FS_DIR_LOG -db $FS_DIR_DB -mod $FS_DIR_MOD -htdocs $FS_DIR_HTDOCS -scripts $FS_DIR_SCRIPTS" diff --git a/net/freeswitch/files/freeswitch.init b/net/freeswitch/files/freeswitch.init index 8637556aa..4476b47bd 100644 --- a/net/freeswitch/files/freeswitch.init +++ b/net/freeswitch/files/freeswitch.init @@ -14,6 +14,8 @@ start() { [ -f $DEFAULT ] && . $DEFAULT mkdir -p $FS_DIR_DB mkdir -p $FS_DIR_LOG + mkdir -p $FS_DIR_RECORDINGS + mkdir -p $FS_DIR_VM_STORAGE ulimit -s 240 $FS_DIR/usr/bin/freeswitch $OPTIONS -nc }