Browse Source

n/ring-daemon: Upgraded to ring-daemon-20180718.1.af8399f.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
43e84980ce
  1. 6
      n/ring-daemon/checksums
  2. 33
      n/ring-daemon/ring-daemon.SlackBuild

6
n/ring-daemon/checksums

@ -1,4 +1,4 @@
c8c83a70662ad786c5aac82745eebf72b114358cf4c505b3c392f377312cae71 ring_20180718.1.af8399f.tar.gz
e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0 libnatpmp-20150609.tar.gz
701c66702842c8f559274ea054bc43fa18f0266bc7d179d230f90365ee57fe23 opendht-6f3eafc5eea1b456a625bdf473419464eb0b202a.tar.gz
2f5a1da1c174d845871c758bd80fbb580fca7799d3cfaa0d3c4e082b5161c7b4 pjproject-2.6.tar.bz2
ab4cca4e8491faf2784c361d95c0e63808d2ce04004e3f2426e5909c979d879d ring-daemon-4.0.0.tar.gz
9c2c828abab7626edf18e04b041ef274bfaa86f99adf2c25ff56f1509e813772 pjproject-2.7.2.tar.bz2
5fced76228ca2603cd9f80a5537fc568cc9f19d139107a03dc1f0c40e9489476 opendht-1.7.3rc4.tar.gz

33
n/ring-daemon/ring-daemon.SlackBuild

@ -25,24 +25,24 @@
# Latest ring-daemon sourcecode is available at: <https://www.ring.cx/>.
#
# Depends: l/yaml-cpp, l/jsoncpp, xap/ffmpeg, l/argon2, l/restbed
# Depends: l/msgpack-c, l/cryptopp
# Depends: l/msgpack-c, l/secp256k1
# Recommends: l/libdbus-c++, l/opus, l/speex, l/libgsm
# Optional: ap/jack, l/libilbc
# Source package infos
NAMESRC=${NAMESRC:-ring-daemon}
VERSION=${VERSION:-4.0.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/savoirfairelinux/ring-daemon/archive/$VERSION.tar.gz}
NAMESRC=${NAMESRC:-ring}
VERSION=${VERSION:-20180718.1.af8399f}
ARCHIVE=${ARCHIVE:-${NAMESRC}_$VERSION.tar.gz}
WGET=${WGET:-https://dl.ring.cx/ring-release/tarballs/$ARCHIVE}
# Bundled dependencies
NATPMP_VERSION=${NATPMP_VERSION:-20150609}
NATPMP_ARCHIVE=${NATPMP_ARCHIVE:-libnatpmp-$NATPMP_VERSION.tar.gz}
NATPMP_WGET=${NATPMP_URL:-http://miniupnp.free.fr/files/download.php?file=$NATPMP_ARCHIVE}
PJPROJECT_VERSION=${PJPROJECT_VERSION:-2.6}
PJPROJECT_VERSION=${PJPROJECT_VERSION:-2.7.2}
PJPROJECT_ARCHIVE=${PJPROJECT_ARCHIVE:-pjproject-$PJPROJECT_VERSION.tar.bz2}
PJPROJECT_WGET=${PJPROJECT_WGET:-http://www.pjsip.org/release/2.6/$PJPROJECT_ARCHIVE}
OPENDHT_VERSION=${OPENDHT_VERSION:-6f3eafc5eea1b456a625bdf473419464eb0b202a}
PJPROJECT_WGET=${PJPROJECT_WGET:-http://www.pjsip.org/release/$PJPROJECT_VERSION/$PJPROJECT_ARCHIVE}
OPENDHT_VERSION=${OPENDHT_VERSION:-1.7.3rc4}
OPENDHT_ARCHIVE=${OPENDHT_ARCHIVE:-opendht-$OPENDHT_VERSION.tar.gz}
OPENDHT_WGET=${OPENDHT_WGET:-https://github.com/savoirfairelinux/opendht/archive/$OPENDHT_VERSION.tar.gz}
@ -122,8 +122,8 @@ rm -f $TMP/ring-daemon/bundle/lib/libnatpmp.so*
# Building bundled pjproject
cd $TMP/ring-daemon/$PJPROJECT_NAME
for patch in gnutls notestsapps ipv6 ice_config multiple_listeners pj_ice_sess fix_turn_fallback fix_ioqueue_ipv6_sendto add_dtls_transport ; do
patch -p 1 < $TMP/ring-daemon/$NAME/contrib/src/pjproject/$patch.patch
for patch in gnutls notestsapps ipv6 ice_config multiple_listeners pj_ice_sess fix_turn_fallback fix_ioqueue_ipv6_sendto add_dtls_transport rfc6062 ; do
patch -p 1 < $TMP/ring-daemon/$NAME/daemon/contrib/src/pjproject/$patch.patch
done
PJPROJECT_EXTRA_CFLAGS="-DPJ_ICE_MAX_CAND=256 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000 -DPJ_ICE_ST_MAX_CAND=32"
PJPROJECT_EXTRA_CXXFLAGS="$PJPROJECT_EXTRA_CFLAGS -std=gnu++11"
@ -161,7 +161,7 @@ make install
cd $TMP/ring-daemon/$OPENDHT_NAME
./autogen.sh
CFLAGS="$CPUOPT" \
CXXFLAGS="$CPUOPT -std=c++11" \
CXXFLAGS="$CPUOPT -std=c++14" \
./configure \
--prefix=$TMP/ring-daemon/bundle \
--disable-tools \
@ -177,10 +177,10 @@ make -j $JOBS
make install
# Build ring-daemon itself
cd $TMP/ring-daemon/$NAME
cd $TMP/ring-daemon/$NAME/daemon
./autogen.sh
CFLAGS="$CPUOPT" \
CXXFLAGS="$CPUOPT -std=c++11" \
CXXFLAGS="$CPUOPT" \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
@ -201,8 +201,9 @@ sed -i 's,-lnatpmp,,' $PKG/usr/lib$LIBDIRSUFFIX/libring.la
gzip -9 $PKG/usr/man/man1/dring.1
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS CODING COPYING ChangeLog NEWS README $PKG/usr/doc/$NAME
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS CODING COPYING ChangeLog NEWS README \
$PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -210,7 +211,6 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
argon2
cryptopp
ffmpeg
jsoncpp
libdbus-c++
@ -218,6 +218,7 @@ libgsm
msgpack-c
opus
restbed
secp256k1
speex
yaml-cpp
EOF

Loading…
Cancel
Save