Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2006 19:33:22 GMT
From:      Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/100763: [NEW PORT] net/twinkle: Soft phone for your VoIP communcations using the SIP
Message-ID:  <200607231933.k6NJXMLZ062566@www.freebsd.org>
Resent-Message-ID: <200607231940.k6NJeDVX028347@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         100763
>Category:       ports
>Synopsis:       [NEW PORT] net/twinkle: Soft phone for your VoIP communcations using the SIP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 23 19:40:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
FreeBSD HellFire.BSD.org.pe 6.1-STABLE FreeBSD 6.1-STABLE #0:
Wed Jun 21 19:12:29 PET 2006
>Description:
Twinkle is a soft phone for your voice over IP communcations using the
SIP protocol. 

You can use it for direct IP phone to IP phone communication or in a
network using a SIP proxy to route your calls.

WWW:	http://www.twinklephone.com/

>How-To-Repeat:

>Fix:
--- twinkle-0.8.1.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	twinkle
#	twinkle/pkg-descr
#	twinkle/Makefile
#	twinkle/pkg-plist
#	twinkle/distinfo
#	twinkle/files
#	twinkle/files/patch-src-parser_parser.yxx
#	twinkle/files/patch-src-Makefile.in
#	twinkle/files/patch-src-threads_mutex.cpp
#	twinkle/files/patch-src-call_script.cpp
#
echo c - twinkle
mkdir -p twinkle > /dev/null 2>&1
echo x - twinkle/pkg-descr
sed 's/^X//' >twinkle/pkg-descr << 'END-of-twinkle/pkg-descr'
XTwinkle is a soft phone for your voice over IP communcations using the SIP 
Xprotocol. 
X
XYou can use it for direct IP phone to IP phone communication or in a network 
Xusing a SIP proxy to route your calls.
X
XWWW:	http://www.twinklephone.com/
END-of-twinkle/pkg-descr
echo x - twinkle/Makefile
sed 's/^X//' >twinkle/Makefile << 'END-of-twinkle/Makefile'
X# New ports collection makefile for:	twinkle
X# Date created:		2006-04-22
X# Whom:			Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	twinkle
XPORTVERSION=	0.8.1
XCATEGORIES=	net
XMASTER_SITES=	http://www.xs4all.nl/~mfnboer/twinkle/download/
X
XMAINTAINER=	acm@FreeBSD.org
XCOMMENT=	Soft phone for your VoIP communcations using the SIP protocol
X
XLIB_DEPENDS=	ccgnu2-1.4.0:${PORTSDIR}/devel/commoncpp \
X		ccrtp1-1.4.0:${PORTSDIR}/devel/ccrtp \
X		sndfile.1:${PORTSDIR}/audio/libsndfile \
X		boost_regex.3:${PORTSDIR}/devel/boost \
X		speex.3:${PORTSDIR}/audio/speex
X
XUSE_GCC=	3.4+
XGNU_CONFIGURE=	yes
XUSE_BISON=	yes
XUSE_GMAKE=	yes
XUSE_AUTOTOOLS=	libtool:15
XUSE_QT_VER=	3
X
XCONFIGURE_ARGS=	--with-qt-dir=${X11BASE}
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=	QTDIR="${LOCALBASE}" \
X		QMAKESPEC="${QMAKESPEC}" \
X		CFLAGS="${CFLAGS}"
XMAKE_ENV=	QTDIR=${X11BASE}
X
XQMAKESPEC?=	${LOCALBASE}/share/qt/mkspecs/freebsd-g++
X
Xpost-configure:
X	${REINPLACE_CMD} -e 's|-lresolv||g' ${WRKSRC}/src/gui/${MAKEFILE}
X
X.include <bsd.port.mk>
END-of-twinkle/Makefile
echo x - twinkle/pkg-plist
sed 's/^X//' >twinkle/pkg-plist << 'END-of-twinkle/pkg-plist'
Xbin/twinkle
X%%DATADIR%%/providers.csv
X%%DATADIR%%/ringback.wav
X%%DATADIR%%/ringtone.wav
X%%DATADIR%%/twinkle16.png
X%%DATADIR%%/twinkle32.png
X%%DATADIR%%/twinkle48.png
X@dirrm %%DATADIR%%
END-of-twinkle/pkg-plist
echo x - twinkle/distinfo
sed 's/^X//' >twinkle/distinfo << 'END-of-twinkle/distinfo'
XMD5 (twinkle-0.8.1.tar.gz) = 245ffd3b4a6f968d8f80d42f6aad079c
XSHA256 (twinkle-0.8.1.tar.gz) = a1d7df3f6e6ef758028f7f30982e434c513cce4ac4cd759d76dfd859a93bc3b3
XSIZE (twinkle-0.8.1.tar.gz) = 982496
END-of-twinkle/distinfo
echo c - twinkle/files
mkdir -p twinkle/files > /dev/null 2>&1
echo x - twinkle/files/patch-src-parser_parser.yxx
sed 's/^X//' >twinkle/files/patch-src-parser_parser.yxx << 'END-of-twinkle/files/patch-src-parser_parser.yxx'
X--- src/parser/parser.yxx	Sat Apr 22 20:47:06 2006
X+++ src/parser/parser.yxx	Sat Apr 22 20:47:30 2006
X@@ -48,7 +48,7 @@
X 
X %union {
X 	int			yyt_int;
X-	ulong			yyt_ulong;
X+	u_long			yyt_ulong;
X 	float			yyt_float;
X 	string			*yyt_str;
X 	t_parameter		*yyt_param;
END-of-twinkle/files/patch-src-parser_parser.yxx
echo x - twinkle/files/patch-src-Makefile.in
sed 's/^X//' >twinkle/files/patch-src-Makefile.in << 'END-of-twinkle/files/patch-src-Makefile.in'
X--- src/Makefile.in	Sun Jul  9 09:09:32 2006
X+++ src/Makefile.in	Wed Jul 12 12:45:18 2006
X@@ -338,7 +338,6 @@
X         $(top_builddir)/src/audits/libaudits.a\
X         $(top_builddir)/src/stun/libstun.a\
X 	$(CCRTP_LIBS)\
X-	-lresolv\
X 	-lsndfile\
X 	-lboost_regex
X 
END-of-twinkle/files/patch-src-Makefile.in
echo x - twinkle/files/patch-src-threads_mutex.cpp
sed 's/^X//' >twinkle/files/patch-src-threads_mutex.cpp << 'END-of-twinkle/files/patch-src-threads_mutex.cpp'
X--- src/threads/mutex.cpp	Sat Apr 22 21:09:20 2006
X+++ src/threads/mutex.cpp	Sat Apr 22 21:08:41 2006
X@@ -35,7 +35,7 @@
X 	pthread_mutexattr_init(&attr);
X 
X 
X-	int ret = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
X+	int ret = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
X 	if (ret != 0) throw string(
X 		"t_mutex::t_mutex failed to create a recursive mutex.");
X 
END-of-twinkle/files/patch-src-threads_mutex.cpp
echo x - twinkle/files/patch-src-call_script.cpp
sed 's/^X//' >twinkle/files/patch-src-call_script.cpp << 'END-of-twinkle/files/patch-src-call_script.cpp'
X--- src/call_script.cpp	Wed Jul 12 13:20:34 2006
X+++ src/call_script.cpp	Wed Jul 12 13:23:34 2006
X@@ -46,6 +46,8 @@
X #define SCR_TRIGGER_LOCAL_RELEASE	"local_release"
X #define SCR_TRIGGER_REMOTE_RELEASE	"remote_release"
X 
X+extern char **environ;
X+
X /////////////////////////
X // class t_script_result
X /////////////////////////
X@@ -324,14 +326,16 @@
X 		}
X 		
X 		char *line_buf = NULL;
X-		size_t line_buf_len = 0;
X-		ssize_t num_read;
X+		char *num_read;
X+		int line_buf_len;
X+		int count=0;
X 		
X 		// Read and parse script results.
X-		while ((num_read = getline(&line_buf, &line_buf_len, fp_result)) != -1) {
X+		while ((num_read = fgets(line_buf, sizeof(line_buf), fp_result)) != NULL) {
X+			count++;
X 			// Strip newline if present
X-			if (line_buf[num_read - 1] == '\n') {
X-				line_buf[num_read - 1] = 0;
X+			if (line_buf[count - 1] == '\n') {
X+				line_buf[count - 1] = 0;
X 			}
X 
X 			// Convert the read line to a C++ string
END-of-twinkle/files/patch-src-call_script.cpp
exit
--- twinkle-0.8.1.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607231933.k6NJXMLZ062566>