summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2009-07-30 14:38:04 +0000
committerMounir Lamouri <volkmar@gentoo.org>2009-07-30 14:38:04 +0000
commitd25283baca1635db24199b9b1d16a841ed688542 (patch)
tree70c32d00ff8a3029c2763304f43d896ae49a0beb /net-voip
parentThere's no Qt 4.3 in tree anymore. (diff)
downloadhistorical-d25283baca1635db24199b9b1d16a841ed688542.tar.gz
historical-d25283baca1635db24199b9b1d16a841ed688542.tar.bz2
historical-d25283baca1635db24199b9b1d16a841ed688542.zip
Version bump to 2.0.0.
Bug 272280. Package-Manager: portage-13845-svn/cvs/Linux i686
Diffstat (limited to 'net-voip')
-rw-r--r--net-voip/yate/ChangeLog11
-rw-r--r--net-voip/yate/Manifest15
-rw-r--r--net-voip/yate/files/yate-2.0.0-as-needed.patch135
-rw-r--r--net-voip/yate/files/yate-2.0.0-cxxflags.patch398
-rw-r--r--net-voip/yate/files/yate-2.0.0-ilbc-alsa-oss.patch90
-rw-r--r--net-voip/yate/files/yate-2.0.0-spandsp.patch10
-rw-r--r--net-voip/yate/files/yate.confd13
-rw-r--r--net-voip/yate/files/yate.initd34
-rwxr-xr-xnet-voip/yate/files/yate.rc64
-rw-r--r--net-voip/yate/metadata.xml23
-rw-r--r--net-voip/yate/yate-2.0.0.ebuild123
11 files changed, 839 insertions, 17 deletions
diff --git a/net-voip/yate/ChangeLog b/net-voip/yate/ChangeLog
index 424ba47179ae..ae09a772acbf 100644
--- a/net-voip/yate/ChangeLog
+++ b/net-voip/yate/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-voip/yate
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/ChangeLog,v 1.8 2009/05/16 14:39:57 volkmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/ChangeLog,v 1.9 2009/07/30 14:38:04 volkmar Exp $
+
+*yate-2.0.0 (30 Jul 2009)
+
+ 30 Jul 2009; Mounir Lamouri <volkmar@gentoo.org>
+ +files/yate-2.0.0-as-needed.patch, +files/yate-2.0.0-cxxflags.patch,
+ +files/yate-2.0.0-ilbc-alsa-oss.patch, +files/yate-2.0.0-spandsp.patch,
+ files/yate.confd, +files/yate.initd, files/yate.rc6, metadata.xml,
+ +yate-2.0.0.ebuild:
+ Version bump to 2.0.0. Fixing bug 272280.
16 May 2009; Mounir Lamouri <volkmar@gentoo.org> metadata.xml:
Use global gsm USE flag instead of local one.
diff --git a/net-voip/yate/Manifest b/net-voip/yate/Manifest
index 95e359f3daf9..5c5732f8fda2 100644
--- a/net-voip/yate/Manifest
+++ b/net-voip/yate/Manifest
@@ -1,11 +1,18 @@
AUX yate-0.9.0-gtk2.diff 339 RMD160 c505b49856e7af958146faeb630059ccfc769156 SHA1 c97256bb5dd4686fe8c973c588077d91d2917ded SHA256 68d8b05dd084d2967d548e471208d39abc910a96fcd46b627cc9f1131d3cf5ee
AUX yate-1.3.0-makefiles.patch 15050 RMD160 7c15e0fdd0fd2f4a4ad8f38eaca398193194fadf SHA1 1a6a489b4ea9e8ec54eea7c0814fa60abb1d8f99 SHA256 625823cea7cd5fea8160686668eaf68bbb220610a4fbc9f126a73fc7fdbe02bc
AUX yate-1.3.0-resolv.patch 689 RMD160 23ebe8e8d34495c562e0a19c525a210b99dd66fb SHA1 5122a6c63280ed6b9af37a4a74727a6d251f9e30 SHA256 83b42c1da21ecb30383266de4869f63242226d719c1276d8d11050e78d5018d6
-AUX yate.confd 222 RMD160 85401118916877280166bc55bdcd76149b77c674 SHA1 184987b53db21f9ca233f9f6795b4981e2c67972 SHA256 8d203eeff915143502139cc570142a076b10f3fb2d816e8c83e3aa35a1da00f6
-AUX yate.rc6 502 RMD160 7fbdf20436e1267f4af6b0ce3e0ccf821304c49b SHA1 aa8845e816dcf4809b0f9d96ce812f10b2b7a042 SHA256 915866c65eeff5f69a8f724e65ccc4ccd17b19c6ab1751f98194c1bb0d6b360a
+AUX yate-2.0.0-as-needed.patch 5325 RMD160 f662f591d8d5350ba3737e7198a318de48db878f SHA1 35a1d048301793cfb222c2f2d3b8c5744ca8c70f SHA256 b72e87cf3280570ff66c63af3403c69f09f86298f58975381e85e167874002bb
+AUX yate-2.0.0-cxxflags.patch 11447 RMD160 1f56e7ebbdddd5b17d7b375be391258ab0e5f721 SHA1 77d4e7e2b11375f0c9d07a213475b6423d3a19f5 SHA256 add0eba7962e0374693235914337de42acecd543abe8fda2b1c1c1e5692ab195
+AUX yate-2.0.0-ilbc-alsa-oss.patch 2779 RMD160 732b48940a02b8127a88bdd42f1d004391a62057 SHA1 e2f4bfbbbd3092c7022e29ccad1348b1f7c76633 SHA256 419c71dd1699043a830f534f24f415c5793e7f39968d43134152e12a81b45653
+AUX yate-2.0.0-spandsp.patch 314 RMD160 0ff25f69acd1872541d06e68749958dcbf636612 SHA1 2d367a670ce7a99acf489e14cc1bb7275bc84ad1 SHA256 986465d339c4dbb0f8399296e429254e5b6cd73fc69ae7f22df3bf17b60ff8e1
+AUX yate.confd 274 RMD160 9137ef7289088c1a4f87234cbaa719f129b61605 SHA1 71fd89f1fff7dbed66f16b22cd63302d6013cfce SHA256 1007d50abbe320b64153f12bdf33032b7a3ae9dd51507cc6b431bef2bf9f31cc
+AUX yate.initd 849 RMD160 0ac0f86120818108abbeee878803aa83a29dca0b SHA1 0682f9f3c59c92b6219900b64d12c31d8726c392 SHA256 cfb7b9ff028176267dfd4ff7161f80e57c0dc20ff92c1ec114f752fb378122ca
+AUX yate.rc6 507 RMD160 7a462934a1d18668a6a9c2bc448ce40972ebfd1a SHA1 3d22207836a32ef2845c3ec0eb837d0170cd7b35 SHA256 2dc7b4760dd14319612d2863ed36648b9c8a88db07dc9ea82df2cf4ccd138ad8
DIST yate-1.2.0-1.tar.gz 1248848 RMD160 6a3d7f9247282bef89c18bff01efcbe31a73fa8d SHA1 6361b8ff4cd03cf4bf908022b99d3854f9d94a63 SHA256 9e58857408e98b957dc72e164a135c2de7ea9a221d214e6bab3ca4020f656273
DIST yate-1.3.0-1.tar.gz 1294420 RMD160 d135f5f8bd3378a3e8d2d96b39ccb3aa4c6e77f6 SHA1 cb662e2495a445f91bdf396e6ae76bf3ad0c0995 SHA256 97f6e6011828c98caebf511d9bd9b74b8411add939df6dbe028eda85cf819f77
+DIST yate-2.0.0-1.tar.gz 2009319 RMD160 8f7f43ab8e267e9d4cd793cb884e8279be89f173 SHA1 8b85afeaa6bf1ca014f548163d68b366e94588f5 SHA256 25902b7a5119ec2f177f36f3265a379e11807dd53d7faed39fd80eaa1c8bd15a
EBUILD yate-1.2.0.ebuild 1604 RMD160 92421bb116750f3bd2d0e1d61ea1fc4b7e4083e0 SHA1 acd6e217709b0bbbf9f71c12f64a59abe8807274 SHA256 e2ecf924c7ef8378ada7b10828b1ae700dbaa9f08a6831bf302562714f610da0
EBUILD yate-1.3.0.ebuild 1796 RMD160 7ec633354ca6fc7f836ce11955fb364314a7cfcf SHA1 c61599861a10ff25bd838b65915f60f8f2d1da89 SHA256 a47fb7d46707f3911848a67e73de0f8773178e07cb0d697b1f7f36daf30b9e75
-MISC ChangeLog 1485 RMD160 3af1e5768d33eee4f56207c2e05d81deae0bf0ed SHA1 7193fed5dc6c4c4920a4dd6cb9492e8c4d110e08 SHA256 88c1a57df13d97e76035f8d1d28b98bf60b693e907050ab042995d5b5e00f8bf
-MISC metadata.xml 329 RMD160 0119d499f1f9c3cf3e037363289adfb7a154c652 SHA1 5aa26d0cef87ce9c3e9e2118b0643152ae34d34b SHA256 d09ea9a384996f2335be88a33f44a33d08086263fa59165e775c371ecabb3d89
+EBUILD yate-2.0.0.ebuild 3274 RMD160 01c28083795d804b6c874ae901a1921cda5cd6ca SHA1 fff634cbfb0557ae17d6990a766cfe8a34ca475a SHA256 d06a3a124940615706a2b274810f9a6aa741a4a1d0deccdbb46bd31ed124fe9a
+MISC ChangeLog 1844 RMD160 a7a2488f62119ba4334b9303eb057cccb04700a8 SHA1 53c058e9fe084f9808a7582ec2ea2a36b996a1f4 SHA256 3af111c0476b08f4c9eb7f6fd2c23bd673fcfdf7d95f54f992afc7d6b8c5ec1a
+MISC metadata.xml 671 RMD160 53e8211c19b711a6d4e4d950ad53fede4a8cee6a SHA1 503666c9deb68e183e800f36897a0d60b7dd3e92 SHA256 60f5be379fa397623b33923b1360bfff167a2749e02dfec9b9972a7b4bc69c9b
diff --git a/net-voip/yate/files/yate-2.0.0-as-needed.patch b/net-voip/yate/files/yate-2.0.0-as-needed.patch
new file mode 100644
index 000000000000..c37f14b1b322
--- /dev/null
+++ b/net-voip/yate/files/yate-2.0.0-as-needed.patch
@@ -0,0 +1,135 @@
+--- ./Makefile.in.old 2009-07-30 12:17:10.000000000 +0000
++++ Makefile.in 2009-07-30 12:19:55.000000000 +0000
+@@ -299,7 +299,7 @@
+ Makefile: @srcdir@/Makefile.in $(MKDEPS)
+ ./config.status
+
+-yate: libyate.so $(OBJS) $(LIBS)
++yate: ${OBJS} libyate.so $(LIBS)
+ $(LINK) -o $@ $(LIBTHR) $^
+
+ libyate.so: $(YLIB)
+--- ./modules/Makefile.in.old 2009-07-30 12:21:07.000000000 +0000
++++ ./modules/Makefile.in 2009-07-30 12:25:18.000000000 +0000
+@@ -14,7 +14,7 @@
+ INCLUDES := -I.. -I@top_srcdir@
+ CFLAGS += -Wall @MODULE_CFLAGS@ @INLINE_FLAGS@
+ CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+-LDFLAGS:= @LDFLAGS@ -L.. -lyate
++LDFLAGS += -L..
+ MODFLAGS:= @MODULE_LDFLAGS@
+ MODRELAX:= @MODULE_LDRELAX@
+ MODSTRIP:= @MODULE_SYMBOLS@
+@@ -106,7 +106,7 @@
+ endif
+
+ LOCALFLAGS =
+-LOCALLIBS =
++LOCALLIBS = -lyate
+ CCOMPILE = $(CC) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
+ COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CXX) $(LDFLAGS)
+@@ -198,74 +198,74 @@
+ server/ysigchan.yate server/analog.yate: LOCALFLAGS = -I@top_srcdir@/libs/ysig
+ server/wpcard.yate: LOCALFLAGS = -I@top_srcdir@/libs/ysig @WANPIPE_HWEC_INC@
+ server/zapcard.yate: LOCALFLAGS = -I@top_srcdir@/libs/ysig @ZAP_FLAGS@
+-server/ysigchan.yate server/wpcard.yate server/zapcard.yate server/analog.yate: LOCALLIBS = -lyatesig
++server/ysigchan.yate server/wpcard.yate server/zapcard.yate server/analog.yate: LOCALLIBS += -lyatesig
+
+ server/analogdetect.yate: ../libs/ymodem/libyatemodem.a
+ server/analogdetect.yate: LOCALFLAGS = -I@top_srcdir@/libs/ymodem
+-server/analogdetect.yate: LOCALLIBS = -L../libs/ymodem -lyatemodem
++server/analogdetect.yate: LOCALLIBS += -L../libs/ymodem -lyatemodem
+
+ h323chan.yate: LOCALFLAGS = -DPHAS_TEMPLATES -D_REENTRANT -DP_HAS_SEMAPHORES @H323_INC@
+-h323chan.yate: LOCALLIBS = @H323_LIB@
++h323chan.yate: LOCALLIBS += @H323_LIB@
+
+ server/pgsqldb.yate: LOCALFLAGS = @PGSQL_INC@
+-server/pgsqldb.yate: LOCALLIBS = -lpq
++server/pgsqldb.yate: LOCALLIBS += -lpq
+
+ server/mysqldb.yate: LOCALFLAGS = @MYSQL_INC@
+-server/mysqldb.yate: LOCALLIBS = @MYSQL_LIB@
++server/mysqldb.yate: LOCALLIBS += @MYSQL_LIB@
+
+-enumroute.yate: LOCALLIBS = @RESOLV_LIB@
++enumroute.yate: LOCALLIBS += @RESOLV_LIB@
+
+-client/alsachan.yate: LOCALLIBS = -lasound
++client/alsachan.yate: LOCALLIBS += -lasound
+
+ yiaxchan.yate: ../libs/yiax/libyateiax.a
+ yiaxchan.yate: LOCALFLAGS = -I@top_srcdir@/libs/yiax
+-yiaxchan.yate: LOCALLIBS = -L../libs/yiax -lyateiax
++yiaxchan.yate: LOCALLIBS += -L../libs/yiax -lyateiax
+
+ yjinglechan.yate: ../libs/yxml/libyatexml.a ../libs/yjingle/libyatejingle.a
+ yjinglechan.yate: LOCALFLAGS = -I@top_srcdir@/libs/yxml -I@top_srcdir@/libs/yjingle
+-yjinglechan.yate: LOCALLIBS = -L../libs/yjingle -L../libs/yxml -lyatejingle -lyatexml
++yjinglechan.yate: LOCALLIBS += -L../libs/yjingle -L../libs/yxml -lyatejingle -lyatexml
+
+ server/dbpbx.yate server/pbxassist.yate: ../libs/ypbx/libyatepbx.a
+ server/dbpbx.yate server/pbxassist.yate: LOCALFLAGS = -I@top_srcdir@/libs/ypbx
+-server/dbpbx.yate server/pbxassist.yate: LOCALLIBS = ../libs/ypbx/libyatepbx.a
++server/dbpbx.yate server/pbxassist.yate: LOCALLIBS += ../libs/ypbx/libyatepbx.a
+
+ server/mgcpgw.yate server/mgcpca.yate: ../libs/ymgcp/libyatemgcp.a
+ server/mgcpgw.yate server/mgcpca.yate: LOCALFLAGS = -I@top_srcdir@/libs/ymgcp
+-server/mgcpgw.yate server/mgcpca.yate: LOCALLIBS = ../libs/ymgcp/libyatemgcp.a
++server/mgcpgw.yate server/mgcpca.yate: LOCALLIBS += ../libs/ymgcp/libyatemgcp.a
+
+ ifeq (@SYSTEM_ILBC@,yes)
+-ilbccodec.yate: LOCALLIBS = -lilbc
++ilbccodec.yate: LOCALLIBS += -lilbc
+ else
+ ilbccodec.yate: ../libs/ilbc/libilbc.a
+-ilbccodec.yate: LOCALLIBS = ../libs/ilbc/libilbc.a
++ilbccodec.yate: LOCALLIBS += ../libs/ilbc/libilbc.a
+ endif
+ ilbccodec.yate: LOCALFLAGS = @ILBC_INC@
+
+-gsmcodec.yate: LOCALLIBS = -lgsm
++gsmcodec.yate: LOCALLIBS += -lgsm
+ gsmcodec.yate: LOCALFLAGS = @GSM_INC@
+
+-speexcodec.yate: LOCALLIBS = -lspeex
++speexcodec.yate: LOCALLIBS += -lspeex
+ speexcodec.yate: LOCALFLAGS = @SPEEX_INC@
+
+ amrnbcodec.yate: LOCALFLAGS = @AMRNB_INC@
+-amrnbcodec.yate: LOCALLIBS = @AMRNB_LIB@
++amrnbcodec.yate: LOCALLIBS += @AMRNB_LIB@
+
+-faxchan.yate: LOCALLIBS = -lspandsp
++faxchan.yate: LOCALLIBS += -lspandsp
+ faxchan.yate: LOCALFLAGS = @SPANDSP_INC@
+
+ ysipchan.yate: ../libs/ysip/libyatesip.a
+ ysipchan.yate: LOCALFLAGS = -I@top_srcdir@/libs/ysip
+-ysipchan.yate: LOCALLIBS = ../libs/ysip/libyatesip.a
++ysipchan.yate: LOCALLIBS += ../libs/ysip/libyatesip.a
+
+ yrtpchan.yate: ../libs/yrtp/libyatertp.a
+ yrtpchan.yate: LOCALFLAGS = -I@top_srcdir@/libs/yrtp
+-yrtpchan.yate: LOCALLIBS = ../libs/yrtp/libyatertp.a
++yrtpchan.yate: LOCALLIBS += ../libs/yrtp/libyatertp.a
+
+ openssl.yate: LOCALFLAGS = @OPENSSL_INC@
+-openssl.yate: LOCALLIBS = @OPENSSL_LIB@
++openssl.yate: LOCALLIBS += @OPENSSL_LIB@
+
+ rmanager.yate: LOCALFLAGS = $(COREDUMP_INC)
+-rmanager.yate: LOCALLIBS = $(COREDUMP_LIB)
++rmanager.yate: LOCALLIBS += $(COREDUMP_LIB)
+
+ ../libyatesig.so ../libs/ysig/libyatesig.a:
+ $(MAKE) -C ../libs/ysig
+--- ./engine/Makefile.in.old 2009-07-30 12:15:05.000000000 +0000
++++ ./engine/Makefile.in 2009-07-30 12:15:32.000000000 +0000
+@@ -120,4 +120,4 @@
+ cd .. && ./config.status
+
+ ../$(YLIB): $(LIBOBJS) $(LIBS)
+- $(LINK) -shared -o $@ -Wl,--soname=$(YLIB) $(LIBTHR) $^ $(LIBAUX)
++ $(LINK) -shared -o $@ -Wl,--soname=$(YLIB) $^ $(LIBTHR) $(LIBAUX)
diff --git a/net-voip/yate/files/yate-2.0.0-cxxflags.patch b/net-voip/yate/files/yate-2.0.0-cxxflags.patch
new file mode 100644
index 000000000000..9fce51784938
--- /dev/null
+++ b/net-voip/yate/files/yate-2.0.0-cxxflags.patch
@@ -0,0 +1,398 @@
+--- Makefile.in.old 2009-07-28 01:23:48.000000000 +0200
++++ Makefile.in 2009-07-28 01:00:34.000000000 +0200
+@@ -7,12 +7,12 @@
+ # override DEBUG at compile time to enable full debug or remove it all
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ SED := sed
+ DEFS :=
+ LIBTHR:= -lpthread
+ INCLUDES := -I. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@
+ LDCONFIG:=true
+
+@@ -28,7 +28,7 @@
+ OBJS := main.o
+
+ CLEANS = $(PROGS) $(SLIBS) $(LIBS) $(OBJS) yatepaths.h core
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CXX) $(LDFLAGS)
+
+ DOCGEN_F := $(INCS)
+--- engine/Makefile.in.old 2009-07-28 01:04:58.000000000 +0200
++++ engine/Makefile.in 2009-07-28 01:05:53.000000000 +0200
+@@ -4,15 +4,15 @@
+ # override DEBUG at compile time to enable full debug or remove it all
+ DEBUG :=
+
+-CC := @CC@ -Wall
+-CXX := @CXX@ -Wall
++CC := @CC@
++CXX := @CXX@
+ SED := sed
+ DEFS :=
+ LIBAUX:= @DLOPEN_LIB@
+ LIBTHR:= -lpthread
+ INCLUDES := -I.. -I@top_srcdir@
+-CFLAGS := -O2 @MODULE_CFLAGS@ @INLINE_FLAGS@
+-CPPFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CFLAGS += -Wall @MODULE_CFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@
+ LDCONFIG:=true
+
+@@ -32,7 +32,7 @@
+ LIBOBJS := $(CLSOBJS) $(ENGOBJS) $(TELOBJS) $(CLIOBJS)
+ CLEANS = $(LIBOBJS) core
+ CCOMPILE = $(CC) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CPPFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CXX) $(LDFLAGS)
+ SCTPOPTS:=
+
+--- clients/qt4/Makefile.in.old 2009-07-28 01:02:13.000000000 +0200
++++ clients/qt4/Makefile.in 2009-07-28 01:02:58.000000000 +0200
+@@ -4,13 +4,13 @@
+ # override DEBUG at compile time to enable full debug or remove it all
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ MOC := @QT4_MOC@
+ DEFS:=
+
+ INCLUDES:=-I. -I@srcdir@ -I@top_srcdir@ @QT4_INC@
+-CXXFLAGS:=$(CXXFLAGS) @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS:= -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @top_srcdir@/yatecbase.h @srcdir@/qt4client.h
+
+--- clients/Makefile.in.old 2009-07-28 01:01:13.000000000 +0200
++++ clients/Makefile.in 2009-07-28 01:02:00.000000000 +0200
+@@ -7,12 +7,12 @@
+ # override DEBUG at compile time to enable full debug or remove it all
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ SED := sed
+ DEFS :=
+ LIBTHR:= -lpthread
+ INCLUDES := -I.. -I@top_srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L.. -lyate
+ INCFILES := @top_srcdir@/yatengine.h @top_srcdir@/yatephone.h ../yateversn.h
+
+@@ -38,7 +38,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CXX) $(LDFLAGS)
+
+ prefix = @prefix@
+--- modules/test/Makefile.in.old 2009-07-28 01:07:12.000000000 +0200
++++ modules/test/Makefile.in 2009-07-28 01:08:05.000000000 +0200
+@@ -1,11 +1,11 @@
+ # Makefile
+ # This file holds the make rules for the Telephony Engine test cases
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ SED := sed
+ DEFS :=
+ INCLUDES := -I@top_srcdir@
+-CFLAGS := -O0 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -O0 -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ MODFLAGS:= @MODULE_LDFLAGS@
+ MODSTRIP:= @MODULE_SYMBOLS@
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CXX) $(LDFLAGS)
+ MODLINK = $(CXX) $(MODFLAGS) $(MODSTRIP) $(LDFLAGS)
+ MODCOMP = $(COMPILE) $(MODFLAGS) $(MODSTRIP) $(LDFLAGS)
+--- modules/Makefile.in.old 2009-07-28 01:09:55.000000000 +0200
++++ modules/Makefile.in 2009-07-28 01:10:29.000000000 +0200
+@@ -7,13 +7,13 @@
+ # override DEBUG at compile time to enable full debug or remove it all
+ DEBUG :=
+
+-CC := @CC@ -Wall
+-CXX := @CXX@ -Wall
++CC := @CC@
++CXX := @CXX@
+ SED := sed
+ DEFS :=
+ INCLUDES := -I.. -I@top_srcdir@
+-CFLAGS := -O2 @MODULE_CFLAGS@ @INLINE_FLAGS@
+-CPPFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CFLAGS += -Wall @MODULE_CFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L.. -lyate
+ MODFLAGS:= @MODULE_LDFLAGS@
+ MODRELAX:= @MODULE_LDRELAX@
+@@ -108,7 +108,7 @@
+ LOCALFLAGS =
+ LOCALLIBS =
+ CCOMPILE = $(CC) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CPPFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CXX) $(LDFLAGS)
+ MODLINK = $(CXX) $(MODFLAGS) $(MODSTRIP) $(LDFLAGS)
+ MODCOMP = $(COMPILE) $(MODFLAGS) $(MODSTRIP) $(LDFLAGS)
+--- libs/ysig/Makefile.in.old 2009-07-28 01:10:58.000000000 +0200
++++ libs/ysig/Makefile.in 2009-07-28 01:11:28.000000000 +0200
+@@ -3,12 +3,12 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ LIBTHR := -lpthread
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/yatesig.h
+
+@@ -26,7 +26,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
+--- libs/ymgcp/Makefile.in.old 2009-07-28 01:13:18.000000000 +0200
++++ libs/ymgcp/Makefile.in 2009-07-28 01:13:41.000000000 +0200
+@@ -3,11 +3,11 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/yatemgcp.h
+
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
+--- libs/yrtp/Makefile.in.old 2009-07-28 01:15:02.000000000 +0200
++++ libs/yrtp/Makefile.in 2009-07-28 01:15:31.000000000 +0200
+@@ -3,11 +3,11 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/yatertp.h
+
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
+--- libs/ilbc/Makefile.in.old 2009-07-28 01:15:47.000000000 +0200
++++ libs/ilbc/Makefile.in 2009-07-28 01:16:26.000000000 +0200
+@@ -1,12 +1,12 @@
+ # Makefile
+ # This file holds the make rules for the libilbc
+
+-CC := @CC@ -Wall
++CC := @CC@
+ AR := ar
+ SED := sed
+ DEFS :=
+ INCLUDES := -I@top_srcdir@
+-CFLAGS := -O3 -funroll-loops -fomit-frame-pointer -fsigned-char @MODULE_CFLAGS@
++CFLAGS += -Wall @MODULE_CFLAGS@
+ LDFLAGS:= @LDFLAGS@
+
+ PROGS=
+--- libs/yjingle/Makefile.in.old 2009-07-28 01:16:54.000000000 +0200
++++ libs/yjingle/Makefile.in 2009-07-28 01:17:23.000000000 +0200
+@@ -3,11 +3,11 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@/../yxml -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/../yxml/tinystr.h @srcdir@/../yxml/tinyxml.h @srcdir@/xmlparser.h @srcdir@/xmpputils.h @srcdir@/yatejabber.h @srcdir@/yatejingle.h
+
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
+--- libs/ysip/Makefile.in.old 2009-07-28 01:17:40.000000000 +0200
++++ libs/ysip/Makefile.in 2009-07-28 01:17:59.000000000 +0200
+@@ -3,11 +3,11 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/yatesip.h @srcdir@/util.h
+
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
+--- libs/ypbx/Makefile.in.old 2009-07-28 01:18:16.000000000 +0200
++++ libs/ypbx/Makefile.in 2009-07-28 01:18:39.000000000 +0200
+@@ -3,11 +3,11 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/yatepbx.h
+
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
+--- libs/yxml/Makefile.in.old 2009-07-28 01:19:23.000000000 +0200
++++ libs/yxml/Makefile.in 2009-07-28 01:19:43.000000000 +0200
+@@ -3,11 +3,11 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/tinystr.h @srcdir@/tinyxml.h
+
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
+--- libs/ymodem/Makefile.in.old 2009-07-28 01:20:00.000000000 +0200
++++ libs/ymodem/Makefile.in 2009-07-28 01:20:16.000000000 +0200
+@@ -3,11 +3,11 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/yatemodem.h
+
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
+--- libs/yiax/Makefile.in.old 2009-07-28 01:20:44.000000000 +0200
++++ libs/yiax/Makefile.in 2009-07-28 01:21:01.000000000 +0200
+@@ -3,11 +3,11 @@
+
+ DEBUG :=
+
+-CXX := @CXX@ -Wall
++CXX := @CXX@
+ AR := ar
+ DEFS :=
+ INCLUDES := -I@top_srcdir@ -I../.. -I@srcdir@
+-CFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@
++CXXFLAGS += -Wall @MODULE_CPPFLAGS@ @INLINE_FLAGS@
+ LDFLAGS:= @LDFLAGS@ -L../.. -lyate
+ INCFILES := @top_srcdir@/yateclass.h @srcdir@/yateiax.h
+
+@@ -17,7 +17,7 @@
+
+ LOCALFLAGS =
+ LOCALLIBS =
+-COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CFLAGS)
++COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
+ LINK = $(CC) $(LDFLAGS)
+
+ prefix = @prefix@
diff --git a/net-voip/yate/files/yate-2.0.0-ilbc-alsa-oss.patch b/net-voip/yate/files/yate-2.0.0-ilbc-alsa-oss.patch
new file mode 100644
index 000000000000..0eda1cbb20c0
--- /dev/null
+++ b/net-voip/yate/files/yate-2.0.0-ilbc-alsa-oss.patch
@@ -0,0 +1,90 @@
+--- configure.in.old 2009-07-28 00:50:23.000000000 +0200
++++ configure.in 2009-07-28 00:19:46.000000000 +0200
+@@ -407,6 +407,8 @@
+ AC_SUBST(WANPIPE_HWEC_INC)
+
+ HAVE_SOUNDCARD=no
++AC_ARG_ENABLE(oss,AC_HELP_STRING([--enable-oss],[Enable OSS (default: yes)]),enable_oss=$enableval,enable_oss=yes)
++if [[ "x$enable_oss" = "xyes" ]]; then
+ AC_MSG_CHECKING([for sound card headers])
+ AC_TRY_COMPILE([
+ #include <sys/stat.h>
+@@ -425,9 +427,12 @@
+ HAVE_SOUNDCARD="yes"
+ )
+ AC_MSG_RESULT([$HAVE_SOUNDCARD])
++fi
+ AC_SUBST(HAVE_SOUNDCARD)
+
+ HAVE_ALSA=no
++AC_ARG_ENABLE(alsa,AC_HELP_STRING([--enable-alsa],[Enable ALSA (default: yes)]),enable_alsa=$enableval,enable_alsa=yes)
++if [[ "x$enable_alsa" = "xyes" ]]; then
+ AC_MSG_CHECKING([for ALSA headers])
+ AC_TRY_COMPILE([
+ #if defined(__linux__)
+@@ -444,6 +449,7 @@
+ HAVE_ALSA="yes"
+ )
+ AC_MSG_RESULT([$HAVE_ALSA])
++fi
+ AC_SUBST(HAVE_ALSA)
+
+
+@@ -470,20 +476,35 @@
+
+ HAVE_ILBC=no
+ ILBC_INC=""
+-AC_ARG_ENABLE(ilbc,AC_HELP_STRING([--enable-ilbc],[Enable iLBC codec (default: yes)]),want_ilbc=$enableval,want_ilbc=yes)
+-if [[ "x$want_ilbc" = "xyes" ]]; then
+-AC_MSG_CHECKING([for iLBC in libs])
+- basedir=`cd "$srcdir" && pwd`
+- incilbc="libs/ilbc"
+- if [[ -f "$basedir/$incilbc/iLBC_encode.h" ]]; then
++SYSTEM_ILBC=no
++AC_ARG_ENABLE(ilbc,AC_HELP_STRING([--enable-ilbc],[Enable iLBC codec (default: yes)]),ac_cv_use_ilbc=$enableval,ac_cv_use_ilbc=yes)
++if [[ "x$ac_cv_use_ilbc" = "xyes" ]]; then
++for i in /usr/include /usr/include/ilbc /usr/local/include /usr/local/include/ilbc; do
++ ac_cv_use_ilbc="$i"
++ test -f "$ac_cv_use_ilbc/iLBC_encode.h" && break
++done
++fi
++if [[ "x$ac_cv_use_ilbc" != "xno" ]]; then
++AC_MSG_CHECKING([for iLBC_encode.h in $ac_cv_use_ilbc])
++if [[ -f "$ac_cv_use_ilbc/iLBC_encode.h" ]]; then
++ HAVE_ILBC=yes
++ ILBC_INC="-I$ac_cv_use_ilbc"
++ SYSTEM_ILBC=yes
++else
++ AC_MSG_CHECKING([for iLBC in libs])
++ basedir=`cd "$srcdir" && pwd`
++ incilbc="libs/ilbc"
++ if [[ -f "$basedir/$incilbc/iLBC_encode.h" ]]; then
+ HAVE_ILBC=yes
+ ILBC_INC="-I$basedir/$incilbc"
+- ILBC_DEP="../$incilbc/libilbc.a"
++ SYSTEM_ILBC=no
+ fi
++fi
+ AC_MSG_RESULT([$HAVE_ILBC])
+ fi
+ AC_SUBST(HAVE_ILBC)
+ AC_SUBST(ILBC_INC)
++AC_SUBST(SYSTEM_ILBC)
+
+
+ HAVE_SPEEX=no
+--- modules/Makefile.in.old 2009-07-28 00:50:36.000000000 +0200
++++ modules/Makefile.in 2009-07-28 00:48:51.000000000 +0200
+@@ -233,8 +233,12 @@
+ server/mgcpgw.yate server/mgcpca.yate: LOCALFLAGS = -I@top_srcdir@/libs/ymgcp
+ server/mgcpgw.yate server/mgcpca.yate: LOCALLIBS = ../libs/ymgcp/libyatemgcp.a
+
++ifeq (@SYSTEM_ILBC@,yes)
++ilbccodec.yate: LOCALLIBS = -lilbc
++else
+ ilbccodec.yate: ../libs/ilbc/libilbc.a
+ ilbccodec.yate: LOCALLIBS = ../libs/ilbc/libilbc.a
++endif
+ ilbccodec.yate: LOCALFLAGS = @ILBC_INC@
+
+ gsmcodec.yate: LOCALLIBS = -lgsm
diff --git a/net-voip/yate/files/yate-2.0.0-spandsp.patch b/net-voip/yate/files/yate-2.0.0-spandsp.patch
new file mode 100644
index 000000000000..748f420b073f
--- /dev/null
+++ b/net-voip/yate/files/yate-2.0.0-spandsp.patch
@@ -0,0 +1,10 @@
+--- configure.in.old 2009-07-29 18:59:30.000000000 +0000
++++ configure.in 2009-07-29 18:59:48.000000000 +0000
+@@ -579,6 +579,7 @@
+ CFLAGS="$CFLAGS -Wall -Werror"
+ AC_TRY_COMPILE([
+ #define __STDC_LIMIT_MACROS
++#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
+ #include <math.h>
+ #include <stdint.h>
+ #include <stdlib.h>
diff --git a/net-voip/yate/files/yate.confd b/net-voip/yate/files/yate.confd
index 7be306d95080..926cc563919f 100644
--- a/net-voip/yate/files/yate.confd
+++ b/net-voip/yate/files/yate.confd
@@ -1,5 +1,10 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/files/yate.confd,v 1.1 2006/10/18 19:57:28 genstef Exp $
+# /etc/conf.d/yate: config file for /etc/init.d/yate
-OPTS=""
+# Any random options you want to pass to yate
+YATE_OPTS=""
+
+# Pid file to use (needs to be absolute path)
+#YATE_PIDFILE="/var/run/yate.pid"
+
+# Path to yate binary (needs to be absolute path)
+#YATE_BINARY="/usr/bin/yate"
diff --git a/net-voip/yate/files/yate.initd b/net-voip/yate/files/yate.initd
new file mode 100644
index 000000000000..46dc49827ce8
--- /dev/null
+++ b/net-voip/yate/files/yate.initd
@@ -0,0 +1,34 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/files/yate.initd,v 1.1 2009/07/30 14:38:04 volkmar Exp $
+
+opts="${opts} reload"
+
+YATE_PIDFILE=${YATE_PIDFILE:-/var/run/${SVCNAME}.pid}
+YATE_BINARY=${YATE_BINARY:-/usr/bin/yate}
+
+depend() {
+ need net
+ use mysql postgresql zaptel
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec "${YATE_BINARY}" \
+ -- -d -p "${YATE_PIDFILE}" ${YATE_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile="${YATE_PIDFILE}"
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --stop --exec "${YATE_BINARY}" \
+ --pidfile "${YATE_PIDFILE}" --signal HUP --oknodo
+ eend $?
+}
diff --git a/net-voip/yate/files/yate.rc6 b/net-voip/yate/files/yate.rc6
index da9a925fbe0f..8622aa9a5ecb 100755
--- a/net-voip/yate/files/yate.rc6
+++ b/net-voip/yate/files/yate.rc6
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/files/yate.rc6,v 1.1 2006/10/18 19:57:28 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/files/yate.rc6,v 1.2 2009/07/30 14:38:04 volkmar Exp $
depend() {
need net
@@ -9,7 +9,7 @@ depend() {
start() {
ebegin "Starting YATE"
- start-stop-daemon --start --exec /usr/bin/yate -- -d -p /var/run/yate.pid ${OPTS}
+ start-stop-daemon --start --exec /usr/bin/yate -- -d -p /var/run/yate.pid ${YATE_OPTS}
eend $?
}
diff --git a/net-voip/yate/metadata.xml b/net-voip/yate/metadata.xml
index cb6082c854f6..2126f8ca2df4 100644
--- a/net-voip/yate/metadata.xml
+++ b/net-voip/yate/metadata.xml
@@ -1,10 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>voip</herd>
-<use>
- <flag name='h323'>Build H.323 Channel plugin</flag>
- <flag name='ilbc'>Build ILBC codec plugin</flag>
- <flag name='zaptel'>Build zaptel Channel plugin</flag>
-</use>
+ <herd>voip</herd>
+ <maintainer>
+ <email>volkmar@gentoo.org</email>
+ <name>Mounir Lamouri</name>
+ </maintainer>
+ <use>
+ <flag name='amrnb'>
+ Enables Adaptive Multi-Rate Audio support (Narrow Band)
+ </flag>
+ <flag name='h323'>Build H.323 Channel plugin</flag>
+ <flag name='ilbc'>Build ILBC codec plugin</flag>
+ <flag name='sctp'>
+ Support for Stream Control Transmission Protocol
+ </flag>
+ <flag name='spandsp'>Enable support for the spandsp codec</flag>
+ <flag name='zaptel'>Build zaptel Channel plugin</flag>
+ </use>
</pkgmetadata>
diff --git a/net-voip/yate/yate-2.0.0.ebuild b/net-voip/yate/yate-2.0.0.ebuild
new file mode 100644
index 000000000000..e89fd3885f6f
--- /dev/null
+++ b/net-voip/yate/yate-2.0.0.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/yate-2.0.0.ebuild,v 1.1 2009/07/30 14:38:04 volkmar Exp $
+
+EAPI="2"
+
+inherit autotools eutils multilib
+
+DESCRIPTION="Yet Another Telephony Engine"
+HOMEPAGE="http://yate.null.ro/"
+SRC_URI="http://yate.null.ro/tarballs/yate2/${P}-1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa amrnb debug doc gsm h323 ilbc mysql oss postgres qt4 sctp spandsp
+speex ssl zaptel"
+
+RDEPEND="
+ sys-libs/glibc
+ alsa? ( media-libs/alsa-lib )
+ amrnb? ( media-libs/amrnb )
+ gsm? ( media-sound/gsm )
+ h323? ( dev-libs/pwlib
+ net-libs/openh323 )
+ ilbc? ( dev-libs/ilbc-rfc3951 )
+ mysql? ( virtual/mysql )
+ oss? ( sys-kernel/linux-headers )
+ postgres? ( virtual/postgresql-base )
+ qt4? ( x11-libs/qt-core:4
+ x11-libs/qt-gui:4 )
+ spandsp? ( >=media-libs/spandsp-0.0.3 )
+ speex? ( media-libs/speex )
+ ssl? ( dev-libs/openssl )
+ zaptel? ( net-misc/zaptel )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+# NOTES:
+# doc is already built
+
+# TODO:
+# coredumper can't be used because not in the tree, bug 118716
+# wanpipe can't be used because not in the tree (but voip overlay), bug 188939
+# spandsp >= 0.0.6 fails in configure and >=0.0.5 fails in build
+# fix bug 199222 for this version
+
+src_prepare() {
+ # add Icon in yate-qt4 desktop file
+ sed -i -e '/^Exec=yate-qt4$/a Icon=null_team-32.png' \
+ clients/yate-qt4.desktop || die "sed failed"
+
+ epatch "${FILESDIR}"/${P}-ilbc-alsa-oss.patch
+ epatch "${FILESDIR}"/${P}-cxxflags.patch
+ epatch "${FILESDIR}"/${P}-spandsp.patch
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ # fdsize, inline, rtti: keep default values
+ # internalregex: use system
+ # coredumper: not in the tree, bug 118716
+ # wanpipe, wphwec: not in the tree, bug 188939
+ # doxygen, kdoc: no need to rebuild already built doc
+ econf \
+ --disable-internalregex \
+ --without-coredumper \
+ --disable-wanpipe \
+ --without-wphwec \
+ --without-doxygen \
+ --without-kdoc \
+ --with-archlib=$(get_libdir) \
+ $(use_with amrnb amrnb /usr) \
+ $(use_enable alsa) \
+ $(use_with gsm libgsm) \
+ $(use_with h323 openh323 /usr) \
+ $(use_with h323 pwlib /usr) \
+ $(use_enable ilbc) \
+ $(use_with mysql mysql /usr) \
+ $(use_enable oss) \
+ $(use_with postgres libpq /usr) \
+ $(use_with qt4 libqt4) \
+ $(use_enable sctp) \
+ $(use_with spandsp) \
+ $(use_with speex libspeex) \
+ $(use_with ssl openssl) \
+ $(use_enable zaptel)
+}
+
+src_compile() {
+ if use debug; then
+ emake ddebug || die "emake ddebug failed"
+ else
+ default_src_compile
+ fi
+}
+
+src_test() {
+ # there is no real test suite
+ # 'make test' tries to execute non-existing ./test
+ # do not add RESTRICT="test" because it's not a failing test suite
+ :
+}
+
+src_install() {
+ emake DESTDIR="${D}" install-noapi || die "emake install-noapi failed"
+
+ dodoc ChangeLog README || die "dodoc failed"
+
+ insinto /etc/logrotate.d
+ newins packing/${PN}.logrotate ${PN} || die "newins failed"
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} || die "newinitd failed"
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} || die "newconfd failed"
+
+ if use doc; then
+ emake DESTDIR="${D}" install-api || die "emake install-api failed"
+ fi
+}