summaryrefslogtreecommitdiff
path: root/net/kiax
diff options
context:
space:
mode:
authorreinoud <reinoud>2006-01-25 00:00:03 +0000
committerreinoud <reinoud>2006-01-25 00:00:03 +0000
commitd51aed7dedc30a9b3adade06963bc58fcd679fbf (patch)
tree935ded5ffc7c06e81b1436a2218efce61f8d7fc9 /net/kiax
parentb7569a8f0ea8e7c4c52c4312bc845d0b2f02b071 (diff)
downloadpkgsrc-d51aed7dedc30a9b3adade06963bc58fcd679fbf.tar.gz
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 (limited to 'net/kiax')
-rw-r--r--net/kiax/DESCR9
-rw-r--r--net/kiax/Makefile32
-rw-r--r--net/kiax/PLIST13
-rw-r--r--net/kiax/distinfo14
-rw-r--r--net/kiax/patches/patch-aa49
-rw-r--r--net/kiax/patches/patch-ab13
-rw-r--r--net/kiax/patches/patch-ac17
-rw-r--r--net/kiax/patches/patch-ad14
-rw-r--r--net/kiax/patches/patch-ae32
-rw-r--r--net/kiax/patches/patch-af12
-rw-r--r--net/kiax/patches/patch-ag39
-rw-r--r--net/kiax/patches/patch-ah58
-rw-r--r--net/kiax/patches/patch-ai13
13 files changed, 315 insertions, 0 deletions
diff --git a/net/kiax/DESCR b/net/kiax/DESCR
new file mode 100644
index 00000000000..1e61d47df9e
--- /dev/null
+++ b/net/kiax/DESCR
@@ -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 --git a/net/kiax/Makefile b/net/kiax/Makefile
new file mode 100644
index 00000000000..729e1fcd376
--- /dev/null
+++ b/net/kiax/Makefile
@@ -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
+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 --git a/net/kiax/PLIST b/net/kiax/PLIST
new file mode 100644
index 00000000000..c1942a0136c
--- /dev/null
+++ b/net/kiax/PLIST
@@ -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 --git a/net/kiax/distinfo b/net/kiax/distinfo
new file mode 100644
index 00000000000..6bd5caf17d1
--- /dev/null
+++ b/net/kiax/distinfo
@@ -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 --git a/net/kiax/patches/patch-aa b/net/kiax/patches/patch-aa
new file mode 100644
index 00000000000..75ea0dbd8b2
--- /dev/null
+++ b/net/kiax/patches/patch-aa
@@ -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 --git a/net/kiax/patches/patch-ab b/net/kiax/patches/patch-ab
new file mode 100644
index 00000000000..891440dd86e
--- /dev/null
+++ b/net/kiax/patches/patch-ab
@@ -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 --git a/net/kiax/patches/patch-ac b/net/kiax/patches/patch-ac
new file mode 100644
index 00000000000..9fd67966386
--- /dev/null
+++ b/net/kiax/patches/patch-ac
@@ -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 --git a/net/kiax/patches/patch-ad b/net/kiax/patches/patch-ad
new file mode 100644
index 00000000000..c8417950721
--- /dev/null
+++ b/net/kiax/patches/patch-ad
@@ -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 --git a/net/kiax/patches/patch-ae b/net/kiax/patches/patch-ae
new file mode 100644
index 00000000000..c1450a68546
--- /dev/null
+++ b/net/kiax/patches/patch-ae
@@ -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 --git a/net/kiax/patches/patch-af b/net/kiax/patches/patch-af
new file mode 100644
index 00000000000..33860cbdbed
--- /dev/null
+++ b/net/kiax/patches/patch-af
@@ -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 --git a/net/kiax/patches/patch-ag b/net/kiax/patches/patch-ag
new file mode 100644
index 00000000000..04e0774824d
--- /dev/null
+++ b/net/kiax/patches/patch-ag
@@ -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 --git a/net/kiax/patches/patch-ah b/net/kiax/patches/patch-ah
new file mode 100644
index 00000000000..64637b9f0b5
--- /dev/null
+++ b/net/kiax/patches/patch-ah
@@ -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 */
+ }
+
++#endif
++
++#ifdef __NetBSD__
++
++int iaxc_prioboostbegin() {
++}
++
++int iaxc_prioboostend() {
++}
++
+ #else
+
+
+@@ -194,11 +204,13 @@ static int WatchDogProc( prioboost *b
+ maxPri = sched_get_priority_max(SCHEDULER_POLICY);
+ if( schp.sched_priority > maxPri ) schp.sched_priority = maxPri;
+
+- if (pthread_setschedparam(pthread_self(), SCHEDULER_POLICY, &schp) != 0)
++#ifndef __NetBSD__
++ if (pthread_setschedparam(pthread_self(), SCHEDULER_POLICY, &schp) != ENOSYS)
+ {
+ ERR_RPT("WatchDogProc: cannot set watch dog priority!\n");
+ goto killAudio;
+ }
++#endif
+
+ DBUG("prioboost: WatchDog priority set to level %d!\n", schp.sched_priority);
+
+@@ -237,9 +249,10 @@ static int WatchDogProc( prioboost *b
+ return 0;
+
+ lowerAudio:
++#ifndef __NetBSD__
+ {
+ struct sched_param schat = { 0 };
+- if( pthread_setschedparam(b->ThreadID, SCHED_OTHER, &schat) != 0)
++ if( pthread_setschedparam(b->ThreadID, SCHED_OTHER, &schat) != ENOSYS)
+ {
+ ERR_RPT("WatchDogProc: failed to lower audio priority. errno = %d\n", errno );
+ /* Fall through into killing audio thread. */
+@@ -250,6 +263,9 @@ lowerAudio:
+ goto cleanup;
+ }
+ }
++#else
++ goto cleanup;
++#endif
+
+ killAudio:
+ ERR_RPT("WatchDogProc: killing hung audio thread!\n");
diff --git a/net/kiax/patches/patch-ai b/net/kiax/patches/patch-ai
new file mode 100644
index 00000000000..8573b5f9479
--- /dev/null
+++ b/net/kiax/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1.1.1 2006/01/25 00:00:03 reinoud Exp $
+
+--- lib/libiax2/src/md5.c.orig 2005-04-05 23:53:41.000000000 +0200
++++ lib/libiax2/src/md5.c
+@@ -1,7 +1,7 @@
+ /* MD5 checksum routines used for authentication. Not covered by GPL, but
+ in the public domain as per the copyright below */
+
+-#ifdef FREEBSD
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ # include <machine/endian.h>
+ #elif defined(LINUX)
+ # include <endian.h>