From: <abe...@us...> - 2015-09-16 21:35:37
|
Revision: 7247 http://sourceforge.net/p/astlinux/code/7247 Author: abelbeck Date: 2015-09-16 21:35:35 +0000 (Wed, 16 Sep 2015) Log Message: ----------- sipsak, new package SIP-swiss-army-knife, enabled for Asterisk builds Ref: http://blog.krisk.org/2010/10/breaking-rfc-compliance-to-improve.html Modified Paths: -------------- branches/1.0/astlinux-ast11.config branches/1.0/astlinux-ast13.config branches/1.0/astlinux18.config branches/1.0/initrd.config branches/1.0/package/Config.in branches/1.0/runnix-uclibc.config branches/1.0/runnix.config Added Paths: ----------- branches/1.0/package/sipsak/ branches/1.0/package/sipsak/Config.in branches/1.0/package/sipsak/sipsak-0001-support-D-option-retransmits.patch branches/1.0/package/sipsak/sipsak-0002-fix-string-off-by-one-bugs.patch branches/1.0/package/sipsak/sipsak.mk Modified: branches/1.0/astlinux-ast11.config =================================================================== --- branches/1.0/astlinux-ast11.config 2015-09-12 15:44:14 UTC (rev 7246) +++ branches/1.0/astlinux-ast11.config 2015-09-16 21:35:35 UTC (rev 7247) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn7194-dirty Configuration -# Sat Aug 15 19:23:13 2015 +# Buildroot 2011.08-svn7246-dirty Configuration +# Wed Sep 16 16:25:07 2015 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -781,6 +781,7 @@ # BR2_PACKAGE_SER2NET is not set BR2_PACKAGE_SHELLINABOX=y BR2_PACKAGE_SIPGREP=y +BR2_PACKAGE_SIPSAK=y # BR2_PACKAGE_SOCAT is not set # BR2_PACKAGE_SPAWN_FCGI is not set # BR2_PACKAGE_SQUID is not set Modified: branches/1.0/astlinux-ast13.config =================================================================== --- branches/1.0/astlinux-ast13.config 2015-09-12 15:44:14 UTC (rev 7246) +++ branches/1.0/astlinux-ast13.config 2015-09-16 21:35:35 UTC (rev 7247) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn7194-dirty Configuration -# Sat Aug 15 19:23:16 2015 +# Buildroot 2011.08-svn7246-dirty Configuration +# Wed Sep 16 16:25:12 2015 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -781,6 +781,7 @@ # BR2_PACKAGE_SER2NET is not set BR2_PACKAGE_SHELLINABOX=y BR2_PACKAGE_SIPGREP=y +BR2_PACKAGE_SIPSAK=y # BR2_PACKAGE_SOCAT is not set # BR2_PACKAGE_SPAWN_FCGI is not set # BR2_PACKAGE_SQUID is not set Modified: branches/1.0/astlinux18.config =================================================================== --- branches/1.0/astlinux18.config 2015-09-12 15:44:14 UTC (rev 7246) +++ branches/1.0/astlinux18.config 2015-09-16 21:35:35 UTC (rev 7247) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn7194-dirty Configuration -# Sat Aug 15 19:23:12 2015 +# Buildroot 2011.08-svn7246-dirty Configuration +# Wed Sep 16 16:25:04 2015 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -781,6 +781,7 @@ # BR2_PACKAGE_SER2NET is not set BR2_PACKAGE_SHELLINABOX=y BR2_PACKAGE_SIPGREP=y +BR2_PACKAGE_SIPSAK=y # BR2_PACKAGE_SOCAT is not set # BR2_PACKAGE_SPAWN_FCGI is not set # BR2_PACKAGE_SQUID is not set Modified: branches/1.0/initrd.config =================================================================== --- branches/1.0/initrd.config 2015-09-12 15:44:14 UTC (rev 7246) +++ branches/1.0/initrd.config 2015-09-16 21:35:35 UTC (rev 7247) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn7194-dirty Configuration -# Sat Aug 15 19:23:35 2015 +# Buildroot 2011.08-svn7246-dirty Configuration +# Wed Sep 16 16:25:17 2015 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -628,6 +628,7 @@ # BR2_PACKAGE_SAMBA is not set # BR2_PACKAGE_SER2NET is not set # BR2_PACKAGE_SIPGREP is not set +# BR2_PACKAGE_SIPSAK is not set # BR2_PACKAGE_SOCAT is not set # BR2_PACKAGE_SPAWN_FCGI is not set # BR2_PACKAGE_SQUID is not set Modified: branches/1.0/package/Config.in =================================================================== --- branches/1.0/package/Config.in 2015-09-12 15:44:14 UTC (rev 7246) +++ branches/1.0/package/Config.in 2015-09-16 21:35:35 UTC (rev 7247) @@ -526,6 +526,7 @@ source "package/ser2net/Config.in" source "package/shellinabox/Config.in" source "package/sipgrep/Config.in" +source "package/sipsak/Config.in" source "package/socat/Config.in" source "package/spawn-fcgi/Config.in" source "package/squid/Config.in" Added: branches/1.0/package/sipsak/Config.in =================================================================== --- branches/1.0/package/sipsak/Config.in (rev 0) +++ branches/1.0/package/sipsak/Config.in 2015-09-16 21:35:35 UTC (rev 7247) @@ -0,0 +1,12 @@ +config BR2_PACKAGE_SIPSAK + bool "sipsak" + select BR2_PACKAGE_OPENSSL + default n + help + sipsak is a small command line tool for developers and administrators of Session Initiation Protocol (SIP) applications. + It can be used for some simple tests on SIP applications and devices. + + http://sourceforge.net/projects/sipsak.berlios/ + http://linux.die.net/man/1/sipsak + https://github.com/sipwise/sipsak + Added: branches/1.0/package/sipsak/sipsak-0001-support-D-option-retransmits.patch =================================================================== --- branches/1.0/package/sipsak/sipsak-0001-support-D-option-retransmits.patch (rev 0) +++ branches/1.0/package/sipsak/sipsak-0001-support-D-option-retransmits.patch 2015-09-16 21:35:35 UTC (rev 7247) @@ -0,0 +1,12 @@ +diff -urN sipsak-0.9.6.orig/transport.c sipsak-0.9.6/transport.c +--- sipsak-0.9.6.orig/transport.c 2006-01-28 16:11:34.000000000 -0500 ++++ sipsak-0.9.6/transport.c 2010-10-26 18:38:51.000000000 -0400 +@@ -286,7 +286,7 @@ + } + } + senddiff = deltaT(&(srt->starttime), &(srt->recvtime)); +- if (senddiff > (float)64 * (float)SIP_T1) { ++ if (senddiff > inv_final) { + if (timing == 0) { + if (verbose>0) + printf("*** giving up, no final response after %.3f ms\n", senddiff); Added: branches/1.0/package/sipsak/sipsak-0002-fix-string-off-by-one-bugs.patch =================================================================== --- branches/1.0/package/sipsak/sipsak-0002-fix-string-off-by-one-bugs.patch (rev 0) +++ branches/1.0/package/sipsak/sipsak-0002-fix-string-off-by-one-bugs.patch 2015-09-16 21:35:35 UTC (rev 7247) @@ -0,0 +1,58 @@ +diff --git a/helper.c b/helper.c +index b09963c..4fbbae5 100644 +--- a/helper.c ++++ b/helper.c +@@ -508,12 +508,12 @@ void get_fqdn(){ + memset(&hlp, 0, sizeof(hlp)); + + if (hostname) { +- strncpy(fqdn, hostname, FQDN_SIZE); +- strncpy(hname, hostname, 100); ++ strncpy(fqdn, hostname, FQDN_SIZE-1); ++ strncpy(hname, hostname, sizeof(hname)-1); + } + else { + if ((uname(&un))==0) { +- strncpy(hname, un.nodename, 100); ++ strncpy(hname, un.nodename, sizeof(hname)-1); + } + else { + if (gethostname(&hname[0], namelen) < 0) { +@@ -532,7 +532,7 @@ void get_fqdn(){ + snprintf(fqdn, FQDN_SIZE, "%s.%s", hname, dname); + } + else { +- strncpy(fqdn, hname, FQDN_SIZE); ++ strncpy(fqdn, hname, FQDN_SIZE-1); + } + #endif + } +@@ -541,15 +541,15 @@ void get_fqdn(){ + he=gethostbyname(hname); + if (he) { + if (numeric == 1) { +- snprintf(hlp, 15, "%s", inet_ntoa(*(struct in_addr *) he->h_addr_list[0])); +- strncpy(fqdn, hlp, FQDN_SIZE); ++ snprintf(hlp, sizeof(hlp), "%s", inet_ntoa(*(struct in_addr *) he->h_addr_list[0])); ++ strncpy(fqdn, hlp, FQDN_SIZE-1); + } + else { + if ((strchr(he->h_name, '.'))!=NULL && (strchr(hname, '.'))==NULL) { +- strncpy(fqdn, he->h_name, FQDN_SIZE); ++ strncpy(fqdn, he->h_name, FQDN_SIZE-1); + } + else { +- strncpy(fqdn, hname, FQDN_SIZE); ++ strncpy(fqdn, hname, FQDN_SIZE-1); + } + } + } +@@ -561,7 +561,7 @@ void get_fqdn(){ + if ((strchr(fqdn, '.'))==NULL) { + if (hostname) { + fprintf(stderr, "warning: %s is not resolvable... continouing anyway\n", fqdn); +- strncpy(fqdn, hostname, FQDN_SIZE); ++ strncpy(fqdn, hostname, FQDN_SIZE-1); + } + else { + fprintf(stderr, "error: this FQDN or IP is not valid: %s\n", fqdn); Added: branches/1.0/package/sipsak/sipsak.mk =================================================================== --- branches/1.0/package/sipsak/sipsak.mk (rev 0) +++ branches/1.0/package/sipsak/sipsak.mk 2015-09-16 21:35:35 UTC (rev 7247) @@ -0,0 +1,27 @@ +############################################################# +# +# sipsak +# +############################################################# + +SIPSAK_VERSION = 0.9.6-1 +SIPSAK_SOURCE = sipsak-$(SIPSAK_VERSION).tar.gz +SIPSAK_SITE = http://downloads.sourceforge.net/project/sipsak.berlios +SIPSAK_DEPENDENCIES = openssl + +# Generate a modern ./configure +SIPSAK_AUTORECONF = YES + +SIPSAK_CONF_OPT += \ + --disable-gnutls \ + --enable-timeout=150 + +define SIPSAK_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/sipsak $(TARGET_DIR)/usr/bin/sipsak +endef + +define SIPSAK_UNINSTALL_TARGET_CMDS + rm -f $(TARGET_DIR)/usr/bin/sipsak +endef + +$(eval $(call AUTOTARGETS,package,sipsak)) Modified: branches/1.0/runnix-uclibc.config =================================================================== --- branches/1.0/runnix-uclibc.config 2015-09-12 15:44:14 UTC (rev 7246) +++ branches/1.0/runnix-uclibc.config 2015-09-16 21:35:35 UTC (rev 7247) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn7194-dirty Configuration -# Sat Aug 15 19:23:25 2015 +# Buildroot 2011.08-svn7246-dirty Configuration +# Wed Sep 16 16:25:16 2015 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -952,6 +952,7 @@ # BR2_PACKAGE_SAMBA is not set # BR2_PACKAGE_SER2NET is not set # BR2_PACKAGE_SIPGREP is not set +# BR2_PACKAGE_SIPSAK is not set # BR2_PACKAGE_SOCAT is not set # BR2_PACKAGE_SPAWN_FCGI is not set Modified: branches/1.0/runnix.config =================================================================== --- branches/1.0/runnix.config 2015-09-12 15:44:14 UTC (rev 7246) +++ branches/1.0/runnix.config 2015-09-16 21:35:35 UTC (rev 7247) @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Buildroot 2011.08-svn7194-dirty Configuration -# Sat Aug 15 19:23:19 2015 +# Buildroot 2011.08-svn7246-dirty Configuration +# Wed Sep 16 16:25:15 2015 # BR2_HAVE_DOT_CONFIG=y # BR2_arm is not set @@ -665,6 +665,7 @@ # BR2_PACKAGE_SAMBA is not set # BR2_PACKAGE_SER2NET is not set # BR2_PACKAGE_SIPGREP is not set +# BR2_PACKAGE_SIPSAK is not set # BR2_PACKAGE_SOCAT is not set # BR2_PACKAGE_SPAWN_FCGI is not set # BR2_PACKAGE_SQUID is not set This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |