summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTais M. Hansen <mellen@osd.dk>2007-08-29 11:56:19 +0000
committerTais M. Hansen <mellen@osd.dk>2007-08-29 11:56:19 +0000
commit6aa8ca3a4da8d5480498988ed93cfc3cfa51f168 (patch)
tree49f8e5394b2311fe80b613616bf0cfbbe0c2f8e0
parentnet-im/wengophone-2.1.2 version bump (diff)
downloadvoip-6aa8ca3a4da8d5480498988ed93cfc3cfa51f168.tar.gz
voip-6aa8ca3a4da8d5480498988ed93cfc3cfa51f168.tar.bz2
voip-6aa8ca3a4da8d5480498988ed93cfc3cfa51f168.zip
Refurbished ebuild including a patch to enable minimal speex codec functionality for ysipchan.
svn path=/trunk/; revision=591
-rw-r--r--net-voip/yate/ChangeLog9
-rw-r--r--net-voip/yate/Manifest6
-rw-r--r--net-voip/yate/files/yate-0.9.0-gtk2.diff12
-rw-r--r--net-voip/yate/files/yate-1.2.0-enable-speex-in-ysip.patch56
-rw-r--r--net-voip/yate/files/yate.confd6
-rwxr-xr-xnet-voip/yate/files/yate.rc621
-rw-r--r--net-voip/yate/yate-1.2.0-r1.ebuild94
7 files changed, 204 insertions, 0 deletions
diff --git a/net-voip/yate/ChangeLog b/net-voip/yate/ChangeLog
new file mode 100644
index 0000000..c3dac27
--- /dev/null
+++ b/net-voip/yate/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-voip/yate
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 29 Aug 2007; Tais M. Hansen <mellen@osd.dk> +files/yate-0.9.0-gtk2.diff,
+ +files/yate-1.2.0-enable-speex-in-ysip.patch, +files/yate.confd,
+ +files/yate.rc6, +yate-1.2.0-r1.ebuild:
+ Refurbished ebuild with a minimal patch to enable the speex codec in ysipchan
+
diff --git a/net-voip/yate/Manifest b/net-voip/yate/Manifest
new file mode 100644
index 0000000..6d2ebde
--- /dev/null
+++ b/net-voip/yate/Manifest
@@ -0,0 +1,6 @@
+AUX yate-0.9.0-gtk2.diff 339 RMD160 c505b49856e7af958146faeb630059ccfc769156 SHA1 c97256bb5dd4686fe8c973c588077d91d2917ded SHA256 68d8b05dd084d2967d548e471208d39abc910a96fcd46b627cc9f1131d3cf5ee
+AUX yate-1.2.0-enable-speex-in-ysip.patch 1768 RMD160 28e9a4d3101b626219770769d5f5c08762cca9a3 SHA1 d2748a9223111aa97ad8f04e367aec75454b799e SHA256 7f607bb099b612a441f992e4968b58b0bd12fa1fec9938cb707e1591641b072e
+AUX yate.confd 222 RMD160 85401118916877280166bc55bdcd76149b77c674 SHA1 184987b53db21f9ca233f9f6795b4981e2c67972 SHA256 8d203eeff915143502139cc570142a076b10f3fb2d816e8c83e3aa35a1da00f6
+AUX yate.rc6 502 RMD160 7fbdf20436e1267f4af6b0ce3e0ccf821304c49b SHA1 aa8845e816dcf4809b0f9d96ce812f10b2b7a042 SHA256 915866c65eeff5f69a8f724e65ccc4ccd17b19c6ab1751f98194c1bb0d6b360a
+DIST yate-1.2.0-1.tar.gz 1248848 RMD160 6a3d7f9247282bef89c18bff01efcbe31a73fa8d SHA1 6361b8ff4cd03cf4bf908022b99d3854f9d94a63 SHA256 9e58857408e98b957dc72e164a135c2de7ea9a221d214e6bab3ca4020f656273
+EBUILD yate-1.2.0-r1.ebuild 2245 RMD160 61c5e8661b8081ff5cc5d76c6301dfedbfc7db08 SHA1 fedaa3ce5612a65efa31acf870e04b6e5a5bdc6f SHA256 0b7cafdf85acdad98f5a63721892bb2111130f5bbf46bb79bbed0b0d972f7b23
diff --git a/net-voip/yate/files/yate-0.9.0-gtk2.diff b/net-voip/yate/files/yate-0.9.0-gtk2.diff
new file mode 100644
index 0000000..c105393
--- /dev/null
+++ b/net-voip/yate/files/yate-0.9.0-gtk2.diff
@@ -0,0 +1,12 @@
+--- yate/contrib/gtk2/Makefile.in.orig 2005-10-29 17:49:21.000000000 +0000
++++ yate/contrib/gtk2/Makefile.in 2005-10-29 17:29:40.000000000 +0000
+@@ -15,7 +15,9 @@
+ MODFLAGS:= @MODULE_LDFLAGS@
+ MODSTRIP:= @MODULE_SYMBOLS@
+
++ifeq (@HAVE_GTK2@,yes)
+ PROJECT = libgtk2client.a
++endif
+ SOURCES = gtk2client.cpp
+ OBJECTS = $(SOURCES:.cpp=.o)
+
diff --git a/net-voip/yate/files/yate-1.2.0-enable-speex-in-ysip.patch b/net-voip/yate/files/yate-1.2.0-enable-speex-in-ysip.patch
new file mode 100644
index 0000000..67d680c
--- /dev/null
+++ b/net-voip/yate/files/yate-1.2.0-enable-speex-in-ysip.patch
@@ -0,0 +1,56 @@
+diff -Naur yate/modules/speexcodec.cpp yate.ed/modules/speexcodec.cpp
+--- yate/modules/speexcodec.cpp 2006-12-07 02:57:35.000000000 +0100
++++ yate.ed/modules/speexcodec.cpp 2007-05-31 17:50:12.000000000 +0200
+@@ -255,9 +255,6 @@
+ int frame_size = 0;
+ int ret = 0;
+
+- speex_decoder_ctl(m_state, SPEEX_GET_FRAME_SIZE, &frame_size);
+-// frame_size = 35;
+-
+ if (m_encoding) {
+ frame_size = m_dFormatInfo->frameSize;
+ frames = m_data.length() / m_bsize;
+@@ -266,11 +263,11 @@
+ if (frames) {
+ outdata.assign(0, frames * frame_size);
+ char* d = (char*)outdata.data();
+- short* s = (short*)m_data.data();
++ char* s = (char*)m_data.data();
+
+ for (unsigned int i = 0; i < frames; i++) {
+ speex_bits_reset(m_bits);
+- speex_encode_int(m_state, s, m_bits);
++ speex_encode_int(m_state, (short *)s, m_bits);
+ d += speex_bits_write(m_bits, d, frame_size);
+ s += m_bsize;
+ }
+diff -Naur yate/modules/yrtpchan.cpp yate.ed/modules/yrtpchan.cpp
+--- yate/modules/yrtpchan.cpp 2007-05-24 16:58:09.000000000 +0200
++++ yate.ed/modules/yrtpchan.cpp 2007-05-29 13:04:21.000000000 +0200
+@@ -55,6 +55,7 @@
+ { "h261", 31 },
+ { "h263", 34 },
+ { "mpv", 32 },
++ { "speex-8k", 97 },
+ { 0 , 0 },
+ };
+
+diff -Naur yate/modules/ysipchan.cpp yate.ed/modules/ysipchan.cpp
+--- yate/modules/ysipchan.cpp 2007-05-19 16:01:43.000000000 +0200
++++ yate.ed/modules/ysipchan.cpp 2007-08-09 13:07:46.000000000 +0200
+@@ -53,6 +53,7 @@
+ { "h261", 31 },
+ { "h263", 34 },
+ { "mpv", 32 },
++ { "speex-8k", 97 },
+ { 0, 0 },
+ };
+
+@@ -72,6 +73,7 @@
+ { "H261/90000", 31 },
+ { "H263/90000", 34 },
+ { "MPV/90000", 32 },
++ { "SPEEX/8000", 97 },
+ { 0, 0 },
+ };
diff --git a/net-voip/yate/files/yate.confd b/net-voip/yate/files/yate.confd
new file mode 100644
index 0000000..c43c951
--- /dev/null
+++ b/net-voip/yate/files/yate.confd
@@ -0,0 +1,6 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+# YATE commandline options.
+OPTS=""
diff --git a/net-voip/yate/files/yate.rc6 b/net-voip/yate/files/yate.rc6
new file mode 100755
index 0000000..ea23990
--- /dev/null
+++ b/net-voip/yate/files/yate.rc6
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need net
+ use mysql postgresql wanpipe zaptel
+}
+
+start() {
+ ebegin "Starting YATE"
+ start-stop-daemon --start --exec /usr/bin/yate -- -d -p /var/run/yate.pid ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping YATE"
+ start-stop-daemon --stop --pidfile=/var/run/yate.pid
+ eend $?
+}
diff --git a/net-voip/yate/yate-1.2.0-r1.ebuild b/net-voip/yate/yate-1.2.0-r1.ebuild
new file mode 100644
index 0000000..5723356
--- /dev/null
+++ b/net-voip/yate/yate-1.2.0-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="YATE - Yet Another Telephony Engine"
+HOMEPAGE="http://yate.null.ro/"
+SRC_URI="http://yate.null.ro/tarballs/yate1/${P}-1.tar.gz"
+
+S=${WORKDIR}/${PN}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gsm gtk h323 ilbc mysql postgres pri spandsp speex wanpipe zaptel"
+
+DEPEND="media-sound/sox
+ doc? ( || ( app-doc/doxygen >=dev-util/kdoc-2.0_alpha54 ) )
+ gsm? ( media-sound/gsm )
+ gtk? ( >=x11-libs/gtk+-2.6.8 )
+ h323? ( >=net-libs/openh323-1.15.3
+ dev-libs/pwlib )
+ mysql? ( dev-db/mysql )
+ postgres? ( dev-db/postgresql )
+ pri? ( net-libs/libpri )
+ spandsp? ( media-libs/spandsp )
+ speex? ( media-libs/speex )
+ wanpipe? ( net-misc/wanpipe )
+ zaptel? ( net-misc/zaptel )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ # fix gtk2 plugin makefile
+ epatch ${FILESDIR}/${PN}-0.9.0-gtk2.diff
+ epatch ${FILESDIR}/${PN}-1.2.0-enable-speex-in-ysip.patch
+}
+
+src_compile() {
+ # Figure out which doc generators are available.
+ local extraopts
+ if use doc && has_version app-doc/doxygen; then
+ extraopts+=" --with-doxygen"
+ else
+ extraopts+=" --without-doxygen"
+ fi
+
+ if use doc && has_version dev-util/kdoc; then
+ extraopts+=" --with-kdoc"
+ else
+ extraopts+=" --without-kdoc"
+ fi
+
+ econf \
+ $(use_enable ilbc) \
+ $(use_with gsm libgsm) \
+ $(use_with gtk libgtk2) \
+ $(use_with h323 openh323 /usr) \
+ $(use_with h323 pwlib /usr) \
+ $(use_with mysql mysql /usr) \
+ $(use_with postgres libpq /usr) \
+ $(use_with pri libpri) \
+ $(use_with spandsp) \
+ $(use_with speex libspeex) \
+ $(use_with wanpipe wphwec /usr) \
+ ${extraopts} \
+ || die "Configure failed"
+
+ emake all contrib || die "Building failed"
+
+ if use doc; then
+ emake apidocs || die "Building API docs failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR=${D} install-noapi || die "emake install-noapi failed"
+
+ if use doc; then
+ emake DESTDIR=${D} install-api || die "emake install-api failed"
+ fi
+
+ newinitd ${FILESDIR}/yate.rc6 yate
+ newconfd ${FILESDIR}/yate.confd yate
+
+ cd ${D}/usr/share/doc
+ mv ${P} ${PF}
+
+ insinto /usr/share/doc/${PF}/scripts
+ cp -R ${S}/scripts/* ${D}/usr/share/doc/${PF}/scripts/
+ rm -f ${D}/usr/share/doc/${PF}/scripts/Makefile*
+}