pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/kphone Initial import of KPhone 4.0.3, a SIP (Sess...
details: https://anonhg.NetBSD.org/pkgsrc/rev/befb90847eba
branches: trunk
changeset: 478311:befb90847eba
user: scw <scw%pkgsrc.org@localhost>
date: Wed Jul 21 21:49:02 2004 +0000
description:
Initial import of KPhone 4.0.3, a SIP (Session Initiation Protocol) user
agent for *nix. (Basically, a VoIP client)
There are some rough edges in the NetBSD audio support of this package,
but it runs well enough on my esa(4)-equipped laptop to make and receive
FWD calls.
A couple of minor patches are courtesy of the FreeBSD port of Kphone.
Alistair Crooks also tidied up my first amateurish attempt at
packaging this.
diffstat:
net/kphone/DESCR | 7 ++
net/kphone/Makefile | 32 +++++++++++
net/kphone/PLIST | 14 +++++
net/kphone/distinfo | 15 +++++
net/kphone/patches/patch-aa | 13 ++++
net/kphone/patches/patch-ab | 12 ++++
net/kphone/patches/patch-ac | 122 ++++++++++++++++++++++++++++++++++++++++++++
net/kphone/patches/patch-ad | 21 +++++++
net/kphone/patches/patch-ae | 34 ++++++++++++
net/kphone/patches/patch-af | 13 ++++
net/kphone/patches/patch-ag | 18 ++++++
net/kphone/patches/patch-ah | 111 ++++++++++++++++++++++++++++++++++++++++
net/kphone/patches/patch-ai | 22 +++++++
net/kphone/patches/patch-aj | 13 ++++
net/kphone/patches/patch-ak | 31 +++++++++++
15 files changed, 478 insertions(+), 0 deletions(-)
diffs (truncated from 538 to 300 lines):
diff -r bd61d672682a -r befb90847eba net/kphone/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/DESCR Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,7 @@
+KPhone is a SIP (Session Initiation Protocol) user agent for Linux,
+with which you can initiate VoIP (Voice over IP) connections over the
+Internet. It supports Presence and Instant Messaging, and to some extent
+also video calls between two hosts.
+
+The original KPhone was written by Billy Biggs, modifications made by
+Pekka Raisio, Jouni Vuorela and Juha Heinanen at Wirlab.
diff -r bd61d672682a -r befb90847eba net/kphone/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/Makefile Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2004/07/21 21:49:02 scw Exp $
+#
+
+DISTNAME= kphone-4.0.3
+CATEGORIES= net comms
+MASTER_SITES= http://www.wirlab.net/kphone/
+
+MAINTAINER= tech-pkg%NetBSD.org@localhost
+HOMEPAGE= http://www.wirlab.net/kphone/
+COMMENT= Graphical Voice Over Internet (VoIP) phone
+
+WRKSRC= ${WRKDIR}/kphone
+
+USE_BUILDLINK3= yes
+
+USE_X11BASE= yes
+GNU_CONFIGURE= yes
+USE_GNU_TOOLS+= make
+CONFIGURE_ENV= QTDIR="${QTDIR}"
+
+PTHREAD_OPTS+= require
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/kphone/kphone ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/kphone/icons
+ ${INSTALL_DATA} ${WRKSRC}/icons/*.png ${PREFIX}/share/kphone/icons
+
+.include "../../x11/qt3-libs/buildlink3.mk"
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/ossaudio.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r bd61d672682a -r befb90847eba net/kphone/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/PLIST Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2004/07/21 21:49:02 scw Exp $
+bin/kphone
+share/kphone/icons/dial.png
+share/kphone/icons/enter.png
+share/kphone/icons/hangup.png
+share/kphone/icons/large-kphone.png
+share/kphone/icons/lo-kphone.png
+share/kphone/icons/mini-kphone.png
+share/kphone/icons/offline.png
+share/kphone/icons/online.png
+share/kphone/icons/phonebook.png
+share/kphone/icons/videocall.png
+@dirrm share/kphone/icons
+@dirrm share/kphone
diff -r bd61d672682a -r befb90847eba net/kphone/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/distinfo Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1 2004/07/21 21:49:02 scw Exp $
+
+SHA1 (kphone-4.0.3.tar.gz) = 957e8836c032fd0b5f29f7967569eb2ff101e538
+Size (kphone-4.0.3.tar.gz) = 220383 bytes
+SHA1 (patch-aa) = ecb31fdeeaf4cb2a5aafe50b5fe58b85375cfd65
+SHA1 (patch-ab) = 6edbc28aeb485b8004b6258b04d50c0888c28a31
+SHA1 (patch-ac) = 71ee825881b0a9135bdc4259c96a622e0c9cb268
+SHA1 (patch-ad) = 1017e963c72ac24b1b86f4c810222a8ee0583f33
+SHA1 (patch-ae) = be6482e3543dc990aee370aaf1750b5f802d73ac
+SHA1 (patch-af) = 5907274ec9cd14b39b6a12c9b9705907d6a649b0
+SHA1 (patch-ag) = 5b203fd99de99d447e6974487f67d4bfe79c9acb
+SHA1 (patch-ah) = f61ea22795a38eb0243ff2df40c681fdfc9ed85a
+SHA1 (patch-ai) = 4e405c8d0db5617fb814776507308864ee698818
+SHA1 (patch-aj) = 600f96693fcf6f00f0b23a76923cdf0046116936
+SHA1 (patch-ak) = 7b9bdf3f99cf5b373a82d40f6f81fd5b06a91982
diff -r bd61d672682a -r befb90847eba net/kphone/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/patches/patch-aa Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2004/07/21 21:49:02 scw Exp $
+
+--- dissipate2/extern_md5.h.orig 2004-03-04 11:22:56.000000000 +0000
++++ dissipate2/extern_md5.h 2004-07-21 12:34:43.000000000 +0100
+@@ -1,6 +1,8 @@
+ #ifndef EXTERN_MD5_H
+ #define EXTERN_MD5_H
+
++#include <sys/types.h>
++
+ #define HASHLEN 16
+ typedef u_char HASH[HASHLEN];
+ #define HASHHEXLEN 32
diff -r bd61d672682a -r befb90847eba net/kphone/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/patches/patch-ab Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1 2004/07/21 21:49:02 scw Exp $
+
+--- dissipate2/messagesocket.h.orig 2004-03-04 11:22:56.000000000 +0000
++++ dissipate2/messagesocket.h 2004-07-21 12:34:43.000000000 +0100
+@@ -23,6 +23,7 @@
+ #define MESSAGESOCKET_H_INCLUDED
+
+ #include <netdb.h>
++#include <sys/types.h>
+ #include <netinet/in.h>
+
+ class MessageSocket
diff -r bd61d672682a -r befb90847eba net/kphone/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/patches/patch-ac Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,122 @@
+$NetBSD: patch-ac,v 1.1 2004/07/21 21:49:02 scw Exp $
+
+--- dissipate2/siputil.cpp.orig 2004-03-04 11:22:57.000000000 +0000
++++ dissipate2/siputil.cpp 2004-07-21 12:11:34.000000000 +0100
+@@ -5,6 +5,9 @@
+ #include <sys/time.h>
+ #include <sys/errno.h>
+ #include <sys/ioctl.h>
++#if defined (__FreeBSD__) || defined(__NetBSD__)
++#include <ifaddrs.h>
++#endif
+ #include <net/if_arp.h>
+ #include <net/route.h>
+ #include <net/if.h>
+@@ -12,6 +15,7 @@
+ #include <arpa/inet.h>
+ #include <qmessagebox.h>
+ #include <netdb.h>
++#include <errno.h>
+ #include <fcntl.h>
+ #include <stdio.h>
+ #include <unistd.h>
+@@ -25,6 +29,8 @@
+ /* max number of network interfaces*/
+ #define MAX_IF 5
+
++#ifdef __linux__
++
+ /* Path to the route entry in proc filesystem */
+ #define PROCROUTE "/proc/net/route"
+
+@@ -40,6 +46,8 @@
+ #define SIOCGIFCOUNT 0x8935
+ #endif
+
++#endif /* not Linux */
++
+ char iface[16];
+
+
+@@ -61,6 +69,7 @@
+ */
+ char *getdefaultdev()
+ {
++#ifdef __linux__
+ FILE *fp = fopen( PROCROUTE, "r");
+ char buff[4096], gate_addr[128], net_addr[128];
+ char mask_addr[128];
+@@ -84,19 +93,49 @@
+ return iface;
+ }
+ fclose(fp);
++
+ /* didn't find a default gateway */
+ return NULL;
++#else
++ return "";
++#endif /* Linux */
+ }
+
+
+ void findFqdn( void )
+ {
+- int sock, err, if_count, i, j = 0;
++ int if_count, i, j = 0;
++#if !(defined(__FreeBSD__) || defined(__NetBSD__))
++ int sock, err;
+ struct ifconf netconf;
+ char buffer[32*MAX_IF];
+- char if_name[10][21];
+- char if_addr[10][21];
++#endif
++ char if_name[MAX_IF][21];
++ char if_addr[MAX_IF][21];
+ char *default_ifName;
++#if defined(__FreeBSD__) || defined(__NetBSD__)
++ struct ifaddrs *ifp, *oifp;
++
++ if(getifaddrs(&ifp) < 0 )
++ printf( "Error with getifaddrs(): %i.\n", errno );
++ oifp=ifp; /* save ifp */
++ for (if_count = 0; ifp != NULL; ifp = ifp->ifa_next) {
++ if(ifp->ifa_addr->sa_family != AF_INET) continue;
++
++ if ( strncmp( ifp->ifa_name, "lo", 2 ) != 0 ) {
++ if(j == MAX_IF) printf( "Error: cannot handle more than %d interfaces.\n",MAX_IF);
++ else
++ {
++ strncpy( if_name[j], ifp->ifa_name, 20);
++ strncpy( if_addr[j], inet_ntoa(((struct sockaddr_in *)ifp->ifa_addr)->sin_addr ), 20);
++ j++;
++ }
++ }
++ if_count++;
++ }
++ if (oifp != NULL) freeifaddrs(oifp);
++
++#else /* not FreeBSD or NetBSD */
+ netconf.ifc_len = 32 * MAX_IF;
+ netconf.ifc_buf = buffer;
+ sock=socket( PF_INET, SOCK_DGRAM, 0 );
+@@ -104,9 +143,11 @@
+ if ( err < 0 ) printf( "Error in ioctl: %i.\n", errno );
+ close( sock );
+ if_count = netconf.ifc_len / 32;
++#endif
+ printf( "Found %i interfaces.\n", if_count );
+
+ //#test
++#if !(defined(__FreeBSD__) || defined(__NetBSD__))
+ if ( if_count == 1 ) {
+ strncpy( if_name[j], netconf.ifc_req[0].ifr_name, 20 );
+ strncpy( if_addr[j], inet_ntoa(((struct sockaddr_in*)(&netconf.ifc_req[0].ifr_addr))->sin_addr), 20 );
+@@ -120,6 +161,8 @@
+ }
+ }
+ }
++#endif /* not FreeBSD or NetBSD */
++
+ if( j == 1 ) {
+ dissipate_our_fqdn = strdup( if_addr[0] );
+ } else {
diff -r bd61d672682a -r befb90847eba net/kphone/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/patches/patch-ad Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.1 2004/07/21 21:49:02 scw Exp $
+
+--- dissipate2/udpmessagesocket.cpp.orig 2004-03-04 11:22:57.000000000 +0000
++++ dissipate2/udpmessagesocket.cpp 2004-07-21 12:34:43.000000000 +0100
+@@ -1,5 +1,7 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <netinet/in.h>
++#include <netinet/in_systm.h>
+ #include <netinet/ip.h>
+ #include <errno.h>
+ #include <string.h>
+@@ -52,7 +54,7 @@
+ socklen_t optlen;
+ tos=IPTOS_PREC_CRITIC_ECP;
+ optlen=1;
+- if(setsockopt(socketfd,SOL_IP,IP_TOS,&tos,optlen) != 0){
++ if(setsockopt(socketfd,IPPROTO_IP,IP_TOS,&tos,optlen) != 0){
+ perror("UDPMessageSocket::SetTOS");
+ }
+ return 0;
diff -r bd61d672682a -r befb90847eba net/kphone/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/kphone/patches/patch-ae Wed Jul 21 21:49:02 2004 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ae,v 1.1 2004/07/21 21:49:02 scw Exp $
+
+--- Makefile.in.orig 2004-04-01 14:54:32.000000000 +0100
++++ Makefile.in 2004-07-21 11:44:19.000000000 +0100
+@@ -2,22 +2,22 @@
+ SUBS :=$(foreach sub,$(SUBDIRS), $(sub)/$(sub).a)
+
+ all dep:
+- @for T in $(SUBDIRS); do make -C $$T $@; done
++ @for T in $(SUBDIRS); do ${MAKE} -C $$T $@; done
+
+ install: all
+- make -C icons install
+- make -C kphone install
++ ${MAKE} -C icons install
++ ${MAKE} -C kphone install
+
+ uninstall:
+- make -C icons uninstall
+- make -C kphone uninstall
++ ${MAKE} -C icons uninstall
++ ${MAKE} -C kphone uninstall
+
+ clean:
+- @for T in $(SUBDIRS); do make -C $$T $@; done
++ @for T in $(SUBDIRS); do ${MAKE} -C $$T $@; done
+
+ distclean: clean
Home |
Main Index |
Thread Index |
Old Index