Work on the dependency version if statements.
This commit is contained in:
parent
4831b73000
commit
100220418c
|
|
@ -35,44 +35,45 @@ apt install -y sqlite3 unzip
|
||||||
#we are about to move out of the executing directory so we need to preserve it to return after we are done
|
#we are about to move out of the executing directory so we need to preserve it to return after we are done
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
|
||||||
if [ $(echo "$switch_version" | tr -d '.') -gt 1103 ]
|
#install the following dependencies if the switch version is greater than 1.10.0
|
||||||
then
|
if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
|
||||||
# libks build-requirements
|
|
||||||
apt install -y cmake uuid-dev
|
|
||||||
|
|
||||||
# libks
|
# libks build-requirements
|
||||||
cd /usr/src
|
apt install -y cmake uuid-dev
|
||||||
git clone https://github.com/signalwire/libks.git libks
|
|
||||||
cd libks
|
|
||||||
cmake .
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# libks C includes
|
# libks
|
||||||
export C_INCLUDE_PATH=/usr/include/libks
|
cd /usr/src
|
||||||
|
git clone https://github.com/signalwire/libks.git libks
|
||||||
|
cd libks
|
||||||
|
cmake .
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
# sofia-sip
|
# libks C includes
|
||||||
cd /usr/src
|
export C_INCLUDE_PATH=/usr/include/libks
|
||||||
#git clone https://github.com/freeswitch/sofia-sip.git sofia-sip
|
|
||||||
wget https://github.com/freeswitch/sofia-sip/archive/refs/tags/v$sofia_version.zip
|
|
||||||
unzip v$sofia_version.zip
|
|
||||||
rm -R sofia-sip
|
|
||||||
mv sofia-sip-$sofia_version sofia-sip
|
|
||||||
cd sofia-sip
|
|
||||||
sh autogen.sh
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# spandsp
|
# sofia-sip
|
||||||
cd /usr/src
|
cd /usr/src
|
||||||
git clone https://github.com/freeswitch/spandsp.git spandsp
|
#git clone https://github.com/freeswitch/sofia-sip.git sofia-sip
|
||||||
cd spandsp
|
wget https://github.com/freeswitch/sofia-sip/archive/refs/tags/v$sofia_version.zip
|
||||||
sh autogen.sh
|
unzip v$sofia_version.zip
|
||||||
./configure
|
rm -R sofia-sip
|
||||||
make
|
mv sofia-sip-$sofia_version sofia-sip
|
||||||
make install
|
cd sofia-sip
|
||||||
ldconfig
|
sh autogen.sh
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
# spandsp
|
||||||
|
cd /usr/src
|
||||||
|
git clone https://github.com/freeswitch/spandsp.git spandsp
|
||||||
|
cd spandsp
|
||||||
|
sh autogen.sh
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
ldconfig
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Using version $switch_version"
|
echo "Using version $switch_version"
|
||||||
|
|
@ -80,18 +81,22 @@ cd /usr/src
|
||||||
#git clone -b v1.8 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
|
#git clone -b v1.8 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
|
||||||
|
|
||||||
#1.8 and older
|
#1.8 and older
|
||||||
#wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.zip
|
if [ $(echo "$switch_version" | tr -d '.') -lt 1100 ]; then
|
||||||
#rm -R freeswitch
|
#wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.zip
|
||||||
#unzip freeswitch-$switch_version.zip
|
#rm -R freeswitch
|
||||||
#mv freeswitch-$switch_version freeswitch
|
#unzip freeswitch-$switch_version.zip
|
||||||
#cd /usr/src/freeswitch
|
#mv freeswitch-$switch_version freeswitch
|
||||||
|
#cd /usr/src/freeswitch
|
||||||
|
end
|
||||||
|
|
||||||
#1.10.0 and newer
|
#1.10.0 and newer
|
||||||
wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip
|
if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
|
||||||
unzip freeswitch-$switch_version.-release.zip
|
wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip
|
||||||
rm -R freeswitch
|
unzip freeswitch-$switch_version.-release.zip
|
||||||
mv freeswitch-$switch_version.-release freeswitch
|
rm -R freeswitch
|
||||||
cd /usr/src/freeswitch
|
mv freeswitch-$switch_version.-release freeswitch
|
||||||
|
cd /usr/src/freeswitch
|
||||||
|
fi
|
||||||
|
|
||||||
# bootstrap is needed if using git
|
# bootstrap is needed if using git
|
||||||
#./bootstrap.sh -j
|
#./bootstrap.sh -j
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue