Update source-release.sh
This commit is contained in:
parent
f663f3fc9c
commit
9cf2f3bc91
|
|
@ -18,44 +18,43 @@ apt install -y swig3.0 unzip sox wget
|
||||||
#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 ]
|
if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
|
||||||
then
|
# libks build-requirements
|
||||||
# libks build-requirements
|
#apt install -y cmake uuid-dev
|
||||||
#apt install -y cmake uuid-dev
|
|
||||||
|
|
||||||
# libks
|
# libks
|
||||||
#cd /usr/src
|
#cd /usr/src
|
||||||
#git clone https://github.com/signalwire/libks.git libks
|
#git clone https://github.com/signalwire/libks.git libks
|
||||||
#cd libks
|
#cd libks
|
||||||
#cmake .
|
#cmake .
|
||||||
#make
|
#make -j $(getconf _NPROCESSORS_ONLN)
|
||||||
#make install
|
#make install
|
||||||
|
|
||||||
# libks C includes
|
# libks C includes
|
||||||
#export C_INCLUDE_PATH=/usr/include/libks
|
#export C_INCLUDE_PATH=/usr/include/libks
|
||||||
|
|
||||||
# sofia-sip
|
# sofia-sip
|
||||||
cd /usr/src
|
cd /usr/src
|
||||||
#git clone https://github.com/freeswitch/sofia-sip.git sofia-sip
|
#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
|
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
|
cd sofia-sip-$sofia_version
|
||||||
sh autogen.sh
|
sh autogen.sh
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
# spandsp
|
# spandsp
|
||||||
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
|
||||||
git reset --hard 0d2e6ac65e0e8f53d652665a743015a88bf048d4
|
git reset --hard 0d2e6ac65e0e8f53d652665a743015a88bf048d4
|
||||||
/usr/bin/sed -i 's/AC_PREREQ(\[2\.71\])/AC_PREREQ([2.69])/g' /usr/src/spandsp/configure.ac
|
/usr/bin/sed -i 's/AC_PREREQ(\[2\.71\])/AC_PREREQ([2.69])/g' /usr/src/spandsp/configure.ac
|
||||||
sh autogen.sh
|
sh autogen.sh
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
ldconfig
|
ldconfig
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Using version $switch_version"
|
echo "Using version $switch_version"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue