mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-22 21:36:28 +00:00
install_prereq: Checkout of libSRTP 2.x.
Since Asterisk 13.17, libSRTP 2.x is supported. Therefore, its latest version is installed again via the script install_prereq. ASTERISK-27356 Change-Id: I13125839a79052356469e41edacbebff0a937d39
This commit is contained in:
@@ -165,22 +165,18 @@ install_unpackaged() {
|
|||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Only install libsrtp if it wasn't installed via package
|
# Only install libsrtp2 if it wasn't installed via package
|
||||||
if ! test -f /usr/include/srtp/srtp.h; then
|
if ! test -f /usr/include/srtp/srtp.h; then
|
||||||
echo "*** Installing libsrtp ***"
|
if ! test -f /usr/include/srtp2/srtp.h; then
|
||||||
if [ ! -d libsrtp ]; then
|
echo "*** Installing libsrtp2 ***"
|
||||||
git clone https://github.com/cisco/libsrtp.git
|
wget -O - http://github.com/cisco/libsrtp/archive/v2.tar.gz | zcat | tar -xf -
|
||||||
cd libsrtp
|
cd libsrtp-2
|
||||||
else
|
./configure --enable-openssl
|
||||||
cd libsrtp
|
make shared_library uninstall install
|
||||||
git pull
|
cd ..
|
||||||
|
echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf
|
||||||
|
/sbin/ldconfig
|
||||||
fi
|
fi
|
||||||
git checkout "1_5_x_throttle"
|
|
||||||
./configure --disable-debug --disable-stdout --enable-openssl
|
|
||||||
make shared_library uninstall install
|
|
||||||
cd ..
|
|
||||||
echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf
|
|
||||||
/sbin/ldconfig
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Only install pjproject if it wasn't installed via package
|
# Only install pjproject if it wasn't installed via package
|
||||||
|
Reference in New Issue
Block a user