diff options
author | Mounir Lamouri <volkmar@gentoo.org> | 2009-07-30 14:38:04 +0000 |
---|---|---|
committer | Mounir Lamouri <volkmar@gentoo.org> | 2009-07-30 14:38:04 +0000 |
commit | 0e52dbb7898f9e15a75953ccc3295fd34af9a3bb (patch) | |
tree | d0a6931d4b3641708a6ec408adce40cee6c2c552 /net-voip/yate | |
parent | Obsolete entries. (diff) | |
download | gentoo-2-0e52dbb7898f9e15a75953ccc3295fd34af9a3bb.tar.gz gentoo-2-0e52dbb7898f9e15a75953ccc3295fd34af9a3bb.tar.bz2 gentoo-2-0e52dbb7898f9e15a75953ccc3295fd34af9a3bb.zip |
Version bump to 2.0.0.
Bug 272280.
(Portage version: 13845-svn/cvs/Linux i686)
Diffstat (limited to 'net-voip/yate')
-rw-r--r-- | net-voip/yate/ChangeLog | 11 | ||||
-rw-r--r-- | net-voip/yate/files/yate-2.0.0-as-needed.patch | 135 | ||||
-rw-r--r-- | net-voip/yate/files/yate-2.0.0-cxxflags.patch | 398 | ||||
-rw-r--r-- | net-voip/yate/files/yate-2.0.0-ilbc-alsa-oss.patch | 90 | ||||
-rw-r--r-- | net-voip/yate/files/yate-2.0.0-spandsp.patch | 10 | ||||
-rw-r--r-- | net-voip/yate/files/yate.confd | 13 | ||||
-rw-r--r-- | net-voip/yate/files/yate.initd | 34 | ||||
-rwxr-xr-x | net-voip/yate/files/yate.rc6 | 4 | ||||
-rw-r--r-- | net-voip/yate/metadata.xml | 23 | ||||
-rw-r--r-- | net-voip/yate/yate-2.0.0.ebuild | 123 |
10 files changed, 828 insertions, 13 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/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 +} |