pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/kiax Initial import of kiax 0.8.4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/483c65375e1d
branches:  trunk
changeset: 507008:483c65375e1d
user:      reinoud <reinoud%pkgsrc.org@localhost>
date:      Wed Jan 25 00:00:03 2006 +0000

description:
Initial import of kiax 0.8.4

In the process of the development of Asterisk a new protocol has gathered
the attention among the VoIP users - the Inter-Asterisk eXchange, or IAX
(TM), Protocol, used as a the native communication protocol between
Asterisk PBX Servers. What is particularly good in it is that it requires
only one UDP port per endpoint to create a successful communication channel
for VoIP calls. This makes it much friendlier for users behind NAT, which
is not the case with SIP and H.323 - they required specific router
configurations for their channel establishment, thus hindering faster
spread of VoIP on the home and corporate desktop.

diffstat:

 net/kiax/DESCR            |   9 +++++++
 net/kiax/Makefile         |  32 +++++++++++++++++++++++++
 net/kiax/PLIST            |  13 ++++++++++
 net/kiax/distinfo         |  14 +++++++++++
 net/kiax/patches/patch-aa |  49 +++++++++++++++++++++++++++++++++++++++
 net/kiax/patches/patch-ab |  13 ++++++++++
 net/kiax/patches/patch-ac |  17 +++++++++++++
 net/kiax/patches/patch-ad |  14 +++++++++++
 net/kiax/patches/patch-ae |  32 +++++++++++++++++++++++++
 net/kiax/patches/patch-af |  12 +++++++++
 net/kiax/patches/patch-ag |  39 +++++++++++++++++++++++++++++++
 net/kiax/patches/patch-ah |  58 +++++++++++++++++++++++++++++++++++++++++++++++
 net/kiax/patches/patch-ai |  13 ++++++++++
 13 files changed, 315 insertions(+), 0 deletions(-)

diffs (truncated from 367 to 300 lines):

diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/DESCR    Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,9 @@
+In the process of the development of Asterisk a new protocol has gathered the
+attention among the VoIP users - the Inter-Asterisk eXchange, or IAX (TM),
+Protocol, used as a the native communication protocol between Asterisk PBX
+Servers. What is particularly good in it is that it requires only one UDP port
+per endpoint to create a successful communication channel for VoIP calls. This
+makes it much friendlier for users behind NAT, which is not the case with SIP
+and H.323 - they required specific router configurations for their channel
+establishment, thus hindering faster spread of VoIP on the home and corporate
+desktop.
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/Makefile Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+#
+
+DISTNAME=              kiax-0.8.4
+CATEGORIES=            comms net audio
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=kiax/}
+EXTRACT_SUFX=          .tar.bz2
+
+MAINTAINER=            reinoud%NetBSD.org@localhost
+HOMEPAGE=              http://www.kiax.org/
+COMMENT=               Open internet telephony system
+
+USE_PKGLOCALEDIR=      yes
+USE_TOOLS+=            gmake pkg-config
+HAS_CONFIGURE=         yes
+
+do-configure:
+       (cd ${WRKSRC} && ${QTDIR}/bin/qmake -o Makefile qkiax.pro)
+       (cd ${WRKSRC}/src && ${QTDIR}/bin/qmake -o Makefile src.pro)
+
+LDFLAGS+=      -lossaudio
+
+# Fix hardcoded paths
+SUBST_CLASSES+=                path
+SUBST_MESSAGE.path=    Fixing hardcoded paths.
+SUBST_STAGE.path=      pre-configure
+SUBST_FILES.path=      src/src.pro bin/Makefile
+SUBST_SED.path=                -e 's:/usr/local:${PREFIX}:g'
+
+.include "../../x11/qt3-libs/buildlink3.mk"
+.include "../../x11/qt3-tools/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/PLIST    Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+bin/kiax
+share/kiax/icons/contact.png
+share/kiax/icons/dial.png
+share/kiax/icons/failed.png
+share/kiax/icons/hangup.png
+share/kiax/icons/hold.png
+share/kiax/icons/incoming.png
+share/kiax/icons/missed.png
+share/kiax/icons/outgoing.png
+share/kiax/icons/resume.png
+@dirrm share/kiax/icons
+@dirrm share/kiax
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/distinfo Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+SHA1 (kiax-0.8.4.tar.bz2) = 8889ad5051b24e4508db404b73431b5f3fcef88f
+RMD160 (kiax-0.8.4.tar.bz2) = 90d214096d447118e9e9bd312ed8745fccef0164
+Size (kiax-0.8.4.tar.bz2) = 606213 bytes
+SHA1 (patch-aa) = 869f66fbbc3c8b99499a12704940c3c5b3187385
+SHA1 (patch-ab) = f356568cacfb9558bacd98a9f3d691f087fc6aba
+SHA1 (patch-ac) = 3f92904dbe0a5c7768f5f0a0bd2dcd3b8e25ab20
+SHA1 (patch-ad) = f17a1dfb2f163dac5e40d869a5d8e9b01d39d0f5
+SHA1 (patch-ae) = 6b74195590491a8dbdf6a69258377ae3132cae96
+SHA1 (patch-af) = b2492a4aff367ec1330948bb4c7dc093152da59c
+SHA1 (patch-ag) = 07ff66762038b7a8049aa48c4df35387effe86e6
+SHA1 (patch-ah) = 09e7fe192d0e9d495f42ec6149601df3e3ea893d
+SHA1 (patch-ai) = be877fd098ac4a8218261d98c9a5498e44d6fb10
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/patches/patch-aa Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- lib/Makefile.orig  2005-04-05 23:53:41.000000000 +0200
++++ lib/Makefile
+@@ -160,6 +160,12 @@ OBJS_LINUX=\
+       portaudio/pa_unix_oss/pa_unix_oss.o \
+       portaudio/pa_unix_oss/pa_unix.o 
+ 
++OBJS_NETBSD=\
++      unixfuncs.o \
++      portmixer/px_unix_oss/px_unix_oss.o \
++      portaudio/pa_unix_oss/pa_unix_oss.o \
++      portaudio/pa_unix_oss/pa_unix.o 
++
+ OBJS_SOLARIS=\
+       unixfuncs.o \
+       portmixer/px_solaris/px_solaris.o \
+@@ -203,6 +209,9 @@ else
+ ifneq (,$(findstring SunOS,$(shell uname)))
+ OSTYPE=SOLARIS
+ else
++ifneq (,$(findstring NetBSD,$(shell uname)))
++OSTYPE=NETBSD
++else
+ $(warning OSTYPE cannot be detected, assuming Linux)
+ OSTYPE=LINUX
+ endif
+@@ -210,6 +219,7 @@ endif
+ endif
+ endif
+ endif
++endif
+ 
+ # Setup platform-specific stuff based on gleaning
+ ifeq ($(OSTYPE),WIN32)
+@@ -226,6 +236,13 @@ DYNCFLAGS=-fPIC
+ DYNLIB=libiaxclient.so
+ endif
+ 
++ifeq ($(OSTYPE),NETBSD)
++OBJS:= $(OBJS) $(OBJS_NETBSD) 
++DYNCFLAGS=-fPIC
++DYNLIB=libiaxclient.so
++DYNLDFLAGS= -lossaudio
++endif
++
+ ifeq ($(OSTYPE),SOLARIS)
+ OBJS:= $(OBJS) $(OBJS_SOLARIS) 
+ CFLAGS:= $(CFLAGS) -DALIGN32 
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/patches/patch-ab Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- lib/portaudio/pa_unix_oss/pa_unix_oss.c.orig       2005-04-05 23:53:41.000000000 +0200
++++ lib/portaudio/pa_unix_oss/pa_unix_oss.c
+@@ -43,7 +43,7 @@
+ #ifdef __linux__
+ #include <linux/soundcard.h>
+ #else
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #include <sys/soundcard.h>
+ #else
+ #include <machine/soundcard.h> /* JH20010905 */
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/patches/patch-ac Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- lib/portmixer/px_unix_oss/px_unix_oss.c.orig       2005-04-05 23:53:41.000000000 +0200
++++ lib/portmixer/px_unix_oss/px_unix_oss.c
+@@ -38,8 +38,12 @@
+ #ifdef __linux__
+ #include <linux/soundcard.h>
+ #else
++#if defined(__FreeBSD__) || defined(__NetBSD__)
++#include <sys/soundcard.h>
++#else
+ #include <machine/soundcard.h> /* JH20010905 */
+ #endif
++#endif
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/patches/patch-ad Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- lib/libiax2/src/iax-client.h.orig  2005-04-05 23:53:41.000000000 +0200
++++ lib/libiax2/src/iax-client.h
+@@ -19,7 +19,8 @@
+ #pragma warning(disable:4200)
+ #endif
+ 
+-#ifndef LINUX
++#if defined(LINUX) || defined(__FreeBSD__) || defined(__NetBSD__)
++#else
+ #define socklen_t int
+ #endif
+ 
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/patches/patch-ae Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-ae,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- lib/libiax2/src/iax.c.orig 2005-04-13 19:30:39.000000000 +0200
++++ lib/libiax2/src/iax.c
+@@ -55,9 +55,11 @@ void gettimeofday(struct timeval *tv, st
+ #ifndef MACOSX
+ #include <malloc.h>
+ #ifndef SOLARIS
++#if !defined(__NetBSD__) && !defined(__FreeBSD__)
+ #include <error.h>
+ #endif
+ #endif
++#endif
+ 
+ #endif
+ 
+@@ -87,11 +89,15 @@ void gettimeofday(struct timeval *tv, st
+ #else
+ #ifdef SOLARIS
+ #define IAX_SOCKOPTS MSG_DONTWAIT
++#else
++#ifdef __NetBSD__
++#define IAX_SOCKOPTS MSG_DONTWAIT
+ #else  /* Linux and others */
+ #define IAX_SOCKOPTS MSG_DONTWAIT | MSG_NOSIGNAL
+ #endif
+ #endif
+ #endif
++#endif
+ 
+ 
+ #ifdef SNOM_HACK
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/patches/patch-af Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-af,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- src/iaxwrapper.cpp.orig    2005-04-11 12:36:24.000000000 +0200
++++ src/iaxwrapper.cpp
+@@ -18,6 +18,7 @@
+  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+  ***************************************************************************/
+ #include "iaxwrapper.h"
++#include <stdlib.h>
+ 
+ IaxWrapper* callbackCaller;
+ 
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/patches/patch-ag Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,39 @@
+$NetBSD: patch-ag,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- lib/portaudio/pa_unix_oss/pa_unix.c.orig   2005-04-05 23:53:41.000000000 +0200
++++ lib/portaudio/pa_unix_oss/pa_unix.c
+@@ -422,11 +422,13 @@ static PaError PaHost_WatchDogProc( PaHo
+     maxPri = sched_get_priority_max(SCHEDULER_POLICY);
+     if( schp.sched_priority > maxPri ) schp.sched_priority = maxPri;
+ 
+-    if (sched_setscheduler(0, SCHEDULER_POLICY, &schp) != 0)
++#ifndef __NetBSD__
++    if (sched_setscheduler(0, SCHEDULER_POLICY, &schp) != ENOSYS)
+     {
+         ERR_RPT(("PaHost_WatchDogProc: cannot set watch dog priority!\n"));
+         goto killAudio;
+     }
++#endif
+ 
+     /* Compare watchdog time with audio and canary thread times. */
+     /* Sleep for a while or until thread cancelled. */
+@@ -465,7 +467,8 @@ static PaError PaHost_WatchDogProc( PaHo
+ lowerAudio:
+     {
+         struct sched_param    schat = { 0 };
+-        if( sched_setscheduler(pahsc->pahsc_AudioThreadPID, SCHED_OTHER, &schat) != 0)
++#ifndef __NetBSD__
++        if( sched_setscheduler(pahsc->pahsc_AudioThreadPID, SCHED_OTHER, &schat) != ENOSYS)
+         {
+             ERR_RPT(("PaHost_WatchDogProc: failed to lower audio priority. errno = %d\n", errno ));
+             /* Fall through into killing audio thread. */
+@@ -475,6 +478,9 @@ lowerAudio:
+             ERR_RPT(("PaHost_WatchDogProc: lowered audio priority to prevent hogging of CPU.\n"));
+             goto cleanup;
+         }
++#else
++      goto cleanup;
++#endif
+     }
+ 
+ killAudio:
diff -r 7eb1eaff8830 -r 483c65375e1d net/kiax/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kiax/patches/patch-ah Wed Jan 25 00:00:03 2006 +0000
@@ -0,0 +1,58 @@
+$NetBSD: patch-ah,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- lib/unixfuncs.c.orig       2005-04-05 23:53:41.000000000 +0200
++++ lib/unixfuncs.c
+@@ -88,6 +88,16 @@ int iaxc_prioboostend() {
+     /* TODO */
+ }
+ 



Home | Main Index | Thread Index | Old Index