Update source-release.sh

This commit is contained in:
FusionPBX 2017-05-20 16:31:45 -06:00 committed by GitHub
parent 838e9f534a
commit c72302c431
1 changed files with 11 additions and 11 deletions

View File

@ -13,25 +13,25 @@ cwd=$(pwd)
echo "Installing the FreeSWITCH source"
#install minimum dependencies
pkg install --yes autoconf automake curl git gmake ldns libedit libtool openssl pcre pkgconf speex sqlite3
pkg install --yes gcc49 wget sudo libsndfile lua52 opus libmemcached libvorbis libogg tiff memcached
pkg install --yes gcc49 autoconf automake curl git gmake ldns libedit libtool openssl pcre pkgconf speex sqlite3
pkg install --yes wget sudo libsndfile lua52 opus libmemcached libvorbis libogg tiff memcached
#additional dependencies
#pkg install --yes libshout mpg123 lame
#get the source from git and run boostrap
#git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
#cd /usr/src/freeswitch && /bin/sh /usr/src/freeswitch/bootstrap.sh -j
#get the release from https
cd /usr/src && fetch https://files.freeswitch.org/freeswitch-releases/freeswitch-1.6.17.zip
cd /usr/src && unzip /usr/src/freeswitch-1.6.17.zip
mv /usr/src/freeswitch-1.6.17 /usr/src/freeswitch
#set environment variables
set CC gcc49
set CFLAGS '-Wno-error -std=gnu99'
#get the source from git and run boostrap
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
cd /usr/src/freeswitch && /bin/sh /usr/src/freeswitch/bootstrap.sh -j
#get the release from https
#cd /usr/src && fetch https://files.freeswitch.org/freeswitch-releases/freeswitch-1.6.17.zip
#cd /usr/src && unzip /usr/src/freeswitch-1.6.17.zip
#mv /usr/src/freeswitch-1.6.17 /usr/src/freeswitch
#enable the modules
sed -i' ' -e s:'#applications/mod_avmd:applications/mod_avmd:' /usr/src/freeswitch/modules.conf
sed -i' ' -e s:'#applications/mod_callcenter:applications/mod_callcenter:' /usr/src/freeswitch/modules.conf