forked from norman/fusionpbx-install.sh-github-mirror
Updated to work better with Debian 13 - Trixie
This commit is contained in:
20
debian/resources/switch/source-release.sh
vendored
20
debian/resources/switch/source-release.sh
vendored
@@ -17,6 +17,7 @@ apt install -y liblua5.2-dev libtiff5-dev libperl-dev libcurl4-openssl-dev libsq
|
|||||||
apt install -y devscripts libspeexdsp-dev libspeex-dev libldns-dev libedit-dev libopus-dev libmemcached-dev
|
apt install -y devscripts libspeexdsp-dev libspeex-dev libldns-dev libedit-dev libopus-dev libmemcached-dev
|
||||||
apt install -y libshout3-dev libmpg123-dev libmp3lame-dev yasm nasm libsndfile1-dev libuv1-dev libvpx-dev
|
apt install -y libshout3-dev libmpg123-dev libmp3lame-dev yasm nasm libsndfile1-dev libuv1-dev libvpx-dev
|
||||||
apt install -y libavformat-dev libswscale-dev libvlc-dev sox libsox-fmt-all
|
apt install -y libavformat-dev libswscale-dev libvlc-dev sox libsox-fmt-all
|
||||||
|
apt install -y libpcre3-dev libtiff5-dev
|
||||||
|
|
||||||
#install dependencies that depend on the operating system version
|
#install dependencies that depend on the operating system version
|
||||||
if [ ."$os_codename" = ."noble" ]; then
|
if [ ."$os_codename" = ."noble" ]; then
|
||||||
@@ -32,19 +33,13 @@ if [ ."$os_codename" = ."bullseye" ]; then
|
|||||||
apt install -y python3-distutils mlocate libvpx6 swig4.0
|
apt install -y python3-distutils mlocate libvpx6 swig4.0
|
||||||
fi
|
fi
|
||||||
if [ ."$os_codename" = ."trixie" ]; then
|
if [ ."$os_codename" = ."trixie" ]; then
|
||||||
apt install -y python3-distutils-extra plocate
|
apt install -y python3-distutils-extra plocate libtiff-dev libpcre2-dev swig
|
||||||
fi
|
|
||||||
|
|
||||||
#use master branch for Debian 13 for now
|
|
||||||
if [ ."$os_codename" = ."trixie" ]; then
|
|
||||||
switch_branch=master
|
|
||||||
switch_version=1.10.13
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# additional dependencies
|
# additional dependencies
|
||||||
apt install -y sqlite3 unzip
|
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
|
# 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 the following dependencies if the switch version is greater than 1.10.0
|
||||||
@@ -69,6 +64,9 @@ if [ ."$switch_branch" = ."master" ] || [ $(echo "$switch_version" | tr -d '.')
|
|||||||
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
|
||||||
cd sofia-sip
|
cd sofia-sip
|
||||||
|
elif [ ."$os_codename" = ."trixie" ]; then
|
||||||
|
git clone https://github.com/freeswitch/sofia-sip.git sofia-sip
|
||||||
|
cd sofia-sip
|
||||||
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
|
||||||
@@ -83,7 +81,11 @@ if [ ."$switch_branch" = ."master" ] || [ $(echo "$switch_version" | tr -d '.')
|
|||||||
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
|
||||||
if [ ."$sofia_version" != ."master" ] && [ ."$switch_branch" != ."master" ]; then
|
if [ ."$sofia_version" != ."master" ]; then
|
||||||
|
echo ""
|
||||||
|
elif [ ."$os_codename" = ."trixie" ]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
git reset --hard 0d2e6ac65e0e8f53d652665a743015a88bf048d4
|
git reset --hard 0d2e6ac65e0e8f53d652665a743015a88bf048d4
|
||||||
fi
|
fi
|
||||||
#/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
|
||||||
|
|||||||
Reference in New Issue
Block a user