forked from norman/fusionpbx-install.sh-github-mirror
Refactor dependency logic for libks, sofia-sip, and spandsp
This commit is contained in:
15
debian/resources/switch/source-release.sh
vendored
15
debian/resources/switch/source-release.sh
vendored
@@ -42,8 +42,8 @@ apt install -y sqlite3 unzip
|
|||||||
# preserve the executing directory, so we need to return after we are done
|
# preserve the executing directory, so we need to return after we are done
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
|
||||||
#install the following dependencies if the switch version is greater than 1.10.0
|
# install libks - dependency for switch versions greater than 1.10.0
|
||||||
if [ ."$switch_branch" = ."stable" || ."$switch_branch" = ."master" ]; then
|
if [ ! -d /usr/src/libks ]; then
|
||||||
|
|
||||||
# libks build-requirements
|
# libks build-requirements
|
||||||
apt install -y cmake uuid-dev
|
apt install -y cmake uuid-dev
|
||||||
@@ -58,8 +58,10 @@ if [ ."$switch_branch" = ."stable" || ."$switch_branch" = ."master" ]; then
|
|||||||
|
|
||||||
# libks C includes
|
# libks C includes
|
||||||
export C_INCLUDE_PATH=/usr/include/libks
|
export C_INCLUDE_PATH=/usr/include/libks
|
||||||
|
fi
|
||||||
|
|
||||||
# sofia-sip
|
# sofia-sip - dependency for switch versions greater than 1.10.0
|
||||||
|
if [ ! -d /usr/src/sofia-sip ]; then
|
||||||
cd /usr/src
|
cd /usr/src
|
||||||
if [ ."$sofia_version" = ."master" ]; then
|
if [ ."$sofia_version" = ."master" ]; then
|
||||||
git clone https://github.com/freeswitch/sofia-sip.git sofia-sip
|
git clone https://github.com/freeswitch/sofia-sip.git sofia-sip
|
||||||
@@ -70,14 +72,17 @@ if [ ."$switch_branch" = ."stable" || ."$switch_branch" = ."master" ]; then
|
|||||||
else
|
else
|
||||||
wget https://github.com/freeswitch/sofia-sip/archive/refs/tags/v$sofia_version.zip
|
wget https://github.com/freeswitch/sofia-sip/archive/refs/tags/v$sofia_version.zip
|
||||||
unzip v$sofia_version.zip
|
unzip v$sofia_version.zip
|
||||||
cd sofia-sip-$sofia_version
|
mv sofia-sip-$sofia_version sofia-sip
|
||||||
|
cd sofia-sip
|
||||||
fi
|
fi
|
||||||
sh autogen.sh
|
sh autogen.sh
|
||||||
./configure --enable-debug
|
./configure --enable-debug
|
||||||
make -j $(getconf _NPROCESSORS_ONLN)
|
make -j $(getconf _NPROCESSORS_ONLN)
|
||||||
make install
|
make install
|
||||||
|
fi
|
||||||
|
|
||||||
# spandsp
|
# spandsp - dependency for switch versions greater than 1.10.0
|
||||||
|
if [ ! -d /usr/src/spandsp ]; then
|
||||||
cd /usr/src
|
cd /usr/src
|
||||||
git clone https://github.com/freeswitch/spandsp.git spandsp
|
git clone https://github.com/freeswitch/spandsp.git spandsp
|
||||||
cd spandsp
|
cd spandsp
|
||||||
|
|||||||
Reference in New Issue
Block a user