diff options
-rw-r--r-- | testing/ortp/APKBUILD | 47 | ||||
-rw-r--r-- | testing/ortp/ortp-0.16.1-retval.patch | 20 | ||||
-rw-r--r-- | testing/ortp/ortp-0.16.1-unusedvar.patch | 42 | ||||
-rw-r--r-- | testing/sngtc_client/APKBUILD | 46 | ||||
-rw-r--r-- | testing/sngtc_client/sngtc_client-dynamic-ortp.patch | 13 |
5 files changed, 168 insertions, 0 deletions
diff --git a/testing/ortp/APKBUILD b/testing/ortp/APKBUILD new file mode 100644 index 0000000000..bc419952a4 --- /dev/null +++ b/testing/ortp/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=ortp +pkgver=0.16.1 +pkgrel=0 +pkgdesc="A C library implementing the RTP protocol (RFC3550)" +url="http://www.linphone.org/index.php/code_review/ortp" +arch="all" +license="LGPLv2+ VSL" +depends="" +makedepends="" +install="" +subpackages="$pkgname-dev" +source="http://nongnu.askapache.com/linphone/ortp/sources/ortp-$pkgver.tar.gz + ortp-0.16.1-retval.patch + ortp-0.16.1-unusedvar.patch + " + +_builddir="$srcdir"/ortp-$pkgver +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 +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --disable-static \ + --enable-ipv6 \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="bc96cdcb9c139d366a720a94200f92dd ortp-0.16.1.tar.gz +cdd971e04073b3de2e935e6ff502110f ortp-0.16.1-retval.patch +f3323a01f3d82279c3ce5ed1bb1969c5 ortp-0.16.1-unusedvar.patch" diff --git a/testing/ortp/ortp-0.16.1-retval.patch b/testing/ortp/ortp-0.16.1-retval.patch new file mode 100644 index 0000000000..679f8d7d49 --- /dev/null +++ b/testing/ortp/ortp-0.16.1-retval.patch @@ -0,0 +1,20 @@ +diff -up ortp-0.16.1/src/stun.c.retval ortp-0.16.1/src/stun.c +--- ortp-0.16.1/src/stun.c.retval 2010-09-04 10:14:53.000000000 +0200 ++++ ortp-0.16.1/src/stun.c 2010-09-04 10:15:10.000000000 +0200 +@@ -1191,6 +1191,7 @@ stunRand(void) + int maxFd=0; + struct timeval tv; + int e; ++ int res; + + int fd=open("/dev/random",O_RDONLY); + +@@ -1213,7 +1214,7 @@ stunRand(void) + closesocket(fd); + return random(); + } +- read(fd,&tick,sizeof(tick)); ++ res = read(fd,&tick,sizeof(tick)); + closesocket(fd); + } + #else diff --git a/testing/ortp/ortp-0.16.1-unusedvar.patch b/testing/ortp/ortp-0.16.1-unusedvar.patch new file mode 100644 index 0000000000..0e5d18c868 --- /dev/null +++ b/testing/ortp/ortp-0.16.1-unusedvar.patch @@ -0,0 +1,42 @@ +diff -up ortp-0.16.1/src/stun.c.unusedvar ortp-0.16.1/src/stun.c +--- ortp-0.16.1/src/stun.c.unusedvar 2011-03-15 12:35:33.000000000 +0000 ++++ ortp-0.16.1/src/stun.c 2011-03-15 12:35:33.000000000 +0000 +@@ -1191,7 +1191,7 @@ stunRand(void) + int maxFd=0; + struct timeval tv; + int e; +- int res; ++ __attribute__((__unused__)) int res; + + int fd=open("/dev/random",O_RDONLY); + +@@ -1985,7 +1985,7 @@ stunSendTest( Socket myFd, StunAddress4 + + bool_t changePort=FALSE; + bool_t changeIP=FALSE; +- bool_t discard=FALSE; ++ __attribute__((__unused__)) bool_t discard=FALSE; + + StunMessage req; + char buf[STUN_MAX_MESSAGE_SIZE]; +@@ -2154,7 +2154,7 @@ stunNatType( StunAddress4 *dest, + + bool_t respTestI=FALSE; + bool_t isNat=TRUE; +- StunAddress4 testIchangedAddr; ++ __attribute__((__unused__)) StunAddress4 testIchangedAddr; + StunAddress4 testImappedAddr; + bool_t respTestI2=FALSE; + bool_t mappedIpSame = TRUE; +diff -up ortp-0.16.1/src/tests/rtprecv.c.unusedvar ortp-0.16.1/src/tests/rtprecv.c +--- ortp-0.16.1/src/tests/rtprecv.c.unusedvar 2011-03-15 12:36:28.000000000 +0000 ++++ ortp-0.16.1/src/tests/rtprecv.c 2011-03-15 12:36:53.000000000 +0000 +@@ -162,7 +162,7 @@ int main(int argc, char*argv[]) + if (err>0) stream_received=1; + /* this is to avoid to write to disk some silence before the first RTP packet is returned*/ + if ((stream_received) && (err>0)) { +- size_t ret = fwrite(buffer,1,err,outfile); ++ __attribute__((__unused__)) size_t ret = fwrite(buffer,1,err,outfile); + if (sound_fd>0) + ret = write(sound_fd,buffer,err); + } diff --git a/testing/sngtc_client/APKBUILD b/testing/sngtc_client/APKBUILD new file mode 100644 index 0000000000..cb1a48f281 --- /dev/null +++ b/testing/sngtc_client/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=sngtc_client +pkgver=1.3.2 +pkgrel=0 +pkgdesc="Sangoma Media Transcode client and lib" +url="http://wiki.sangoma.com/Transcoding-distributed-install" +arch="all" +license="LGPL" +depends="" +makedepends="ortp-dev" +install="" +subpackages="$pkgname-dev" +# 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 +# our archs. +source="ftp://ftp.sangoma.com/linux/transcoding/sng-tc-linux-$pkgver.i686.tgz + sngtc_client-dynamic-ortp.patch" + +_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 + # use dynamic ortp from system + rm -r client/sngtc_client/*ortp* +} + +build() { + cd "$_builddir" + make libsngtc libsngtc_node sngtc_client || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" libsngtc_node-install sngtc_client-install || return 1 +} + +md5sums="6db4f71d2cd798f7802b71300d476e5a sng-tc-linux-1.3.2.i686.tgz +2c6b702af7ec9adc144823000012336c sngtc_client-dynamic-ortp.patch" diff --git a/testing/sngtc_client/sngtc_client-dynamic-ortp.patch b/testing/sngtc_client/sngtc_client-dynamic-ortp.patch new file mode 100644 index 0000000000..0c873ab0b4 --- /dev/null +++ b/testing/sngtc_client/sngtc_client-dynamic-ortp.patch @@ -0,0 +1,13 @@ +diff --git a/client/sngtc_client/Makefile b/client/sngtc_client/Makefile +index cd8550e..77f891e 100644 +--- a/client/sngtc_client/Makefile ++++ b/client/sngtc_client/Makefile +@@ -18,7 +18,7 @@ LDFLAGS += -L. -L../../lib + .PHONY: all + all: $(toolname) + +-$(toolname): sngtc_client.o libortp.a ++$(toolname): sngtc_client.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) + + .PHONY: clean |