From 4ae3a842420ce812305027acd6eb5e4327e7513c Mon Sep 17 00:00:00 2001 From: John Date: Wed, 23 Aug 2017 16:43:19 +0200 Subject: [PATCH] New package: belle-sip-1.6.3 --- common/shlibs | 1 + srcpkgs/belle-sip-devel | 1 + srcpkgs/belle-sip/patches/musl.patch | 26 ++++++++++++++++++++++++++ srcpkgs/belle-sip/template | 27 +++++++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 120000 srcpkgs/belle-sip-devel create mode 100644 srcpkgs/belle-sip/patches/musl.patch create mode 100644 srcpkgs/belle-sip/template diff --git a/common/shlibs b/common/shlibs index acdcc767d46..755b4648a80 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3390,3 +3390,4 @@ librem.so rem-0.5.3_1 libshp.so.1 shapelib-1.4.1_1 libantlr3c.so libantlr3c-3.4_1 libbzrtp.so.0 bzrtp-1.0.6_1 +libbellesip.so.0 belle-sip-1.5.0_1 diff --git a/srcpkgs/belle-sip-devel b/srcpkgs/belle-sip-devel new file mode 120000 index 00000000000..a36d7e5d6bb --- /dev/null +++ b/srcpkgs/belle-sip-devel @@ -0,0 +1 @@ +belle-sip \ No newline at end of file diff --git a/srcpkgs/belle-sip/patches/musl.patch b/srcpkgs/belle-sip/patches/musl.patch new file mode 100644 index 00000000000..2bbbddb198b --- /dev/null +++ b/srcpkgs/belle-sip/patches/musl.patch @@ -0,0 +1,26 @@ +--- src/belle_sip_resolver.c 2018-02-21 17:30:40.474348393 +0100 ++++ - 2018-02-21 17:32:31.892044464 +0100 +@@ -459,7 +459,11 @@ + } + + static void append_dns_result(belle_sip_simple_resolver_context_t *ctx, struct addrinfo **ai_list, struct sockaddr *addr, socklen_t addrlen){ ++#if defined(__GLIBC__) + char host[NI_MAXHOST + 1]; ++#else ++ char host[1026]; ++#endif + int gai_err; + int family=ctx->family; + +@@ -529,7 +533,11 @@ + append_dns_result(ctx,&ctx->ai_list,(struct sockaddr*)&sin,sizeof(sin)); + if (rr.ttl < BELLE_SIP_RESOLVER_CONTEXT(ctx)->min_ttl) BELLE_SIP_RESOLVER_CONTEXT(ctx)->min_ttl = rr.ttl; + } else if ((ctx->type == DNS_T_SRV) && (rr.class == DNS_C_IN) && (rr.type == DNS_T_SRV)) { ++#if defined(__GLIBC__) + char host[NI_MAXHOST + 1]; ++#else ++ char host[1026]; ++#endif + struct dns_srv *srv = &any.srv; + belle_sip_dns_srv_t * b_srv=belle_sip_dns_srv_create(srv); + snprintf(host, sizeof(host), "[target:%s port:%d prio:%d weight:%d]", srv->target, srv->port, srv->priority, srv->weight); diff --git a/srcpkgs/belle-sip/template b/srcpkgs/belle-sip/template new file mode 100644 index 00000000000..d33de8f9533 --- /dev/null +++ b/srcpkgs/belle-sip/template @@ -0,0 +1,27 @@ +# Template file for 'belle-sip' +pkgname=belle-sip +version=1.6.3 +revision=1 +wrksrc="${pkgname}-${version}-0" +build_style=cmake +configure_args="-DANTLR3_JAR_PATH=/usr/share/java/antlr3.jar -DENABLE_STRICT=OFF" +hostmakedepends="antlr3-bin" +makedepends="mbedtls-devel libantlr3c bctoolbox-devel zlib-devel" +short_desc="SIP (RFC3261) implementation written in C" +maintainer="John " +license="GPL-2.0-or-later" +homepage="https://www.linphone.org" +distfiles="https://www.linphone.org/releases/sources/belle-sip/belle-sip-${version}.tar.gz" +checksum=3f3807078b177e50a5ed97aaf8d7f6e77532df3205153e1b2957f557df9ba568 + +belle-sip-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + vmove usr/share/BelleSIP/cmake + } +}