aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-05-01 13:59:17 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-05-01 13:59:57 +0000
commit81b763bf74215acaa84f8947e97291ac59dc3a3c (patch)
treec4e3f43432b1e9748523f68fe3a5f4f5d85970c2
parent0b2dfa57adb670c99dcbb389e6e77f8025cabccc (diff)
downloadaports-81b763bf74215acaa84f8947e97291ac59dc3a3c.tar.gz
aports-81b763bf74215acaa84f8947e97291ac59dc3a3c.tar.bz2
aports-81b763bf74215acaa84f8947e97291ac59dc3a3c.tar.xz
main/sngtc_client: upgrade to 1.3.9
-rw-r--r--main/sngtc_client/APKBUILD46
-rw-r--r--main/sngtc_client/ortp.patch16
2 files changed, 32 insertions, 30 deletions
diff --git a/main/sngtc_client/APKBUILD b/main/sngtc_client/APKBUILD
index 2f5d02e094..75cb3fbfaf 100644
--- a/main/sngtc_client/APKBUILD
+++ b/main/sngtc_client/APKBUILD
@@ -1,17 +1,16 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sngtc_client
-pkgver=1.3.7
-pkgrel=1
+pkgver=1.3.9
+pkgrel=0
pkgdesc="Sangoma Media Transcode client and lib"
url="https://wiki.sangoma.com/Transcoding-distributed-install"
arch="all"
license="LGPL"
-depends=""
-depends_dev="$pkgname"
-makedepends="ortp-dev linux-headers"
-install=""
+options="!check" #no test suite
+makedepends="ortp-dev linux-headers bctoolbox-dev"
subpackages="$pkgname-dev"
+depends_dev="$pkgname=$pkgver-r$pkgrel"
# they ship firmware updater and server lib as precompiled closed source
# thats why the source package holds <arch>. The client code appears to
# be equal on both i686 an x86_64 so we just pick i686 package for all
@@ -20,42 +19,29 @@ source="ftp://ftp.sangoma.com/linux/transcoding/sng-tc-linux-$pkgver.i686.tgz
sngtc_client-dynamic-ortp.patch
musl-fix-types.patch
ortp.patch"
+builddir="$srcdir"/sng-tc-linux-$pkgver.i686
-_builddir="$srcdir"/sng-tc-linux-$pkgver.i686
-prepare() {
- local i
- cd "$_builddir"
-
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+prepare() {
+ default_prepare
# use dynamic ortp from system
rm -r client/sngtc_client/*ortp*
}
build() {
- cd "$_builddir"
- make libsngtc libsngtc_node sngtc_client || return 1
+ make libsngtc libsngtc_node sngtc_client
+}
+
+check() {
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" libsngtc_node-install sngtc_client-install || return 1
+ make DESTDIR="$pkgdir" libsngtc_node-install sngtc_client-install
mkdir -p "$pkgdir"/usr/include/sng_tc
cp server/libsngtc/*.h "$pkgdir"/usr/include/sng_tc/
}
-md5sums="ab75ca8a1436fa6f0cf550f6771acf03 sng-tc-linux-1.3.7.i686.tgz
-2c6b702af7ec9adc144823000012336c sngtc_client-dynamic-ortp.patch
-d8e7aab5a189163457e72af5befcc8aa musl-fix-types.patch
-e9c6076ba8fb08ac680e92df1feb7795 ortp.patch"
-sha256sums="36710561a7726c6bc8b781222e36cd1029d269da9e107d4a8828276517afd897 sng-tc-linux-1.3.7.i686.tgz
-7b1ce78357184e58073b010c1074866bdeefe855aeda204793f476274ad0beed sngtc_client-dynamic-ortp.patch
-38d91bed0a5cefdac07d2fa2600e61b6580e2e90f6056b7b2db3a39ca355cb85 musl-fix-types.patch
-e22f77b4ce280e2c436143eab8a7170eaee7a21ef393b5be655181ab2efa5587 ortp.patch"
-sha512sums="d7b2887ea8ba164884c9fe50f5cd5682613055e4efa2694b87b03ea377bedd8682660df106637a231535455c05fffa13d8382c11d9e2ebfa4ccd13ab045f6b4c sng-tc-linux-1.3.7.i686.tgz
+sha512sums="c0449499418260a2bc2aafe7ae864ec72865a38e5af621a438265c32ae348f6c954f5029b0f56abecfc31a1a1022f7a3fb8b301589f98f681009db56d43d1afc sng-tc-linux-1.3.9.i686.tgz
2b784c56d1482ad9069502c408138d0c0b0ea6b393902d45b09200a3a588e02138c21a1fbee4d5715711e578130c30c607cae59f7ee24b8ce5bccd5a9c2fce14 sngtc_client-dynamic-ortp.patch
008447bf7c8f690cc9ee5efd232dee1b4f3f35e94827a518f88a7c46b4741b6d1e8418c32f099c807e61d7ae815467aed3a3b0134114e75574397ae324540067 musl-fix-types.patch
-33163306a2207e70a9a8535d6b1ca9706d44e5076a570525db15c47c6aeb6f58e035bfec4826f8763422a505acdad5cfa7b59c60b544f681ad319d26d75d2977 ortp.patch"
+5d1dcf45834e192f9c14681aa9e7f5fc58ae08b283f25f0565ac6522f8af06bf71585e3dd7c92ae727c86fa7bfbe7a27bd7bfcafe4913ab005d857a1fef34a56 ortp.patch"
diff --git a/main/sngtc_client/ortp.patch b/main/sngtc_client/ortp.patch
index d8d746388f..e022627b43 100644
--- a/main/sngtc_client/ortp.patch
+++ b/main/sngtc_client/ortp.patch
@@ -11,3 +11,19 @@ index b01c106..bfc504a 100644
rtp_session_set_connected_mode(session, TRUE);
+diff --git a/client/sngtc_client/sngtc_client.c b/client/sngtc_client/sngtc_client.c
+index bfc504a..8f720e2 100644
+--- a/client/sngtc_client/sngtc_client.c
++++ b/client/sngtc_client/sngtc_client.c
+@@ -1875,9 +1875,9 @@ int main(int argc, char*argv[])
+ /*ortp_scheduler_init();*/
+
+ if (globals.rtpdebug) {
+- ortp_set_log_level_mask(ORTP_DEBUG|ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
++ ortp_set_log_level_mask(NULL, ORTP_DEBUG|ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
+ } else {
+- ortp_set_log_level_mask(ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
++ ortp_set_log_level_mask(NULL, ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
+ }
+
+