New package: belle-sip-1.6.3

This commit is contained in:
John 2017-08-23 16:43:19 +02:00 committed by maxice8
parent 3e54c8084d
commit 4ae3a84242
4 changed files with 55 additions and 0 deletions

View file

@ -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

1
srcpkgs/belle-sip-devel Symbolic link
View file

@ -0,0 +1 @@
belle-sip

View file

@ -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);

View file

@ -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 <johnz@posteo.net>"
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
}
}