Updated to work better with Debian 13 - Trixie

This commit is contained in:
FusionPBX
2026-05-03 17:36:42 -06:00
committed by GitHub
parent ba8f626058
commit 3758a7af12

View File

@@ -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 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 libpcre3-dev libtiff5-dev
#install dependencies that depend on the operating system version
if [ ."$os_codename" = ."noble" ]; then
@@ -32,19 +33,13 @@ if [ ."$os_codename" = ."bullseye" ]; then
apt install -y python3-distutils mlocate libvpx6 swig4.0
fi
if [ ."$os_codename" = ."trixie" ]; then
apt install -y python3-distutils-extra plocate
fi
#use master branch for Debian 13 for now
if [ ."$os_codename" = ."trixie" ]; then
switch_branch=master
switch_version=1.10.13
apt install -y python3-distutils-extra plocate libtiff-dev libpcre2-dev swig
fi
# additional dependencies
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)
#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
git clone https://github.com/freeswitch/sofia-sip.git 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
wget https://github.com/freeswitch/sofia-sip/archive/refs/tags/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
git clone https://github.com/freeswitch/spandsp.git 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
fi
#/usr/bin/sed -i 's/AC_PREREQ(\[2\.71\])/AC_PREREQ([2.69])/g' /usr/src/spandsp/configure.ac