summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-10-29 21:37:16 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-10-29 21:37:16 +0000
commit7a03cebda3fb3f5a882b9619aac4c2c4588bf071 (patch)
tree3596675ad088d601bd56cca7e7a44f13ef68337a
downloadvoip-7a03cebda3fb3f5a882b9619aac4c2c4588bf071.tar.gz
voip-7a03cebda3fb3f5a882b9619aac4c2c4588bf071.tar.bz2
voip-7a03cebda3fb3f5a882b9619aac4c2c4588bf071.zip
Initial import of private gentoo-voip repos
svn path=/trunk/; revision=2
-rw-r--r--dev-libs/pwlib/Manifest8
-rw-r--r--dev-libs/pwlib/files/digest-pwlib-1.8.41
-rw-r--r--dev-libs/pwlib/files/digest-pwlib-1.8.71
-rw-r--r--dev-libs/pwlib/files/digest-pwlib-1.9.11
-rw-r--r--dev-libs/pwlib/files/pwlib-1.6.3-dyn-esd.patch11
-rw-r--r--dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff27
-rw-r--r--dev-libs/pwlib/pwlib-1.8.4.ebuild180
-rw-r--r--dev-libs/pwlib/pwlib-1.8.7.ebuild151
-rw-r--r--dev-libs/pwlib/pwlib-1.9.1.ebuild182
-rw-r--r--dev-python/pyst/Manifest2
-rw-r--r--dev-python/pyst/files/digest-pyst-0.0.4_rc121
-rw-r--r--dev-python/pyst/pyst-0.0.4_rc12.ebuild33
-rw-r--r--media-libs/libsupertone/Manifest2
-rw-r--r--media-libs/libsupertone/files/digest-libsupertone-0.0.21
-rw-r--r--media-libs/libsupertone/libsupertone-0.0.2.ebuild26
-rw-r--r--media-libs/spandsp/Manifest3
-rw-r--r--media-libs/spandsp/files/digest-spandsp-0.0.2_pre201
-rw-r--r--media-libs/spandsp/files/spandsp-0.0.2_pre20-nommx.diff24
-rw-r--r--media-libs/spandsp/spandsp-0.0.2_pre20.ebuild32
-rw-r--r--media-sound/mpg123/Manifest3
-rw-r--r--media-sound/mpg123/files/digest-mpg123-0.59r1
-rw-r--r--media-sound/mpg123/files/mpg123-0.59r-patches-1.0.tar.bz2bin0 -> 26124 bytes
-rw-r--r--media-sound/mpg123/mpg123-0.59r.ebuild105
-rw-r--r--net-im/gnomemeeting/Manifest4
-rw-r--r--net-im/gnomemeeting/files/digest-gnomemeeting-1.2.21
-rw-r--r--net-im/gnomemeeting/files/gnomemeeting-1.2.1-configure.patch25
-rw-r--r--net-im/gnomemeeting/files/gnomemeeting-1.2.2-dbus.diff92
-rw-r--r--net-im/gnomemeeting/gnomemeeting-1.2.2.ebuild113
-rw-r--r--net-im/ohphone/Manifest3
-rw-r--r--net-im/ohphone/files/digest-ohphone-1.14.41
-rw-r--r--net-im/ohphone/files/ohphone-1.14.4-pwlibsdl.diff65
-rw-r--r--net-im/ohphone/ohphone-1.14.4.ebuild68
-rw-r--r--net-libs/libmfcr2/Manifest3
-rw-r--r--net-libs/libmfcr2/files/digest-libmfcr2-0.0.31
-rw-r--r--net-libs/libmfcr2/files/libmfcr2-0.0.3-gentoo.diff13
-rw-r--r--net-libs/libmfcr2/libmfcr2-0.0.3.ebuild34
-rw-r--r--net-libs/libpri/ChangeLog109
-rw-r--r--net-libs/libpri/Manifest5
-rw-r--r--net-libs/libpri/files/digest-libpri-1.2.0_beta11
-rw-r--r--net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff56
-rw-r--r--net-libs/libpri/libpri-1.2.0_beta1.ebuild62
-rw-r--r--net-libs/libpri/metadata.xml9
-rw-r--r--net-libs/libunicall/Manifest2
-rw-r--r--net-libs/libunicall/files/digest-libunicall-0.0.31
-rw-r--r--net-libs/libunicall/libunicall-0.0.3.ebuild31
-rw-r--r--net-libs/opal/Manifest3
-rw-r--r--net-libs/opal/files/digest-opal-2.1.11
-rw-r--r--net-libs/opal/files/opal-2.1.1-notrace.diff11
-rw-r--r--net-libs/opal/opal-2.1.1.ebuild151
-rw-r--r--net-libs/openh323/Manifest7
-rw-r--r--net-libs/openh323/files/digest-openh323-1.15.31
-rw-r--r--net-libs/openh323/files/digest-openh323-1.15.61
-rw-r--r--net-libs/openh323/files/digest-openh323-1.17.21
-rw-r--r--net-libs/openh323/files/openh323-1.15.2-notrace.diff19
-rw-r--r--net-libs/openh323/openh323-1.15.3.ebuild144
-rw-r--r--net-libs/openh323/openh323-1.15.6.ebuild147
-rw-r--r--net-libs/openh323/openh323-1.17.2.ebuild149
-rw-r--r--net-libs/osptoolkit/Manifest2
-rw-r--r--net-libs/osptoolkit/files/digest-osptoolkit-3.3.11
-rw-r--r--net-libs/osptoolkit/osptoolkit-3.3.1.ebuild63
-rw-r--r--net-misc/asterisk-addons/Manifest6
-rw-r--r--net-misc/asterisk-addons/asterisk-addons-1.2.0_beta1.ebuild156
-rw-r--r--net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-base.diff40
-rw-r--r--net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-ooh323c.diff30
-rw-r--r--net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-res_sqlite3.diff61
-rw-r--r--net-misc/asterisk-addons/files/digest-asterisk-addons-1.2.0_beta12
-rw-r--r--net-misc/asterisk-addons/files/sqlite-3.2.1-data-corruption.patch415
-rw-r--r--net-misc/asterisk-app_backticks/Manifest3
-rw-r--r--net-misc/asterisk-app_backticks/asterisk-app_backticks-20050917.ebuild36
-rw-r--r--net-misc/asterisk-app_backticks/files/app_backticks-20050917-astcfg.diff31
-rw-r--r--net-misc/asterisk-app_backticks/files/digest-asterisk-app_backticks-200509171
-rw-r--r--net-misc/asterisk-app_cepstral/Manifest3
-rw-r--r--net-misc/asterisk-app_cepstral/asterisk-app_cepstral-20050917.ebuild36
-rw-r--r--net-misc/asterisk-app_cepstral/files/app_cepstral-20050917-astcfg.diff43
-rw-r--r--net-misc/asterisk-app_cepstral/files/digest-asterisk-app_cepstral-200509171
-rw-r--r--net-misc/asterisk-app_changrab/Manifest3
-rw-r--r--net-misc/asterisk-app_changrab/asterisk-app_changrab-20050917.ebuild36
-rw-r--r--net-misc/asterisk-app_changrab/files/app_changrab-20050917-astcfg.diff42
-rw-r--r--net-misc/asterisk-app_changrab/files/digest-asterisk-app_changrab-200509171
-rw-r--r--net-misc/asterisk-app_intercept/Manifest5
-rw-r--r--net-misc/asterisk-app_intercept/asterisk-app_intercept-20050828.ebuild36
-rw-r--r--net-misc/asterisk-app_intercept/asterisk-app_intercept-20050917.ebuild36
-rw-r--r--net-misc/asterisk-app_intercept/files/app_intercept-20050623-astcfg.diff31
-rw-r--r--net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-200508281
-rw-r--r--net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-200509171
-rw-r--r--net-misc/asterisk-app_rtxfax/Manifest3
-rw-r--r--net-misc/asterisk-app_rtxfax/asterisk-app_rtxfax-0.0.2_pre20.ebuild40
-rw-r--r--net-misc/asterisk-app_rtxfax/files/app_rtxfax-0.0.2_pre20-gentoo.diff56
-rw-r--r--net-misc/asterisk-app_rtxfax/files/digest-asterisk-app_rtxfax-0.0.2_pre201
-rw-r--r--net-misc/asterisk-app_valetparking/Manifest3
-rw-r--r--net-misc/asterisk-app_valetparking/asterisk-app_valetparking-20050917.ebuild36
-rw-r--r--net-misc/asterisk-app_valetparking/files/app_valetparking-20050917-astcfg.diff42
-rw-r--r--net-misc/asterisk-app_valetparking/files/digest-asterisk-app_valetparking-200509171
-rw-r--r--net-misc/asterisk-chan_sccp/ChangeLog68
-rw-r--r--net-misc/asterisk-chan_sccp/Manifest18
-rw-r--r--net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050807.ebuild54
-rw-r--r--net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050826.ebuild54
-rw-r--r--net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild54
-rw-r--r--net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050906.ebuild54
-rw-r--r--net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050913.ebuild54
-rw-r--r--net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050922.ebuild54
-rw-r--r--net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051022.ebuild54
-rw-r--r--net-misc/asterisk-chan_sccp/files/chan_sccp-20050725-gentoo.diff69
-rw-r--r--net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff60
-rw-r--r--net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.200508071
-rw-r--r--net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.200508261
-rw-r--r--net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.200509021
-rw-r--r--net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.200509061
-rw-r--r--net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.200509131
-rw-r--r--net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.200509221
-rw-r--r--net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.200510221
-rw-r--r--net-misc/asterisk-chan_sccp/metadata.xml8
-rw-r--r--net-misc/asterisk-chan_ss7/Manifest4
-rw-r--r--net-misc/asterisk-chan_ss7/asterisk-chan_ss7-0.1.ebuild58
-rw-r--r--net-misc/asterisk-chan_ss7/files/chan_ss7-0.1-gentoo.diff21
-rw-r--r--net-misc/asterisk-chan_ss7/files/digest-asterisk-chan_ss7-0.11
-rw-r--r--net-misc/asterisk-chan_ss7/files/ss7.conf.sample9
-rw-r--r--net-misc/asterisk-chan_unicall/Manifest3
-rw-r--r--net-misc/asterisk-chan_unicall/asterisk-chan_unicall-0.0.3_pre5.ebuild50
-rw-r--r--net-misc/asterisk-chan_unicall/files/digest-asterisk-chan_unicall-0.0.3_pre51
-rw-r--r--net-misc/asterisk-chan_unicall/files/unicall-0.0.3_pre5-gentoo.diff121
-rw-r--r--net-misc/asterisk-chan_visdn/Manifest3
-rw-r--r--net-misc/asterisk-chan_visdn/asterisk-chan_visdn-0.14.0.ebuild71
-rw-r--r--net-misc/asterisk-chan_visdn/files/digest-asterisk-chan_visdn-0.14.01
-rw-r--r--net-misc/asterisk-chan_visdn/files/visdn-0.14.0-configure.diff20
-rw-r--r--net-misc/asterisk-cvs/Manifest2
-rw-r--r--net-misc/asterisk-cvs/asterisk-cvs-9999.ebuild288
-rw-r--r--net-misc/asterisk-cvs/files/digest-asterisk-cvs-99990
-rw-r--r--net-misc/asterisk-format_base64/Manifest3
-rw-r--r--net-misc/asterisk-format_base64/asterisk-format_base64-20050917.ebuild36
-rw-r--r--net-misc/asterisk-format_base64/files/digest-asterisk-format_base64-200509171
-rw-r--r--net-misc/asterisk-format_base64/files/format_base64-20050917-astcfg.diff31
-rw-r--r--net-misc/asterisk/ChangeLog314
-rw-r--r--net-misc/asterisk/Manifest9
-rw-r--r--net-misc/asterisk/asterisk-1.2.0_beta1.ebuild326
-rw-r--r--net-misc/asterisk/files/1.0.0/asterisk-1.0.5-uclibc-dns.diff11
-rw-r--r--net-misc/asterisk/files/1.0.0/asterisk.confd98
-rw-r--r--net-misc/asterisk/files/1.0.0/asterisk.rc6235
-rw-r--r--net-misc/asterisk/files/1.2.0/asterisk.confd96
-rwxr-xr-xnet-misc/asterisk/files/1.2.0/asterisk.rc6239
-rw-r--r--net-misc/asterisk/files/digest-asterisk-1.2.0_beta12
-rw-r--r--net-misc/asterisk/metadata.xml9
-rw-r--r--net-misc/linphone/Manifest3
-rw-r--r--net-misc/linphone/files/digest-linphone-1.1.01
-rw-r--r--net-misc/linphone/files/linphone-1.0.1-ipv6-include.diff13
-rw-r--r--net-misc/linphone/linphone-1.1.0.ebuild70
-rw-r--r--net-misc/wanpipe/Manifest4
-rw-r--r--net-misc/wanpipe/files/digest-wanpipe-2.3.2_p41
-rw-r--r--net-misc/wanpipe/files/wanpipe-2.3.2_p4-gcc34.diff11
-rw-r--r--net-misc/wanpipe/files/wanpipe.confd56
-rw-r--r--net-misc/wanpipe/wanpipe-2.3.2_p4.ebuild217
-rw-r--r--net-misc/yate/Manifest7
-rw-r--r--net-misc/yate/files/digest-yate-0.9.0_pre11
-rw-r--r--net-misc/yate/files/digest-yate-0.9.0_pre21
-rw-r--r--net-misc/yate/files/yate-0.9.0-gtk2.diff12
-rw-r--r--net-misc/yate/files/yate.confd5
-rwxr-xr-xnet-misc/yate/files/yate.rc620
-rw-r--r--net-misc/yate/yate-0.9.0_pre1.ebuild57
-rw-r--r--net-misc/yate/yate-0.9.0_pre2.ebuild59
-rw-r--r--net-misc/zaptel/ChangeLog226
-rw-r--r--net-misc/zaptel/Manifest11
-rw-r--r--net-misc/zaptel/files/digest-zaptel-1.2.0_beta11
-rw-r--r--net-misc/zaptel/files/zaptel-1.0.4-experimental-devfs26.diff220
-rw-r--r--net-misc/zaptel/files/zaptel-1.0.4-gcc34.patch30
-rw-r--r--net-misc/zaptel/files/zaptel-1.2.0_beta1-gentoo.diff124
-rw-r--r--net-misc/zaptel/files/zaptel.confd13
-rw-r--r--net-misc/zaptel/files/zaptel.devfsd5
-rw-r--r--net-misc/zaptel/files/zaptel.rc654
-rw-r--r--net-misc/zaptel/files/zaptel.udevd8
-rw-r--r--net-misc/zaptel/metadata.xml9
-rw-r--r--net-misc/zaptel/zaptel-1.2.0_beta1.ebuild378
171 files changed, 7722 insertions, 0 deletions
diff --git a/dev-libs/pwlib/Manifest b/dev-libs/pwlib/Manifest
new file mode 100644
index 0000000..afc45db
--- /dev/null
+++ b/dev-libs/pwlib/Manifest
@@ -0,0 +1,8 @@
+MD5 82886f6903aff217847b43066c8516fb pwlib-1.8.7.ebuild 4079
+MD5 803af289cf1420b0945770431d7da305 pwlib-1.9.1.ebuild 4873
+MD5 c5e8aafcba9e2996b152a154b7c4cf82 pwlib-1.8.4.ebuild 4797
+MD5 cd832010589d81cab25d2523d62a3401 files/pwlib-1.8.7-instplugins.diff 1044
+MD5 a874e4383164981b3881c8f636ec842b files/digest-pwlib-1.8.7 64
+MD5 7727b16f2fbed2161f1bc6c38aacaa36 files/digest-pwlib-1.8.4 64
+MD5 94fe183a68413eaeb8242cd30532d963 files/pwlib-1.6.3-dyn-esd.patch 366
+MD5 9a453a6b41e8aca4d29d93373e5e0fca files/digest-pwlib-1.9.1 69
diff --git a/dev-libs/pwlib/files/digest-pwlib-1.8.4 b/dev-libs/pwlib/files/digest-pwlib-1.8.4
new file mode 100644
index 0000000..ad49bcb
--- /dev/null
+++ b/dev-libs/pwlib/files/digest-pwlib-1.8.4
@@ -0,0 +1 @@
+MD5 fc638a64216b7751271c539ee4ccd0a8 pwlib-1.8.4.tar.gz 1382438
diff --git a/dev-libs/pwlib/files/digest-pwlib-1.8.7 b/dev-libs/pwlib/files/digest-pwlib-1.8.7
new file mode 100644
index 0000000..61aaaa8
--- /dev/null
+++ b/dev-libs/pwlib/files/digest-pwlib-1.8.7
@@ -0,0 +1 @@
+MD5 ba4fddd6cb8d4420cc18f308ccf48e00 pwlib-1.8.7.tar.gz 1900458
diff --git a/dev-libs/pwlib/files/digest-pwlib-1.9.1 b/dev-libs/pwlib/files/digest-pwlib-1.9.1
new file mode 100644
index 0000000..5a87139
--- /dev/null
+++ b/dev-libs/pwlib/files/digest-pwlib-1.9.1
@@ -0,0 +1 @@
+MD5 17f4247f4f8f896c6a13597f7f1466f7 pwlib-v1_9_1-src-tar.gz 1973686
diff --git a/dev-libs/pwlib/files/pwlib-1.6.3-dyn-esd.patch b/dev-libs/pwlib/files/pwlib-1.6.3-dyn-esd.patch
new file mode 100644
index 0000000..638fd78
--- /dev/null
+++ b/dev-libs/pwlib/files/pwlib-1.6.3-dyn-esd.patch
@@ -0,0 +1,11 @@
+--- make/unix.mak 2004-11-16 11:32:34.000000000 +1100
++++ make/unix.mak.N 2005-07-27 14:12:35.000000000 +1000
+@@ -928,7 +928,7 @@
+ # define ESDDIR variables if installed
+ ifdef ESDDIR
+ STDCCFLAGS += -I$(ESDDIR)/include -DUSE_ESD=1
+-ENDLDLIBS += $(ESDDIR)/lib/libesd.a # to avoid name conflicts
++ENDLDLIBS += -lesd # to avoid name conflicts
+ HAS_ESD = 1
+ endif
+
diff --git a/dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff b/dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff
new file mode 100644
index 0000000..bd59a4b
--- /dev/null
+++ b/dev-libs/pwlib/files/pwlib-1.8.7-instplugins.diff
@@ -0,0 +1,27 @@
+--- pwlib-1.8.7/Makefile.in.orig 2004-06-24 12:46:48.000000000 +0000
++++ pwlib-1.8.7/Makefile.in 2005-09-09 15:48:10.000000000 +0000
+@@ -268,14 +268,16 @@
+ ln -sf $(PTLIB_FILE) libpt.@SHAREDLIBEXT@ \
+ )
+ ifeq (1, $(HAS_PLUGINS))
+- cd plugins/pwlib/device/ ; \
+- ( for dir in ./* ;\
+- do mkdir -p $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir ; \
+- chmod 755 $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir ; \
+- (for fn in ./$$dir/*.so ; \
+- do $(INSTALL) -m 444 $$fn $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir; \
+- done ); \
+- done )
++ if [ -d plugins/pwlib/device ] ; then \
++ cd plugins/pwlib/device/ ; \
++ ( for dir in ./* ;\
++ do mkdir -p $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir ; \
++ chmod 755 $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir ; \
++ (for fn in ./$$dir/*.so ; \
++ do $(INSTALL) -m 444 $$fn $(DESTDIR)$(LIBDIR)/pwlib/devices/$$dir; \
++ done ); \
++ done ) \
++ fi
+ endif
+ $(INSTALL) -m 444 include/ptlib.h $(DESTDIR)$(PREFIX)/include
+ $(INSTALL) -m 444 include/ptbuildopts.h $(DESTDIR)$(PREFIX)/include
diff --git a/dev-libs/pwlib/pwlib-1.8.4.ebuild b/dev-libs/pwlib/pwlib-1.8.4.ebuild
new file mode 100644
index 0000000..d70d989
--- /dev/null
+++ b/dev-libs/pwlib/pwlib-1.8.4.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/pwlib/pwlib-1.8.4.ebuild,v 1.2 2005/07/10 01:11:05 swegener Exp $
+
+inherit eutils flag-o-matic multilib
+
+IUSE="ssl sdl ieee1394 alsa esd v4l2"
+
+DESCRIPTION="Portable Multiplatform Class Libraries for OpenH323"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~x86 ~sparc ~alpha ppc ~amd64"
+
+DEPEND=">=sys-devel/bison-1.28
+ >=sys-devel/flex-2.5.4a
+ dev-libs/expat
+ >=sys-apps/sed-4
+ net-nds/openldap
+ sdl? ( media-libs/libsdl )
+ ssl? ( dev-libs/openssl )
+ alsa? ( media-libs/alsa-lib )
+ ieee1394? ( media-libs/libdv
+ sys-libs/libavc1394
+ sys-libs/libraw1394
+ media-libs/libdc1394 )
+ esd? ( media-sound/esound )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}/make
+
+ # filter out -O3 and -mcpu embedded compiler flags
+ sed -i \
+ -e "s:-mcpu=\$(CPUTYPE)::" \
+ -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
+ unix.mak
+
+ # newer esound package doesn't install libesd.a anymore,
+ # use dynamic library instead (fixes #100432)
+ epatch ${FILESDIR}/pwlib-1.6.3-dyn-esd.patch
+}
+
+src_compile() {
+ local plugins myconf
+
+ # may cause ICE (bug #70638)
+ filter-flags -fstack-protector
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR="/usr"
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ ## gnomemeeting-1.00 requires pwlib to be built w/ IPV6 support
+ ## (even if itself is built without...)
+ #use ipv6 \
+ # && myconf="${myconf} --enable-ipv6" \
+ # || myconf="${myconf} --disable-ipv6"
+ myconf="--enable-ipv6"
+
+ # plugins, oss and v4l are default
+ plugins="oss v4l"
+
+ use ieee1394 \
+ && plugins="${plugins} avc dc"
+
+ use alsa \
+ && plugins="${plugins} alsa"
+
+ if use v4l2; then
+ myconf="${myconf} --enable-v4l2"
+ plugins="${plugins} v4l2"
+ fi
+
+ if use esd; then
+ # fixes bug #45059
+ export ESDDIR=/usr
+
+ # ESD includes are in /usr/include?
+ # remove include path, bad things may happen if we leave it in there
+ sed -i -e "s:-I\$(ESDDIR)/include::" \
+ ${S}/make/unix.mak
+ fi
+
+ # merge plugin options (safe way if default = "")
+ plugins="$(echo ${plugins} | sed -e "y: :,:")"
+
+ econf ${myconf} \
+ --enable-plugins \
+ --with-plugins=${plugins} || die "configure failed"
+
+ # Horrible hack to strip out -L/usr/lib to allow upgrades
+ # problem is it adds -L/usr/lib before -L${S} when SSL is
+ # enabled. Same thing for -I/usr/include.
+ sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" \
+ -e "s:^\(STDCCFLAGS.*\)-I/usr/include:\1:" \
+ ${S}/make/ptbuildopts.mak
+
+ sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" \
+ -e "s:^\(LDFLAGS[\s]*=.*\) -I/usr/include:\1:" \
+ -e "s:^\(CCFLAGS[\s]*=.*\) -I/usr/include:\1:" \
+ ${S}/make/ptlib-config
+
+ emake -j1 opt || die "make failed"
+}
+
+#pkg_preinst() {
+# # remove {lib,include} directories in /usr/share/pwlib
+# # they are getting replaced by symlinks in src_install
+#
+# if [[ -d ${ROOT}usr/share/pwlib/include ]]; then
+# rm -rf ${ROOT}usr/share/pwlib/include
+# fi
+# if [[ -d ${ROOT}usr/share/pwlib/$(get_libdir) ]]; then
+# rm -rf ${ROOT}usr/share/pwlib/$(get_libdir)
+# fi
+#}
+
+src_install() {
+ local libdir libname
+
+ libdir=$(get_libdir)
+
+ # makefile doesn't create ${D}/usr/bin
+ dodir /usr/bin
+ make PREFIX=/usr DESTDIR=${D} install || die "install failed"
+
+ ## vv will try to fix the mess below, requires a lot of patching though...
+
+ # update 2005/08/22:
+ #
+ # locations in *.mak files haven been fixed
+ # directories have been replaced w/ symlinks
+ # (left to not break things, doing some testing atm)
+
+# dosym /usr/include /usr/share/pwlib/include
+# dosym /usr/${libdir} /usr/share/pwlib/${libdir}
+#
+# # just in case...
+# if [[ "${libdir}" = "lib64" ]]; then
+# dosym /usr/share/pwlib/lib64 /usr/share/pwlib/lib
+# fi
+
+ ## ^^ bad stuff
+
+ # fix symlink
+ rm ${D}/usr/${libdir}/libpt.so
+
+ libname=$(basename `ls ${D}/usr/${libdir}/libpt_*_*_r.so.${PV}`)
+ dosym /usr/${libdir}/${libname} /usr/${libdir}/libpt.so
+
+ # strip ${S} stuff
+ sed -i -e "s:^PWLIBDIR.*:PWLIBDIR=/usr/share/pwlib:" \
+ ${D}/usr/bin/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptbuildopts.mak
+
+ # fix makefiles to use headers from /usr/include and libs from /usr/lib
+ # instead of /usr/share/pwlib
+ sed -i -e "s:-I\$(PWLIBDIR)\(/include[a-zA-Z0-9_/-]\+\):-I/usr/include\1:g" \
+ -e "s:-I\$(PWLIBDIR)/include::g" \
+ -e "s:^\(PW_LIBDIR[ \t]\+=\).*:\1 /usr/${libdir}:" \
+ ${D}/usr/share/pwlib/make/*.mak
+
+ # dodgy configure/makefiles forget to expand this
+ sed -i -e "s:\${exec_prefix}:/usr:" \
+ ${D}/usr/bin/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptlib-config
+
+ # copy version.h
+ insinto /usr/share/pwlib
+ doins version.h
+
+ dodoc ReadMe.txt ReadMe_QOS.txt History.txt mpl-1.0.htm
+}
diff --git a/dev-libs/pwlib/pwlib-1.8.7.ebuild b/dev-libs/pwlib/pwlib-1.8.7.ebuild
new file mode 100644
index 0000000..1f3902b
--- /dev/null
+++ b/dev-libs/pwlib/pwlib-1.8.7.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/pwlib/pwlib-1.8.4.ebuild,v 1.2 2005/07/10 01:11:05 swegener Exp $
+
+inherit eutils flag-o-matic multilib
+
+IUSE="alsa esd ieee1394 oss sdl ssl v4l2"
+
+DESCRIPTION="Portable Multiplatform Class Libraries for OpenH323"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+ dev-libs/expat
+ net-nds/openldap
+ esd? ( media-sound/esound )
+ sdl? ( media-libs/libsdl )
+ ssl? ( dev-libs/openssl )
+ alsa? ( media-libs/alsa-lib )
+ ieee1394? ( media-libs/libdv
+ sys-libs/libavc1394
+ sys-libs/libraw1394
+ <media-libs/libdc1394-1.9.9
+ !>=media-libs/libdc1394-2.0.0_pre0 )"
+
+DEPEND="${REDEPEND}
+ >=sys-devel/bison-1.28
+ >=sys-devel/flex-2.5.4a
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # filter out -O3 and -mcpu embedded compiler flags
+ sed -i \
+ -e "s:-mcpu=\$(CPUTYPE)::" \
+ -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
+ make/unix.mak
+
+ # newer esound package doesn't install libesd.a anymore,
+ # use dynamic library instead (fixes #100432)
+ epatch ${FILESDIR}/pwlib-1.6.3-dyn-esd.patch
+
+ # don't break make install if there are no plugins to install
+ epatch ${FILESDIR}/pwlib-1.8.7-instplugins.diff
+}
+
+src_compile() {
+ local myconf
+
+ # may cause ICE (bug #70638)
+ filter-flags -fstack-protector
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR="/usr"
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ ## gnomemeeting-1.00 requires pwlib to be built w/ IPV6 support
+ ## (even if itself is built without...)
+ #use ipv6 \
+ # && myconf="${myconf} --enable-ipv6" \
+ # || myconf="${myconf} --disable-ipv6"
+
+ # enable default plugins and force ipv6
+ myconf="--enable-ipv6 --enable-v4l"
+
+ use ieee1394 \
+ && myconf="${myconf} --enable-avc --enable-dc" \
+ || myconf="${myconf} --disable-avc --disable-dc"
+
+ use alsa \
+ && myconf="${myconf} --enable-alsa"
+
+ if use esd; then
+ # fixes bug #45059
+ export ESDDIR=/usr
+
+ # ESD includes are in /usr/include?
+ # remove include path, bad things may happen if we leave it in there
+ sed -i -e "s:-I\$(ESDDIR)/include::" \
+ ${S}/make/unix.mak
+ fi
+
+ econf \
+ --enable-plugins \
+ $(use_enable v4l2) \
+ $(use_enable sdl) \
+ $(use_enable oss) \
+ ${myconf} || die "configure failed"
+
+ # Horrible hack to strip out -L/usr/lib to allow upgrades
+ # problem is it adds -L/usr/lib before -L${S} when SSL is
+ # enabled. Same thing for -I/usr/include.
+ sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" \
+ -e "s:^\(STDCCFLAGS.*\)-I/usr/include:\1:" \
+ ${S}/make/ptbuildopts.mak
+
+ sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" \
+ -e "s:^\(LDFLAGS[\s]*=.*\) -I/usr/include:\1:" \
+ -e "s:^\(CCFLAGS[\s]*=.*\) -I/usr/include:\1:" \
+ ${S}/make/ptlib-config
+
+ emake -j1 opt || die "make failed"
+}
+
+src_install() {
+ local libdir libname
+
+ libdir=$(get_libdir)
+
+ # makefile doesn't create ${D}/usr/bin
+ dodir /usr/bin
+ make PREFIX=/usr DESTDIR=${D} install || die "install failed"
+
+ # fix symlink
+ rm ${D}/usr/${libdir}/libpt.so
+
+ libname=$(basename `ls ${D}/usr/${libdir}/libpt_*_*_r.so.${PV}`)
+ dosym /usr/${libdir}/${libname} /usr/${libdir}/libpt.so
+
+ # strip ${S} stuff
+ sed -i -e "s:^PWLIBDIR.*:PWLIBDIR=/usr/share/pwlib:" \
+ ${D}/usr/bin/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptbuildopts.mak
+
+ # fix makefiles to use headers from /usr/include and libs from /usr/lib
+ # instead of /usr/share/pwlib
+ sed -i -e "s:-I\$(PWLIBDIR)\(/include[a-zA-Z0-9_/-]\+\):-I/usr/include\1:g" \
+ -e "s:-I\$(PWLIBDIR)/include::g" \
+ -e "s:^\(PW_LIBDIR[ \t]\+=\).*:\1 /usr/${libdir}:" \
+ ${D}/usr/share/pwlib/make/*.mak
+
+ # dodgy configure/makefiles forget to expand this
+ sed -i -e "s:\${exec_prefix}:/usr:" \
+ ${D}/usr/bin/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptlib-config
+
+ # copy version.h
+ insinto /usr/share/pwlib
+ doins version.h
+
+ dodoc ReadMe.txt ReadMe_QOS.txt History.txt mpl-1.0.htm
+}
diff --git a/dev-libs/pwlib/pwlib-1.9.1.ebuild b/dev-libs/pwlib/pwlib-1.9.1.ebuild
new file mode 100644
index 0000000..6cdaf2a
--- /dev/null
+++ b/dev-libs/pwlib/pwlib-1.9.1.ebuild
@@ -0,0 +1,182 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/pwlib/pwlib-1.8.4.ebuild,v 1.2 2005/07/10 01:11:05 swegener Exp $
+
+inherit eutils flag-o-matic multilib
+
+IUSE="ssl sdl ieee1394 alsa esd v4l2"
+
+DESCRIPTION="Portable Multiplatform Class Libraries for OpenH323"
+HOMEPAGE="http://www.voxgratia.org/"
+SRC_URI="http://www.voxgratia.org/releases/pwlib-v${PV//./_}-src-tar.gz"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~x86 ~sparc ~alpha ~ppc ~amd64"
+
+DEPEND=">=sys-devel/bison-1.28
+ >=sys-devel/flex-2.5.4a
+ dev-libs/expat
+ >=sys-apps/sed-4
+ net-nds/openldap
+ sdl? ( media-libs/libsdl )
+ ssl? ( dev-libs/openssl )
+ alsa? ( media-libs/alsa-lib )
+ ieee1394? ( media-libs/libdv
+ sys-libs/libavc1394
+ sys-libs/libraw1394
+ media-plugins/libdc1394 )
+ esd? ( media-sound/esound )"
+
+S="${WORKDIR}/${PN}_v${PV//./_}"
+
+src_unpack() {
+ tar -xzf ${DISTDIR}/${A} -C ${WORKDIR} || die "Unpacking failed"
+
+ cd ${S}/make
+
+ # filter out -O3 and -mcpu embedded compiler flags
+ sed -i \
+ -e "s:-mcpu=\$(CPUTYPE)::" \
+ -e "s:-O3 -DNDEBUG:-DNDEBUG:" \
+ unix.mak
+
+ # newer esound package doesn't install libesd.a anymore,
+ # use dynamic library instead (fixes #100432)
+ epatch ${FILESDIR}/pwlib-1.6.3-dyn-esd.patch
+}
+
+src_compile() {
+ local plugins myconf
+
+ # may cause ICE (bug #70638)
+ filter-flags -fstack-protector
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR="/usr"
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ ## gnomemeeting-1.00 requires pwlib to be built w/ IPV6 support
+ ## (even if itself is built without...)
+ #use ipv6 \
+ # && myconf="${myconf} --enable-ipv6" \
+ # || myconf="${myconf} --disable-ipv6"
+ myconf="--enable-ipv6"
+
+ # plugins, oss and v4l are default
+ plugins="oss v4l"
+
+ use ieee1394 \
+ && plugins="${plugins} avc dc"
+
+ use alsa \
+ && plugins="${plugins} alsa"
+
+ if use v4l2; then
+ myconf="${myconf} --enable-v4l2"
+ plugins="${plugins} v4l2"
+ fi
+
+ if use esd; then
+ # fixes bug #45059
+ export ESDDIR=/usr
+
+ # ESD includes are in /usr/include?
+ # remove include path, bad things may happen if we leave it in there
+ sed -i -e "s:-I\$(ESDDIR)/include::" \
+ ${S}/make/unix.mak
+ fi
+
+ # merge plugin options (safe way if default = "")
+ plugins="$(echo ${plugins} | sed -e "y: :,:")"
+
+ econf ${myconf} \
+ --enable-plugins \
+ --with-plugins=${plugins} || die "configure failed"
+
+ # Horrible hack to strip out -L/usr/lib to allow upgrades
+ # problem is it adds -L/usr/lib before -L${S} when SSL is
+ # enabled. Same thing for -I/usr/include.
+ sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" \
+ -e "s:^\(STDCCFLAGS.*\)-I/usr/include:\1:" \
+ ${S}/make/ptbuildopts.mak
+
+ sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" \
+ -e "s:^\(LDFLAGS[\s]*=.*\) -I/usr/include:\1:" \
+ -e "s:^\(CCFLAGS[\s]*=.*\) -I/usr/include:\1:" \
+ ${S}/make/ptlib-config
+
+ emake -j1 opt || die "make failed"
+}
+
+#pkg_preinst() {
+# # remove {lib,include} directories in /usr/share/pwlib
+# # they are getting replaced by symlinks in src_install
+#
+# if [[ -d ${ROOT}usr/share/pwlib/include ]]; then
+# rm -rf ${ROOT}usr/share/pwlib/include
+# fi
+# if [[ -d ${ROOT}usr/share/pwlib/$(get_libdir) ]]; then
+# rm -rf ${ROOT}usr/share/pwlib/$(get_libdir)
+# fi
+#}
+
+src_install() {
+ local libdir libname
+
+ libdir=$(get_libdir)
+
+ # makefile doesn't create ${D}/usr/bin
+ dodir /usr/bin
+ make PREFIX=/usr DESTDIR=${D} install || die "install failed"
+
+ ## vv will try to fix the mess below, requires a lot of patching though...
+
+ # update 2005/08/22:
+ #
+ # locations in *.mak files haven been fixed
+ # directories have been replaced w/ symlinks
+ # (left to not break things, doing some testing atm)
+
+# dosym /usr/include /usr/share/pwlib/include
+# dosym /usr/${libdir} /usr/share/pwlib/${libdir}
+#
+# # just in case...
+# if [[ "${libdir}" = "lib64" ]]; then
+# dosym /usr/share/pwlib/lib64 /usr/share/pwlib/lib
+# fi
+
+ ## ^^ bad stuff
+
+ # fix symlink
+ rm ${D}/usr/${libdir}/libpt.so
+
+ libname=$(basename `ls ${D}/usr/${libdir}/libpt_*_*_r.so.${PV}`)
+ dosym /usr/${libdir}/${libname} /usr/${libdir}/libpt.so
+
+ # strip ${S} stuff
+ sed -i -e "s:^PWLIBDIR.*:PWLIBDIR=/usr/share/pwlib:" \
+ ${D}/usr/bin/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptbuildopts.mak
+
+ # fix makefiles to use headers from /usr/include and libs from /usr/lib
+ # instead of /usr/share/pwlib
+ sed -i -e "s:-I\$(PWLIBDIR)\(/include[a-zA-Z0-9_/-]\+\):-I/usr/include\1:g" \
+ -e "s:-I\$(PWLIBDIR)/include::g" \
+ -e "s:^\(PW_LIBDIR[ \t]\+=\).*:\1 /usr/${libdir}:" \
+ ${D}/usr/share/pwlib/make/*.mak
+
+ # dodgy configure/makefiles forget to expand this
+ sed -i -e "s:\${exec_prefix}:/usr:" \
+ ${D}/usr/bin/ptlib-config \
+ ${D}/usr/share/pwlib/make/ptlib-config
+
+ # copy version.h
+ insinto /usr/share/pwlib
+ doins version.h
+
+ dodoc ReadMe.txt ReadMe_QOS.txt History.txt mpl-1.0.htm
+}
diff --git a/dev-python/pyst/Manifest b/dev-python/pyst/Manifest
new file mode 100644
index 0000000..934c172
--- /dev/null
+++ b/dev-python/pyst/Manifest
@@ -0,0 +1,2 @@
+MD5 5244ad414327cba4c69b1088b9a8fd34 pyst-0.0.4_rc12.ebuild 663
+MD5 32f3944785ac5aedd70e4e2d7d89e826 files/digest-pyst-0.0.4_rc12 65
diff --git a/dev-python/pyst/files/digest-pyst-0.0.4_rc12 b/dev-python/pyst/files/digest-pyst-0.0.4_rc12
new file mode 100644
index 0000000..1c9e10c
--- /dev/null
+++ b/dev-python/pyst/files/digest-pyst-0.0.4_rc12
@@ -0,0 +1 @@
+MD5 66376ea8370af78d4eef8f7f7fb9e332 pyst-0.0.4rc12.tar.gz 18189
diff --git a/dev-python/pyst/pyst-0.0.4_rc12.ebuild b/dev-python/pyst/pyst-0.0.4_rc12.ebuild
new file mode 100644
index 0000000..f795439
--- /dev/null
+++ b/dev-python/pyst/pyst-0.0.4_rc12.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+MY_P="${PN}-$(delete_version_separator _)"
+
+DESCRIPTION="Asterisk related utility modules for the Python programming language"
+HOMEPAGE="http://sourceforge.net/projects/pyst/"
+SRC_URI="mirror://sourceforge/pyst/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="dev-lang/python"
+
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ python setup.py build || die
+}
+
+src_install() {
+ python setup.py install --root=${D} --prefix=/usr || die
+
+ dodoc PKG-INFO
+ newdoc MANIFEST.in MANIFEST
+}
diff --git a/media-libs/libsupertone/Manifest b/media-libs/libsupertone/Manifest
new file mode 100644
index 0000000..f37067e
--- /dev/null
+++ b/media-libs/libsupertone/Manifest
@@ -0,0 +1,2 @@
+MD5 76b72d1d429492e528d9fbdffb9cb186 libsupertone-0.0.2.ebuild 481
+MD5 d2801d96ae475869bd6079dd864da2d5 files/digest-libsupertone-0.0.2 70
diff --git a/media-libs/libsupertone/files/digest-libsupertone-0.0.2 b/media-libs/libsupertone/files/digest-libsupertone-0.0.2
new file mode 100644
index 0000000..ecbce4c
--- /dev/null
+++ b/media-libs/libsupertone/files/digest-libsupertone-0.0.2
@@ -0,0 +1 @@
+MD5 68771ba244cc85ed8fabdcf4d8476962 libsupertone-0.0.2.tar.gz 299019
diff --git a/media-libs/libsupertone/libsupertone-0.0.2.ebuild b/media-libs/libsupertone/libsupertone-0.0.2.ebuild
new file mode 100644
index 0000000..cead779
--- /dev/null
+++ b/media-libs/libsupertone/libsupertone-0.0.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION=""
+HOMEPAGE="http://www.soft-switch.org/"
+SRC_URI="ftp://ftp.soft-switch.org/pub/unicall/unicall-0.0.3pre5/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+RDEPEND="media-libs/tiff
+ media-libs/spandsp
+ media-libs/audiofile
+ dev-libs/libxml2"
+
+DEPEND="${RDEPEND}"
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/media-libs/spandsp/Manifest b/media-libs/spandsp/Manifest
new file mode 100644
index 0000000..902af6b
--- /dev/null
+++ b/media-libs/spandsp/Manifest
@@ -0,0 +1,3 @@
+MD5 2792a272d510dd688c3251614047047b spandsp-0.0.2_pre20.ebuild 748
+MD5 7dd6337017a4fc9df010c299c4cf7035 files/digest-spandsp-0.0.2_pre20 71
+MD5 29d2fb7a67b8960b1b47f208cd2b2df8 files/spandsp-0.0.2_pre20-nommx.diff 747
diff --git a/media-libs/spandsp/files/digest-spandsp-0.0.2_pre20 b/media-libs/spandsp/files/digest-spandsp-0.0.2_pre20
new file mode 100644
index 0000000..cfb2632
--- /dev/null
+++ b/media-libs/spandsp/files/digest-spandsp-0.0.2_pre20
@@ -0,0 +1 @@
+MD5 8d6e94a30fb4698b5f25eb93e26444e1 spandsp-0.0.2pre20.tar.gz 1312403
diff --git a/media-libs/spandsp/files/spandsp-0.0.2_pre20-nommx.diff b/media-libs/spandsp/files/spandsp-0.0.2_pre20-nommx.diff
new file mode 100644
index 0000000..55e2705
--- /dev/null
+++ b/media-libs/spandsp/files/spandsp-0.0.2_pre20-nommx.diff
@@ -0,0 +1,24 @@
+--- spandsp-0.0.2/src/echo.c.orig 2005-09-06 22:14:33.000000000 +0000
++++ spandsp-0.0.2/src/echo.c 2005-09-06 22:15:06.000000000 +0000
+@@ -89,7 +89,9 @@
+
+ #include "spandsp/alaw_ulaw.h"
+ #include "spandsp/echo.h"
++#if defined(USE_MMX) || defined(USE_SSE2)
+ #include "spandsp/mmx.h"
++#endif
+
+ #if !defined(NULL)
+ #define NULL (void *) 0
+--- spandsp-0.0.2/src/spandsp.h.orig 2005-09-06 22:14:28.000000000 +0000
++++ spandsp-0.0.2/src/spandsp.h 2005-09-06 22:14:50.000000000 +0000
+@@ -39,7 +39,9 @@
+ #include <spandsp/timing.h>
+ #include <spandsp/vector.h>
+ #include <spandsp/complex.h>
++#if defined(USE_MMX) || defined(USE_SSE2)
+ #include <spandsp/mmx.h>
++#endif
+ #include <spandsp/arctan2.h>
+ #include <spandsp/biquad.h>
+ #include <spandsp/fir.h>
diff --git a/media-libs/spandsp/spandsp-0.0.2_pre20.ebuild b/media-libs/spandsp/spandsp-0.0.2_pre20.ebuild
new file mode 100644
index 0000000..fb9e25a
--- /dev/null
+++ b/media-libs/spandsp/spandsp-0.0.2_pre20.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/spandsp/spandsp-0.0.2_pre18.ebuild,v 1.3 2005/07/31 21:20:31 swegener Exp $
+
+inherit eutils
+
+IUSE=""
+
+DESCRIPTION="SpanDSP is a library of DSP functions for telephony."
+HOMEPAGE="http://www.soft-switch.org/"
+
+S="${WORKDIR}/${PN}-0.0.2"
+SRC_URI="ftp://ftp.soft-switch.org/pub/spandsp/${P/_/}/${P/_/}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND=">=media-libs/audiofile-0.2.6-r1
+ >=media-libs/tiff-3.5.7-r1"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-nommx.diff
+}
+
+src_install () {
+ einstall || die
+ dodoc AUTHORS COPYING INSTALL NEWS README
+}
diff --git a/media-sound/mpg123/Manifest b/media-sound/mpg123/Manifest
new file mode 100644
index 0000000..8cdee78
--- /dev/null
+++ b/media-sound/mpg123/Manifest
@@ -0,0 +1,3 @@
+MD5 cf41c920569eb38d4b2ef748806420da mpg123-0.59r.ebuild 2373
+MD5 8936a4142ebda9826bda6818a51e1524 files/digest-mpg123-0.59r 64
+MD5 3cbece963d8297a5ea7bfd4247951e41 files/mpg123-0.59r-patches-1.0.tar.bz2 26124
diff --git a/media-sound/mpg123/files/digest-mpg123-0.59r b/media-sound/mpg123/files/digest-mpg123-0.59r
new file mode 100644
index 0000000..d1abfca
--- /dev/null
+++ b/media-sound/mpg123/files/digest-mpg123-0.59r
@@ -0,0 +1 @@
+MD5 95df59ad1651dd2346d49fafc83747e7 mpg123-0.59r.tar.gz 159028
diff --git a/media-sound/mpg123/files/mpg123-0.59r-patches-1.0.tar.bz2 b/media-sound/mpg123/files/mpg123-0.59r-patches-1.0.tar.bz2
new file mode 100644
index 0000000..1db7ec5
--- /dev/null
+++ b/media-sound/mpg123/files/mpg123-0.59r-patches-1.0.tar.bz2
Binary files differ
diff --git a/media-sound/mpg123/mpg123-0.59r.ebuild b/media-sound/mpg123/mpg123-0.59r.ebuild
new file mode 100644
index 0000000..dcbb99f
--- /dev/null
+++ b/media-sound/mpg123/mpg123-0.59r.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_P="mpg123-${PV}"
+
+PATCH_PV="1.0"
+
+DESCRIPTION="Real Time mp3 player for the asterisk server"
+HOMEPAGE="http://www.mpg123.de/"
+SRC_URI="http://www.mpg123.de/mpg123/${MY_P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="3dnow hardened"
+
+RDEPEND="virtual/libc"
+
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+S="${WORKDIR}/${MY_P}"
+
+EPATCH_SUFFIX="patch"
+
+src_unpack() {
+ tar -x -j -f ${FILESDIR}/mpg123-0.59r-patches-1.0.tar.bz2 || die "Unpacking patch tarball failed"
+
+ unpack ${A}
+ cd ${S}
+
+ # apply patches
+ epatch ${WORKDIR}/patch
+
+# epatch ${FILESDIR}/001_all_alpha.patch
+# epatch ${FILESDIR}/002_all_hppa.patch
+# epatch ${FILESDIR}/003_all_sparc.patch
+# epatch ${FILESDIR}/004_all_amd64.patch
+# epatch ${FILESDIR}/005_all_makefile_fixes.patch
+# epatch ${FILESDIR}/011_all_gentoo_cleanup.patch
+# epatch ${FILESDIR}/100_all_CAN-2003-0577.patch
+# epatch ${FILESDIR}/101_all_CAN-2003-0865.patch
+# epatch ${FILESDIR}/102_all_CAN-2004-0805.patch
+# epatch ${FILESDIR}/103_all_CAN-2004-0982.patch
+# epatch ${FILESDIR}/105_all_CAN-2004-0991.patch
+# # Bug #70592; terminal line settings should only be set once; not everytime a new song starts
+# epatch ${FILESDIR}/110_all_set-terminal-line-settings-once.patch
+#
+# epatch ${FILESDIR}/120_all_3DNow.patch
+# epatch ${FILESDIR}/121_all_64bit-fixes.patch
+# epatch ${FILESDIR}/122_all_8bit.patch
+# epatch ${FILESDIR}/123_all_emu10k1-fixes.patch
+# epatch ${FILESDIR}/124_all_osx.patch
+# epatch ${FILESDIR}/124_all_hardened.patch
+
+ sed -i "s:${PV}-mh4:${PVR}:" version.h
+}
+
+src_compile() {
+ local MAKESTYLE=""
+
+ SYSTEM_ARCH=$(echo $ARCH |\
+ sed -e s/[i]*.86/i386/ \
+ -e s/sun.*/sparc/ \
+ -e s/arm.*/arm/ \
+ -e s/amd64/x86_64/ \
+ -e s/sa110/arm/)
+
+ if [ -z "$SYSTEM_ARCH" ]
+ then
+ SYSTEM_ARCH=$(uname -m |\
+ sed -e s/[i]*.86/i386/ -e s/arm.*/arm/ -e s/sa110/arm/)
+ fi
+
+ case $SYSTEM_ARCH in
+ i386)
+ if use 3dnow ; then
+ MAKESTYLE="-3dnow"
+ else
+ MAKESTYLE="-i486"
+ fi
+ ;;
+ arm)
+ ;;
+ *)
+ MAKESTYLE="-${SYSTEM_ARCH}"
+ ;;
+ esac
+
+ # fix for hardened
+ if use x86 && use hardened; then
+ MAKESTYLE="-hardened"
+ fi
+
+ make linux${MAKESTYLE} || die
+}
+
+src_install() {
+ dobin mpg123
+ doman mpg123.1
+ dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
+}
diff --git a/net-im/gnomemeeting/Manifest b/net-im/gnomemeeting/Manifest
new file mode 100644
index 0000000..d7c61ef
--- /dev/null
+++ b/net-im/gnomemeeting/Manifest
@@ -0,0 +1,4 @@
+MD5 ab12b904791fbe632114a957c75444c7 gnomemeeting-1.2.2.ebuild 2827
+MD5 683dfd499a4dd803dd3cb8797a4d0efe files/gnomemeeting-1.2.1-configure.patch 669
+MD5 502d124d9459e770045a57078e9fcc9c files/gnomemeeting-1.2.2-dbus.diff 4549
+MD5 22a027be44dee7bbf4a030a0392bcda8 files/digest-gnomemeeting-1.2.2 71
diff --git a/net-im/gnomemeeting/files/digest-gnomemeeting-1.2.2 b/net-im/gnomemeeting/files/digest-gnomemeeting-1.2.2
new file mode 100644
index 0000000..570e4ac
--- /dev/null
+++ b/net-im/gnomemeeting/files/digest-gnomemeeting-1.2.2
@@ -0,0 +1 @@
+MD5 65fe2d6a31e63a37c5a6217206223192 gnomemeeting-1.2.2.tar.gz 6059950
diff --git a/net-im/gnomemeeting/files/gnomemeeting-1.2.1-configure.patch b/net-im/gnomemeeting/files/gnomemeeting-1.2.1-configure.patch
new file mode 100644
index 0000000..a523a53
--- /dev/null
+++ b/net-im/gnomemeeting/files/gnomemeeting-1.2.1-configure.patch
@@ -0,0 +1,25 @@
+--- gnomemeeting-1.2.1/configure.orig 2005-04-11 17:24:31.000000000 +0000
++++ gnomemeeting-1.2.1/configure 2005-04-11 17:25:34.000000000 +0000
+@@ -20815,15 +20815,17 @@
+ if test x"${disable_gnome}" = xyes ; then
+
+
+-if false; then
+- GCONF_SCHEMAS_INSTALL_TRUE=
+- GCONF_SCHEMAS_INSTALL_FALSE='#'
+-else
++#if false; then
++# GCONF_SCHEMAS_INSTALL_TRUE=
++# GCONF_SCHEMAS_INSTALL_FALSE='#'
++#else
+ GCONF_SCHEMAS_INSTALL_TRUE='#'
+ GCONF_SCHEMAS_INSTALL_FALSE=
+-fi
++#fi
+
+ else
++ GCONF_SCHEMAS_INSTALL_TRUE=
++ GCONF_SCHEMAS_INSTALL_FALSE='#'
+
+ if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
+ GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
diff --git a/net-im/gnomemeeting/files/gnomemeeting-1.2.2-dbus.diff b/net-im/gnomemeeting/files/gnomemeeting-1.2.2-dbus.diff
new file mode 100644
index 0000000..026d801
--- /dev/null
+++ b/net-im/gnomemeeting/files/gnomemeeting-1.2.2-dbus.diff
@@ -0,0 +1,92 @@
+--- gnomemeeting-1.2.2/configure.orig 2005-09-09 20:31:42.000000000 +0000
++++ gnomemeeting-1.2.2/configure 2005-09-09 20:32:44.000000000 +0000
+@@ -23106,12 +23106,12 @@
+ if test "x$ac_cv_env_DBUS_CFLAGS_set" = "xset"; then
+ pkg_cv_DBUS_CFLAGS=$ac_cv_env_DBUS_CFLAGS_value
+ elif test -n "$PKG_CONFIG"; then
+- if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"dbus-1 = 0.22 dbus-glib-1 = 0.22\" >/dev/null 2>&1") >&5
+- ($PKG_CONFIG --exists "dbus-1 = 0.22 dbus-glib-1 = 0.22" >/dev/null 2>&1) 2>&5
++ if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"dbus-1 >= 0.22 dbus-glib-1 >= 0.22\" >/dev/null 2>&1") >&5
++ ($PKG_CONFIG --exists "dbus-1 >= 0.22 dbus-glib-1 >= 0.22" >/dev/null 2>&1) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+- pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 = 0.22 dbus-glib-1 = 0.22" 2>/dev/null`
++ pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.22 dbus-glib-1 >= 0.22" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi
+@@ -23129,12 +23129,12 @@
+ if test "x$ac_cv_env_DBUS_LIBS_set" = "xset"; then
+ pkg_cv_DBUS_LIBS=$ac_cv_env_DBUS_LIBS_value
+ elif test -n "$PKG_CONFIG"; then
+- if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"dbus-1 = 0.22 dbus-glib-1 = 0.22\" >/dev/null 2>&1") >&5
+- ($PKG_CONFIG --exists "dbus-1 = 0.22 dbus-glib-1 = 0.22" >/dev/null 2>&1) 2>&5
++ if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"dbus-1 >= 0.22 dbus-glib-1 >= 0.22\" >/dev/null 2>&1") >&5
++ ($PKG_CONFIG --exists "dbus-1 >= 0.22 dbus-glib-1 >= 0.22" >/dev/null 2>&1) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+- pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 = 0.22 dbus-glib-1 = 0.22" 2>/dev/null`
++ pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.22 dbus-glib-1 >= 0.22" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi
+@@ -23146,18 +23146,18 @@
+ echo "${ECHO_T}$pkg_cv_DBUS_LIBS" >&6
+
+ if test $pkg_failed = yes; then
+- DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 = 0.22 dbus-glib-1 = 0.22"`
++ DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 0.22 dbus-glib-1 >= 0.22"`
+ # Put the nasty error message in config.log where it belongs
+ echo "$DBUS_PKG_ERRORS" 1>&5
+
+- { { echo "$as_me:$LINENO: error: Package requirements (dbus-1 = 0.22 dbus-glib-1 = 0.22) were not met.
++ { { echo "$as_me:$LINENO: error: Package requirements (dbus-1 >= 0.22 dbus-glib-1 >= 0.22) were not met.
+ Consider adjusting the PKG_CONFIG_PATH environment variable if you
+ installed software in a non-standard prefix.
+
+ Alternatively you may set the DBUS_CFLAGS and DBUS_LIBS environment variables
+ to avoid the need to call pkg-config. See the pkg-config man page for
+ more details." >&5
+-echo "$as_me: error: Package requirements (dbus-1 = 0.22 dbus-glib-1 = 0.22) were not met.
++echo "$as_me: error: Package requirements (dbus-1 >= 0.22 dbus-glib-1 >= 0.22) were not met.
+ Consider adjusting the PKG_CONFIG_PATH environment variable if you
+ installed software in a non-standard prefix.
+
+--- gnomemeeting-1.2.2/configure.in.orig 2005-09-09 20:33:23.000000000 +0000
++++ gnomemeeting-1.2.2/configure.in 2005-09-09 20:33:38.000000000 +0000
+@@ -424,7 +424,7 @@
+ fi
+
+ if test x"${enable_dbus}" = xyes ; then
+- PKG_CHECK_MODULES(DBUS, dbus-1 = 0.22 dbus-glib-1 = 0.22)
++ PKG_CHECK_MODULES(DBUS, dbus-1 >= 0.22 dbus-glib-1 >= 0.22)
+ GNOMEMEETING_CFLAGS="$GNOMEMEETING_CFLAGS $DBUS_CFLAGS -DHAS_DBUS"
+ GNOMEMEETING_LIBS="$GNOMEMEETING_LIBS $DBUS_LIBS"
+ fi
+--- gnomemeeting-1.2.2/Makefile.am.orig 2005-09-09 20:38:42.000000000 +0000
++++ gnomemeeting-1.2.2/Makefile.am 2005-09-09 20:38:55.000000000 +0000
+@@ -37,7 +37,7 @@
+ gconftool-2 --shutdown
+
+ install-services: gnomemeeting.service
+- cp gnomemeeting.service $(libdir)/dbus-1.0/services/
++ cp gnomemeeting.service $(DESTDIR)$(libdir)/dbus-1.0/services/
+
+ if GCONF_SCHEMAS_INSTALL
+ install-data-local: install-schemas
+--- gnomemeeting-1.2.2/Makefile.in.orig 2005-09-09 20:37:49.000000000 +0000
++++ gnomemeeting-1.2.2/Makefile.in 2005-09-09 20:38:30.000000000 +0000
+@@ -702,7 +702,10 @@
+ gconftool-2 --shutdown
+
+ install-services: gnomemeeting.service
+- cp gnomemeeting.service $(libdir)/dbus-1.0/services/
++ if [ ! -d $(DESTDIR)$(libdir)/dbus-1.0/services ]; then \
++ mkdir -m755 -p $(DESTDIR)$(libdir)/dbus-1.0/services ; \
++ fi
++ cp gnomemeeting.service $(DESTDIR)$(libdir)/dbus-1.0/services/
+
+ @GCONF_SCHEMAS_INSTALL_TRUE@install-data-local: install-schemas
+ @GCONF_SCHEMAS_INSTALL_FALSE@install-data-local:
diff --git a/net-im/gnomemeeting/gnomemeeting-1.2.2.ebuild b/net-im/gnomemeeting/gnomemeeting-1.2.2.ebuild
new file mode 100644
index 0000000..92963c1
--- /dev/null
+++ b/net-im/gnomemeeting/gnomemeeting-1.2.2.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/gnomemeeting/gnomemeeting-1.2.1.ebuild,v 1.5 2005/07/29 18:45:27 stkn Exp $
+
+inherit gnome2 eutils flag-o-matic
+
+DESCRIPTION="H.323 videoconferencing and VoIP softphone"
+HOMEPAGE="http://www.gnomemeeting.org/"
+# now part of gnome-2.4
+SRC_URI="http://www.gnomemeeting.org/includes/clicks_counter.php?http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="dbus gnome howl ipv6 sdl ssl"
+
+RDEPEND="~dev-libs/pwlib-1.8.7
+ ~net-libs/openh323-1.15.6
+ >=net-nds/openldap-2.0.0
+ >=x11-libs/gtk+-2.4.0
+ >=dev-libs/glib-2.0.0
+ >=dev-libs/libxml2-2.6.1
+ >=media-sound/esound-0.2.28
+ ssl? ( >=dev-libs/openssl-0.9.6g )
+ sdl? ( >=media-libs/libsdl-1.2.4 )
+ dbus? ( >=sys-apps/dbus-0.22 )
+ howl? ( >=net-misc/howl-0.9.7 )
+ gnome? ( >=gnome-base/libbonoboui-2.2.0
+ >=gnome-base/libbonobo-2.2.0
+ >=gnome-base/libgnomeui-2.2.0
+ >=gnome-base/libgnome-2.2.0
+ >=gnome-base/gnome-vfs-2.2.0
+ >=gnome-base/gconf-2.2.0
+ >=gnome-base/orbit-2.5.0
+ gnome-extra/evolution-data-server )"
+
+
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.12.0
+ >=dev-util/intltool-0.20
+ dev-lang/perl
+ gnome? ( app-text/scrollkeeper )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # Fix configure to install schemafile into the proper directory
+ epatch ${FILESDIR}/${PN}-1.2.1-configure.patch
+
+ # Relax dbus version check and fix installation of service file
+ epatch ${FILESDIR}/${PN}-1.2.2-dbus.diff
+}
+
+src_compile() {
+ local myconf
+
+ # filter -O3, causes trouble with plugins (bug #88710)
+ replace-flags -O3 -O2
+
+ #
+ # i'm going to break your fingers if you touch these!
+ #
+ if use ssl; then
+ myconf="${myconf} --with-openssl-libs=/usr/lib"
+ myconf="${myconf} --with-openssl-includes=/usr/include/openssl"
+ fi
+
+ use sdl \
+ && myconf="${myconf} --with-sdl-prefix=/usr" \
+ || myconf="${myconf} --disable-sdltest"
+
+ use gnome \
+ || myconf="${myconf} --disable-gnome"
+
+ use dbus \
+ && myconf="${myconf} --enable-dbus"
+
+ use howl \
+ || myconf="${myconf} --disable-howl"
+
+ econf \
+ --prefix=/usr \
+ --host=${CHOST} \
+ ${myconf} \
+ $(use_enable ipv6) || die "configure failed"
+ emake -j1 || die
+}
+
+src_install() {
+
+ if use gnome; then
+ gnome2_src_install
+ else
+ make DESTDIR=${D} install || die "make install failed"
+ rm -rf ${D}/usr/lib/bonobo
+
+ dodoc AUTHORS ChangeLog COPYING README INSTALL NEWS FAQ TODO
+ fi
+}
+
+pkg_postinst() {
+
+ if use gnome; then
+ gnome2_pkg_postinst
+ # we need to fix the GConf permissions, see bug #59764
+ # <obz@gentoo.org>
+ einfo "Fixing GConf permissions for gnomemeeting"
+ gnomemeeting-config-tool --fix-permissions
+ fi
+}
+
+DOCS="AUTHORS ChangeLog COPYING README INSTALL NEWS FAQ TODO"
diff --git a/net-im/ohphone/Manifest b/net-im/ohphone/Manifest
new file mode 100644
index 0000000..8ad4f9f
--- /dev/null
+++ b/net-im/ohphone/Manifest
@@ -0,0 +1,3 @@
+MD5 95770a2ab695f07243c684cb4fce40b5 ohphone-1.14.4.ebuild 1537
+MD5 25197dc405a366c21e43ffc24e6ea852 files/ohphone-1.14.4-pwlibsdl.diff 1848
+MD5 4379c35952a7f64a9a57b3115add9b82 files/digest-ohphone-1.14.4 70
diff --git a/net-im/ohphone/files/digest-ohphone-1.14.4 b/net-im/ohphone/files/digest-ohphone-1.14.4
new file mode 100644
index 0000000..d47d308
--- /dev/null
+++ b/net-im/ohphone/files/digest-ohphone-1.14.4
@@ -0,0 +1 @@
+MD5 6efa9f0d1701d9d10ef5f2cc47c870b1 ohphone-v1_14_4-src-tar.gz 97890
diff --git a/net-im/ohphone/files/ohphone-1.14.4-pwlibsdl.diff b/net-im/ohphone/files/ohphone-1.14.4-pwlibsdl.diff
new file mode 100644
index 0000000..43f3a3b
--- /dev/null
+++ b/net-im/ohphone/files/ohphone-1.14.4-pwlibsdl.diff
@@ -0,0 +1,65 @@
+--- ohphone_v1_14_4/main.cxx.orig 2005-09-12 22:36:12.000000000 +0000
++++ ohphone_v1_14_4/main.cxx 2005-09-12 22:49:09.000000000 +0000
+@@ -594,7 +594,7 @@
+ #include "xlibvid.h"
+ #endif
+
+-#ifdef P_SDL
++#if P_SDL
+ #include <ptclib/vsdl.h>
+ #endif
+
+@@ -904,7 +904,7 @@
+ " : svga256 256 colour VGA (Linux only)\n"
+ " : svga full colour VGA (Linux only)\n"
+ #endif
+-#ifdef P_SDL
++#if P_SDL
+ " : sdl Use Simple DirectMedia Library\n"
+ " --videopip : Local video is displayed in adjacent smaller window\n"
+ #endif
+@@ -1214,7 +1214,7 @@
+ && !(videoReceiveDevice *= "svga")
+ && !(videoReceiveDevice *= "svga256")
+ #endif
+-#ifdef P_SDL
++#if P_SDL
+ && !(videoReceiveDevice *= "sdl")
+ #endif
+ #ifdef HAS_X11
+@@ -2403,7 +2403,7 @@
+ if ((!isEncoding) || videoLocal)
+ PAssert(!videoReceiveDevice.IsEmpty(), "video display created without device type");
+
+-#ifdef P_SDL
++#if P_SDL
+ // Dump received video to SDL
+ if (videoReceiveDevice *= "sdl")
+ display = new PSDLVideoDevice(nameStr, isEncoding, sdlThread);
+@@ -3628,7 +3628,7 @@
+
+ void MyH323EndPoint::WaitForSdlTermination()
+ {
+-#ifdef P_SDL
++#if P_SDL
+ PWaitAndSignal m(sdlThreadLock);
+
+ if (sdlThread != NULL) {
+@@ -3641,7 +3641,7 @@
+
+ BOOL MyH323EndPoint::InitialiseSdl(PConfigArgs & args)
+ {
+-#ifdef P_SDL
++#if P_SDL
+ PWaitAndSignal mutex(sdlThreadLock);
+ sdlThread = NULL;
+ #endif
+@@ -3653,7 +3653,7 @@
+ videoDisplayDevice = args.GetOptionString("h261");
+
+ if (videoDisplayDevice *= "sdl") {
+-#ifdef P_SDL
++#if P_SDL
+ sdlThread = new PSDLDisplayThread(args.HasOption("videopip"));
+ PTRACE(3, "SDL display thread has been created ");
+ #else
diff --git a/net-im/ohphone/ohphone-1.14.4.ebuild b/net-im/ohphone/ohphone-1.14.4.ebuild
new file mode 100644
index 0000000..cad884e
--- /dev/null
+++ b/net-im/ohphone/ohphone-1.14.4.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ohphone/ohphone-1.4.3_pre20050304.ebuild,v 1.1 2005/07/06 10:28:48 liquidx Exp $
+
+inherit eutils
+
+MY_PV="v${PV//./_}"
+
+DESCRIPTION="Command line H.323 client"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="http://www.voxgratia.org/releases/ohphone-${MY_PV}-src-tar.gz"
+
+LICENSE="MPL-1.0"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE="X svga"
+
+RDEPEND="
+ ~net-libs/openh323-1.15.6
+ ~dev-libs/pwlib-1.8.7
+ X? ( virtual/x11 )
+ svga? ( media-libs/svgalib )"
+
+S=${WORKDIR}/${PN}_${MY_PV}
+
+src_unpack() {
+ tar -xzf ${DISTDIR}/${A} -C ${WORKDIR} || die "Failed to unpack archive"
+
+ cd ${S}
+
+ use svga \
+ || sed -i -e "s:-lvga::" -e "s:-DHAS_VGALIB::" Makefile
+
+ # pwlib sets P_SDL 0 if sdl support isn't present,
+ # ohphone expects it to be undefined in that case...
+ epatch ${FILESDIR}/${PN}-1.14.4-pwlibsdl.diff
+}
+
+src_compile() {
+ local myopts
+
+ use X \
+ && myopts="${myopts} XINCDIR=/usr/X11R6/include XLIBDIR=/usr/X11R6/lib" \
+ || myopts="${myopts} XINCDIR=/dev/null XLIBDIR=/dev/null"
+
+ emake \
+ OPENH323DIR=/usr/share/openh323 \
+ PREFIX=/usr \
+ PWLIBDIR=/usr/share/pwlib \
+ PW_LIBDIR=/usr/lib \
+ OH323_LIBDIR=/usr/lib \
+ ${myopts} \
+ opt man || die
+}
+
+src_install() {
+ cd ${WORKDIR}/${PN}
+ doman ohphone.1
+
+ # fill in for other archs
+ if use x86; then
+ dobin obj_linux_x86_r/ohphone
+ elif use ppc; then
+ dobin obj_linux_ppc_r/ohphone
+ else
+ die "no binary available for your arch"
+ fi
+}
diff --git a/net-libs/libmfcr2/Manifest b/net-libs/libmfcr2/Manifest
new file mode 100644
index 0000000..488e856
--- /dev/null
+++ b/net-libs/libmfcr2/Manifest
@@ -0,0 +1,3 @@
+MD5 824d20aefc5990d31b2d0ec294fe9cf0 libmfcr2-0.0.3.ebuild 584
+MD5 4c062e05e5619d57ef699020f597abef files/libmfcr2-0.0.3-gentoo.diff 554
+MD5 e1bddd3d5e43c0c8916c92b184c6f54c files/digest-libmfcr2-0.0.3 66
diff --git a/net-libs/libmfcr2/files/digest-libmfcr2-0.0.3 b/net-libs/libmfcr2/files/digest-libmfcr2-0.0.3
new file mode 100644
index 0000000..77d3876
--- /dev/null
+++ b/net-libs/libmfcr2/files/digest-libmfcr2-0.0.3
@@ -0,0 +1 @@
+MD5 e563961522a8dc5213613e44b95eaecc libmfcr2-0.0.3.tar.gz 340589
diff --git a/net-libs/libmfcr2/files/libmfcr2-0.0.3-gentoo.diff b/net-libs/libmfcr2/files/libmfcr2-0.0.3-gentoo.diff
new file mode 100644
index 0000000..974ac1f
--- /dev/null
+++ b/net-libs/libmfcr2/files/libmfcr2-0.0.3-gentoo.diff
@@ -0,0 +1,13 @@
+--- libmfcr2-0.0.3/Makefile.in.orig 2005-09-05 19:34:39.000000000 +0200
++++ libmfcr2-0.0.3/Makefile.in 2005-09-05 19:35:21.000000000 +0200
+@@ -628,8 +628,8 @@
+
+
+ install-exec-local:
+- $(mkinstalldirs) $(prefix)/lib/unicall/protocols
+- cp -p -r .libs/libmfcr2.so.*.*.* $(prefix)/lib/unicall/protocols/protocol_mfcr2.so
++ $(mkinstalldirs) $(DESTDIR)$(prefix)/lib/unicall/protocols
++ cp -p -r .libs/libmfcr2.so.*.*.* $(DESTDIR)$(prefix)/lib/unicall/protocols/protocol_mfcr2.so
+
+ mfcr2-notes: mfcr2-notes.xml
+ docbook2html -o mfcr2-notes mfcr2-notes.xml
diff --git a/net-libs/libmfcr2/libmfcr2-0.0.3.ebuild b/net-libs/libmfcr2/libmfcr2-0.0.3.ebuild
new file mode 100644
index 0000000..aa84c1f
--- /dev/null
+++ b/net-libs/libmfcr2/libmfcr2-0.0.3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION=""
+HOMEPAGE="http://www.soft-switch.org/"
+SRC_URI="ftp://ftp.soft-switch.org/pub/unicall/unicall-0.0.3pre5/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+RDEPEND="dev-libs/libxml2
+ media-libs/spandsp
+ media-libs/tiff
+ media-libs/libsupertone
+ net-libs/libunicall"
+
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-libs/libpri/ChangeLog b/net-libs/libpri/ChangeLog
new file mode 100644
index 0000000..93f2308
--- /dev/null
+++ b/net-libs/libpri/ChangeLog
@@ -0,0 +1,109 @@
+# ChangeLog for net-libs/libpri
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/ChangeLog,v 1.28 2005/06/28 21:02:01 stkn Exp $
+
+ 28 Jun 2005; Stefan Knoblich <stkn@gentoo.org> libpri-1.0.7-r1.ebuild:
+ Marking stable on x86.
+
+ 25 Jun 2005; Stefan Knoblich <stkn@gentoo.org> libpri-1.0.4.ebuild,
+ libpri-1.0.6.ebuild, libpri-1.0.7-r1.ebuild, libpri-1.0.7.ebuild:
+ Fixed SRC_URI.
+
+*libpri-1.0.8 (25 Jun 2005)
+
+ 25 Jun 2005; Stefan Knoblich <stkn@gentoo.org> +libpri-1.0.8.ebuild:
+ Version bump.
+
+ 23 Jun 2005; Stefan Knoblich <stkn@gentoo.org> libpri-1.0.7-r1.ebuild:
+ ~* keywords restored for asterisk-1.0.7 security update (bug #96826).
+
+ 01 Jun 2005; Stefan Knoblich <stkn@gentoo.org> libpri-1.0.7-r1.ebuild:
+ Bristuff updated to 0.2.0-RC8g.
+
+ 12 May 2005; Stefan Knoblich <stkn@gentoo.org> libpri-1.0.7-r1.ebuild:
+ Updated bristuff to 0.2.0-RC8d
+
+ 10 May 2005; Stefan Knoblich <stkn@gentoo.org> libpri-1.0.7-r1.ebuild:
+ Updated bristuff to latest version.
+
+*libpri-1.0.7-r1 (07 May 2005)
+
+ 07 May 2005; Stefan Knoblich <stkn@gentoo.org> +libpri-1.0.7-r1.ebuild:
+ Updated to bristuff-0.2.0-RC8a.
+
+ 05 May 2005; Sven Wegener <swegener@gentoo.org> libpri-1.0.6.ebuild,
+ libpri-1.0.7.ebuild:
+ Added missing parentheses to SRC_URI.
+
+*libpri-1.0.7 (21 Mar 2005)
+
+ 21 Mar 2005; Stefan Knoblich <stkn@gentoo.org> +libpri-1.0.7.ebuild:
+ Version bump.
+
+*libpri-1.0.6 (10 Mar 2005)
+
+ 10 Mar 2005; Stefan Knoblich <stkn@gentoo.org> +libpri-1.0.6.ebuild:
+ New version. Adds bristuff support.
+
+ 21 Feb 2005; Simon Stelling <blubb@gentoo.org> libpri-1.0.4.ebuild:
+ added ~amd64
+
+*libpri-1.0.4 (14 Feb 2005)
+
+ 14 Feb 2005; Stefan Knoblich <stkn@gentoo.org> libpri-1.0.3.ebuild,
+ +libpri-1.0.4.ebuild:
+ Version bump and fixed SRC_URI for old version.
+
+ 19 Dec 2004; Stefan Knoblich <stkn@gentoo.org> libpri-1.0.2.ebuild:
+ fixed SRC_URI
+
+*libpri-1.0.3 (19 Dec 2004)
+
+ 19 Dec 2004; Stefan Knoblich <stkn@gentoo.org> +libpri-1.0.3.ebuild:
+ version bump
+
+ 10 Nov 2004; Gustavo Zacarias <gustavoz@gentoo.org> libpri-1.0.2.ebuild:
+ Keyworded ~sparc
+
+*libpri-1.0.2 (10 Nov 2004)
+
+ 10 Nov 2004; <stkn@gentoo.org> libpri-1.0.1.ebuild, +libpri-1.0.2.ebuild:
+ version bump and fixed SRC_URI in 1.0.1 ebuild
+
+*libpri-1.0.1 (24 Oct 2004)
+
+ 24 Oct 2004; <stkn@gentoo.org> libpri-1.0.0.ebuild, +libpri-1.0.1.ebuild:
+ version bump and changed SRC_URI in libpri-1.0.0
+
+ 14 Oct 2004; David Holm <dholm@gentoo.org> libpri-1.0.0.ebuild:
+ Added to ~ppc.
+
+*libpri-1.0.0 (24 Sep 2004)
+
+ 24 Sep 2004; <stkn@gentoo.org> +libpri-1.0.0.ebuild:
+ version bump
+
+ 27 Jul 2004; Stefan Knoblich <stkn@gentoo.org> libpri-0.4.0.ebuild:
+ stable on x86
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> libpri-0.4.0.ebuild,
+ libpri-0.6.0.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 10 May 2004; David Holm <dholm@gentoo.org> libpri-0.4.0.ebuild:
+ Added to ~ppc.
+
+*libpri-0.6.0 (10 May 2004)
+
+ 10 May 2004; Stefan Knoblich <stkn@gentoo.org> libpri-0.6.0.ebuild:
+ version bump.
+
+ 19 Feb 2004; Stefan Knoblich <stkn@gentoo.org> libpri-0.4.0.ebuild:
+ fixed SRC_URI
+
+*libpri-0.4.0 (04 Jan 2004)
+
+ 04 Jan 2004; Stefan Knoblich <stkn@gentoo.org> libpri-0.4.0.ebuild,
+ metadata.xml:
+ initial import. ebuild created by Ray Russell Reese III <anti@gentoo.org>
+
diff --git a/net-libs/libpri/Manifest b/net-libs/libpri/Manifest
new file mode 100644
index 0000000..8cd2074
--- /dev/null
+++ b/net-libs/libpri/Manifest
@@ -0,0 +1,5 @@
+MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248
+MD5 bdfcb64515e27e2304f3fcf911afaec7 ChangeLog 3333
+MD5 0525c703fa5625f575fbd6913abdd7c5 libpri-1.2.0_beta1.ebuild 1156
+MD5 64f61304e7d2476f8fff69091dde8040 files/digest-libpri-1.2.0_beta1 69
+MD5 c0ce8dfc299febbd63c851177d98d762 files/libpri-1.2.0_beta1-gentoo.diff 2122
diff --git a/net-libs/libpri/files/digest-libpri-1.2.0_beta1 b/net-libs/libpri/files/digest-libpri-1.2.0_beta1
new file mode 100644
index 0000000..acb9146
--- /dev/null
+++ b/net-libs/libpri/files/digest-libpri-1.2.0_beta1
@@ -0,0 +1 @@
+MD5 085bd46523c795b22206a7838f9d9d84 libpri-1.2.0-beta1.tar.gz 75374
diff --git a/net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff b/net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff
new file mode 100644
index 0000000..b12be30
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.2.0_beta1-gentoo.diff
@@ -0,0 +1,56 @@
+--- libpri/Makefile.orig 2005-06-22 00:47:39.000000000 +0200
++++ libpri/Makefile 2005-07-25 17:48:27.000000000 +0200
+@@ -38,33 +38,18 @@
+ DYNAMIC_LIBRARY=libpri.so.1.0
+ STATIC_OBJS=copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
+ DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
+-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
++CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
+ INSTALL_PREFIX=
+ INSTALL_BASE=/usr
+-ifeq (${OSARCH},Linux)
+-LDCONFIG_FLAGS=-n
+-else
+ ifeq (${OSARCH},FreeBSD)
+-LDCONFIG_FLAGS=-m
+ CFLAGS += -I../zaptel -I../zapata
+ endif
+-endif
+ ifeq (${OSARCH},SunOS)
+ CFLAGS += -DSOLARIS -I../zaptel-solaris -lsocket -lnsl
+ SOFLAGS =
+-LDCONFIG = echo
+ INSTALL_BASE = /usr/local
+ else
+ SOFLAGS = -Wl,-soname,libpri.so.1
+-LDCONFIG = /sbin/ldconfig
+-endif
+-
+-#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
+-#This works for even old (2.96) versions of gcc and provides a small boost either way.
+-#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
+-ifeq ($(PROC),sparc64)
+-PROC=ultrasparc
+-CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+ endif
+
+ all: depend $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
+@@ -82,10 +67,8 @@
+ mkdir -p $(INSTALL_PREFIX)/$(INSTALL_BASE)/include
+ install -m 644 libpri.h $(INSTALL_PREFIX)/$(INSTALL_BASE)/include
+ install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib
+- if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then restorecon -v $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
+ ( cd $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib ; ln -sf libpri.so.1 libpri.so )
+ install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib
+- $(LDCONFIG)
+
+ uninstall:
+ @echo "Removing Libpri"
+@@ -119,7 +102,6 @@
+
+ $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
+ $(CC) -shared $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
+- $(LDCONFIG) $(LDCONFIG_FLAGS) .
+ ln -sf libpri.so.1 libpri.so
+
+ clean:
diff --git a/net-libs/libpri/libpri-1.2.0_beta1.ebuild b/net-libs/libpri/libpri-1.2.0_beta1.ebuild
new file mode 100644
index 0000000..017241c
--- /dev/null
+++ b/net-libs/libpri/libpri-1.2.0_beta1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+## TODO:
+#
+# - bristuff (waiting for next upstream release...)
+# - test instsrc
+#
+
+IUSE="instsrc"
+
+MY_P="${P/_/-}"
+
+#BRI_VERSION="0.2.0-RC8h"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://ftp.digium.com/pub/libpri/${MY_P}.tar.gz"
+# bri? ( http://www.junghanns.net/asterisk/downloads/bristuff-${BRI_VERSION}.tar.gz )"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+
+DEPEND="virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+
+# if use bri; then
+# einfo "Patching libpri w/ BRI stuff (${BRI_VERSION})"
+# epatch ${WORKDIR}/bristuff-${BRI_VERSION}/patches/libpri.patch
+# fi
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ make INSTALL_PREFIX=${D} install || die
+
+ dodoc ChangeLog README TODO LICENSE
+
+ if use instsrc; then
+ # cleanup and copy ${S} to /usr/src
+ einfo "Installing ${PN} sources into ${ROOT}usr/src..."
+
+ make clean
+
+ dodir /usr/src
+ cp -pPR ${S} ${D}/usr/src
+ fi
+}
diff --git a/net-libs/libpri/metadata.xml b/net-libs/libpri/metadata.xml
new file mode 100644
index 0000000..10f27dc
--- /dev/null
+++ b/net-libs/libpri/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>voip</herd>
+<maintainer>
+ <email>stkn@gentoo.org</email>
+ <name>Stefan Knoblich</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-libs/libunicall/Manifest b/net-libs/libunicall/Manifest
new file mode 100644
index 0000000..065e199
--- /dev/null
+++ b/net-libs/libunicall/Manifest
@@ -0,0 +1,2 @@
+MD5 ff38e2eb9103b451dce829440e06a5b3 libunicall-0.0.3.ebuild 543
+MD5 b89b91a7abcab33d8f06e22545cbbd86 files/digest-libunicall-0.0.3 68
diff --git a/net-libs/libunicall/files/digest-libunicall-0.0.3 b/net-libs/libunicall/files/digest-libunicall-0.0.3
new file mode 100644
index 0000000..65259c9
--- /dev/null
+++ b/net-libs/libunicall/files/digest-libunicall-0.0.3
@@ -0,0 +1 @@
+MD5 78b2fc9a0b336dc1883b81df92f2cbbb libunicall-0.0.3.tar.gz 332365
diff --git a/net-libs/libunicall/libunicall-0.0.3.ebuild b/net-libs/libunicall/libunicall-0.0.3.ebuild
new file mode 100644
index 0000000..6fce0d9
--- /dev/null
+++ b/net-libs/libunicall/libunicall-0.0.3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION=""
+HOMEPAGE="http://www.soft-switch.org/"
+SRC_URI="ftp://ftp.soft-switch.org/pub/unicall/unicall-0.0.3pre5/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+RDEPEND="
+ media-libs/spandsp
+ media-libs/tiff
+ media-libs/audiofile"
+
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-libs/opal/Manifest b/net-libs/opal/Manifest
new file mode 100644
index 0000000..89b6de3
--- /dev/null
+++ b/net-libs/opal/Manifest
@@ -0,0 +1,3 @@
+MD5 3b06a8b2c6572250b200504db0ad1059 opal-2.1.1.ebuild 3993
+MD5 113fb4a0a15d15fd1d72a6f6e9fc780c files/digest-opal-2.1.1 68
+MD5 9be1e6d40d03be09fb8b6b9d5302374b files/opal-2.1.1-notrace.diff 263
diff --git a/net-libs/opal/files/digest-opal-2.1.1 b/net-libs/opal/files/digest-opal-2.1.1
new file mode 100644
index 0000000..4c12ff3
--- /dev/null
+++ b/net-libs/opal/files/digest-opal-2.1.1
@@ -0,0 +1 @@
+MD5 654f2ea2ad5071d5093b42837a8feb8b opal-v2_1_1-src-tar.gz 3625817
diff --git a/net-libs/opal/files/opal-2.1.1-notrace.diff b/net-libs/opal/files/opal-2.1.1-notrace.diff
new file mode 100644
index 0000000..e03eaa4
--- /dev/null
+++ b/net-libs/opal/files/opal-2.1.1-notrace.diff
@@ -0,0 +1,11 @@
+--- opal_v2_1_1/Makefile.in.orig 2005-09-04 03:40:12.000000000 +0000
++++ opal_v2_1_1/Makefile.in 2005-09-04 03:40:49.000000000 +0000
+@@ -176,7 +176,7 @@
+
+ OPAL_OBJDIR = $(OPAL_LIBDIR)/$(PT_OBJBASE)
+ ifdef NOTRACE
+-OPAL_OBJDIR += n
++OBJDIR_SUFFIX := n
+ endif
+
+
diff --git a/net-libs/opal/opal-2.1.1.ebuild b/net-libs/opal/opal-2.1.1.ebuild
new file mode 100644
index 0000000..2af3dbe
--- /dev/null
+++ b/net-libs/opal/opal-2.1.1.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.15.3.ebuild,v 1.3 2005/07/27 10:36:50 pvdabeel Exp $
+
+inherit eutils flag-o-matic multilib
+
+MY_P="${PN}-v${PV//./_}"
+
+DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="http://www.voxgratia.org/releases/${PN}-v${PV//./_}-src-tar.gz"
+
+IUSE="ssl novideo noaudio debug"
+SLOT="0"
+LICENSE="MPL-1.1"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~hppa"
+
+DEPEND=">=sys-apps/sed-4
+ >=dev-libs/pwlib-1.8.4
+ >=media-video/ffmpeg-0.4.7
+ ssl? ( dev-libs/openssl )"
+
+S="${WORKDIR}/${PN}_v${PV//./_}"
+
+src_unpack() {
+ tar -xzf ${DISTDIR}/${A} -C ${WORKDIR} || die "Unpacking failed"
+
+ cd ${S}
+ # Makefile is currently broken with NOTRACE=1, fix that
+# epatch ${FILESDIR}/${PN}-1.15.2-notrace.diff
+
+ epatch ${FILESDIR}/${PN}-2.1.1-notrace.diff
+}
+
+src_compile() {
+ local makeopts
+ local myconf
+
+ # remove -fstack-protector, may cause problems (bug #75259)
+ filter-flags -fstack-protector
+
+# export PWLIBDIR=/usr/share/pwlib
+# export PTLIB_CONFIG=/usr/bin/ptlib-config
+# export OPALDIR=${S}
+
+# makeopts="LDFLAGS=-L${S}/lib"
+
+ # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
+ # compile with PTRACING if the user wants to debug stuff
+ if ! use debug; then
+ makeopts="${makeopts} NOTRACE=1"
+ fi
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR=/usr
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ # doesn't work with osptoolkit-3.3.1
+ myconf="--disable-transnexusosp"
+
+ use novideo \
+ && myconf="${myconf} --disable-video"
+
+ use noaudio \
+ && myconf="${myconf} --disable-audio"
+
+ econf \
+ PWLIBDIR=/usr/share/pwlib \
+ OPALDIR=${S} \
+ ${myconf} || die "configure failed"
+
+ emake ${makeopts} opt || die "make failed"
+}
+
+src_install() {
+ local OPAL_ARCH ALT_ARCH OPAL_SUFFIX
+ local makeopts libdir
+
+ # make NOTRACE=1 opt ==> linux_$ARCH_n
+ # make opt ==> linux_$ARCH_r
+ if ! use debug; then
+ OPAL_SUFFIX="n"
+ makeopts="NOTRACE=1"
+ else
+ OPAL_SUFFIX="r"
+ fi
+
+ # use ptlib-config to get the right values here (for hppa, amd64 ...)
+ OPAL_ARCH="$(ptlib-config --ostype)_$(ptlib-config --machtype)_${OPAL_SUFFIX}"
+
+ # set ALT_ARCH
+ if use debug; then
+ ALT_ARCH=${OPAL_ARCH/_r/_n}
+ else
+ ALT_ARCH=${OPAL_ARCH/_n/_r}
+ fi
+
+ ###
+ # Install stuff
+ #
+ make PREFIX=/usr DESTDIR=${D} \
+ ${makeopts} install || die "install failed"
+# OH323_FILE="libopal_${OPAL_ARCH}.so.${PV}" \
+
+ libdir=$(get_libdir)
+
+ # fix OPAL's bogus symlinks
+ for pv in ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ rm -f ${D}/usr/${libdir}/libopal_${OPAL_ARCH}.so.${pv}
+
+ dosym /usr/${libdir}/libopal_${OPAL_ARCH}.so.${PV} \
+ /usr/${libdir}/libopal_${OPAL_ARCH}.so.${pv}
+ done
+ rm -f ${D}/usr/${libdir}/libh323_${OPAL_ARCH}.so
+ dosym /usr/${libdir}/libopal_${OPAL_ARCH}.so.${PV} \
+ /usr/${libdir}/libopal_${OPAL_ARCH}.so
+
+ # create backwards compatibility with _r versioned libraries
+ for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ # compat symlink
+ dosym /usr/${libdir}/libopal_${OPAL_ARCH}.so.${PV} \
+ /usr/${libdir}/libopal_${ALT_ARCH}.so.${pv}
+ done
+ dosym /usr/${libdir}/libopal_${OPAL_ARCH}.so.${PV} \
+ /usr/${libdir}/libopal_${ALT_ARCH}.so
+
+ ###
+ # Compatibility "hacks"
+ #
+
+ # install version.h into $OPALDIR
+ insinto /usr/share/opal
+ doins version.h
+
+# # should try to get rid of this one
+# rm -f ${D}/usr/${libdir}/libopal.so
+# dosym /usr/${libdir}/libopal_${OPAL_ARCH}.so.${PV} /usr/${libdir}/libopal.so
+
+# # these should point to the right directories,
+# # OPAL.org apps and others need this
+# dosed "s:^OH323_LIBDIR = \$(OPALDIR).*:OH323_LIBDIR = /usr/${libdir}:" \
+# /usr/share/opal/openh323u.mak
+# dosed "s:^OH323_INCDIR = \$(OPALDIR).*:OH323_INCDIR = /usr/include/opal:" \
+# /usr/share/opal/openh323u.mak
+
+# # this is hardcoded now?
+# dosed "s:^\(OPALDIR[ \t]\+=\) ${S}:\1 /usr/share/opal:" \
+# /usr/share/opal/openh323u.mak
+}
diff --git a/net-libs/openh323/Manifest b/net-libs/openh323/Manifest
new file mode 100644
index 0000000..b362936
--- /dev/null
+++ b/net-libs/openh323/Manifest
@@ -0,0 +1,7 @@
+MD5 2e72f4426e8cb77f4dc0c7755affad90 openh323-1.15.6.ebuild 4053
+MD5 cee334c785ffc04deef2b70e41f7ce38 openh323-1.17.2.ebuild 4173
+MD5 7390823402ebc213cd212134426bf19b openh323-1.15.3.ebuild 4029
+MD5 73a8df25ace2235307956d67acecb32d files/openh323-1.15.2-notrace.diff 801
+MD5 f5617f451bc51bdc25f39d40f32dd7a4 files/digest-openh323-1.15.6 68
+MD5 cfdd76561ff2f0a2582f953e56fa4623 files/digest-openh323-1.15.3 68
+MD5 7044832807652670d87fcbce751bb844 files/digest-openh323-1.17.2 73
diff --git a/net-libs/openh323/files/digest-openh323-1.15.3 b/net-libs/openh323/files/digest-openh323-1.15.3
new file mode 100644
index 0000000..49b5ab1
--- /dev/null
+++ b/net-libs/openh323/files/digest-openh323-1.15.3
@@ -0,0 +1 @@
+MD5 f9d25921281843fd2304da494b2e04e2 openh323-1.15.3.tar.gz 3754056
diff --git a/net-libs/openh323/files/digest-openh323-1.15.6 b/net-libs/openh323/files/digest-openh323-1.15.6
new file mode 100644
index 0000000..c8340dc
--- /dev/null
+++ b/net-libs/openh323/files/digest-openh323-1.15.6
@@ -0,0 +1 @@
+MD5 6c49f41c4cec39172000586a26b98c48 openh323-1.15.6.tar.gz 3739001
diff --git a/net-libs/openh323/files/digest-openh323-1.17.2 b/net-libs/openh323/files/digest-openh323-1.17.2
new file mode 100644
index 0000000..e8102fc
--- /dev/null
+++ b/net-libs/openh323/files/digest-openh323-1.17.2
@@ -0,0 +1 @@
+MD5 3e6ba22d3f8b7f41c00793e7e28c31e5 openh323-v1_17_2-src-tar.gz 3813540
diff --git a/net-libs/openh323/files/openh323-1.15.2-notrace.diff b/net-libs/openh323/files/openh323-1.15.2-notrace.diff
new file mode 100644
index 0000000..762f9f7
--- /dev/null
+++ b/net-libs/openh323/files/openh323-1.15.2-notrace.diff
@@ -0,0 +1,19 @@
+--- openh323/Makefile.in 2004-08-22 06:21:45.000000000 +0200
++++ openh323/Makefile.in.orig 2004-11-27 21:22:44.431975832 +0100
+@@ -328,12 +328,12 @@
+
+ install:
+ mkdir -p $(DESTDIR)$(LIBDIR)
+- rm -f $(DESTDIR)$(LIBDIR)/libh323_*_r.so*
+- $(INSTALL) -m 444 lib/*_r.so $(DESTDIR)$(LIBDIR)
+- (for fn in lib/*_r.so.* ; do \
++ rm -f $(DESTDIR)$(LIBDIR)/libh323_*_$(OH323_SUFFIX).so*
++ $(INSTALL) -m 444 lib/*_$(OH323_SUFFIX).so $(DESTDIR)$(LIBDIR)
++ (for fn in lib/*_$(OH323_SUFFIX).so.* ; do \
+ cd $(DESTDIR)$(LIBDIR) ; \
+ rm -f `basename $$fn` ; \
+- ln -s libh323_*_r.so `basename $$fn` ; \
++ ln -s libh323_*_$(OH323_SUFFIX).so `basename $$fn` ; \
+ done)
+ $(INSTALL) -m 444 lib/$(OH323_FILE) $(DESTDIR)$(LIBDIR)
+ ( cd $(DESTDIR)$(LIBDIR); rm libopenh323.so ; ln -s $(OH323_FILE) libopenh323.so)
diff --git a/net-libs/openh323/openh323-1.15.3.ebuild b/net-libs/openh323/openh323-1.15.3.ebuild
new file mode 100644
index 0000000..8dfd076
--- /dev/null
+++ b/net-libs/openh323/openh323-1.15.3.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.15.3.ebuild,v 1.3 2005/07/27 10:36:50 pvdabeel Exp $
+
+inherit eutils flag-o-matic multilib
+
+MY_P="${PN}-v${PV//./_}"
+
+DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz"
+
+IUSE="ssl novideo noaudio debug"
+SLOT="0"
+LICENSE="MPL-1.1"
+KEYWORDS="~alpha ~amd64 ppc ~sparc ~x86 ~hppa"
+
+DEPEND=">=sys-apps/sed-4
+ >=dev-libs/pwlib-1.8.4
+ >=media-video/ffmpeg-0.4.7
+ ssl? ( dev-libs/openssl )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # Makefile is currently broken with NOTRACE=1, fix that
+ epatch ${FILESDIR}/${PN}-1.15.2-notrace.diff
+}
+
+src_compile() {
+ local makeopts
+ local myconf
+
+ # remove -fstack-protector, may cause problems (bug #75259)
+ filter-flags -fstack-protector
+
+ export PWLIBDIR=/usr/share/pwlib
+ export PTLIB_CONFIG=/usr/bin/ptlib-config
+ export OPENH323DIR=${S}
+
+ makeopts="ASNPARSER=/usr/bin/asnparser LDFLAGS=-L${S}/lib"
+
+ # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
+ # compile with PTRACING if the user wants to debug stuff
+ if ! use debug; then
+ makeopts="${makeopts} NOTRACE=1"
+ fi
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR=/usr
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ use novideo \
+ && myconf="${myconf} --disable-video"
+
+ use noaudio \
+ && myconf="${myconf} --disable-audio"
+
+ econf ${myconf} || die "configure failed"
+ emake ${makeopts} opt || die "make failed"
+}
+
+src_install() {
+ local OPENH323_ARCH ALT_ARCH OPENH323_SUFFIX
+ local makeopts libdir
+
+ # make NOTRACE=1 opt ==> linux_$ARCH_n
+ # make opt ==> linux_$ARCH_r
+ if ! use debug; then
+ OPENH323_SUFFIX="n"
+ makeopts="NOTRACE=1"
+ else
+ OPENH323_SUFFIX="r"
+ fi
+
+ # use ptlib-config to get the right values here (for hppa, amd64 ...)
+ OPENH323_ARCH="$(ptlib-config --ostype)_$(ptlib-config --machtype)_${OPENH323_SUFFIX}"
+
+ # set ALT_ARCH
+ if use debug; then
+ ALT_ARCH=${OPENH323_ARCH/_r/_n}
+ else
+ ALT_ARCH=${OPENH323_ARCH/_n/_r}
+ fi
+
+ ###
+ # Install stuff
+ #
+ make PREFIX=/usr DESTDIR=${D} \
+ OH323_FILE="libh323_${OPENH323_ARCH}.so.${PV}" \
+ ${makeopts} install || die "install failed"
+
+ libdir=$(get_libdir)
+
+ # fix openh323's bogus symlinks
+ for pv in ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ rm -f ${D}/usr/${libdir}/libh323_${OPENH323_ARCH}.so.${pv}
+
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${pv}
+ done
+ rm -f ${D}/usr/${libdir}/libh323_${OPENH323_ARCH}.so
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${OPENH323_ARCH}.so
+
+ # create backwards compatibility with _r versioned libraries
+ for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ # compat symlink
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${ALT_ARCH}.so.${pv}
+ done
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${ALT_ARCH}.so
+
+ ###
+ # Compatibility "hacks"
+ #
+
+ # mod to keep gnugk happy (still needed?)
+ insinto /usr/share/openh323/src
+ newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile
+
+ # install version.h into $OPENH323DIR
+ insinto /usr/share/openh323
+ doins version.h
+
+ # should try to get rid of this one
+ rm -f ${D}/usr/${libdir}/libopenh323.so
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} /usr/${libdir}/libopenh323.so
+
+ # these should point to the right directories,
+ # openh323.org apps and others need this
+ dosed "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/${libdir}:" \
+ /usr/share/openh323/openh323u.mak
+ dosed "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
+ /usr/share/openh323/openh323u.mak
+
+ # this is hardcoded now?
+ dosed "s:^\(OPENH323DIR[ \t]\+=\) ${S}:\1 /usr/share/openh323:" \
+ /usr/share/openh323/openh323u.mak
+}
diff --git a/net-libs/openh323/openh323-1.15.6.ebuild b/net-libs/openh323/openh323-1.15.6.ebuild
new file mode 100644
index 0000000..99b49c3
--- /dev/null
+++ b/net-libs/openh323/openh323-1.15.6.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.15.3.ebuild,v 1.3 2005/07/27 10:36:50 pvdabeel Exp $
+
+inherit eutils flag-o-matic multilib
+
+MY_P="${PN}-v${PV//./_}"
+
+DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/${P}.tar.gz"
+
+IUSE="ssl novideo noaudio debug"
+SLOT="0"
+LICENSE="MPL-1.1"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~hppa"
+
+RDEPEND="
+ ~dev-libs/pwlib-1.8.7
+ >=media-video/ffmpeg-0.4.7
+ ssl? ( dev-libs/openssl )"
+
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # Makefile is currently broken with NOTRACE=1, fix that
+ epatch ${FILESDIR}/${PN}-1.15.2-notrace.diff
+}
+
+src_compile() {
+ local makeopts
+ local myconf
+
+ # remove -fstack-protector, may cause problems (bug #75259)
+ filter-flags -fstack-protector
+
+ export PWLIBDIR=/usr/share/pwlib
+ export PTLIB_CONFIG=/usr/bin/ptlib-config
+ export OPENH323DIR=${S}
+
+ makeopts="ASNPARSER=/usr/bin/asnparser LDFLAGS=-L${S}/lib"
+
+ # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
+ # compile with PTRACING if the user wants to debug stuff
+ if ! use debug; then
+ makeopts="${makeopts} NOTRACE=1"
+ fi
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR=/usr
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ use novideo \
+ && myconf="${myconf} --disable-video"
+
+ use noaudio \
+ && myconf="${myconf} --disable-audio"
+
+ econf ${myconf} || die "configure failed"
+ emake ${makeopts} opt || die "make failed"
+}
+
+src_install() {
+ local OPENH323_ARCH ALT_ARCH OPENH323_SUFFIX
+ local makeopts libdir
+
+ # make NOTRACE=1 opt ==> linux_$ARCH_n
+ # make opt ==> linux_$ARCH_r
+ if ! use debug; then
+ OPENH323_SUFFIX="n"
+ makeopts="NOTRACE=1"
+ else
+ OPENH323_SUFFIX="r"
+ fi
+
+ # use ptlib-config to get the right values here (for hppa, amd64 ...)
+ OPENH323_ARCH="$(ptlib-config --ostype)_$(ptlib-config --machtype)_${OPENH323_SUFFIX}"
+
+ # set ALT_ARCH
+ if use debug; then
+ ALT_ARCH=${OPENH323_ARCH/_r/_n}
+ else
+ ALT_ARCH=${OPENH323_ARCH/_n/_r}
+ fi
+
+ ###
+ # Install stuff
+ #
+ make PREFIX=/usr DESTDIR=${D} \
+ OH323_FILE="libh323_${OPENH323_ARCH}.so.${PV}" \
+ ${makeopts} install || die "install failed"
+
+ libdir=$(get_libdir)
+
+ # fix openh323's bogus symlinks
+ for pv in ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ rm -f ${D}/usr/${libdir}/libh323_${OPENH323_ARCH}.so.${pv}
+
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${pv}
+ done
+ rm -f ${D}/usr/${libdir}/libh323_${OPENH323_ARCH}.so
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${OPENH323_ARCH}.so
+
+ # create backwards compatibility with _r versioned libraries
+ for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ # compat symlink
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${ALT_ARCH}.so.${pv}
+ done
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${ALT_ARCH}.so
+
+ ###
+ # Compatibility "hacks"
+ #
+
+ # mod to keep gnugk happy (still needed?)
+ insinto /usr/share/openh323/src
+ newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile
+
+ # install version.h into $OPENH323DIR
+ insinto /usr/share/openh323
+ doins version.h
+
+ # should try to get rid of this one
+ rm -f ${D}/usr/${libdir}/libopenh323.so
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} /usr/${libdir}/libopenh323.so
+
+ # these should point to the right directories,
+ # openh323.org apps and others need this
+ dosed "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/${libdir}:" \
+ /usr/share/openh323/openh323u.mak
+ dosed "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
+ /usr/share/openh323/openh323u.mak
+
+ # this is hardcoded now?
+ dosed "s:^\(OPENH323DIR[ \t]\+=\) ${S}:\1 /usr/share/openh323:" \
+ /usr/share/openh323/openh323u.mak
+}
diff --git a/net-libs/openh323/openh323-1.17.2.ebuild b/net-libs/openh323/openh323-1.17.2.ebuild
new file mode 100644
index 0000000..1a9b096
--- /dev/null
+++ b/net-libs/openh323/openh323-1.17.2.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/openh323/openh323-1.15.3.ebuild,v 1.3 2005/07/27 10:36:50 pvdabeel Exp $
+
+inherit eutils flag-o-matic multilib
+
+MY_P="${PN}-v${PV//./_}"
+
+DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol"
+HOMEPAGE="http://www.openh323.org/"
+SRC_URI="http://www.voxgratia.org/releases/${PN}-v${PV//./_}-src-tar.gz"
+
+IUSE="ssl novideo noaudio debug"
+SLOT="0"
+LICENSE="MPL-1.1"
+KEYWORDS="~alpha ~amd64 ppc ~sparc ~x86 ~hppa"
+
+DEPEND=">=sys-apps/sed-4
+ >=dev-libs/pwlib-1.8.4
+ >=media-video/ffmpeg-0.4.7
+ ssl? ( dev-libs/openssl )"
+
+S="${WORKDIR}/${PN}_v${PV//./_}"
+
+src_unpack() {
+ tar -xzf ${DISTDIR}/${A} -C ${WORKDIR} || die "Unpacking failed"
+
+ cd ${S}
+ # Makefile is currently broken with NOTRACE=1, fix that
+ epatch ${FILESDIR}/${PN}-1.15.2-notrace.diff
+}
+
+src_compile() {
+ local makeopts
+ local myconf
+
+ # remove -fstack-protector, may cause problems (bug #75259)
+ filter-flags -fstack-protector
+
+ export PWLIBDIR=/usr/share/pwlib
+ export PTLIB_CONFIG=/usr/bin/ptlib-config
+ export OPENH323DIR=${S}
+
+ makeopts="ASNPARSER=/usr/bin/asnparser LDFLAGS=-L${S}/lib"
+
+ # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1
+ # compile with PTRACING if the user wants to debug stuff
+ if ! use debug; then
+ makeopts="${makeopts} NOTRACE=1"
+ fi
+
+ if use ssl; then
+ export OPENSSLFLAG=1
+ export OPENSSLDIR=/usr
+ export OPENSSLLIBS="-lssl -lcrypt"
+ fi
+
+ # doesn't work with osptoolkit-3.3.1
+ myconf="--disable-transnexusosp"
+
+ use novideo \
+ && myconf="${myconf} --disable-video"
+
+ use noaudio \
+ && myconf="${myconf} --disable-audio"
+
+ econf ${myconf} || die "configure failed"
+ emake ${makeopts} opt || die "make failed"
+}
+
+src_install() {
+ local OPENH323_ARCH ALT_ARCH OPENH323_SUFFIX
+ local makeopts libdir
+
+ # make NOTRACE=1 opt ==> linux_$ARCH_n
+ # make opt ==> linux_$ARCH_r
+ if ! use debug; then
+ OPENH323_SUFFIX="n"
+ makeopts="NOTRACE=1"
+ else
+ OPENH323_SUFFIX="r"
+ fi
+
+ # use ptlib-config to get the right values here (for hppa, amd64 ...)
+ OPENH323_ARCH="$(ptlib-config --ostype)_$(ptlib-config --machtype)_${OPENH323_SUFFIX}"
+
+ # set ALT_ARCH
+ if use debug; then
+ ALT_ARCH=${OPENH323_ARCH/_r/_n}
+ else
+ ALT_ARCH=${OPENH323_ARCH/_n/_r}
+ fi
+
+ ###
+ # Install stuff
+ #
+ make PREFIX=/usr DESTDIR=${D} \
+ OH323_FILE="libh323_${OPENH323_ARCH}.so.${PV}" \
+ ${makeopts} install || die "install failed"
+
+ libdir=$(get_libdir)
+
+ # fix openh323's bogus symlinks
+ for pv in ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ rm -f ${D}/usr/${libdir}/libh323_${OPENH323_ARCH}.so.${pv}
+
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${pv}
+ done
+ rm -f ${D}/usr/${libdir}/libh323_${OPENH323_ARCH}.so
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${OPENH323_ARCH}.so
+
+ # create backwards compatibility with _r versioned libraries
+ for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do
+ # compat symlink
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${ALT_ARCH}.so.${pv}
+ done
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} \
+ /usr/${libdir}/libh323_${ALT_ARCH}.so
+
+ ###
+ # Compatibility "hacks"
+ #
+
+ # mod to keep gnugk happy (still needed?)
+ insinto /usr/share/openh323/src
+ newins ${FILESDIR}/openh323-1.11.7-emptyMakefile Makefile
+
+ # install version.h into $OPENH323DIR
+ insinto /usr/share/openh323
+ doins version.h
+
+ # should try to get rid of this one
+ rm -f ${D}/usr/${libdir}/libopenh323.so
+ dosym /usr/${libdir}/libh323_${OPENH323_ARCH}.so.${PV} /usr/${libdir}/libopenh323.so
+
+ # these should point to the right directories,
+ # openh323.org apps and others need this
+ dosed "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/${libdir}:" \
+ /usr/share/openh323/openh323u.mak
+ dosed "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
+ /usr/share/openh323/openh323u.mak
+
+ # this is hardcoded now?
+ dosed "s:^\(OPENH323DIR[ \t]\+=\) ${S}:\1 /usr/share/openh323:" \
+ /usr/share/openh323/openh323u.mak
+}
diff --git a/net-libs/osptoolkit/Manifest b/net-libs/osptoolkit/Manifest
new file mode 100644
index 0000000..453fff2
--- /dev/null
+++ b/net-libs/osptoolkit/Manifest
@@ -0,0 +1,2 @@
+MD5 950677704cb09a6fc5e5f184efdd883e osptoolkit-3.3.1.ebuild 1367
+MD5 0e71c85746f397e8f45ea39c28533814 files/digest-osptoolkit-3.3.1 68
diff --git a/net-libs/osptoolkit/files/digest-osptoolkit-3.3.1 b/net-libs/osptoolkit/files/digest-osptoolkit-3.3.1
new file mode 100644
index 0000000..f43a3a9
--- /dev/null
+++ b/net-libs/osptoolkit/files/digest-osptoolkit-3.3.1
@@ -0,0 +1 @@
+MD5 72f0adba2a478de48dd516eb37073763 OSPToolkit-3.3.1.tar.gz 411881
diff --git a/net-libs/osptoolkit/osptoolkit-3.3.1.ebuild b/net-libs/osptoolkit/osptoolkit-3.3.1.ebuild
new file mode 100644
index 0000000..659136e
--- /dev/null
+++ b/net-libs/osptoolkit/osptoolkit-3.3.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="OSP (Open Settlement Protocol) library"
+HOMEPAGE="http://www.transnexus.com/"
+SRC_URI="http://www.transnexus.com/OSP%20Toolkit/Toolkits%20for%20Download/OSPToolkit-3.3.1.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND="virtual/libc
+ dev-libs/openssl"
+
+S=${WORKDIR}/TK-${PV//./_}-20041213_B
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ sed -i -e "s:\$(INSTALL_PATH)/lib:\$(INSTALL_PATH)/\$(LIBDIR):" \
+ src/Makefile
+}
+
+src_compile() {
+ cd ${S}/src
+ emake build || die "emake libosp failed"
+
+ cd ${S}/enroll
+ emake linux || die "emake enroll failed"
+
+ cd ${S}/test
+ emake linux || die "emake test failed"
+}
+
+src_install() {
+ dodir /usr/include /usr/$(get_libdir)
+
+ cd ${S}/src
+ make INSTALL_PATH=${D}/usr LIBDIR=$(get_libdir) \
+ install || die "make install failed"
+
+ sed -i -e "s:^\(OPENSSL_CONF\).*:\1=/etc/ssl/openssl.cnf:" \
+ -e "s:^\(RANDFILE\).*:\1=/etc/ssl/.rnd:" \
+ ${S}/bin/enroll.sh
+
+ dosbin ${S}/bin/enroll*
+ newbin ${S}/bin/test_app osp_test_app
+
+ cd ${S}
+ dodoc *.txt
+
+ insinto /usr/share/doc/${PF}
+ doins bin/test.cfg
+}
+
+pkg_postinst() {
+ einfo "The OSP test application is located in ${ROOT}usr/bin/osp_test_app"
+ einfo "See ${ROOT}usr/share/doc/${PF}/test.cfg for a sample test.cfg for osp_test_app"
+}
diff --git a/net-misc/asterisk-addons/Manifest b/net-misc/asterisk-addons/Manifest
new file mode 100644
index 0000000..8eb6f31
--- /dev/null
+++ b/net-misc/asterisk-addons/Manifest
@@ -0,0 +1,6 @@
+MD5 4f4fe33a885527efd317ebd887483ae1 asterisk-addons-1.2.0_beta1.ebuild 3169
+MD5 00cfba5fc6217bd223624a267cd55a13 files/digest-asterisk-addons-1.2.0_beta1 144
+MD5 727a0a2296bb763d31542e624c6ca224 files/asterisk-addons-1.2.0_beta1-gentoo-ooh323c.diff 1282
+MD5 d9614f6289a7b8edda8045241187e138 files/asterisk-addons-1.2.0_beta1-gentoo-base.diff 1852
+MD5 67d6be912d6a4cbc6250339885e778a0 files/asterisk-addons-1.2.0_beta1-gentoo-res_sqlite3.diff 1930
+MD5 46cefa8dc3aa8a97c973f54cd08f0ace files/sqlite-3.2.1-data-corruption.patch 6529
diff --git a/net-misc/asterisk-addons/asterisk-addons-1.2.0_beta1.ebuild b/net-misc/asterisk-addons/asterisk-addons-1.2.0_beta1.ebuild
new file mode 100644
index 0000000..8abefbc
--- /dev/null
+++ b/net-misc/asterisk-addons/asterisk-addons-1.2.0_beta1.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+IUSE="mysql sqlite h323"
+
+inherit eutils flag-o-matic
+
+## TODO:
+#
+# - cleanup
+#
+
+#AST_PATCHES_PV="1.2.0_pre-1.0"
+SQLITE_PV="3.2.1"
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Additional Plugins for Asterisk"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://ftp.digium.com/pub/asterisk/${MY_P}.tar.gz
+ sqlite? ( http://www.sqlite.org/sqlite-${SQLITE_PV}.tar.gz )"
+
+S=${WORKDIR}/${MY_P}
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc ~hppa ~amd64"
+
+DEPEND="
+ >=net-misc/asterisk-1.2.0_beta1
+ mysql? ( dev-db/mysql )"
+
+pkg_setup() {
+ local n dosleep=0
+ einfo "Running pre-flight checks..."
+
+ if use h323 && built_with_use net-misc/asterisk h323; then
+ echo
+ ewarn "h323: Emerging ${PN} with the h323 flag enabled will overwrite asterisk's chan_h323.so!"
+ ewarn "h323: Be sure to upgrade ${ROOT}etc/asterisk/h323.conf afterwards!"
+ dosleep=1
+ fi
+
+ echo
+ if [[ $dosleep -gt 0 ]]; then
+ ebeep
+ n=10
+ while [[ $n -gt 0 ]]; do
+ echo -en " Waiting $n seconds...\r"
+ sleep 1
+ (( n-- ))
+ done
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ #
+ # gentoo patchset
+ #
+ epatch ${FILESDIR}/${P}-gentoo-base.diff
+ epatch ${FILESDIR}/${P}-gentoo-res_sqlite3.diff
+ epatch ${FILESDIR}/${P}-gentoo-ooh323c.diff
+
+ # patch sqlite
+ if use sqlite; then
+ cd ${WORKDIR}/sqlite-${SQLITE_PV}
+
+ epatch ${FILESDIR}/sqlite-${SQLITE_PV}-data-corruption.patch
+ epunt_cxx
+ fi
+
+ # rebuild ooh323c configure
+ if use h323; then
+ cd ${S}/asterisk-ooh323c
+ libtoolize --copy --force || die "libtoolize failed"
+ fi
+}
+
+src_compile() {
+ append-flags -fPIC
+
+ emake -j1 || die "Make failed"
+
+ if use sqlite; then
+ cd ${WORKDIR}/sqlite-${SQLITE_PV}
+ econf --enable-threadsafe || die ""
+ emake || die ""
+
+ cd ${S}
+ emake -j1 -C res_sqlite3 \
+ SQLITEDIR=${WORKDIR}/sqlite-${SQLITE_PV} || die "Make res_sqlite failed"
+ fi
+
+ if use h323; then
+ cd ${S}/asterisk-ooh323c
+ econf || die "econf failed"
+ emake || die "emake failed"
+ fi
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "Make install failed"
+
+ if use sqlite; then
+ make -C res_sqlite3 \
+ DESTDIR=${D} install || die "Make install res_sqlite3 failed"
+ fi
+
+ if use h323; then
+ make -C asterisk-ooh323c \
+ DESTDIR=${D} install || die "Make instal ooh323c failed"
+ fi
+
+ # install standard docs...
+ dodoc README
+ dodoc doc/cdr_mysql.txt
+
+ insinto /usr/share/doc/${PF}
+ doins configs/*.sample
+
+ if use sqlite; then
+ cd ${S}/res_sqlite3
+ docinto res_sqlite3
+ dodoc README
+ insinto /usr/share/doc/${PF}/res_sqlite3
+ doins res_sqlite.conf dialplan.sql
+ keepdir /var/lib/asterisk/sqlite
+ fi
+
+ if use h323; then
+ cd ${S}/asterisk-ooh323c
+ docinto chan_ooh323c
+ dodoc AUTHORS INSTALL NEWS README COPYING ChangeLog
+ dodoc h323.conf.sample extensions.conf.sample
+
+ insinto /etc/asterisk
+ newins h323.conf.sample h323.conf
+ fi
+
+ einfo "Fixing permissions"
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+
+ chown -R asterisk:asterisk ${D}var/lib/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}var/lib/asterisk
+}
+
+#pkg_postinst() {
+# #
+# # Announcements, warnings, reminders...
+# #
+#}
diff --git a/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-base.diff b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-base.diff
new file mode 100644
index 0000000..25d432c
--- /dev/null
+++ b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-base.diff
@@ -0,0 +1,40 @@
+--- asterisk-addons/Makefile.orig 2005-07-30 21:04:44.000000000 +0200
++++ asterisk-addons/Makefile 2005-07-30 21:06:06.000000000 +0200
+@@ -16,7 +16,6 @@
+ MODS=format_mp3/format_mp3.so app_saycountpl.so
+
+ CFLAGS+=-fPIC
+-CFLAGS+=-I../asterisk
+ CFLAGS+=-D_GNU_SOURCE
+
+ INSTALL=install
+@@ -27,17 +26,11 @@
+ #
+ # MySQL stuff... Autoconf anyone??
+ #
+-MODS+=$(shell if [ -d /usr/local/mysql/include ] || [ -d /usr/include/mysql ] || [ -d /usr/local/include/mysql ] || [ -d /opt/mysql/include ]; then echo "cdr_addon_mysql.so app_addon_sql_mysql.so res_config_mysql.so"; fi)
+-CFLAGS+=$(shell if [ -d /usr/local/mysql/include ]; then echo "-I/usr/local/mysql/include"; fi)
++MODS+=$(shell if [ -d /usr/include/mysql ]; then echo "cdr_addon_mysql.so app_addon_sql_mysql.so res_config_mysql.so"; fi)
+ CFLAGS+=$(shell if [ -d /usr/include/mysql ]; then echo "-I/usr/include/mysql"; fi)
+-CFLAGS+=$(shell if [ -d /usr/local/include/mysql ]; then echo "-I/usr/local/include/mysql"; fi)
+-CFLAGS+=$(shell if [ -d /opt/mysql/include/mysql ]; then echo "-I/opt/mysql/include/mysql"; fi)
+ MLFLAGS=
+-MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi)
+ MLFLAGS+=$(shell if [ -d /usr/lib64/mysql ]; then echo "-L/usr/lib64/mysql"; fi)
+-MLFLAGS+=$(shell if [ -d /usr/local/mysql/lib ]; then echo "-L/usr/local/mysql/lib"; fi)
+-MLFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi)
+-MLFLAGS+=$(shell if [ -d /opt/mysql/lib/mysql ]; then echo "-L/opt/mysql/lib/mysql"; fi)
++MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi)
+
+ OSARCH=$(shell uname -s)
+
+@@ -55,7 +48,8 @@
+ format_mp3/format_mp3.so:
+ $(MAKE) -C format_mp3 all
+
+-install: all
++install:
++ $(INSTALL) -m 755 -d $(DESTDIR)$(MODULES_DIR)
+ for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+
+ clean:
diff --git a/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-ooh323c.diff b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-ooh323c.diff
new file mode 100644
index 0000000..460cbee
--- /dev/null
+++ b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-ooh323c.diff
@@ -0,0 +1,30 @@
+--- asterisk-addons/asterisk-ooh323c/Makefile.am.orig 2005-08-24 23:19:04.000000000 +0200
++++ asterisk-addons/asterisk-ooh323c/Makefile.am 2005-08-24 23:20:08.000000000 +0200
+@@ -19,10 +19,10 @@
+ $(MAKE) "CFLAGS = -g -DGNU -D_GNU_SOURCE -D_REENTRANT" all
+
+ install:
+- cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_h323.so
++ cp .libs/libchan_h323.so.1.0.1 $(DESTDIR)/usr/lib/asterisk/modules/chan_h323.so
+
+ sample:
+- cp h323.conf.sample /etc/asterisk/h323.conf
++ cp h323.conf.sample $(DESTDIR)/etc/asterisk/h323.conf
+
+
+ EXTRA_DIST = extensions.conf h323.conf README COPYING
+--- asterisk-addons/asterisk-ooh323c/Makefile.in.orig 2005-08-24 23:19:12.000000000 +0200
++++ asterisk-addons/asterisk-ooh323c/Makefile.in 2005-08-24 23:19:53.000000000 +0200
+@@ -1214,10 +1214,10 @@
+ $(MAKE) "CFLAGS = -g -DGNU -D_GNU_SOURCE -D_REENTRANT" all
+
+ install:
+- cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_h323.so
++ cp .libs/libchan_h323.so.1.0.1 $(DESTDIR)/usr/lib/asterisk/modules/chan_h323.so
+
+ sample:
+- cp h323.conf.sample /etc/asterisk/h323.conf
++ cp h323.conf.sample $(DESTDIR)/etc/asterisk/h323.conf
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-res_sqlite3.diff b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-res_sqlite3.diff
new file mode 100644
index 0000000..5d077b4
--- /dev/null
+++ b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0_beta1-gentoo-res_sqlite3.diff
@@ -0,0 +1,61 @@
+--- asterisk-addons/res_sqlite3/Makefile.orig 2005-08-04 23:27:22.000000000 +0200
++++ asterisk-addons/res_sqlite3/Makefile 2005-08-04 23:37:38.000000000 +0200
+@@ -1,44 +1,24 @@
+-ASTDIR=/usr/src/asterisk
+-ASTXS=$(ASTDIR)/contrib/scripts/astxs
+-ASTSQLITE=/var/lib/asterisk/sqlite
+-SQLITE2=/usr/local/bin/sqlite
+-SQLITE3=/usr/local/bin/sqlite3
+-SQLITEBASE=http://www.sqlite.org/
+-SQLITEFILE=sqlite-3.2.1
++SQLITEDIR=
++DESTDIR=
+
+-CFLAGS=-I$(SQLITEFILE) -I $(SQLITEFILE)/src
++ASTCFG=/usr/bin/asterisk-config
++ASTSQLITE=/var/lib/asterisk/sqlite
++ASTMODDIR=/usr/lib/asterisk/modules
+
+-all: .sqlite res_sqlite.so
++CFLAGS=-I$(SQLITEDIR) -I$(SQLITEDIR)/src
+
++all: res_sqlite.so
+
+ res_sqlite.so:
+- ASTSRC=$(ASTDIR) $(ASTXS) "-append=CFLAGS:$(CFLAGS)" "-append=EXTOBJ:./$(SQLITEFILE)/.libs/libsqlite3.a" res_sqlite.c
+-
+-.sqlite:
+- wget $(SQLITEBASE)/$(SQLITEFILE).tar.gz
+- tar -zxvf $(SQLITEFILE).tar.gz
+- cd $(SQLITEFILE) && test -f ./config.status || ./configure --enable-threadsafe
+- cd $(SQLITEFILE) && make
+- touch .sqlite
++ $(CC) $(shell $(ASTCFG) --cflags) $(CFLAGS) -fPIC -c -o res_sqlite.o res_sqlite.c
++ $(CC) $(shell $(ASTCFG) --solink) -o res_sqlite.so res_sqlite.o $(SQLITEDIR)/.libs/libsqlite3.a
+
+ clean:
+ /bin/rm -f *.o *.so *~
+
+-distclean: clean
+- /bin/rm -fr .sqlite sqlite $(SQLITEFILE) $(SQLITEFILE).tar.gz
+-
+ install:
+- $(ASTXS) -autoload -install res_sqlite.so
+- /bin/mkdir -p $(ASTSQLITE)
+- if [ ! -f /etc/asterisk/res_sqlite.conf ] ; then /bin/cp res_sqlite.conf /etc/asterisk; fi
+-
+-sqlite_install: .sqlite
+- cd sqlite && make install
+- test -f /etc/ld.so.conf && ldconfig
+-
+-upgrade: $(SQLITE2) $(SQLITE3)
+- @echo upgrading database files
+- @upgrade.sh $(ASTSQLITE) $(SQLITE2) $(SQLITE3)
+-
+-
+-
++ /bin/mkdir -p $(DESTDIR)$(ASTSQLITE)
++ /bin/mkdir -p $(DESTDIR)$(ASTMODDIR)
++ /bin/mkdir -p $(DESTDIR)/etc/asterisk
++ /bin/cp res_sqlite.so $(DESTDIR)$(ASTMODDIR)
++ /bin/cp res_sqlite.conf $(DESTDIR)/etc/asterisk
diff --git a/net-misc/asterisk-addons/files/digest-asterisk-addons-1.2.0_beta1 b/net-misc/asterisk-addons/files/digest-asterisk-addons-1.2.0_beta1
new file mode 100644
index 0000000..aef5625
--- /dev/null
+++ b/net-misc/asterisk-addons/files/digest-asterisk-addons-1.2.0_beta1
@@ -0,0 +1,2 @@
+MD5 e0d42e4b0b1b7276bd7c760e5e5c437a asterisk-addons-1.2.0-beta1.tar.gz 740760
+MD5 ccf3831c2f67452d444c5e5e2c7ca6f0 sqlite-3.2.1.tar.gz 1351842
diff --git a/net-misc/asterisk-addons/files/sqlite-3.2.1-data-corruption.patch b/net-misc/asterisk-addons/files/sqlite-3.2.1-data-corruption.patch
new file mode 100644
index 0000000..1bfd859
--- /dev/null
+++ b/net-misc/asterisk-addons/files/sqlite-3.2.1-data-corruption.patch
@@ -0,0 +1,415 @@
+diff -uNr sqlite-3.2.1/src/vdbeaux.c sqlite-3.2.1-data-fix/src/vdbeaux.c
+--- sqlite-3.2.1/src/vdbeaux.c 2005-03-29 15:14:03.000000000 +0200
++++ sqlite-3.2.1-data-fix/src/vdbeaux.c 2005-04-24 12:13:52.000000000 +0200
+@@ -1604,7 +1604,7 @@
+ }
+ if( flags&MEM_Int ){
+ /* Figure out whether to use 1, 2, 4, 6 or 8 bytes. */
+-# define MAX_6BYTE ((((i64)0x00010000)<<32)-1)
++# define MAX_6BYTE ((((i64)0x00001000)<<32)-1)
+ i64 i = pMem->i;
+ u64 u = i<0 ? -i : i;
+ if( u<=127 ) return 1;
+diff -uNr sqlite-3.2.1/test/misc5.test sqlite-3.2.1-data-fix/test/misc5.test
+--- sqlite-3.2.1/test/misc5.test 2005-03-17 04:15:40.000000000 +0100
++++ sqlite-3.2.1-data-fix/test/misc5.test 2005-04-24 16:45:07.000000000 +0200
+@@ -41,4 +41,399 @@
+ } {}
+ }
+
++# Make sure large integers are stored correctly.
++#
++do_test misc5-2.1 {
++ execsql {
++ create table t2(x unique);
++ insert into t2 values(1);
++ insert or ignore into t2 select x*2 from t2;
++ insert or ignore into t2 select x*4 from t2;
++ insert or ignore into t2 select x*16 from t2;
++ insert or ignore into t2 select x*256 from t2;
++ insert or ignore into t2 select x*65536 from t2;
++ insert or ignore into t2 select x*2147483648 from t2;
++ insert or ignore into t2 select x-1 from t2;
++ insert or ignore into t2 select x+1 from t2;
++ insert or ignore into t2 select -x from t2;
++ select count(*) from t2;
++ }
++} 371
++do_test misc5-2.2 {
++ execsql {
++ select x from t2 order by x;
++ }
++} \
++"-4611686018427387905\
++-4611686018427387904\
++-4611686018427387903\
++-2305843009213693953\
++-2305843009213693952\
++-2305843009213693951\
++-1152921504606846977\
++-1152921504606846976\
++-1152921504606846975\
++-576460752303423489\
++-576460752303423488\
++-576460752303423487\
++-288230376151711745\
++-288230376151711744\
++-288230376151711743\
++-144115188075855873\
++-144115188075855872\
++-144115188075855871\
++-72057594037927937\
++-72057594037927936\
++-72057594037927935\
++-36028797018963969\
++-36028797018963968\
++-36028797018963967\
++-18014398509481985\
++-18014398509481984\
++-18014398509481983\
++-9007199254740993\
++-9007199254740992\
++-9007199254740991\
++-4503599627370497\
++-4503599627370496\
++-4503599627370495\
++-2251799813685249\
++-2251799813685248\
++-2251799813685247\
++-1125899906842625\
++-1125899906842624\
++-1125899906842623\
++-562949953421313\
++-562949953421312\
++-562949953421311\
++-281474976710657\
++-281474976710656\
++-281474976710655\
++-140737488355329\
++-140737488355328\
++-140737488355327\
++-70368744177665\
++-70368744177664\
++-70368744177663\
++-35184372088833\
++-35184372088832\
++-35184372088831\
++-17592186044417\
++-17592186044416\
++-17592186044415\
++-8796093022209\
++-8796093022208\
++-8796093022207\
++-4398046511105\
++-4398046511104\
++-4398046511103\
++-2199023255553\
++-2199023255552\
++-2199023255551\
++-1099511627777\
++-1099511627776\
++-1099511627775\
++-549755813889\
++-549755813888\
++-549755813887\
++-274877906945\
++-274877906944\
++-274877906943\
++-137438953473\
++-137438953472\
++-137438953471\
++-68719476737\
++-68719476736\
++-68719476735\
++-34359738369\
++-34359738368\
++-34359738367\
++-17179869185\
++-17179869184\
++-17179869183\
++-8589934593\
++-8589934592\
++-8589934591\
++-4294967297\
++-4294967296\
++-4294967295\
++-2147483649\
++-2147483648\
++-2147483647\
++-1073741825\
++-1073741824\
++-1073741823\
++-536870913\
++-536870912\
++-536870911\
++-268435457\
++-268435456\
++-268435455\
++-134217729\
++-134217728\
++-134217727\
++-67108865\
++-67108864\
++-67108863\
++-33554433\
++-33554432\
++-33554431\
++-16777217\
++-16777216\
++-16777215\
++-8388609\
++-8388608\
++-8388607\
++-4194305\
++-4194304\
++-4194303\
++-2097153\
++-2097152\
++-2097151\
++-1048577\
++-1048576\
++-1048575\
++-524289\
++-524288\
++-524287\
++-262145\
++-262144\
++-262143\
++-131073\
++-131072\
++-131071\
++-65537\
++-65536\
++-65535\
++-32769\
++-32768\
++-32767\
++-16385\
++-16384\
++-16383\
++-8193\
++-8192\
++-8191\
++-4097\
++-4096\
++-4095\
++-2049\
++-2048\
++-2047\
++-1025\
++-1024\
++-1023\
++-513\
++-512\
++-511\
++-257\
++-256\
++-255\
++-129\
++-128\
++-127\
++-65\
++-64\
++-63\
++-33\
++-32\
++-31\
++-17\
++-16\
++-15\
++-9\
++-8\
++-7\
++-5\
++-4\
++-3\
++-2\
++-1\
++0\
++1\
++2\
++3\
++4\
++5\
++7\
++8\
++9\
++15\
++16\
++17\
++31\
++32\
++33\
++63\
++64\
++65\
++127\
++128\
++129\
++255\
++256\
++257\
++511\
++512\
++513\
++1023\
++1024\
++1025\
++2047\
++2048\
++2049\
++4095\
++4096\
++4097\
++8191\
++8192\
++8193\
++16383\
++16384\
++16385\
++32767\
++32768\
++32769\
++65535\
++65536\
++65537\
++131071\
++131072\
++131073\
++262143\
++262144\
++262145\
++524287\
++524288\
++524289\
++1048575\
++1048576\
++1048577\
++2097151\
++2097152\
++2097153\
++4194303\
++4194304\
++4194305\
++8388607\
++8388608\
++8388609\
++16777215\
++16777216\
++16777217\
++33554431\
++33554432\
++33554433\
++67108863\
++67108864\
++67108865\
++134217727\
++134217728\
++134217729\
++268435455\
++268435456\
++268435457\
++536870911\
++536870912\
++536870913\
++1073741823\
++1073741824\
++1073741825\
++2147483647\
++2147483648\
++2147483649\
++4294967295\
++4294967296\
++4294967297\
++8589934591\
++8589934592\
++8589934593\
++17179869183\
++17179869184\
++17179869185\
++34359738367\
++34359738368\
++34359738369\
++68719476735\
++68719476736\
++68719476737\
++137438953471\
++137438953472\
++137438953473\
++274877906943\
++274877906944\
++274877906945\
++549755813887\
++549755813888\
++549755813889\
++1099511627775\
++1099511627776\
++1099511627777\
++2199023255551\
++2199023255552\
++2199023255553\
++4398046511103\
++4398046511104\
++4398046511105\
++8796093022207\
++8796093022208\
++8796093022209\
++17592186044415\
++17592186044416\
++17592186044417\
++35184372088831\
++35184372088832\
++35184372088833\
++70368744177663\
++70368744177664\
++70368744177665\
++140737488355327\
++140737488355328\
++140737488355329\
++281474976710655\
++281474976710656\
++281474976710657\
++562949953421311\
++562949953421312\
++562949953421313\
++1125899906842623\
++1125899906842624\
++1125899906842625\
++2251799813685247\
++2251799813685248\
++2251799813685249\
++4503599627370495\
++4503599627370496\
++4503599627370497\
++9007199254740991\
++9007199254740992\
++9007199254740993\
++18014398509481983\
++18014398509481984\
++18014398509481985\
++36028797018963967\
++36028797018963968\
++36028797018963969\
++72057594037927935\
++72057594037927936\
++72057594037927937\
++144115188075855871\
++144115188075855872\
++144115188075855873\
++288230376151711743\
++288230376151711744\
++288230376151711745\
++576460752303423487\
++576460752303423488\
++576460752303423489\
++1152921504606846975\
++1152921504606846976\
++1152921504606846977\
++2305843009213693951\
++2305843009213693952\
++2305843009213693953\
++4611686018427387903\
++4611686018427387904\
++4611686018427387905"
++
+ finish_test
diff --git a/net-misc/asterisk-app_backticks/Manifest b/net-misc/asterisk-app_backticks/Manifest
new file mode 100644
index 0000000..ddaa2a3
--- /dev/null
+++ b/net-misc/asterisk-app_backticks/Manifest
@@ -0,0 +1,3 @@
+MD5 c6bad4945ba4c085314a60cab0e55128 asterisk-app_backticks-20050917.ebuild 654
+MD5 e3267b7596b8390e2fc1c132f13ae93c files/app_backticks-20050917-astcfg.diff 713
+MD5 cf9c3b0891893b3fc93f563a2ce39796 files/digest-asterisk-app_backticks-20050917 82
diff --git a/net-misc/asterisk-app_backticks/asterisk-app_backticks-20050917.ebuild b/net-misc/asterisk-app_backticks/asterisk-app_backticks-20050917.ebuild
new file mode 100644
index 0000000..5a9933c
--- /dev/null
+++ b/net-misc/asterisk-app_backticks/asterisk-app_backticks-20050917.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_PN="app_backticks"
+
+DESCRIPTION="Asterisk plugin"
+HOMEPAGE="http://www.pbxfreeware.org/"
+SRC_URI="http://www.netdomination.org/pub/asterisk/${P}.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=net-misc/asterisk-1.2.0_beta1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-20050917-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-misc/asterisk-app_backticks/files/app_backticks-20050917-astcfg.diff b/net-misc/asterisk-app_backticks/files/app_backticks-20050917-astcfg.diff
new file mode 100644
index 0000000..311f9c2
--- /dev/null
+++ b/net-misc/asterisk-app_backticks/files/app_backticks-20050917-astcfg.diff
@@ -0,0 +1,31 @@
+--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000
++++ Makefile 2005-01-26 20:30:27.009331696 +0000
+@@ -0,0 +1,28 @@
++
++CC?=gcc
++ASTCONFIG?=/usr/bin/asterisk-config
++
++CFLAGS=$(shell $(ASTCONFIG) --cflags) -fPIC -DPIC
++SOLINK=$(shell $(ASTCONFIG) --solink)
++LIBS=
++
++ASTMODDIR=$(shell $(ASTCONFIG) --modulesdir)
++
++all: .depend app_backticks.so
++
++.depend:
++ @if [ ! -x $(ASTCONFIG) ]; then \
++ echo "$(ASTCONFIG) not found!"; \
++ exit 255; \
++ fi
++
++.c.o:
++ $(CC) -c $(CFLAGS) -o $@ $<
++
++app_backticks.so: app_backticks.o
++ $(CC) $(SOLINK) -o $@ $< $(LIBS)
++
++install:
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 app_backticks.so $(DESTDIR)$(ASTMODDIR)
++
diff --git a/net-misc/asterisk-app_backticks/files/digest-asterisk-app_backticks-20050917 b/net-misc/asterisk-app_backticks/files/digest-asterisk-app_backticks-20050917
new file mode 100644
index 0000000..5c538a9
--- /dev/null
+++ b/net-misc/asterisk-app_backticks/files/digest-asterisk-app_backticks-20050917
@@ -0,0 +1 @@
+MD5 3779e72535910d38d27a0b3b9120698b asterisk-app_backticks-20050917.tar.bz2 1690
diff --git a/net-misc/asterisk-app_cepstral/Manifest b/net-misc/asterisk-app_cepstral/Manifest
new file mode 100644
index 0000000..6f8efb9
--- /dev/null
+++ b/net-misc/asterisk-app_cepstral/Manifest
@@ -0,0 +1,3 @@
+MD5 98bde63140f4f704c58a8b3b0d08910f asterisk-app_cepstral-20050917.ebuild 653
+MD5 1eea013a79a3a610b17a747410de13d8 files/app_cepstral-20050917-astcfg.diff 1132
+MD5 5738175fee67e2017a21010b2c54ae54 files/digest-asterisk-app_cepstral-20050917 81
diff --git a/net-misc/asterisk-app_cepstral/asterisk-app_cepstral-20050917.ebuild b/net-misc/asterisk-app_cepstral/asterisk-app_cepstral-20050917.ebuild
new file mode 100644
index 0000000..10a755b
--- /dev/null
+++ b/net-misc/asterisk-app_cepstral/asterisk-app_cepstral-20050917.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_PN="app_cepstral"
+
+DESCRIPTION="Asterisk plugin"
+HOMEPAGE="http://www.pbxfreeware.org/"
+SRC_URI="http://www.netdomination.org/pub/asterisk/${P}.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=net-misc/asterisk-1.2.0_beta1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-20050917-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-misc/asterisk-app_cepstral/files/app_cepstral-20050917-astcfg.diff b/net-misc/asterisk-app_cepstral/files/app_cepstral-20050917-astcfg.diff
new file mode 100644
index 0000000..f9c8217
--- /dev/null
+++ b/net-misc/asterisk-app_cepstral/files/app_cepstral-20050917-astcfg.diff
@@ -0,0 +1,43 @@
+--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000
++++ Makefile 2005-01-26 20:30:27.009331696 +0000
+@@ -0,0 +1,29 @@
++
++CC?=gcc
++ASTCONFIG?=/usr/bin/asterisk-config
++
++CFLAGS=$(shell $(ASTCONFIG) --cflags) -fPIC -DPIC
++CFLAGS+=-I/opt/swift/include
++SOLINK=$(shell $(ASTCONFIG) --solink)
++LIBS=-lz -ldl -lm -L/opt/swift/lib -lceplex_us -lceplang_en
++
++ASTMODDIR=$(shell $(ASTCONFIG) --modulesdir)
++
++all: .depend app_cepstral.so
++
++.depend:
++ @if [ ! -x $(ASTCONFIG) ]; then \
++ echo "$(ASTCONFIG) not found!"; \
++ exit 255; \
++ fi
++
++.c.o:
++ $(CC) -c $(CFLAGS) -o $@ $<
++
++app_cepstral.so: app_cepstral.o
++ $(CC) $(SOLINK) -Wl,-rpath /opt/swift/lib -o $@ $< $(LIBS)
++
++install:
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 app_cepstral.so $(DESTDIR)$(ASTMODDIR)
++
+--- app_cepstral.c.orig 2005-09-17 20:52:18.000000000 +0000
++++ app_cepstral.c 2005-09-17 20:52:30.000000000 +0000
+@@ -22,7 +22,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <pthread.h>
+-#include "../asterisk.h"
++#include <asterisk/asterisk.h>
+ #include <asterisk/cli.h>
+ #include <asterisk/utils.h>
+
diff --git a/net-misc/asterisk-app_cepstral/files/digest-asterisk-app_cepstral-20050917 b/net-misc/asterisk-app_cepstral/files/digest-asterisk-app_cepstral-20050917
new file mode 100644
index 0000000..b18c791
--- /dev/null
+++ b/net-misc/asterisk-app_cepstral/files/digest-asterisk-app_cepstral-20050917
@@ -0,0 +1 @@
+MD5 ac2fb0eae417265d22f6373ee8d4e58a asterisk-app_cepstral-20050917.tar.bz2 3589
diff --git a/net-misc/asterisk-app_changrab/Manifest b/net-misc/asterisk-app_changrab/Manifest
new file mode 100644
index 0000000..017cec6
--- /dev/null
+++ b/net-misc/asterisk-app_changrab/Manifest
@@ -0,0 +1,3 @@
+MD5 a0334a6f96d853671f077fb0149a62cf asterisk-app_changrab-20050917.ebuild 653
+MD5 512637bf9b5b4dea74e1ccbb62967ccb files/digest-asterisk-app_changrab-20050917 81
+MD5 49d949942a48cee0f84adeff369668bd files/app_changrab-20050917-astcfg.diff 1000
diff --git a/net-misc/asterisk-app_changrab/asterisk-app_changrab-20050917.ebuild b/net-misc/asterisk-app_changrab/asterisk-app_changrab-20050917.ebuild
new file mode 100644
index 0000000..3134c51
--- /dev/null
+++ b/net-misc/asterisk-app_changrab/asterisk-app_changrab-20050917.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_PN="app_changrab"
+
+DESCRIPTION="Asterisk plugin"
+HOMEPAGE="http://www.pbxfreeware.org/"
+SRC_URI="http://www.netdomination.org/pub/asterisk/${P}.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=net-misc/asterisk-1.2.0_beta1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-20050917-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-misc/asterisk-app_changrab/files/app_changrab-20050917-astcfg.diff b/net-misc/asterisk-app_changrab/files/app_changrab-20050917-astcfg.diff
new file mode 100644
index 0000000..7b26755
--- /dev/null
+++ b/net-misc/asterisk-app_changrab/files/app_changrab-20050917-astcfg.diff
@@ -0,0 +1,42 @@
+--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000
++++ Makefile 2005-01-26 20:30:27.009331696 +0000
+@@ -0,0 +1,28 @@
++
++CC?=gcc
++ASTCONFIG?=/usr/bin/asterisk-config
++
++CFLAGS=$(shell $(ASTCONFIG) --cflags) -fPIC -DPIC
++SOLINK=$(shell $(ASTCONFIG) --solink)
++LIBS=
++
++ASTMODDIR=$(shell $(ASTCONFIG) --modulesdir)
++
++all: .depend app_changrab.so
++
++.depend:
++ @if [ ! -x $(ASTCONFIG) ]; then \
++ echo "$(ASTCONFIG) not found!"; \
++ exit 255; \
++ fi
++
++.c.o:
++ $(CC) -c $(CFLAGS) -o $@ $<
++
++app_changrab.so: app_changrab.o
++ $(CC) $(SOLINK) -o $@ $< $(LIBS)
++
++install:
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 app_changrab.so $(DESTDIR)$(ASTMODDIR)
++
+--- app_changrab.c.orig 2005-09-17 20:18:43.000000000 +0000
++++ app_changrab.c 2005-09-17 20:18:55.000000000 +0000
+@@ -26,7 +26,7 @@
+ #include <string.h>
+ #include <pthread.h>
+
+-#include "asterisk.h"
++#include <asterisk/asterisk.h>
+
+ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 1.45 $")
+
diff --git a/net-misc/asterisk-app_changrab/files/digest-asterisk-app_changrab-20050917 b/net-misc/asterisk-app_changrab/files/digest-asterisk-app_changrab-20050917
new file mode 100644
index 0000000..3f78273
--- /dev/null
+++ b/net-misc/asterisk-app_changrab/files/digest-asterisk-app_changrab-20050917
@@ -0,0 +1 @@
+MD5 1dcb84bdf1ab15858fd2524c02483b92 asterisk-app_changrab-20050917.tar.bz2 5008
diff --git a/net-misc/asterisk-app_intercept/Manifest b/net-misc/asterisk-app_intercept/Manifest
new file mode 100644
index 0000000..fb5a9a3
--- /dev/null
+++ b/net-misc/asterisk-app_intercept/Manifest
@@ -0,0 +1,5 @@
+MD5 6b8e0b7a67a58f0709232c7c23ed3093 asterisk-app_intercept-20050828.ebuild 818
+MD5 0ed270c52c7a47d335a645b8ba5fdecd asterisk-app_intercept-20050917.ebuild 821
+MD5 2f384dd72022cd0a488fb66ad1983ac8 files/digest-asterisk-app_intercept-20050917 82
+MD5 190301c3bb28a31fde5e48dd67eaa298 files/app_intercept-20050623-astcfg.diff 713
+MD5 74136cf972399fafdb09065608b5aa99 files/digest-asterisk-app_intercept-20050828 82
diff --git a/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050828.ebuild b/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050828.ebuild
new file mode 100644
index 0000000..98b15aa
--- /dev/null
+++ b/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050828.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050828.ebuild,v 1.1 2005/08/29 02:31:35 stkn Exp $
+
+inherit eutils
+
+MY_PN="app_intercept"
+
+DESCRIPTION="Asterisk plugin to intercept an unanswered call"
+HOMEPAGE="http://www.pbxfreeware.org/"
+SRC_URI="http://www.netdomination.org/pub/asterisk/${P}.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+
+DEPEND=">=net-misc/asterisk-1.0.7-r1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-20050623-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050917.ebuild b/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050917.ebuild
new file mode 100644
index 0000000..755e613
--- /dev/null
+++ b/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050917.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_intercept/asterisk-app_intercept-20050828.ebuild,v 1.1 2005/08/29 02:31:35 stkn Exp $
+
+inherit eutils
+
+MY_PN="app_intercept"
+
+DESCRIPTION="Asterisk plugin to intercept an unanswered call"
+HOMEPAGE="http://www.pbxfreeware.org/"
+SRC_URI="http://www.netdomination.org/pub/asterisk/${P}.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+
+DEPEND=">=net-misc/asterisk-1.2.0_beta1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-20050623-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-misc/asterisk-app_intercept/files/app_intercept-20050623-astcfg.diff b/net-misc/asterisk-app_intercept/files/app_intercept-20050623-astcfg.diff
new file mode 100644
index 0000000..d014df1
--- /dev/null
+++ b/net-misc/asterisk-app_intercept/files/app_intercept-20050623-astcfg.diff
@@ -0,0 +1,31 @@
+--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000
++++ Makefile 2005-01-26 20:30:27.009331696 +0000
+@@ -0,0 +1,28 @@
++
++CC?=gcc
++ASTCONFIG?=/usr/bin/asterisk-config
++
++CFLAGS=$(shell $(ASTCONFIG) --cflags) -fPIC -DPIC
++SOLINK=$(shell $(ASTCONFIG) --solink)
++LIBS=
++
++ASTMODDIR=$(shell $(ASTCONFIG) --modulesdir)
++
++all: .depend app_intercept.so
++
++.depend:
++ @if [ ! -x $(ASTCONFIG) ]; then \
++ echo "$(ASTCONFIG) not found!"; \
++ exit 255; \
++ fi
++
++.c.o:
++ $(CC) -c $(CFLAGS) -o $@ $<
++
++app_intercept.so: app_intercept.o
++ $(CC) $(SOLINK) -o $@ $< $(LIBS)
++
++install:
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 app_intercept.so $(DESTDIR)$(ASTMODDIR)
++
diff --git a/net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-20050828 b/net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-20050828
new file mode 100644
index 0000000..ac65226
--- /dev/null
+++ b/net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-20050828
@@ -0,0 +1 @@
+MD5 9b0f28aaa59195f5c071771495783f40 asterisk-app_intercept-20050828.tar.bz2 1802
diff --git a/net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-20050917 b/net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-20050917
new file mode 100644
index 0000000..61db325
--- /dev/null
+++ b/net-misc/asterisk-app_intercept/files/digest-asterisk-app_intercept-20050917
@@ -0,0 +1 @@
+MD5 589751c8107036994bf738609dbdc3c3 asterisk-app_intercept-20050917.tar.bz2 1841
diff --git a/net-misc/asterisk-app_rtxfax/Manifest b/net-misc/asterisk-app_rtxfax/Manifest
new file mode 100644
index 0000000..6c63e45
--- /dev/null
+++ b/net-misc/asterisk-app_rtxfax/Manifest
@@ -0,0 +1,3 @@
+MD5 f4454e015a4482c35a5011181978ed6a asterisk-app_rtxfax-0.0.2_pre20.ebuild 843
+MD5 f93631da6831298970c2bee289446fd2 files/digest-asterisk-app_rtxfax-0.0.2_pre20 82
+MD5 362967e8723a04bed027389ea1514603 files/app_rtxfax-0.0.2_pre20-gentoo.diff 1587
diff --git a/net-misc/asterisk-app_rtxfax/asterisk-app_rtxfax-0.0.2_pre20.ebuild b/net-misc/asterisk-app_rtxfax/asterisk-app_rtxfax-0.0.2_pre20.ebuild
new file mode 100644
index 0000000..5a85885
--- /dev/null
+++ b/net-misc/asterisk-app_rtxfax/asterisk-app_rtxfax-0.0.2_pre20.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_rtxfax/asterisk-app_rtxfax-0.0.2_pre18.ebuild,v 1.2 2005/07/08 20:53:05 dholm Exp $
+
+IUSE=""
+
+inherit eutils
+
+MY_PN="app_rtxfax"
+
+DESCRIPTION="Asterisk applications for sending and receiving faxes"
+HOMEPAGE="http://www.soft-switch.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND=">=media-libs/spandsp-0.0.2_pre20
+ >=net-misc/asterisk-1.0.5-r1"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-0.0.2_pre20-gentoo.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dodoc README
+}
diff --git a/net-misc/asterisk-app_rtxfax/files/app_rtxfax-0.0.2_pre20-gentoo.diff b/net-misc/asterisk-app_rtxfax/files/app_rtxfax-0.0.2_pre20-gentoo.diff
new file mode 100644
index 0000000..27f03a8
--- /dev/null
+++ b/net-misc/asterisk-app_rtxfax/files/app_rtxfax-0.0.2_pre20-gentoo.diff
@@ -0,0 +1,56 @@
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ Makefile 2005-09-05 23:59:22.000000000 +0200
+@@ -0,0 +1,27 @@
++.EXPORT_ALL_VARIABLES:
++
++CC=cc
++INSTALL=install
++AST_CFG=/usr/bin/asterisk-config
++
++AST_INCLUDE_DIR=/usr/include/asterisk
++AST_CONFIG_DIR=/etc/asterisk
++AST_MODULES_DIR=/usr/lib/asterisk/modules
++
++TARGETS:=app_rxfax.so app_txfax.so
++
++CFLAGS=$(shell $(AST_CFG) --cflags)
++SOLINK=$(shell $(AST_CFG) --solink)
++LIBS=-lspandsp -ltiff
++
++SUBDIR=$(shell [ -f $(AST_INCLUDE_DIR)/channel_pvt.h ] && echo "asterisk-1.0.x" || echo "asterisk-1.1.x")
++
++.PHONY: all install $(SUBDIR)
++
++all: $(SUBDIR)
++
++$(SUBDIR):
++ $(MAKE) -C $(SUBDIR) all
++
++install:
++ $(MAKE) -C $(SUBDIR) install
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ asterisk-1.0.x/Makefile 2005-09-06 00:00:05.000000000 +0200
+@@ -0,0 +1,10 @@
++all: $(TARGETS)
++
++$(TARGETS): $(patsubst %.so,%.c,$(TARGETS))
++ $(CC) $(CFLAGS) $(SOLINK) -fPIC -o app_rxfax.so app_rxfax.c $(LIBS)
++ $(CC) $(CFLAGS) $(SOLINK) -fPIC -o app_txfax.so app_txfax.c $(LIBS)
++
++install:
++ for x in $(TARGETS); do \
++ $(INSTALL) -D -m 755 $$x $(DESTDIR)$(AST_MODULES_DIR)/$$x; \
++ done
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ asterisk-1.1.x/Makefile 2005-09-06 00:00:37.000000000 +0200
+@@ -0,0 +1,10 @@
++all: $(TARGETS)
++
++$(TARGETS): $(patsubst %.so,%.c,$(TARGETS))
++ $(CC) $(CFLAGS) $(SOLINK) -fPIC -o app_rxfax.so app_rxfax.c $(LIBS)
++ $(CC) $(CFLAGS) $(SOLINK) -fPIC -o app_txfax.so app_txfax.c $(LIBS)
++
++install:
++ for x in $(TARGETS); do \
++ $(INSTALL) -D -m 755 $$x $(DESTDIR)$(AST_MODULES_DIR)/$$x; \
++ done
diff --git a/net-misc/asterisk-app_rtxfax/files/digest-asterisk-app_rtxfax-0.0.2_pre20 b/net-misc/asterisk-app_rtxfax/files/digest-asterisk-app_rtxfax-0.0.2_pre20
new file mode 100644
index 0000000..a5b3cc1
--- /dev/null
+++ b/net-misc/asterisk-app_rtxfax/files/digest-asterisk-app_rtxfax-0.0.2_pre20
@@ -0,0 +1 @@
+MD5 fc15fb6a827b49771d748b9ae71ce539 asterisk-app_rtxfax-0.0.2_pre20.tar.bz2 7755
diff --git a/net-misc/asterisk-app_valetparking/Manifest b/net-misc/asterisk-app_valetparking/Manifest
new file mode 100644
index 0000000..b03f8b8
--- /dev/null
+++ b/net-misc/asterisk-app_valetparking/Manifest
@@ -0,0 +1,3 @@
+MD5 7e90831dca9fb1a7392b42a58370ca38 asterisk-app_valetparking-20050917.ebuild 657
+MD5 86789f083c902a84e28a3146abd62dfd files/digest-asterisk-app_valetparking-20050917 85
+MD5 8a00ac582109efb6da3893d6f464e334 files/app_valetparking-20050917-astcfg.diff 1005
diff --git a/net-misc/asterisk-app_valetparking/asterisk-app_valetparking-20050917.ebuild b/net-misc/asterisk-app_valetparking/asterisk-app_valetparking-20050917.ebuild
new file mode 100644
index 0000000..7bacea2
--- /dev/null
+++ b/net-misc/asterisk-app_valetparking/asterisk-app_valetparking-20050917.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_PN="app_valetparking"
+
+DESCRIPTION="Asterisk plugin"
+HOMEPAGE="http://www.pbxfreeware.org/"
+SRC_URI="http://www.netdomination.org/pub/asterisk/${P}.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=net-misc/asterisk-1.2.0_beta1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-20050917-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-misc/asterisk-app_valetparking/files/app_valetparking-20050917-astcfg.diff b/net-misc/asterisk-app_valetparking/files/app_valetparking-20050917-astcfg.diff
new file mode 100644
index 0000000..bd070d9
--- /dev/null
+++ b/net-misc/asterisk-app_valetparking/files/app_valetparking-20050917-astcfg.diff
@@ -0,0 +1,42 @@
+--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000
++++ Makefile 2005-01-26 20:30:27.009331696 +0000
+@@ -0,0 +1,28 @@
++
++CC?=gcc
++ASTCONFIG?=/usr/bin/asterisk-config
++
++CFLAGS=$(shell $(ASTCONFIG) --cflags) -fPIC -DPIC
++SOLINK=$(shell $(ASTCONFIG) --solink)
++LIBS=
++
++ASTMODDIR=$(shell $(ASTCONFIG) --modulesdir)
++
++all: .depend app_valetparking.so
++
++.depend:
++ @if [ ! -x $(ASTCONFIG) ]; then \
++ echo "$(ASTCONFIG) not found!"; \
++ exit 255; \
++ fi
++
++.c.o:
++ $(CC) -c $(CFLAGS) -o $@ $<
++
++app_valetparking.so: app_valetparking.o
++ $(CC) $(SOLINK) -o $@ $< $(LIBS)
++
++install:
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 app_valetparking.so $(DESTDIR)$(ASTMODDIR)
++
+--- app_valetparking.c.orig 2005-09-17 19:58:55.000000000 +0000
++++ app_valetparking.c 2005-09-17 19:59:09.000000000 +0000
+@@ -45,7 +45,7 @@
+
+ #include <pthread.h>
+
+-#include "asterisk.h"
++#include <asterisk/asterisk.h>
+
+ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 1.18 $")
+
diff --git a/net-misc/asterisk-app_valetparking/files/digest-asterisk-app_valetparking-20050917 b/net-misc/asterisk-app_valetparking/files/digest-asterisk-app_valetparking-20050917
new file mode 100644
index 0000000..511c62f
--- /dev/null
+++ b/net-misc/asterisk-app_valetparking/files/digest-asterisk-app_valetparking-20050917
@@ -0,0 +1 @@
+MD5 f6c69d29019c1c6daed4dfaa96bd0d70 asterisk-app_valetparking-20050917.tar.bz2 7126
diff --git a/net-misc/asterisk-chan_sccp/ChangeLog b/net-misc/asterisk-chan_sccp/ChangeLog
new file mode 100644
index 0000000..d84e5de
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/ChangeLog
@@ -0,0 +1,68 @@
+# ChangeLog for net-misc/asterisk-chan_sccp
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/ChangeLog,v 1.12 2005/09/30 00:00:11 stkn Exp $
+
+ 30 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ asterisk-chan_sccp-0.0.20050826.ebuild:
+ Stable on x86.
+
+*asterisk-chan_sccp-0.0.20050922 (22 Sep 2005)
+
+ 22 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ +asterisk-chan_sccp-0.0.20050922.ebuild:
+ Version bump.
+
+*asterisk-chan_sccp-0.0.20050913 (15 Sep 2005)
+
+ 15 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ +asterisk-chan_sccp-0.0.20050913.ebuild:
+ Version bump.
+
+*asterisk-chan_sccp-0.0.20050906 (08 Sep 2005)
+
+ 08 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ +asterisk-chan_sccp-0.0.20050906.ebuild:
+ Version bump. Fixes two potential crashes and a one-way audio problem with
+ older cisco phones.
+
+ 02 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ asterisk-chan_sccp-0.0.20050807.ebuild:
+ Stable on x86.
+
+*asterisk-chan_sccp-0.0.20050902 (02 Sep 2005)
+
+ 02 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/chan_sccp-20050902-gentoo.diff,
+ +asterisk-chan_sccp-0.0.20050902.ebuild:
+ Version bump.
+
+ 27 Aug 2005; <stkn@gentoo.org> -asterisk-chan_sccp-0.0.20050725.ebuild,
+ -asterisk-chan_sccp-0.0.20050730.ebuild:
+ Removed old versions.
+
+*asterisk-chan_sccp-0.0.20050826 (27 Aug 2005)
+
+ 27 Aug 2005; <stkn@gentoo.org> +asterisk-chan_sccp-0.0.20050826.ebuild:
+ Version bump.
+
+*asterisk-chan_sccp-0.0.20050807 (18 Aug 2005)
+
+ 18 Aug 2005; <stkn@gentoo.org> +asterisk-chan_sccp-0.0.20050807.ebuild:
+ Version bump.
+
+*asterisk-chan_sccp-0.0.20050730 (30 Jul 2005)
+
+ 30 Jul 2005; <stkn@gentoo.org> +asterisk-chan_sccp-0.0.20050730.ebuild:
+ Version bump.
+
+ 29 Jul 2005; David Holm <dholm@gentoo.org>
+ asterisk-chan_sccp-0.0.20050725.ebuild:
+ Added to ~ppc.
+
+*asterisk-chan_sccp-0.0.20050725 (29 Jul 2005)
+
+ 29 Jul 2005; <stkn@gentoo.org> +files/chan_sccp-20050725-gentoo.diff,
+ +metadata.xml, +asterisk-chan_sccp-0.0.20050725.ebuild:
+ Version bump of asterisk-sccp, renamed package to match asterisk plugin
+ naming scheme in portage.
+
diff --git a/net-misc/asterisk-chan_sccp/Manifest b/net-misc/asterisk-chan_sccp/Manifest
new file mode 100644
index 0000000..8dd77b5
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/Manifest
@@ -0,0 +1,18 @@
+MD5 a74c3fb974de450705cbbfa61ea59f0d asterisk-chan_sccp-0.0.20050902.ebuild 1221
+MD5 47e629b670190e58d8a5c9bc69987c48 asterisk-chan_sccp-0.0.20050922.ebuild 1221
+MD5 de41c503f05f5f99a8635b0e333729a5 metadata.xml 217
+MD5 cbe92f2f0bec30840c9eddbd15578917 ChangeLog 2141
+MD5 ea7d05044e9fd969f20575c1eb28831f asterisk-chan_sccp-0.0.20050807.ebuild 1220
+MD5 fa358f255e2c823b7d384ec8331e1f62 asterisk-chan_sccp-0.0.20050906.ebuild 1221
+MD5 85a3b9ce289dc8e6b9f8c21f86c74260 asterisk-chan_sccp-0.0.20050913.ebuild 1221
+MD5 47e629b670190e58d8a5c9bc69987c48 asterisk-chan_sccp-0.0.20051022.ebuild 1221
+MD5 626d8d51787cc82f04f789ef7bce6e60 asterisk-chan_sccp-0.0.20050826.ebuild 1220
+MD5 04446492f50aeda790ef899c4f9c7968 files/digest-asterisk-chan_sccp-0.0.20050826 70
+MD5 d50a8faf83a31d88aa12161bcdd8baa3 files/digest-asterisk-chan_sccp-0.0.20050922 70
+MD5 30eb666962717f702efb95d918c19b51 files/digest-asterisk-chan_sccp-0.0.20050807 70
+MD5 16f7563f69269ec845f0278beee36014 files/chan_sccp-20050725-gentoo.diff 2677
+MD5 e7ee89da9be491c3bc8d35ec082fb77d files/chan_sccp-20050902-gentoo.diff 2219
+MD5 004efa61ad62a81409ce473e841c12f2 files/digest-asterisk-chan_sccp-0.0.20051022 70
+MD5 2c7f8a1aaaa9c1dfe69c5555e7293d49 files/digest-asterisk-chan_sccp-0.0.20050913 70
+MD5 698d7cb54349753768338e8fc98c866b files/digest-asterisk-chan_sccp-0.0.20050906 70
+MD5 e6fb198665c63dffdae3e3c41a281f7a files/digest-asterisk-chan_sccp-0.0.20050902 70
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050807.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050807.ebuild
new file mode 100644
index 0000000..54f5082
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050807.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050807.ebuild,v 1.2 2005/09/02 20:17:18 stkn Exp $
+
+inherit eutils
+
+IUSE="debug"
+
+MY_P="chan_sccp-${PV/0.0./}"
+
+DESCRIPTION="SCCP channel plugin for the Asterisk soft PBX"
+HOMEPAGE="http://chan-sccp.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/chan-sccp/${MY_P}.tar.bz2"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+KEYWORDS="~ppc x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_sccp-20050725-gentoo.diff
+
+ if ! use debug; then
+ sed -i -e "s:^\(DEBUG=.*\):#\1:" Makefile
+ fi
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake INSTALL_PREFIX=${D} install || die
+
+ dodoc conf/* contrib/*
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ einfo "Fixing permissions..."
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "You have to disable asterisk's chan_skinny to use this module!"
+ einfo "Add \"noload => chan_skinny.so\" to ${ROOT}etc/asterisk/modules.conf"
+}
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050826.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050826.ebuild
new file mode 100644
index 0000000..d3d6f61
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050826.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050826.ebuild,v 1.2 2005/09/30 00:00:11 stkn Exp $
+
+inherit eutils
+
+IUSE="debug"
+
+MY_P="chan_sccp-${PV/0.0./}"
+
+DESCRIPTION="SCCP channel plugin for the Asterisk soft PBX"
+HOMEPAGE="http://chan-sccp.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/chan-sccp/${MY_P}.tar.bz2"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+KEYWORDS="~ppc x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_sccp-20050725-gentoo.diff
+
+ if ! use debug; then
+ sed -i -e "s:^\(DEBUG=.*\):#\1:" Makefile
+ fi
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake INSTALL_PREFIX=${D} install || die
+
+ dodoc conf/* contrib/*
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ einfo "Fixing permissions..."
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "You have to disable asterisk's chan_skinny to use this module!"
+ einfo "Add \"noload => chan_skinny.so\" to ${ROOT}etc/asterisk/modules.conf"
+}
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild
new file mode 100644
index 0000000..a482167
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050902.ebuild,v 1.1 2005/09/02 20:15:56 stkn Exp $
+
+inherit eutils
+
+IUSE="debug"
+
+MY_P="chan_sccp-${PV/0.0./}"
+
+DESCRIPTION="SCCP channel plugin for the Asterisk soft PBX"
+HOMEPAGE="http://chan-sccp.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/chan-sccp/${MY_P}.tar.bz2"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_sccp-20050902-gentoo.diff
+
+ if ! use debug; then
+ sed -i -e "s:^\(DEBUG=.*\):#\1:" Makefile
+ fi
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake INSTALL_PREFIX=${D} install || die
+
+ dodoc conf/* contrib/*
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ einfo "Fixing permissions..."
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "You have to disable asterisk's chan_skinny to use this module!"
+ einfo "Add \"noload => chan_skinny.so\" to ${ROOT}etc/asterisk/modules.conf"
+}
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050906.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050906.ebuild
new file mode 100644
index 0000000..bf316ba
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050906.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050906.ebuild,v 1.1 2005/09/07 23:51:33 stkn Exp $
+
+inherit eutils
+
+IUSE="debug"
+
+MY_P="chan_sccp-${PV/0.0./}"
+
+DESCRIPTION="SCCP channel plugin for the Asterisk soft PBX"
+HOMEPAGE="http://chan-sccp.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/chan-sccp/${MY_P}.tar.bz2"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_sccp-20050902-gentoo.diff
+
+ if ! use debug; then
+ sed -i -e "s:^\(DEBUG=.*\):#\1:" Makefile
+ fi
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake INSTALL_PREFIX=${D} install || die
+
+ dodoc conf/* contrib/*
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ einfo "Fixing permissions..."
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "You have to disable asterisk's chan_skinny to use this module!"
+ einfo "Add \"noload => chan_skinny.so\" to ${ROOT}etc/asterisk/modules.conf"
+}
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050913.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050913.ebuild
new file mode 100644
index 0000000..ed6e8a7
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050913.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050913.ebuild,v 1.1 2005/09/15 02:49:12 stkn Exp $
+
+inherit eutils
+
+IUSE="debug"
+
+MY_P="chan_sccp-${PV/0.0./}"
+
+DESCRIPTION="SCCP channel plugin for the Asterisk soft PBX"
+HOMEPAGE="http://chan-sccp.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/chan-sccp/${MY_P}.tar.bz2"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_sccp-20050902-gentoo.diff
+
+ if ! use debug; then
+ sed -i -e "s:^\(DEBUG=.*\):#\1:" Makefile
+ fi
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake INSTALL_PREFIX=${D} install || die
+
+ dodoc conf/* contrib/*
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ einfo "Fixing permissions..."
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "You have to disable asterisk's chan_skinny to use this module!"
+ einfo "Add \"noload => chan_skinny.so\" to ${ROOT}etc/asterisk/modules.conf"
+}
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050922.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050922.ebuild
new file mode 100644
index 0000000..cce6f7b
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050922.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050922.ebuild,v 1.1 2005/09/22 21:19:39 stkn Exp $
+
+inherit eutils
+
+IUSE="debug"
+
+MY_P="chan_sccp-${PV/0.0./}"
+
+DESCRIPTION="SCCP channel plugin for the Asterisk soft PBX"
+HOMEPAGE="http://chan-sccp.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/chan-sccp/${MY_P}.tar.bz2"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_sccp-20050902-gentoo.diff
+
+ if ! use debug; then
+ sed -i -e "s:^\(DEBUG=.*\):#\1:" Makefile
+ fi
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake INSTALL_PREFIX=${D} install || die
+
+ dodoc conf/* contrib/*
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ einfo "Fixing permissions..."
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "You have to disable asterisk's chan_skinny to use this module!"
+ einfo "Add \"noload => chan_skinny.so\" to ${ROOT}etc/asterisk/modules.conf"
+}
diff --git a/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051022.ebuild b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051022.ebuild
new file mode 100644
index 0000000..cce6f7b
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20051022.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_sccp/asterisk-chan_sccp-0.0.20050922.ebuild,v 1.1 2005/09/22 21:19:39 stkn Exp $
+
+inherit eutils
+
+IUSE="debug"
+
+MY_P="chan_sccp-${PV/0.0./}"
+
+DESCRIPTION="SCCP channel plugin for the Asterisk soft PBX"
+HOMEPAGE="http://chan-sccp.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/chan-sccp/${MY_P}.tar.bz2"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_sccp-20050902-gentoo.diff
+
+ if ! use debug; then
+ sed -i -e "s:^\(DEBUG=.*\):#\1:" Makefile
+ fi
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake INSTALL_PREFIX=${D} install || die
+
+ dodoc conf/* contrib/*
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ einfo "Fixing permissions..."
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "You have to disable asterisk's chan_skinny to use this module!"
+ einfo "Add \"noload => chan_skinny.so\" to ${ROOT}etc/asterisk/modules.conf"
+}
diff --git a/net-misc/asterisk-chan_sccp/files/chan_sccp-20050725-gentoo.diff b/net-misc/asterisk-chan_sccp/files/chan_sccp-20050725-gentoo.diff
new file mode 100644
index 0000000..8676ff7
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/chan_sccp-20050725-gentoo.diff
@@ -0,0 +1,69 @@
+--- chan_sccp-20050725/Makefile.orig 2005-07-29 04:55:59.000000000 +0000
++++ chan_sccp-20050725/Makefile 2005-07-29 04:56:21.000000000 +0000
+@@ -1,24 +1,16 @@
+ INSTALL_PREFIX=
+-ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/include
++ASTERISK_HEADER_DIR=/usr/include
+
+ # Location asterisk modules install to
+-AST_MODULES_DIR=/usr/lib/asterisk/modules/
++AST_MODULES_DIR=/usr/lib/asterisk/modules
+
+ PROC=$(shell uname -m)
+
+ DEBUG=-ggdb
+
+-DEFINE=-Iinclude -I$(ASTERISK_SOURCE)/include -D_REENTRANT -D_GNU_SOURCE -O -DCRYPTO -fPIC -DASTERISK_VERSION_$(ASTERISK_VERSION)
++DEFINE=-Iinclude -D_REENTRANT -D_GNU_SOURCE -DCRYPTO -fPIC
+ CFLAG= -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+-CFLAG+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo " -march=$(PROC)"; fi)
+ CFLAG+=$(shell if uname -m | grep -q ppc; then echo " -fsigned-char"; fi)
+-#CFLAG+= -pedantic
+-#CFLAG+= -W
+-#CFLAG+= -Wpointer-arith
+-#CFLAG+= -Wcast-qual
+-#CFLAG+= -Wwrite-strings
+-#CFLAG+= -Wconversion
+-#CFLAG+= -Wredundant-decls # Useless as too many false positives from asterisk source
+ CFLAG+= -Wnested-externs
+ CFLAG+= -Wlong-long
+ CFLAG+= $(DEBUG)
+@@ -41,26 +33,31 @@
+ FLS+=sccp_socket
+ FLS+=sccp_indicate
+
+-CFLAGS+=$(DEFINE) $(CFLAG) -I$(ASTERISK_SOURCE)
++CFLAGS+=$(DEFINE) $(CFLAG)
+ HEADERS=$(shell for i in $(FLS) ; do echo $$i.h ; done)
+ OBJECTS=$(shell for i in $(FLS) ; do echo .tmp/$$i.o ; done)
+ SOURCES=$(shell for i in $(FLS) ; do echo $$i.c ; done)
+
++all: chan_sccp.so
++
+ chan_sccp.so: .config .tmp $(OBJECTS) $(HEADERS) $(SOURCES)
+ @echo "Linking chan_sccp.so"
+ @$(CC) -shared -Xlinker -x -o chan_sccp.so $(OBJECTS)
+
+ .tmp/%.o: $(HEADERS)
+ @printf "Now compiling .... %-15s\t%s lines \n" $*.c "`wc -l <$*.c`"
+- @$(CC) -I/usr/include/ $(CFLAGS) -I$(ASTERISK_SOURCE) $(DEFINE) -c $*.c -o .tmp/$*.o
++ @$(CC) $(CFLAGS) -c $*.c -o .tmp/$*.o
+
+-install: chan_sccp.so
++install:
+ @echo "Now Installing chan_sccp.so"
+- @install -m 755 chan_sccp.so $(AST_MODULES_DIR);
+- @if ! [ -f /etc/asterisk/sccp.conf ]; then \
+- echo "Installing config file /etc/asterisk/sccp.conf"; \
+- cp conf/sccp.conf /etc/asterisk/; \
++ @if ! [ -d $(INSTALL_PREFIX)$(AST_MODULES_DIR) ]; then \
++ mkdir -p -m775 $(INSTALL_PREFIX)$(AST_MODULES_DIR); \
++ fi
++ @install -m 755 chan_sccp.so $(INSTALL_PREFIX)$(AST_MODULES_DIR);
++ @if ! [ -d $(INSTALL_PREFIX)/etc/asterisk ]; then \
++ mkdir -p -m750 $(INSTALL_PREFIX)/etc/asterisk; \
+ fi
++ @install -m 640 conf/sccp.conf $(INSTALL_PREFIX)/etc/asterisk
+ @echo "Chan_sccp is now installed"
+ @echo "Remember to disable chan_skinny by adding the following"
+ @echo "line to /etc/asterisk/modules.conf:"
diff --git a/net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff b/net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff
new file mode 100644
index 0000000..9b9b260
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/chan_sccp-20050902-gentoo.diff
@@ -0,0 +1,60 @@
+--- chan_sccp-20050902/Makefile.orig 2005-09-02 22:16:58.000000000 +0000
++++ chan_sccp-20050902/Makefile 2005-09-02 22:17:33.000000000 +0000
+@@ -1,16 +1,14 @@
+ INSTALL_PREFIX=
+-ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/include
++ASTERISK_HEADER_DIR=/usr/include
++AST_CFG=/usr/bin/asterisk-config
+
+ # Location asterisk modules install to
+ AST_MODULES_DIR=$(INSTALL_PREFIX)/usr/lib/asterisk/modules/
+
+-PROC=$(shell uname -m)
+-
+ DEBUG=-ggdb
+
+-DEFINE=-Iinclude -D_REENTRANT -D_GNU_SOURCE -O -DCRYPTO -fPIC
++DEFINE=-Iinclude -D_REENTRANT -D_GNU_SOURCE -O -DCRYPTO -fPIC
+ CFLAG= -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+-CFLAG+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo " -march=$(PROC)"; fi)
+ CFLAG+=$(shell if uname -m | grep -q ppc; then echo " -fsigned-char"; fi)
+ #CFLAG+= -pedantic
+ #CFLAG+= -W
+@@ -40,14 +38,14 @@
+ FLS+=sccp_socket
+ FLS+=sccp_indicate
+
+-CFLAGS+=$(DEFINE) $(CFLAG) -I$(ASTERISK_HEADER_DIR)
++CFLAGS+=$(DEFINE) $(CFLAG)
+ HEADERS=$(shell for i in $(FLS) ; do echo $$i.h ; done)
+ OBJECTS=$(shell for i in $(FLS) ; do echo .tmp/$$i.o ; done)
+ SOURCES=$(shell for i in $(FLS) ; do echo $$i.c ; done)
+
+ chan_sccp.so: .config .tmp $(OBJECTS) $(HEADERS) $(SOURCES)
+ @echo "Linking chan_sccp.so"
+- @$(CC) -shared -Xlinker -x -o chan_sccp.so $(OBJECTS)
++ @$(CC) $(shell $(AST_CFG) --solink) -o chan_sccp.so $(OBJECTS)
+
+ .tmp/%.o: $(HEADERS)
+ @printf "Now compiling .... %-15s\t%s lines \n" $*.c "`wc -l <$*.c`"
+@@ -55,18 +53,14 @@
+
+ all: chan_sccp.so
+
+-install: chan_sccp.so
++install:
+ @echo "Now Installing chan_sccp.so"
+- @install -m 755 chan_sccp.so $(AST_MODULES_DIR);
++ @install -D -m 755 chan_sccp.so $(AST_MODULES_DIR)/chan_sccp.so;
+ @if ! [ -f $(INSTALL_PREFIX)/etc/asterisk/sccp.conf ]; then \
+ echo "Installing config file $(INSTALL_PREFIX)/etc/asterisk/sccp.conf"; \
+ mkdir -p $(INSTALL_PREFIX)/etc/asterisk; \
+ cp conf/sccp.conf $(INSTALL_PREFIX)/etc/asterisk/; \
+ fi
+- @echo "Chan_sccp is now installed"
+- @echo "Remember to disable chan_skinny by adding the following"
+- @echo "line to /etc/asterisk/modules.conf:"
+- @echo "noload => chan_skinny.so"
+
+ clean:
+ rm -rf .config.h chan_sccp.so .tmp
diff --git a/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050807 b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050807
new file mode 100644
index 0000000..5f2199d
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050807
@@ -0,0 +1 @@
+MD5 6c16a2dee0830614aab58a9439d39410 chan_sccp-20050807.tar.bz2 56281
diff --git a/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050826 b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050826
new file mode 100644
index 0000000..87baa11
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050826
@@ -0,0 +1 @@
+MD5 5a54a328da6e456c6d3df2ba388f7e50 chan_sccp-20050826.tar.bz2 56441
diff --git a/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050902 b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050902
new file mode 100644
index 0000000..634d201
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050902
@@ -0,0 +1 @@
+MD5 47ce5f2d2f3eef16e13348fc2c86165e chan_sccp-20050902.tar.bz2 57674
diff --git a/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050906 b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050906
new file mode 100644
index 0000000..4b03cae
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050906
@@ -0,0 +1 @@
+MD5 b51aab92a4d2f0b5b871e5cd60849854 chan_sccp-20050906.tar.bz2 58397
diff --git a/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050913 b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050913
new file mode 100644
index 0000000..f785245
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050913
@@ -0,0 +1 @@
+MD5 466196cc76fcf793df780c2203a97a9a chan_sccp-20050913.tar.bz2 58310
diff --git a/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050922 b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050922
new file mode 100644
index 0000000..790312b
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20050922
@@ -0,0 +1 @@
+MD5 85e3ce8b6a4f76335ca3e42d81fa2867 chan_sccp-20050922.tar.bz2 58637
diff --git a/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20051022 b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20051022
new file mode 100644
index 0000000..d830050
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/files/digest-asterisk-chan_sccp-0.0.20051022
@@ -0,0 +1 @@
+MD5 26e24dd9620f79447e1968d7a8ee0381 chan_sccp-20051022.tar.bz2 61172
diff --git a/net-misc/asterisk-chan_sccp/metadata.xml b/net-misc/asterisk-chan_sccp/metadata.xml
new file mode 100644
index 0000000..a3cddc4
--- /dev/null
+++ b/net-misc/asterisk-chan_sccp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>voip</herd>
+<maintainer>
+ <email>stkn@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/net-misc/asterisk-chan_ss7/Manifest b/net-misc/asterisk-chan_ss7/Manifest
new file mode 100644
index 0000000..ccdaf8e
--- /dev/null
+++ b/net-misc/asterisk-chan_ss7/Manifest
@@ -0,0 +1,4 @@
+MD5 e1bc6ed00adfb229ae1149c37d70a6b3 asterisk-chan_ss7-0.1.ebuild 1261
+MD5 8fbf292156ff63b7c8ed22f6346c7556 files/ss7.conf.sample 125
+MD5 170c3c9b00c95c0cc7fb21bc81eb9edf files/chan_ss7-0.1-gentoo.diff 770
+MD5 a870361f31839df7a2d2c61abd10a7f5 files/digest-asterisk-chan_ss7-0.1 63
diff --git a/net-misc/asterisk-chan_ss7/asterisk-chan_ss7-0.1.ebuild b/net-misc/asterisk-chan_ss7/asterisk-chan_ss7-0.1.ebuild
new file mode 100644
index 0000000..1c004e3
--- /dev/null
+++ b/net-misc/asterisk-chan_ss7/asterisk-chan_ss7-0.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_notify/asterisk-app_notify-0.9.ebuild,v 1.1 2005/08/27 21:50:26 stkn Exp $
+
+inherit eutils
+
+MY_PN="chan_ss7"
+
+DESCRIPTION="Asterisk SS7 channel plugin"
+HOMEPAGE="http://www.sifira.com/chan-ss7/"
+SRC_URI="http://www.sifira.com/chan-ss7/${MY_PN}-${PV}.tar.gz"
+
+IUSE=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=net-misc/zaptel-1.2.0_beta1
+ >=net-misc/asterisk-1.2.0_beta1"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # tweak makefile
+ epatch ${FILESDIR}/${MY_PN}-0.1-gentoo.diff
+}
+
+src_compile() {
+ emake -j1 \
+ INCLUDE=-I/usr/include/zaptel || die "emake failed"
+}
+
+src_install() {
+ make INSTALL_PREFIX=${D} install || die
+
+ dodoc README COPYING
+
+ insinto /etc/asterisk
+ doins ${FILESDIR}/ss7.conf.sample
+
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ chown -R root:asterisk ${D}/etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}/etc/asterisk
+ fi
+}
+
+pkg_postinst() {
+ ewarn "This is ALPHA qualitiy software"
+ ewarn " !! Use at your own risk !! "
+ echo
+ einfo "Useful resources:"
+ echo
+ einfo " http://www.voip-info.org/wiki/index.php?page=Asterisk+ss7+channels"
+}
diff --git a/net-misc/asterisk-chan_ss7/files/chan_ss7-0.1-gentoo.diff b/net-misc/asterisk-chan_ss7/files/chan_ss7-0.1-gentoo.diff
new file mode 100644
index 0000000..16ecd06
--- /dev/null
+++ b/net-misc/asterisk-chan_ss7/files/chan_ss7-0.1-gentoo.diff
@@ -0,0 +1,21 @@
+--- chan_ss7-0.1/Makefile.orig 2005-10-29 01:15:11.000000000 +0000
++++ chan_ss7-0.1/Makefile 2005-10-29 01:30:43.000000000 +0000
+@@ -5,7 +5,7 @@
+ INCLUDE+=
+
+ CC=gcc
+-CFLAGS=$(INCLUDE) -O -g -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE
++CFLAGS+=$(INCLUDE) -g -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -fPIC
+ SOLINK=-shared -Xlinker -x
+
+ .PHONY: all install clean dist
+@@ -28,6 +28,9 @@
+ $(CC) -c $(CFLAGS) -o $@ $<
+
+ install:
++ if [ ! -d $(INSTALL_PREFIX)/usr/lib/asterisk/modules ] ; then \
++ install -d -m 755 $(INSTALL_PREFIX)/usr/lib/asterisk/modules ; \
++ fi
+ install -m 644 chan_ss7.so $(INSTALL_PREFIX)/usr/lib/asterisk/modules/
+
+ clean:
diff --git a/net-misc/asterisk-chan_ss7/files/digest-asterisk-chan_ss7-0.1 b/net-misc/asterisk-chan_ss7/files/digest-asterisk-chan_ss7-0.1
new file mode 100644
index 0000000..a9fbf6f
--- /dev/null
+++ b/net-misc/asterisk-chan_ss7/files/digest-asterisk-chan_ss7-0.1
@@ -0,0 +1 @@
+MD5 362f5c5187763347790f7094446ab84c chan_ss7-0.1.tar.gz 52941
diff --git a/net-misc/asterisk-chan_ss7/files/ss7.conf.sample b/net-misc/asterisk-chan_ss7/files/ss7.conf.sample
new file mode 100644
index 0000000..0053163
--- /dev/null
+++ b/net-misc/asterisk-chan_ss7/files/ss7.conf.sample
@@ -0,0 +1,9 @@
+[general]
+own_pc => 0x3fff
+peer_pc => 0x8e0
+hunting_policy => odd_lru
+
+[channels]
+context => ss7
+channel => 1-15:1,17-31:17
+
diff --git a/net-misc/asterisk-chan_unicall/Manifest b/net-misc/asterisk-chan_unicall/Manifest
new file mode 100644
index 0000000..a1017e1
--- /dev/null
+++ b/net-misc/asterisk-chan_unicall/Manifest
@@ -0,0 +1,3 @@
+MD5 125b8d45647a71766d91bf44427e8cf1 asterisk-chan_unicall-0.0.3_pre5.ebuild 877
+MD5 d36f67f0a43f31c935eb0640201c2cbd files/unicall-0.0.3_pre5-gentoo.diff 3490
+MD5 fa01f08bd169b421a6711e76a5a105bf files/digest-asterisk-chan_unicall-0.0.3_pre5 84
diff --git a/net-misc/asterisk-chan_unicall/asterisk-chan_unicall-0.0.3_pre5.ebuild b/net-misc/asterisk-chan_unicall/asterisk-chan_unicall-0.0.3_pre5.ebuild
new file mode 100644
index 0000000..5010bf1
--- /dev/null
+++ b/net-misc/asterisk-chan_unicall/asterisk-chan_unicall-0.0.3_pre5.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_P="unicall-${PV/_}"
+
+DESCRIPTION="Asterisk channel plugin"
+HOMEPAGE="http://www.soft-switch.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+RDEPEND="
+ net-misc/asterisk
+ net-misc/zaptel
+ media-libs/spandsp
+ media-libs/tiff
+ media-libs/libsupertone
+ net-libs/libunicall
+ dev-libs/libxml2
+ net-libs/libmfcr2"
+
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/unicall-${PV}-gentoo.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
diff --git a/net-misc/asterisk-chan_unicall/files/digest-asterisk-chan_unicall-0.0.3_pre5 b/net-misc/asterisk-chan_unicall/files/digest-asterisk-chan_unicall-0.0.3_pre5
new file mode 100644
index 0000000..ebe67c4
--- /dev/null
+++ b/net-misc/asterisk-chan_unicall/files/digest-asterisk-chan_unicall-0.0.3_pre5
@@ -0,0 +1 @@
+MD5 be1427fa602582a9400cc47ceb0a7590 asterisk-chan_unicall-0.0.3_pre5.tar.bz2 32438
diff --git a/net-misc/asterisk-chan_unicall/files/unicall-0.0.3_pre5-gentoo.diff b/net-misc/asterisk-chan_unicall/files/unicall-0.0.3_pre5-gentoo.diff
new file mode 100644
index 0000000..0951f44
--- /dev/null
+++ b/net-misc/asterisk-chan_unicall/files/unicall-0.0.3_pre5-gentoo.diff
@@ -0,0 +1,121 @@
+--- asterisk-1.0.x/chan_unicall.c.orig 2005-09-05 23:10:30.000000000 +0200
++++ asterisk-1.0.x/chan_unicall.c 2005-09-05 23:12:06.000000000 +0200
+@@ -56,7 +56,7 @@
+ #include <spandsp.h>
+ #include <libsupertone.h>
+
+-#include "../asterisk.h"
++/* #include "../asterisk.h" */
+
+ #if defined(OLD_WAY)
+ #define ast_bridged_channel(x) x->bridge
+--- asterisk-1.1.x/chan_unicall.c.orig 2005-09-05 23:10:55.000000000 +0200
++++ asterisk-1.1.x/chan_unicall.c 2005-09-05 23:11:50.000000000 +0200
+@@ -31,30 +31,30 @@
+ #include <libsupertone.h>
+ #include <unicall.h>
+
+-#include "asterisk.h"
++#include <asterisk/asterisk.h>
+
+ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+-#include "asterisk/lock.h"
+-#include "asterisk/channel.h"
+-#include "asterisk/config.h"
+-#include "asterisk/logger.h"
+-#include "asterisk/module.h"
+-#include "asterisk/pbx.h"
+-#include "asterisk/options.h"
+-#include "asterisk/file.h"
+-#include "asterisk/ulaw.h"
+-#include "asterisk/alaw.h"
+-#include "asterisk/callerid.h"
+-#include "asterisk/adsi.h"
+-#include "asterisk/cli.h"
+-#include "asterisk/cdr.h"
+-#include "asterisk/musiconhold.h"
+-#include "asterisk/say.h"
+-#include "asterisk/app.h"
+-#include "asterisk/dsp.h"
+-#include "asterisk/utils.h"
+-#include "asterisk/causes.h"
++#include <asterisk/lock.h>
++#include <asterisk/channel.h>
++#include <asterisk/config.h>
++#include <asterisk/logger.h>
++#include <asterisk/module.h>
++#include <asterisk/pbx.h>
++#include <asterisk/options.h>
++#include <asterisk/file.h>
++#include <asterisk/ulaw.h>
++#include <asterisk/alaw.h>
++#include <asterisk/callerid.h>
++#include <asterisk/adsi.h>
++#include <asterisk/cli.h>
++#include <asterisk/cdr.h>
++#include <asterisk/musiconhold.h>
++#include <asterisk/say.h>
++#include <asterisk/app.h>
++#include <asterisk/dsp.h>
++#include <asterisk/utils.h>
++#include <asterisk/causes.h>
+
+ /*
+ XXX
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ Makefile 2005-09-05 23:59:22.000000000 +0200
+@@ -0,0 +1,27 @@
++.EXPORT_ALL_VARIABLES:
++
++CC=cc
++INSTALL=install
++AST_CFG=/usr/bin/asterisk-config
++
++AST_INCLUDE_DIR=/usr/include/asterisk
++AST_CONFIG_DIR=/etc/asterisk
++AST_MODULES_DIR=/usr/lib/asterisk/modules
++
++TARGETS:=chan_unicall.so
++
++CFLAGS=$(shell $(AST_CFG) --cflags)
++SOLINK=$(shell $(AST_CFG) --solink)
++LIBS=-lunicall -lxml2 -lsupertone -lspandsp -ltiff -lmfcr2
++
++SUBDIR=$(shell [ -f $(AST_INCLUDE_DIR)/channel_pvt.h ] && echo "asterisk-1.0.x" || echo "asterisk-1.1.x")
++
++.PHONY: all install $(SUBDIR)
++
++all: $(SUBDIR)
++
++$(SUBDIR):
++ $(MAKE) -C $(SUBDIR) all
++
++install:
++ $(MAKE) -C $(SUBDIR) install
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ asterisk-1.0.x/Makefile 2005-09-06 00:00:05.000000000 +0200
+@@ -0,0 +1,10 @@
++all: $(TARGETS)
++
++$(TARGETS): $(patsubst %.so,%.c,$(TARGETS))
++ $(CC) $(CFLAGS) $(SOLINK) -fPIC -o chan_unicall.so chan_unicall.c $(LIBS)
++
++install:
++ for x in $(TARGETS); do \
++ $(INSTALL) -D -m 755 $$x $(DESTDIR)$(AST_MODULES_DIR)/$$x; \
++ done
++ $(INSTALL) -D -m 644 unicall.conf.sample $(DESTDIR)$(AST_CONFIG_DIR)/unicall.conf
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ asterisk-1.1.x/Makefile 2005-09-06 00:00:37.000000000 +0200
+@@ -0,0 +1,10 @@
++all: $(TARGETS)
++
++$(TARGETS): $(patsubst %.so,%.c,$(TARGETS))
++ $(CC) $(CFLAGS) $(SOLINK) -fPIC -o chan_unicall.so chan_unicall.c $(LIBS)
++
++install:
++ for x in $(TARGETS); do \
++ $(INSTALL) -D -m 755 $$x $(DESTDIR)$(AST_MODULES_DIR)/$$x; \
++ done
++ $(INSTALL) -D -m 644 unicall.conf.sample $(DESTDIR)$(AST_CONFIG_DIR)/unicall.conf
diff --git a/net-misc/asterisk-chan_visdn/Manifest b/net-misc/asterisk-chan_visdn/Manifest
new file mode 100644
index 0000000..6dae557
--- /dev/null
+++ b/net-misc/asterisk-chan_visdn/Manifest
@@ -0,0 +1,3 @@
+MD5 2c17ead62b7fd84ddb8f6b2aed4af0c5 asterisk-chan_visdn-0.14.0.ebuild 1299
+MD5 68c67f71e2fde87a53ce39eea06445cf files/visdn-0.14.0-configure.diff 616
+MD5 7e3607cb9c8f275e73b909b9014fb515 files/digest-asterisk-chan_visdn-0.14.0 65
diff --git a/net-misc/asterisk-chan_visdn/asterisk-chan_visdn-0.14.0.ebuild b/net-misc/asterisk-chan_visdn/asterisk-chan_visdn-0.14.0.ebuild
new file mode 100644
index 0000000..f29d253
--- /dev/null
+++ b/net-misc/asterisk-chan_visdn/asterisk-chan_visdn-0.14.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils libtool linux-mod
+
+MY_P="visdn-${PV}"
+
+DESCRIPTION=""
+HOMEPAGE="http://www.visdn.org/"
+SRC_URI="http://www.visdn.org/download/${MY_P}.tar.bz2"
+
+
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~x86"
+IUSE="ppp"
+
+RDEPEND=">=net-misc/asterisk-1.0.5-r2"
+
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+
+ # fix pppd option
+ epatch ${FILESDIR}/${MY_P}-configure.diff
+
+ autoconf
+ libtoolize --copy --force
+}
+
+src_compile() {
+ econf \
+ `use_with ppp pppd` || die "econf failed"
+
+ emake ARCH=$(tc-arch-kernel) || die "emake failed"
+}
+
+src_install() {
+ make \
+ DESTDIR=${D} \
+ ARCH=$(tc-arch-kernel) \
+ INSTALL_MOD_PATH=${D} \
+ install || die "make install failed"
+
+ dodoc AUTHOR README ChangeLog INSTALL TODO COPYING NEWS
+
+ docinto samples
+ dodoc samples/*
+
+ insinto /etc/asterisk
+ doins samples/visdn.conf
+
+ # remove unneeded files
+ rm ${D}/usr/lib/asterisk/modules/*.a
+ rm ${D}/usr/lib/asterisk/modules/*.la
+
+ # workaround, need to investigate this further
+ rm -rf ${D}/lib/modules/${KV_FULL}/extra/var
+
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ chown -R root:asterisk ${D}/etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}/etc/asterisk
+ fi
+}
diff --git a/net-misc/asterisk-chan_visdn/files/digest-asterisk-chan_visdn-0.14.0 b/net-misc/asterisk-chan_visdn/files/digest-asterisk-chan_visdn-0.14.0
new file mode 100644
index 0000000..50d9c83
--- /dev/null
+++ b/net-misc/asterisk-chan_visdn/files/digest-asterisk-chan_visdn-0.14.0
@@ -0,0 +1 @@
+MD5 9575feae77211721c94042e69286c9ae visdn-0.14.0.tar.bz2 436484
diff --git a/net-misc/asterisk-chan_visdn/files/visdn-0.14.0-configure.diff b/net-misc/asterisk-chan_visdn/files/visdn-0.14.0-configure.diff
new file mode 100644
index 0000000..c91663e
--- /dev/null
+++ b/net-misc/asterisk-chan_visdn/files/visdn-0.14.0-configure.diff
@@ -0,0 +1,20 @@
+--- visdn-0.14.0/configure.ac.orig 2005-10-24 03:24:13.000000000 +0200
++++ visdn-0.14.0/configure.ac 2005-10-27 00:26:26.000000000 +0200
+@@ -232,7 +232,7 @@
+ -d "/usr/lib/pppd/`/bin/ls -Ar1 /usr/lib/pppd/ \
+ | head -1`" ]]; then
+ pppdpluginsdir="/usr/lib/pppd/`/bin/ls -Ar1 \
+- /usr/lib/pppd/ | head -1`"
++ /usr/lib/pppd/ | head -n 1`"
+ else
+ enable_pppd="no"
+ fi
+@@ -340,6 +340,8 @@
+ AC_DEFINE(DEBUG_CODE, 1, [Debugging code])
+ fi
+
++AM_CONDITIONAL(pppd, test "$with_pppd" = yes)
++
+ #-----------------------------------------------------------------------------
+
+ AC_ARG_ENABLE(
diff --git a/net-misc/asterisk-cvs/Manifest b/net-misc/asterisk-cvs/Manifest
new file mode 100644
index 0000000..5d8f763
--- /dev/null
+++ b/net-misc/asterisk-cvs/Manifest
@@ -0,0 +1,2 @@
+MD5 af61d93656889c853e56218d96974feb asterisk-cvs-9999.ebuild 7778
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-asterisk-cvs-9999 0
diff --git a/net-misc/asterisk-cvs/asterisk-cvs-9999.ebuild b/net-misc/asterisk-cvs/asterisk-cvs-9999.ebuild
new file mode 100644
index 0000000..deaf895
--- /dev/null
+++ b/net-misc/asterisk-cvs/asterisk-cvs-9999.ebuild
@@ -0,0 +1,288 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ECVS_SERVER="cvs.digium.com:/usr/cvsroot"
+ECVS_MODULE="asterisk"
+ECVS_AUTH="pserver"
+ECVS_USER="anoncvs"
+ECVS_PASS="anoncvs"
+
+inherit eutils cvs
+
+IUSE="alsa doc gtk mmx mysql pri zaptel debug postgres odbc \
+ hardened speex h323 sqlite nosamples osp lowmem curl instsrc"
+
+#BRI_VERSION="0.2.0-RC8f-CVS"
+#AST_PATCHES="1.2.0_beta-patches-1.0"
+
+## TODO:
+#
+# - uclibc patch still needed? (still applies)
+# - bristuff (waiting...)
+# - test nosamples and instsrc
+# - add some more use flags...
+# recent additions: osp, lowmem, curl
+# - cleanup
+# PWLIBDIR, OPENH323DIR still needed for asterisk's make all call?
+# remove BLA+=foo.so bar.so change in patches
+# - remove "rm -f .version" from base Makefile (for instsrc)
+# - set OPTIONS and OPTIMIZE with sed? (avoids code duplication)
+#
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Asterisk: A Modular Open Source PBX System"
+HOMEPAGE="http://www.asterisk.org/"
+#SRC_URI="http://ftp.digium.com/pub/asterisk/${MY_P}.tar.gz"
+# http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2"
+# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )"
+
+S=${WORKDIR}/${PN/-cvs/}
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+RDEPEND="dev-libs/newt
+ media-sound/sox
+ media-sound/mpg123
+ gtk? ( =x11-libs/gtk+-1.2* )
+ pri? ( >=net-libs/libpri-1.1.0 )
+ osp? ( >=net-libs/osptoolkit-3.3.1 )
+ h323? ( >=dev-libs/pwlib-1.8.3
+ >=net-libs/openh323-1.15.0 )
+ alsa? ( media-libs/alsa-lib )
+ curl? ( net-misc/curl )
+ odbc? ( dev-db/unixODBC )
+ mysql? ( dev-db/mysql )
+ speex? ( media-libs/speex )
+ sqlite? ( <dev-db/sqlite-3.0.0 )
+ zaptel? ( >=net-misc/zaptel-1.1.0 )
+ postgres? ( dev-db/postgresql )"
+
+# bri? ( >=net-libs/libpri-1.1.0
+# >=net-misc/zaptel-1.1.0 )
+
+DEPEND="${RDEPEND}
+ dev-util/cvs
+ sys-devel/flex
+ sys-devel/bison
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ #
+ # Regular checks
+ #
+ einfo "Running some pre-flight checks..."
+}
+
+src_unpack() {
+ cvs_src_unpack
+ cd ${S}
+
+ if ! use debug; then
+ einfo "Disabling debugging"
+ sed -i -e "s:^\(DEBUG=\):#\1:" \
+ Makefile
+ fi
+
+ sed -i -e "/^.*-march=\$(PROC).*/d" \
+ -e "/^.*-mcpu=\$(PROC).*/d" \
+ -e "s:^\(OPTIMIZE+=\).*:\1 ${CFLAGS}:" \
+ -e "s:\(ASTVARRUNDIR=\$(INSTALL_PREFIX)/var/run\).*:\1/asterisk:" \
+ Makefile
+}
+
+src_compile() {
+ local myopts
+
+ use lowmem && \
+ myopts="-DLOW_MEMORY"
+
+ if use h323; then
+ einfo "Building H.323 wrapper lib..."
+ make -C channels/h323 \
+ NOTRACE=1 \
+ PWLIBDIR=/usr/share/pwlib \
+ OPENH323DIR=/usr/share/openh323 \
+ libchanh323.a Makefile.ast || die "Make h323 failed"
+ fi
+
+ einfo "Building Asterisk..."
+ make \
+ OPTIONS="${myopts}" || die "Make failed"
+
+ # create api docs
+ use doc && \
+ make progdocs
+}
+
+src_install() {
+ # install asterisk
+ make DESTDIR=${D} install || die "Make install failed"
+ make DESTDIR=${D} samples || die "Failed to create sample files"
+
+ # remove installed sample files if nosamples flag is set
+ if use nosamples; then
+ einfo "Skipping installation of sample files..."
+ einfo "See ${ROOT}usr/share/doc/${PF}/configs for configuration files"
+ insinto /usr/share/doc/${PF}/configs
+ newins ${D}etc/asterisk/asterisk.conf asterisk.conf.sample
+
+ # skip installation of sample configuration files
+ # if asterisk-1.1.0 or later is present
+ if has_version ">net-misc/asterisk-1.1.0"
+ then
+ rm -f ${D}etc/asterisk/*
+ else
+ einfo "No previous or old (<=1.0.x) installation of ${PN} found,"
+ einfo "installing sample configuration files!"
+ fi
+ rm -rf ${D}var/spool/asterisk/voicemail/default
+ rm -f ${D}var/lib/asterisk/mohmp3/*
+ rm -f ${D}var/lib/asterisk/sounds/demo-*
+ rm -f ${D}var/lib/asterisk/agi-bin/*
+ else
+ einfo "Sample files have been installed"
+ keepdir /var/spool/asterisk/voicemail/default/1234/INBOX
+ fi
+
+ # don't delete these directories, even if they are empty
+ for x in voicemail meetme system dictate tmp; do
+ keepdir /var/spool/asterisk/${x}
+ done
+ keepdir /var/lib/asterisk/sounds/priv-callerintros
+ keepdir /var/lib/asterisk/mohmp3
+ keepdir /var/lib/asterisk/agi-bin
+ keepdir /var/log/asterisk/cdr-csv
+ keepdir /var/log/asterisk/cdr-custom
+ keepdir /var/run/asterisk
+
+ # install asterisk.h, a lot of external modules need this
+ insinto /usr/include/asterisk
+ doins include/asterisk.h
+
+ # install astgenkey, astxs, safe_asterisk and manpages
+ dobin contrib/scripts/astxs
+ dosbin contrib/scripts/astgenkey
+ dosbin contrib/scripts/safe_asterisk
+ doman contrib/scripts/safe_asterisk.8
+ doman contrib/scripts/astgenkey.8
+
+ newinitd ${FILESDIR}/1.0.0/asterisk.rc6.sec asterisk
+ newconfd ${FILESDIR}/1.0.0/asterisk.confd.sec asterisk
+
+ # install standard docs...
+ dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm
+ dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README
+ dodoc doc/README.*
+ dodoc doc/*.txt
+
+ docinto scripts
+ dodoc contrib/scripts/*
+
+ docinto utils
+ dodoc contrib/utils/*
+
+ docinto configs
+ dodoc configs/*
+
+ # install api docs
+ if use doc; then
+ insinto /usr/share/doc/${PF}/api/html
+ doins doc/api/html/*
+ fi
+
+ insinto /usr/share/doc/${PF}/cgi
+ doins contrib/scripts/vmail.cgi
+ doins images/*.gif
+
+ if use instsrc; then
+ local myopts
+
+ # cleanup, set some vars and copy ${S} to /usr/src
+ einfo "Installing ${PN} sources into /usr/src..."
+
+ # save .version
+ mv -f .version ${T}
+
+ # cleanup
+ make clean
+ make -C channels/h323 clean
+
+ # restore .version
+ mv -f ${T}/.version .
+
+ use lowmem && myopts="-DLOW_MEMORY"
+
+ # set variables
+ sed -i -e "s:^OPTIMIZE[ \t]*+=.*:OPTIMIZE:=${CFLAGS}:" \
+ -e "s:^\(OPTIONS[ \t]*=.*\):\1 ${myopts}:" \
+ Makefile
+
+ # copy
+ dodir /usr/src
+ cp -pPR ${S} ${D}/usr/src
+ fi
+}
+
+pkg_preinst() {
+ enewgroup asterisk
+ enewuser asterisk -1 -1 /var/lib/asterisk asterisk
+}
+
+pkg_postinst() {
+ einfo "Fixing permissions"
+ for x in spool run lib log; do
+ chown -R asterisk:asterisk ${ROOT}var/${x}/asterisk
+ chmod -R u=rwX,g=rX,o= ${ROOT}var/${x}/asterisk
+ done
+
+ chown -R root:asterisk ${ROOT}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${ROOT}etc/asterisk
+ echo
+
+ #
+ # Announcements, warnings, reminders...
+ #
+ einfo "Asterisk has been installed"
+ einfo ""
+ einfo "If you want to know more about asterisk, visit these sites:"
+ einfo "http://www.asteriskdocs.org/"
+ einfo "http://www.voip-info.org/wiki-Asterisk"
+ echo
+ einfo "http://asterisk.xvoip.com/"
+ einfo "http://junghanns.net/asterisk/"
+ einfo "http://www.automated.it/guidetoasterisk.htm"
+ echo
+ einfo "Gentoo VoIP IRC Channel:"
+ einfo "#gentoo-voip @ irc.freenode.net"
+
+ #
+ # Warning about security changes...
+ #
+ ewarn "*********************** Important changes **************************"
+ ewarn
+ ewarn "- Asterisk runs as user asterisk, group asterisk by default"
+ ewarn " Use usermod -G to make the asterisk user a member of additional"
+ ewarn " groups if necessary."
+ ewarn
+ ewarn "- Permissions of /etc/asterisk have been changed to root:asterisk"
+ ewarn " 750 (rwxr-x--- directories) / 640 (rw-r----- files)"
+ ewarn
+ ewarn "- Permissions of /var/{log,lib,run,spool}/asterisk have been changed"
+ ewarn " to asterisk:asterisk 750 / 640"
+ ewarn
+ ewarn "- Asterisk's unix socket and pidfile are now in /var/run/astrisk"
+ ewarn
+ ewarn "- Asterisk cannot set the IP ToS bits when run as user,"
+ ewarn " use something like this to make iptables set them for you:"
+ ewarn " \"iptables -A OUTPUT -t mangle -p udp -m udp --dport 5060 -j DSCP --set-dscp 0x28\""
+ ewarn " \"iptables -A OUTPUT -t mangle -p udp -m udp --sport 10000:20000 -j DSCP --set-dscp 0x28\""
+ ewarn " (taken from voip-info.org comments (see below), thanks andrewid)"
+ ewarn
+ ewarn "For more details:"
+ ewarn " http://bugs.gentoo.org/show_bug.cgi?id=88732"
+ ewarn " http://www.voip-info.org/wiki-Asterisk+non-root"
+}
diff --git a/net-misc/asterisk-cvs/files/digest-asterisk-cvs-9999 b/net-misc/asterisk-cvs/files/digest-asterisk-cvs-9999
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/net-misc/asterisk-cvs/files/digest-asterisk-cvs-9999
diff --git a/net-misc/asterisk-format_base64/Manifest b/net-misc/asterisk-format_base64/Manifest
new file mode 100644
index 0000000..6e097ff
--- /dev/null
+++ b/net-misc/asterisk-format_base64/Manifest
@@ -0,0 +1,3 @@
+MD5 aeac6cbc5ba720b432a9482def38d347 asterisk-format_base64-20050917.ebuild 654
+MD5 80f573af0f71d202cb323d391145ea7a files/format_base64-20050917-astcfg.diff 713
+MD5 6f4b30aaf6cda48417143ba398a20276 files/digest-asterisk-format_base64-20050917 82
diff --git a/net-misc/asterisk-format_base64/asterisk-format_base64-20050917.ebuild b/net-misc/asterisk-format_base64/asterisk-format_base64-20050917.ebuild
new file mode 100644
index 0000000..0cfbbe6
--- /dev/null
+++ b/net-misc/asterisk-format_base64/asterisk-format_base64-20050917.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_PN="format_base64"
+
+DESCRIPTION="Asterisk plugin"
+HOMEPAGE="http://www.pbxfreeware.org/"
+SRC_URI="http://www.netdomination.org/pub/asterisk/${P}.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=net-misc/asterisk-1.2.0_beta1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-20050917-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
diff --git a/net-misc/asterisk-format_base64/files/digest-asterisk-format_base64-20050917 b/net-misc/asterisk-format_base64/files/digest-asterisk-format_base64-20050917
new file mode 100644
index 0000000..fe2f0c2
--- /dev/null
+++ b/net-misc/asterisk-format_base64/files/digest-asterisk-format_base64-20050917
@@ -0,0 +1 @@
+MD5 5f29ecf1340d3c857f1423e684a2770c asterisk-format_base64-20050917.tar.bz2 6119
diff --git a/net-misc/asterisk-format_base64/files/format_base64-20050917-astcfg.diff b/net-misc/asterisk-format_base64/files/format_base64-20050917-astcfg.diff
new file mode 100644
index 0000000..7da533b
--- /dev/null
+++ b/net-misc/asterisk-format_base64/files/format_base64-20050917-astcfg.diff
@@ -0,0 +1,31 @@
+--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000
++++ Makefile 2005-01-26 20:30:27.009331696 +0000
+@@ -0,0 +1,28 @@
++
++CC?=gcc
++ASTCONFIG?=/usr/bin/asterisk-config
++
++CFLAGS=$(shell $(ASTCONFIG) --cflags) -fPIC -DPIC
++SOLINK=$(shell $(ASTCONFIG) --solink)
++LIBS=
++
++ASTMODDIR=$(shell $(ASTCONFIG) --modulesdir)
++
++all: .depend format_base64.so
++
++.depend:
++ @if [ ! -x $(ASTCONFIG) ]; then \
++ echo "$(ASTCONFIG) not found!"; \
++ exit 255; \
++ fi
++
++.c.o:
++ $(CC) -c $(CFLAGS) -o $@ $<
++
++format_base64.so: format_base64.o
++ $(CC) $(SOLINK) -o $@ $< $(LIBS)
++
++install:
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 format_base64.so $(DESTDIR)$(ASTMODDIR)
++
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog
new file mode 100644
index 0000000..43bbe44
--- /dev/null
+++ b/net-misc/asterisk/ChangeLog
@@ -0,0 +1,314 @@
+# ChangeLog for net-misc/asterisk
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.66 2005/06/28 21:05:33 stkn Exp $
+
+ 28 Jun 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.7-r1.ebuild:
+ Marking stable on x86, closing #88732 and #96826.
+
+ 26 Jun 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/asterisk-1.0.8-callerid.patch, asterisk-1.0.8.ebuild:
+ Added dialplan callerid matching fix.
+
+ 25 Jun 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.5-r2.ebuild,
+ asterisk-1.0.6-r1.ebuild, asterisk-1.0.7-r1.ebuild, asterisk-1.0.8.ebuild:
+ Fixed SRC_URI and a typo.
+
+ 25 Jun 2005; David Holm <dholm@gentoo.org> asterisk-1.0.7-r1.ebuild:
+ Added to ~ppc.
+
+ 25 Jun 2005; Tobias Scherbaum <dertobi123@gentoo.org>
+ asterisk-1.0.8.ebuild:
+ Added to ~ppc.
+
+*asterisk-1.0.8 (25 Jun 2005)
+
+ 25 Jun 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/asterisk-1.0.8-hppa.patch,
+ +files/1.0.0/asterisk-1.0.8-initgroups.diff, +asterisk-1.0.8.ebuild:
+ Version bump.
+
+ 24 Jun 2005; Stefan Knoblich <stkn@gentoo.org> -asterisk-1.0.5-r1.ebuild,
+ -asterisk-1.0.5.ebuild, -asterisk-1.0.6.ebuild, -asterisk-1.0.7.ebuild:
+ Removing old ebuilds without security update.
+
+ 24 Jun 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.5-r2.ebuild,
+ asterisk-1.0.6-r1.ebuild:
+ Added 1.0.7 security fix to backported non-root ebuilds, restoring ~* keywords.
+
+ 23 Jun 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/asterisk-1.0.7-manager-cli-segv.patch,
+ asterisk-1.0.7-r1.ebuild:
+ Added security fix for
+ http://www.portcullis-security.com/advisory/advisory-05-013.txt (bug #96826)
+ (taken from asterisk-1.0.8), non-root changes and cleanups, astconf.h is
+ installed into /usr/include/asterisk, because several external modules need
+ it. Tested and marking ~* again.
+
+ 01 Jun 2005; Stefan Knoblich <stkn@gentoo.org> -asterisk-1.0.0.ebuild,
+ -asterisk-1.0.1.ebuild, -asterisk-1.0.2.ebuild, -asterisk-1.0.3-r1.ebuild,
+ -asterisk-1.0.3.ebuild:
+ Removed old ebuilds.
+
+*asterisk-1.0.5-r2 (01 Jun 2005)
+
+ 01 Jun 2005; Stefan Knoblich <stkn@gentoo.org>
+ files/1.0.0/asterisk-1.0.7-scripts.diff, files/1.0.0/asterisk.confd.sec,
+ files/1.0.0/asterisk.rc6.sec, +asterisk-1.0.5-r2.ebuild,
+ +asterisk-1.0.6-r1.ebuild, asterisk-1.0.7-r1.ebuild:
+ Minor fixes, non-root changes backported to 1.0.5 and 1.0.6 (still in use)
+ and bristuff update (1.0.7-r1).
+
+ 29 May 2005; <solar@gentoo.org> asterisk-1.0.1.ebuild,
+ asterisk-1.0.2.ebuild, asterisk-1.0.3-r1.ebuild, asterisk-1.0.3.ebuild,
+ asterisk-1.0.5-r1.ebuild, asterisk-1.0.5.ebuild, asterisk-1.0.6.ebuild,
+ asterisk-1.0.7-r1.ebuild, asterisk-1.0.7.ebuild:
+ - update asterisk to use libc expanded variable elibc_uclibc vs uclibc so
+ USE=-* works
+
+ 15 May 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/asterisk-1.0.7-initgroups.diff, files/1.0.0/asterisk.confd.sec,
+ files/1.0.0/asterisk.rc6.sec, asterisk-1.0.7-r1.ebuild:
+ Added initgroups support to asterisk instead of using start-stop-daemon's
+ --chguid because that one broke running asterisk with realtime priority (-p).
+ Fixed init script for initgroups. Users will have to use ebuild config after
+ updating asterisk to fix permissions on the filesystem, warning messages have
+ been added.
+
+ 12 May 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/asterisk-1.0.7-scripts.diff, asterisk-1.0.7-r1.ebuild:
+ Added non-root changes to addmailbox and astgenkey, fixed warning
+ countdown and bristuff update.
+
+ 11 May 2005; Stefan Knoblich <stkn@gentoo.org>
+ files/1.0.0/asterisk.confd.sec:
+ Fixed asterisk.confd.sec
+
+ 11 May 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.7-r1.ebuild:
+ Changed ebuild to fix permissions on live-filesystem during pkg_postinst,
+ not the nicest way to do this but the best one to force sane defaults.
+
+ 10 May 2005; David Holm <dholm@gentoo.org> asterisk-1.0.7.ebuild:
+ Added to ~ppc.
+
+ 09 May 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.7-r1.ebuild:
+ Added warning messages, some minor tweaks
+
+*asterisk-1.0.7-r1 (07 May 2005)
+
+ 07 May 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/asterisk.confd.sec, +files/1.0.0/asterisk.rc6.sec,
+ +asterisk-1.0.7-r1.ebuild:
+ Fixes bug #88732, adding asterisk user and group, changing
+ permissions of files in /var/{lib,spool,run,log}/asterisk
+ to asterisk:asterisk rwxr-x---. Updated to bristuff-0.2.0-RC8a.
+ Masked for testing.
+
+ 05 May 2005; Sven Wegener <swegener@gentoo.org> asterisk-1.0.6.ebuild,
+ asterisk-1.0.7.ebuild:
+ Added missing parentheses to SRC_URI.
+
+ 20 Apr 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.7.ebuild:
+ Fixed #89648, api and some other additional docs get installed now.
+
+ 29 Mar 2005; Stefan Knoblich <stkn@gentoo.org> -digest-asterisk-1.0.7,
+ asterisk-1.0.7.ebuild:
+ Added additional built_with_use checks for perl and libperl, because res_perl
+ requires both to have ithreads support. Removed duplicate digest file in wrong
+ directory.
+
+ 28 Mar 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/res_perl-1.0.7-bristuff-0.2.0.diff, asterisk-1.0.7.ebuild:
+ Added fix for compiling res_perl with bri enabled.
+
+ 27 Mar 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.7.ebuild:
+ Fixed and re-enabled res_perl support, perl modules are now installed into
+ /usr/lib/perl/..., applications and htdocs are in /var/lib/asterisk/perl.
+ Now everything is where it belongs.
+
+ 22 Mar 2005; Stefan Knoblich <stkn@gentoo.org> files/0.9.0/asterisk.rc6,
+ files/1.0.0/asterisk.rc6:
+ Fix asterisk's initscript to run after zaptel's (thanks gustavoz).
+
+*asterisk-1.0.7 (21 Mar 2005)
+
+ 21 Mar 2005; Stefan Knoblich <stkn@gentoo.org> +asterisk-1.0.7.ebuild:
+ Version bump.
+
+ 11 Mar 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.6.ebuild:
+ Fixed hardened workaround for gsm codec (closes #84767).
+
+*asterisk-1.0.6 (10 Mar 2005)
+
+ 10 Mar 2005; Stefan Knoblich <stkn@gentoo.org> +asterisk-1.0.6.ebuild:
+ New version. Adds speex use-flag and bristuff support; disables res_perl for
+ now. Sounds add-on has been split from the main package, they're now in
+ asterisk-sounds if you need them.
+
+ 21 Feb 2005; Simon Stelling <blubb@gentoo.org> asterisk-1.0.5-r1.ebuild
+ added ~amd64
+
+ 20 Feb 2005; Guy Martin <gmsoft@gentoo.org>
+ +files/1.0.0/asterisk-1.0.5-hppa.patch, asterisk-1.0.5-r1.ebuild:
+ Added some hppa love.
+
+*asterisk-1.0.5-r1 (14 Feb 2005)
+
+ 14 Feb 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/1.0.0/asterisk-1.0.5-astcfg-0.0.2.diff,
+ +files/1.0.0/asterisk-1.0.5-speex.diff,
+ +files/1.0.0/asterisk-1.0.5-uclibc-dns.diff, +asterisk-1.0.5-r1.ebuild:
+ Fix detection problems w/ >=speex-1.1.0. Except for codec_gsm.so (needs some
+ more investigation), all plugins use -fPIC and are free from TEXT_RELocations.
+ Fixed uclibc patch (thanks to Ned Ludd <solar@gentoo.org>, closes #72984).
+ Added postgres use-flag and fixed postgres detection. Added use-flags and
+ sed-foo for voicemail database support (thx to Gustavo Zacarias
+ <gustavoz@gentoo.org> for pointing this out). Added experimental patch for
+ asterisk-config config script that should ease development / use of external
+ modules and extensions.
+
+ 31 Jan 2005; Gustavo Zacarias <gustavoz@gentoo.org> asterisk-1.0.5.ebuild:
+ Keyworded ~sparc
+
+ 31 Jan 2005; Gustavo Zacarias <gustavoz@gentoo.org>
+ asterisk-1.0.3-r1.ebuild, asterisk-1.0.3.ebuild:
+ Keyworded ~sparc again, thanks to chrb
+
+*asterisk-1.0.5 (28 Jan 2005)
+
+ 28 Jan 2005; Chris Bainbridge <chrb@gentoo.org> +asterisk-1.0.5.ebuild:
+ Version bump and CFLAGS fixes.
+
+*asterisk-1.0.3-r1 (28 Jan 2005)
+
+ 28 Jan 2005; Chris Bainbridge <chrb@gentoo.org> +asterisk-1.0.3-r1.ebuild:
+ Add sox (required for Record app, and probably others)
+
+ 27 Jan 2005; Stefan Knoblich <stkn@gentoo.org>
+ -files/0.5.0/asterisk-0.5.0-Makefile-samples.patch,
+ -files/0.5.0/asterisk-0.5.0-makefile-fix.diff, -files/0.5.0/asterisk.confd,
+ -files/0.5.0/asterisk.rc6, -asterisk-0.2.0.ebuild, -asterisk-0.5.0.ebuild:
+ removing old versions
+
+ 24 Jan 2005; Brian Jackson <iggy@gentoo.org> asterisk-1.0.1.ebuild,
+ asterisk-1.0.2.ebuild, asterisk-1.0.3.ebuild:
+ few more uclibc move changes
+
+ 27 Dec 2004; Gustavo Zacarias <gustavoz@gentoo.org> asterisk-1.0.3.ebuild:
+ Keyworded ~sparc
+
+*asterisk-1.0.3 (19 Dec 2004)
+
+ 19 Dec 2004; Stefan Knoblich <stkn@gentoo.org> +asterisk-1.0.3.ebuild:
+ new version
+
+ 18 Dec 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-1.0.0.ebuild, asterisk-1.0.1.ebuild, asterisk-1.0.2.ebuild:
+ zapata isn't used by asterisk anymore, dependency removed
+
+ 26 Nov 2004; <stkn@gentoo.org> asterisk-1.0.1.ebuild, asterisk-1.0.2.ebuild:
+ uclibc dependency had wrong category (closes #72478)
+
+*asterisk-1.0.2 (10 Nov 2004)
+
+ 10 Nov 2004; <stkn@gentoo.org> +asterisk-1.0.2.ebuild:
+ version bump.
+
+*asterisk-1.0.1 (30 Oct 2004)
+
+ 30 Oct 2004; <stkn@gentoo.org> +files/1.0.0/asterisk-1.0.1-linux26.diff,
+ +files/1.0.0/asterisk-uclibc-dns.diff, +asterisk-1.0.1.ebuild:
+ new version, pri and zaptel use-flags flipped (now default disabled), fixes:
+ #66557 (thx to REdOG <bugzilla@opelousas.org>), #66720 (webapp stuff
+ removed...), a workaround for #65195 (fixed for newer versions of linux?).
+
+*asterisk-1.0.0 (24 Sep 2004)
+
+ 24 Sep 2004; <stkn@gentoo.org> +files/1.0.0/asterisk.confd,
+ +files/1.0.0/asterisk.rc6, +asterisk-1.0.0.ebuild:
+ version bump, init script uses start-stop-daemon now
+
+ 27 Jul 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.9.0.ebuild:
+ stable on x86, removed obsolete iax dependency
+
+ 05 Jul 2004; <stkn@gentoo.org> asterisk-0.9.0.ebuild:
+ SRC_URI has changed
+
+ 01 Jul 2004; Jon Hood <squinky86@gentoo.org> asterisk-0.2.0.ebuild,
+ asterisk-0.5.0.ebuild, asterisk-0.9.0.ebuild:
+ change virtual/glibc to virtual/libc
+
+ 26 Jun 2004; <stkn@gentoo.org> files/0.7.2/asterisk-0.7.2-makefile-fix.diff,
+ files/0.7.2/asterisk.confd, files/0.7.2/asterisk.rc6:
+ Removed asterisk-0.7.2, see http://www.securityfocus.com/bid/10569 for more
+ information
+
+ 14 Jun 2004; Aron Griffis <agriffis@gentoo.org> asterisk-0.5.0.ebuild,
+ asterisk-0.7.2.ebuild, asterisk-0.9.0.ebuild:
+ Fix use invocation
+
+*asterisk-0.9.0 (10 May 2004)
+
+ 10 May 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.9.0.ebuild,
+ files/0.9.0/asterisk.confd, files/0.9.0/asterisk.rc6:
+ version bump.
+
+ 17 Apr 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.7.2.ebuild:
+ Fix broken voicemail webapp (#46182)
+
+ 16 Mar 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.7.2.ebuild:
+ asterisk-0.7.2 depends on zaptel/zapata >=0.8.1 now
+
+ 19 Feb 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.2.0.ebuild,
+ asterisk-0.5.0.ebuild, asterisk-0.7.2.ebuild:
+ fixed SRC_URI
+
+ 15 Feb 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.7.2.ebuild,
+ files/0.7.2/asterisk-0.7.2-makefile-fix.diff:
+ install makefile fix re-added
+
+ 13 Feb 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.5.0.ebuild,
+ asterisk-0.7.2.ebuild:
+ asterisk-0.7.2 hard-masked until new zaptel drivers arrive,
+ corrected header error in 0.5.0 and 0.7.2 ebuild,
+ 0.7.2 now uses webapp eclass instead of webapp-apache
+
+*asterisk-0.7.2 (13 Feb 2004)
+
+ 13 Feb 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.7.2.ebuild,
+ files/0.7.2/asterisk.confd, files/0.7.2/asterisk.rc6:
+ added asterisk-0.7.2 ebuild
+
+ 09 Jan 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.5.0.ebuild,
+ files/0.5.0/asterisk-0.5.0-makefile-fix.diff:
+ fixed bug #37212, fixed broken DEPEND use handling
+
+*asterisk-0.5.0 (04 Jan 2004)
+
+ 04 Jan 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.2.0.ebuild,
+ asterisk-0.5.0.ebuild, metadata.xml,
+ files/0.5.0/asterisk-0.5.0-Makefile-samples.patch,
+ files/0.5.0/asterisk-0.5.0-makefile-fix.diff, files/0.5.0/asterisk.confd,
+ files/0.5.0/asterisk.rc6:
+ new ebuild asterisk-0.5.0, copyright header updates
+
+ 30 Nov 2003; Brandy Westcott brandy@gentoo.org asterisk-0.2.0.ebuild:
+ Pinned emake to -j1. Closes bug #34642.
+
+ 03 Oct 2003; Seemant Kulleen <seemant@gentoo.org> asterisk-0.2.0.ebuild:
+ from an email from the asterisk upstream authors, this package is actually
+ GPL-2, and NOT BSD. Apologies to them for this oversight. Thanks, in
+ particular, to: Malcolm Davenport <malcolmd@digium.com> for pointing this out
+
+ 12 Jun 2003; <msterret@gentoo.org> asterisk-0.2.0.ebuild:
+ fix Header
+
+*asterisk-0.2.0 (28 Nov 2002)
+
+ 22 Apr 2003; Brandon Low <lostlogic@gentoo.org> asterisk-0.2.0.ebuild:
+ Change supersed dependencies
+
+ 28 Nov 2002; Matt Keadle <mkeadle@gentoo.org> asterisk-0.2.0.ebuild
+ files/digest-asterisk-0.2.0:
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. Thanks to Rigo Ketelings for submitting this
+ ebuild.
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
new file mode 100644
index 0000000..a0a3f62
--- /dev/null
+++ b/net-misc/asterisk/Manifest
@@ -0,0 +1,9 @@
+MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248
+MD5 b7a54f63d3bc1383480f988bfadb724b ChangeLog 12759
+MD5 479b2d2c9e9d502485053cc800d99c10 asterisk-1.2.0_beta1.ebuild 8637
+MD5 5d8a088b5a0b3ea1681f4f085ff36299 files/digest-asterisk-1.2.0_beta1 156
+MD5 4cdb3145f641036024be9708f7fa8fa1 files/1.2.0/asterisk.confd 2003
+MD5 c2cf2d695300a62e745c3a65e6e526be files/1.2.0/asterisk.rc6 5624
+MD5 207d65112cdd7677ed3002d8a3f2bc85 files/1.0.0/asterisk.confd 2214
+MD5 da9914a70c579f48b2dd80f8ac55b259 files/1.0.0/asterisk.rc6 5580
+MD5 08d718c04e911f465f867577d649d204 files/1.0.0/asterisk-1.0.5-uclibc-dns.diff 304
diff --git a/net-misc/asterisk/asterisk-1.2.0_beta1.ebuild b/net-misc/asterisk/asterisk-1.2.0_beta1.ebuild
new file mode 100644
index 0000000..87eec45
--- /dev/null
+++ b/net-misc/asterisk/asterisk-1.2.0_beta1.ebuild
@@ -0,0 +1,326 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+IUSE="alsa doc gtk mmx mysql pri zaptel debug postgres odbc \
+ hardened speex h323 sqlite nosamples osp lowmem curl instsrc"
+
+#BRI_VERSION="0.2.0-RC8f-CVS"
+AST_PATCHES="1.2.0_beta-patches-1.0"
+
+## TODO:
+#
+# - uclibc patch still needed? (still applies)
+# - bristuff (waiting...)
+# - test nosamples and instsrc
+# - add some more use flags...
+# recent additions: osp, lowmem, curl
+# - cleanup
+# PWLIBDIR, OPENH323DIR still needed for asterisk's make all call?
+# remove BLA+=foo.so bar.so change in patches
+# - remove "rm -f .version" from base Makefile (for instsrc)
+# - set OPTIONS and OPTIMIZE with sed? (avoids code duplication)
+#
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Asterisk: A Modular Open Source PBX System"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://ftp.digium.com/pub/asterisk/${MY_P}.tar.gz
+ http://www.netdomination.org/pub/asterisk/${PN}-${AST_PATCHES}.tar.bz2"
+# bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )"
+
+S=${WORKDIR}/${MY_P}
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc ~hppa ~amd64 ~ppc"
+
+RDEPEND="dev-libs/newt
+ media-sound/sox
+ media-sound/mpg123
+ gtk? ( =x11-libs/gtk+-1.2* )
+ pri? ( >=net-libs/libpri-1.1.0 )
+ osp? ( >=net-libs/osptoolkit-3.3.1 )
+ h323? ( >=dev-libs/pwlib-1.8.3
+ >=net-libs/openh323-1.15.0 )
+ alsa? ( media-libs/alsa-lib )
+ curl? ( net-misc/curl )
+ odbc? ( dev-db/unixODBC )
+ mysql? ( dev-db/mysql )
+ speex? ( media-libs/speex )
+ sqlite? ( <dev-db/sqlite-3.0.0 )
+ zaptel? ( >=net-misc/zaptel-1.1.0 )
+ postgres? ( dev-db/postgresql )"
+
+# bri? ( >=net-libs/libpri-1.1.0
+# >=net-misc/zaptel-1.1.0 )
+
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ #
+ # Regular checks
+ #
+ einfo "Running some pre-flight checks..."
+
+ # check if zaptel and libpri have been built with bri enabled
+# if use bri; then
+# if ! built_with_use zaptel bri; then
+# eerror "Re-emerge zaptel with bri use-flag enabled!"
+# die "Zaptel without bri support detected"
+# fi
+#
+# if ! built_with_use libpri bri; then
+# eerror "Re-emerge libpri with bri use-flag enabled!"
+# die "Libpri without bri support detected"
+# fi
+# fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ #
+ # gentoo patchset
+ #
+ for x in $(grep -v "^#\| \+" ${WORKDIR}/patches/patches.list); do
+ epatch ${WORKDIR}/patches/${x}
+ done
+
+ if use mmx; then
+ if ! use hardened; then
+ einfo "Enabling mmx optimization"
+ sed -i -e "s:^#\(K6OPT[\t ]\+= -DK6OPT\):\1:" \
+ Makefile
+ else
+ ewarn "Hardened use-flag is set, not enabling mmx optimization for codec_gsm!"
+ fi
+ fi
+
+ if ! use debug; then
+ einfo "Disabling debugging"
+ sed -i -e "s:^\(DEBUG=\):#\1:" \
+ Makefile
+ fi
+
+ #
+ # uclibc patch
+ #
+ if use elibc_uclibc; then
+ einfo "Patching asterisk for uclibc..."
+ epatch ${FILESDIR}/1.0.0/${PN}-1.0.5-uclibc-dns.diff
+ fi
+
+ #
+ # BRI patches
+ #
+# if use bri; then
+# cd ${S}
+# einfo "Patching asterisk w/ BRI stuff"
+# epatch ${WORKDIR}/bristuff-${BRI_VERSION}/patches/asterisk.patch
+# fi
+}
+
+src_compile() {
+ local myopts
+
+ use lowmem && \
+ myopts="-DLOW_MEMORY"
+
+ if use h323; then
+ einfo "Building H.323 wrapper lib..."
+ make -C channels/h323 \
+ NOTRACE=1 \
+ PWLIBDIR=/usr/share/pwlib \
+ OPENH323DIR=/usr/share/openh323 \
+ libchanh323.a Makefile.ast || die "Make h323 failed"
+ fi
+
+ einfo "Building Asterisk..."
+ make \
+ NOTRACE=1 \
+ OPTIMIZE="${CFLAGS}" \
+ PWLIBDIR=/usr/share/pwlib \
+ OPENH323DIR=/usr/share/openh323 \
+ OPTIONS="${myopts}" || die "Make failed"
+
+ # create api docs
+ use doc && \
+ make progdocs
+}
+
+src_install() {
+ # install asterisk
+ make DESTDIR=${D} install || die "Make install failed"
+ make DESTDIR=${D} samples || die "Failed to create sample files"
+
+ # remove installed sample files if nosamples flag is set
+ if use nosamples; then
+ einfo "Skipping installation of sample files..."
+ einfo "See ${ROOT}usr/share/doc/${PF}/configs for configuration files"
+ insinto /usr/share/doc/${PF}/configs
+ newins ${D}etc/asterisk/asterisk.conf asterisk.conf.sample
+
+ # skip installation of sample configuration files
+ # if asterisk-1.1.0 or later is present
+ if has_version ">net-misc/asterisk-1.1.0"
+ then
+ rm -f ${D}etc/asterisk/*
+ else
+ einfo "No previous or old (<=1.0.x) installation of ${PN} found,"
+ einfo "installing sample configuration files!"
+ fi
+ rm -rf ${D}var/spool/asterisk/voicemail/default
+ rm -f ${D}var/lib/asterisk/mohmp3/*
+ rm -f ${D}var/lib/asterisk/sounds/demo-*
+ rm -f ${D}var/lib/asterisk/agi-bin/*
+ else
+ einfo "Sample files have been installed"
+ keepdir /var/spool/asterisk/voicemail/default/1234/INBOX
+ fi
+
+ # don't delete these directories, even if they are empty
+ for x in voicemail meetme system dictate tmp; do
+ keepdir /var/spool/asterisk/${x}
+ done
+ keepdir /var/lib/asterisk/sounds/priv-callerintros
+ keepdir /var/lib/asterisk/mohmp3
+ keepdir /var/lib/asterisk/agi-bin
+ keepdir /var/log/asterisk/cdr-csv
+ keepdir /var/log/asterisk/cdr-custom
+ keepdir /var/run/asterisk
+
+ # install asterisk.h, a lot of external modules need this
+ insinto /usr/include/asterisk
+ doins include/asterisk.h
+
+ # install astgenkey, astxs, safe_asterisk and manpages
+ dobin contrib/scripts/astxs
+ dosbin contrib/scripts/astgenkey
+ dosbin contrib/scripts/safe_asterisk
+ doman contrib/scripts/safe_asterisk.8
+ doman contrib/scripts/astgenkey.8
+
+ newinitd ${FILESDIR}/1.0.0/asterisk.rc6.sec asterisk
+ newconfd ${FILESDIR}/1.0.0/asterisk.confd.sec asterisk
+
+ # install standard docs...
+ dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm
+ dodoc SECURITY doc/CODING-GUIDELINES doc/linkedlists.README
+ dodoc doc/README.*
+ dodoc doc/*.txt
+
+ docinto scripts
+ dodoc contrib/scripts/*
+
+ docinto utils
+ dodoc contrib/utils/*
+
+ docinto configs
+ dodoc configs/*
+
+ # install api docs
+ if use doc; then
+ insinto /usr/share/doc/${PF}/api/html
+ doins doc/api/html/*
+ fi
+
+ insinto /usr/share/doc/${PF}/cgi
+ doins contrib/scripts/vmail.cgi
+ doins images/*.gif
+
+ if use instsrc; then
+ local myopts
+
+ # cleanup, set some vars and copy ${S} to /usr/src
+ einfo "Installing ${PN} sources into /usr/src..."
+
+ # save .version
+ mv -f .version ${T}
+
+ # cleanup
+ make clean
+ make -C channels/h323 clean
+
+ # restore .version
+ mv -f ${T}/.version .
+
+ use lowmem && myopts="-DLOW_MEMORY"
+
+ # set variables
+ sed -i -e "s:^OPTIMIZE[ \t]*:=.*:OPTIMIZE:=${CFLAGS}:" \
+ -e "s:^\(OPTIONS[ \t]*=.*\):\1 ${myopts}:" \
+ Makefile
+
+ # copy
+ dodir /usr/src
+ cp -pPR ${S} ${D}/usr/src
+ fi
+}
+
+pkg_preinst() {
+ enewgroup asterisk
+ enewuser asterisk -1 -1 /var/lib/asterisk asterisk
+}
+
+pkg_postinst() {
+ einfo "Fixing permissions"
+ for x in spool run lib log; do
+ chown -R asterisk:asterisk ${ROOT}var/${x}/asterisk
+ chmod -R u=rwX,g=rX,o= ${ROOT}var/${x}/asterisk
+ done
+
+ chown -R root:asterisk ${ROOT}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${ROOT}etc/asterisk
+ echo
+
+ #
+ # Announcements, warnings, reminders...
+ #
+ einfo "Asterisk has been installed"
+ einfo ""
+ einfo "If you want to know more about asterisk, visit these sites:"
+ einfo "http://www.asteriskdocs.org/"
+ einfo "http://www.voip-info.org/wiki-Asterisk"
+ echo
+ einfo "http://asterisk.xvoip.com/"
+ einfo "http://junghanns.net/asterisk/"
+ einfo "http://www.automated.it/guidetoasterisk.htm"
+ echo
+ einfo "Gentoo VoIP IRC Channel:"
+ einfo "#gentoo-voip @ irc.freenode.net"
+
+ #
+ # Warning about security changes...
+ #
+ ewarn "*********************** Important changes **************************"
+ ewarn
+ ewarn "- Asterisk runs as user asterisk, group asterisk by default"
+ ewarn " Use usermod -G to make the asterisk user a member of additional"
+ ewarn " groups if necessary."
+ ewarn
+ ewarn "- Permissions of /etc/asterisk have been changed to root:asterisk"
+ ewarn " 750 (rwxr-x--- directories) / 640 (rw-r----- files)"
+ ewarn
+ ewarn "- Permissions of /var/{log,lib,run,spool}/asterisk have been changed"
+ ewarn " to asterisk:asterisk 750 / 640"
+ ewarn
+ ewarn "- Asterisk's unix socket and pidfile are now in /var/run/astrisk"
+ ewarn
+ ewarn "- Asterisk cannot set the IP ToS bits when run as user,"
+ ewarn " use something like this to make iptables set them for you:"
+ ewarn " \"iptables -A OUTPUT -t mangle -p udp -m udp --dport 5060 -j DSCP --set-dscp 0x28\""
+ ewarn " \"iptables -A OUTPUT -t mangle -p udp -m udp --sport 10000:20000 -j DSCP --set-dscp 0x28\""
+ ewarn " (taken from voip-info.org comments (see below), thanks andrewid)"
+ ewarn
+ ewarn "For more details:"
+ ewarn " http://bugs.gentoo.org/show_bug.cgi?id=88732"
+ ewarn " http://www.voip-info.org/wiki-Asterisk+non-root"
+}
diff --git a/net-misc/asterisk/files/1.0.0/asterisk-1.0.5-uclibc-dns.diff b/net-misc/asterisk/files/1.0.0/asterisk-1.0.5-uclibc-dns.diff
new file mode 100644
index 0000000..61dc126
--- /dev/null
+++ b/net-misc/asterisk/files/1.0.0/asterisk-1.0.5-uclibc-dns.diff
@@ -0,0 +1,11 @@
+--- asterisk-1.0.5/dns.c.orig 2005-02-15 04:32:18.581297392 +0100
++++ asterisk-1.0.5/dns.c 2005-02-15 04:32:57.583368176 +0100
+@@ -151,7 +151,7 @@
+ return 0;
+ }
+
+-#if defined(res_ninit)
++#if (defined(res_ninit) && !defined(__UCLIBC__))
+ #define HAS_RES_NINIT
+ #else
+ AST_MUTEX_DEFINE_STATIC(res_lock);
diff --git a/net-misc/asterisk/files/1.0.0/asterisk.confd b/net-misc/asterisk/files/1.0.0/asterisk.confd
new file mode 100644
index 0000000..e21611f
--- /dev/null
+++ b/net-misc/asterisk/files/1.0.0/asterisk.confd
@@ -0,0 +1,98 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/1.0.0/asterisk.confd.sec,v 1.4 2005/05/31 23:19:56 stkn Exp $
+
+#
+# Additional options for asterisk
+#
+# see "asterisk -h" for a list of options
+#
+ASTERISK_OPTS=""
+
+#
+# User and group to run asterisk as
+#
+# Value: double-colon separated list of user and group, or empty to run as root:
+#
+#
+# "asterisk:asterisk" to run as user "asterisk" and group "asterisk"
+#
+# "asterisk" to run as user "asterisk" and default group of user asterisk
+#
+# ":asterisk" to run as user "root" and group "asterisk"
+#
+# "" to run as user "root" and group "root"
+#
+ASTERISK_USER="asterisk:asterisk"
+
+#
+# Nicelevel
+#
+# Set the priority of the asterisk process
+#
+# Value: (highest) -20..19 (lowest)
+#
+#ASTERISK_NICE="19"
+
+#
+# Wrapper script
+#
+# Value: yes or no/empty
+#
+ASTERISK_WRAPPER="yes"
+
+############# Wrapper script settings #############
+
+#
+# Send crash notifications emails to this address
+# (needs a working mail service and /usr/sbin/sendmail to do so (e.g. ssmtp))
+#
+# Value: Email address or empty to disable
+#
+ASTERISK_NOTIFY_EMAIL="stkn@netdomination.org"
+
+#
+# Send asterisk's output to this terminal
+#
+# Value: Full path to device node or a number
+#
+#ASTERISK_TTY="/dev/tty9"
+
+#
+# Start an asterisk console on the terminal specified by ASTERISK_TTY
+#
+# Warning! Use only for debugging, this is a potential security issue!
+#
+# Value: yes or no/empty
+#
+ASTERISK_CONSOLE="no"
+
+#
+# Maximum size of core files.
+#
+# Value: Size in bytes, unlimited for no limit or empty to disable.
+#
+ASTERISK_CORE_SIZE="unlimited"
+
+#
+# ASTERISK_CORE_DIR
+#
+# Value: Directory (will be created if non-existant), default is /tmp
+#
+ASTERISK_CORE_DIR="/var/lib/asterisk/coredump"
+
+#
+# Max number of filedescriptors
+#
+# Value: Number of descriptors
+#
+#ASTERISK_MAX_FD="1024"
+
+#
+# Kill these tasks after asterisk crashed (ASTERISK_WRAPPER=yes only!)
+#
+# Warning! This will kill _ALL_ tasks with the specified names!
+#
+# Value: Space separated list of names in double quotes (e.g. "mpg123 mad")
+#
+#ASTERISK_CLEANUP_ON_CRASH="mpg123 asterisk-mpg123 mad"
diff --git a/net-misc/asterisk/files/1.0.0/asterisk.rc6 b/net-misc/asterisk/files/1.0.0/asterisk.rc6
new file mode 100644
index 0000000..a520c6a
--- /dev/null
+++ b/net-misc/asterisk/files/1.0.0/asterisk.rc6
@@ -0,0 +1,235 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/1.0.0/asterisk.rc6.sec,v 1.4 2005/08/24 21:13:56 dragonheart Exp $
+
+opts="${opts} forcestop reload"
+
+depend() {
+ need net
+ use zaptel mysql postgresql slapd capi
+}
+
+is_running() {
+ if [[ -z "$(pidof asterisk)" ]]; then
+ return 1
+ else
+ PID="$(cat /var/run/asterisk/asterisk.pid)"
+ for x in $(pidof asterisk); do
+ if [[ "${x}" = "${PID}" ]]; then
+ return 0
+ fi
+ done
+ fi
+
+ return 1
+}
+
+asterisk_run_loop() {
+ local OPTS ARGS MSG NICE=""
+ local result=0 signal=0
+
+ # default options
+ OPTS="-f" # don't fork / detach breaks wrapper script...
+
+ # filter (redundant) arguments
+ ARGS="$(echo "${@}" | sed -e "s:-c\|-f::g")"
+
+ # mangle yes/no options
+ ASTERISK_CONSOLE="$(echo ${ASTERISK_CONSOLE} | tr [:lower:] [:upper:])"
+
+ if [[ -n "${ASTERISK_CORE_SIZE}" ]] &&
+ [[ "${ASTERISK_CORE_SIZE}" != "0" ]]; then
+ ulimit -c ${ASTERISK_CORE_SIZE}
+
+ if [[ -n "${ASTERISK_CORE_DIR}" ]] && \
+ [[ ! -d "${ASTERISK_CORE_DIR}" ]]
+ then
+ mkdir -m750 -p "${ASTERISK_CORE_DIR}"
+
+ if [[ -n "${ASTERISK_USER}" ]]; then
+ chown -R "${ASTERISK_USER}" "${ASTERISK_CORE_DIR}"
+ fi
+ fi
+ ASTERISK_CORE_DIR="${ASTERISK_CORE_DIR:-/tmp}"
+
+ cd "${ASTERISK_CORE_DIR}"
+ echo " Core dump size : ${ASTERISK_CORE_SIZE}"
+ echo " Core dump location : ${ASTERISK_CORE_DIR}"
+ fi
+
+ if [[ -n "${ASTERISK_MAX_FD}" ]]; then
+ ulimit -n ${ASTERISK_MAX_FD}
+ echo " Max open filedescriptors : ${ASTERISK_MAX_FD}"
+ fi
+
+ if [[ -n "${ASTERISK_NICE}" ]]; then
+ echo " Nice level : ${ASTERISK_NICE}"
+ NICE="/bin/nice -n ${ASTERISK_NICE} --"
+ fi
+
+ if [[ -n "${ASTERISK_NOTIFY_EMAIL}" ]]; then
+ if [[ -x /usr/sbin/sendmail ]]; then
+ echo " Email notifications go to : ${ASTERISK_NOTIFY_EMAIL}"
+ else
+ echo " Notifications disabled, /usr/sbin/sendmail doesn't exist or is not executable!"
+ unset ASTERISK_NOTIFY_EMAIL
+ fi
+ fi
+
+ if [[ -n "${ASTERISK_TTY}" ]]; then
+ for x in ${ASTERISK_TTY} \
+ /dev/tty${ASTERISK_TTY} \
+ /dev/vc/${ASTERISK_TTY}
+ do
+ if [[ -c "${x}" ]]; then
+ TTY="${x}"
+ fi
+ done
+ [[ -n "${TTY}" ]] && \
+ echo " Messages are sent to : ${TTY}"
+ fi
+
+ if [[ "${ASTERISK_CONSOLE}" = "YES" ]] && [[ -n "${TTY}" ]]; then
+ echo " Starting Asterisk console : ${ASTERISK_CONSOLE}"
+ OPTS="${OPTS} -c"
+ fi
+
+ OPTS="${OPTS} ${ARGS}"
+
+ while :; do
+
+ if [[ -n "${TTY}" ]]; then
+ /usr/bin/stty -F ${TTY} sane
+ ${NICE} /usr/sbin/asterisk ${OPTS} >${TTY} 2>&1 <${TTY}
+ result=$?
+ else
+ ${NICE} /usr/sbin/asterisk ${OPTS} &>/dev/null
+ result=$?
+ fi
+
+ if [[ $result -eq 0 ]]; then
+ echo "Asterisk terminated normally"
+ break
+ else
+ if [[ $result -gt 128 ]]; then
+ signal=$((result - 128))
+ MSG="Asterisk terminated with Signal: $signal"
+
+ CORE_TARGET="core-$(date "+%Y%m%d-%h%M%s")"
+
+ local CORE_DUMPED=0
+ if [[ -f "${ASTERISK_CORE_DIR}/core" ]]; then
+ mv "${ASTERISK_CORE_DIR}/core" \
+ "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
+ CORE_DUMPED=1
+
+ elif [[ -f "${ASTERISK_CORE_DIR}/core.${PID}" ]]; then
+ mv "${ASTERISK_CORE_DIR}/core.${PID}" \
+ "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
+ CORE_DUMPED=1
+
+ fi
+
+ [[ $CORE_DUMPED -eq 1 ]] && \
+ MSG="${MSG}\n\rCore dumped: ${ASTERISK_CORE_DIR}/${CORE_TARGET}"
+ else
+ MSG="Asterisk terminated with return code: $result"
+ fi
+
+ # kill left-over tasks
+ for X in ${ASTERISK_CLEANUP_ON_CRASH}; do
+ kill -9 $(pidof ${X});
+ done
+ fi
+
+ [[ -n "${TTY}" ]] \
+ && echo "${MSG}" >${TTY} \
+ || echo "${MSG}"
+
+
+ if [[ -n "${ASTERISK_NOTIFY_EMAIL}" ]] && \
+ [[ -x /usr/sbin/sendmail ]]; then
+ echo -e -n "Subject: Asterisk crashed\n\r${MSG}\n\r" |\
+ /usr/sbin/sendmail "${ASTERISK_NOTIFY_EMAIL}"
+ fi
+ sleep 5
+ echo "Restarting Asterisk..."
+ done
+ return 0
+}
+
+start() {
+ local OPTS USER GROUP PID
+ local tmp x
+
+ if [[ -n "${ASTERISK_NICE}" ]]; then
+ if [[ ${ASTERISK_NICE} -ge -20 ]] && \
+ [[ ${ASTERISK_NICE} -le 19 ]]; then
+ OPTS="--nicelevel ${ASTERISK_NICE}"
+ else
+ eerror "Nice value must be between -20 and 19"
+ return 1
+ fi
+ fi
+
+ if [[ -n "${ASTERISK_USER}" ]]; then
+ USER=${ASTERISK_USER/:*/}
+ GROUP=$(echo $ASTERISK_USER | awk -F: '/.*:.*/ { print $2 }')
+ if [[ -n "${USER}" ]]; then
+ ASTERISK_OPTS="${ASTERISK_OPTS} -U ${USER}"
+ fi
+ if [[ -n "${GROUP}" ]]; then
+ ASTERISK_OPTS="${ASTERISK_OPTS} -G ${GROUP}"
+ GROUP=":${GROUP}" # make it look nice...
+ fi
+ ebegin "Starting asterisk PBX (as ${USER}${GROUP})"
+ else
+ ebegin "Starting asterisk PBX (as root)"
+ fi
+
+ if [[ "$(echo ${ASTERISK_WRAPPER} | tr [:upper:] [:lower:])" != "yes" ]]; then
+ start-stop-daemon --start --exec /usr/sbin/asterisk \
+ ${OPTS} -- ${ASTERISK_OPTS}
+ else
+ asterisk_run_loop ${ASTERISK_OPTS} 2>/dev/null &
+ fi
+
+ if [[ $result -eq 0 ]]; then
+ # 2 seconds should be enough for asterisk to start
+ sleep 2
+
+ result=$(is_running)
+ fi
+
+ eend $result
+}
+
+forcestop() {
+ ebegin "Stopping asterisk PBX"
+ start-stop-daemon --stop --pidfile /var/run/asterisk/asterisk.pid
+ eend $?
+}
+
+stop() {
+
+ if is_running; then
+ ebegin "Stopping asterisk PBX gracefully"
+ /usr/sbin/asterisk -r -x "stop gracefully" &>/dev/null
+ [[ $? -eq 0 ]] && svc_stop
+ eend
+ else
+
+ eerror "Asterisk is not running!"
+ fi
+}
+
+reload() {
+ if is_running; then
+ ebegin "Forcing asterisk to reload configuration"
+ /usr/sbin/asterisk -r -x "reload" &>/dev/null
+ eend $?
+ else
+ eerror "Asterisk is not running!"
+ fi
+}
diff --git a/net-misc/asterisk/files/1.2.0/asterisk.confd b/net-misc/asterisk/files/1.2.0/asterisk.confd
new file mode 100644
index 0000000..b3f89c4
--- /dev/null
+++ b/net-misc/asterisk/files/1.2.0/asterisk.confd
@@ -0,0 +1,96 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/1.0.0/asterisk.confd.sec,v 1.4 2005/05/31 23:19:56 stkn Exp $
+
+#
+# Additional options for asterisk
+#
+# see "asterisk -h" for a list of options
+#
+ASTERISK_OPTS=""
+
+#
+# User to run asterisk as
+#
+# Value: User or empty to run as root
+#
+ASTERISK_USER="asterisk"
+
+#
+# Groups the asterisk process should belong to
+#
+# Value: Colon separated list of groups, or empty for none
+#
+ASTERISK_GROUPS="dialout"
+
+#
+# Nicelevel
+#
+# Set the priority of the asterisk process
+#
+# Value: (highest) -20..19 (lowest)
+#
+#ASTERISK_NICE="19"
+
+#
+# Wrapper script
+#
+# Value: yes or no/empty
+#
+ASTERISK_WRAPPER="yes"
+
+############# Wrapper script settings #############
+
+#
+# Send crash notifications emails to this address
+# (needs a working mail service and /usr/sbin/sendmail to do so (e.g. ssmtp))
+#
+# Value: Email address or empty to disable
+#
+ASTERISK_NOTIFY_EMAIL="stkn@netdomination.org"
+
+#
+# Send asterisk's output to this terminal
+#
+# Value: Full path to device node or a number
+#
+#ASTERISK_TTY="/dev/tty9"
+
+#
+# Start an asterisk console on the terminal specified by ASTERISK_TTY
+#
+# Warning! Use only for debugging, this is a potential security issue!
+#
+# Value: yes or no/empty
+#
+ASTERISK_CONSOLE="no"
+
+#
+# Maximum size of core files.
+#
+# Value: Size in bytes, unlimited for no limit or empty to disable.
+#
+ASTERISK_CORE_SIZE="unlimited"
+
+#
+# ASTERISK_CORE_DIR
+#
+# Value: Directory (will be created if non-existant), default is /tmp
+#
+ASTERISK_CORE_DIR="/var/lib/asterisk/coredump"
+
+#
+# Max number of filedescriptors
+#
+# Value: Number of descriptors
+#
+#ASTERISK_MAX_FD="1024"
+
+#
+# Kill these tasks after asterisk crashed (ASTERISK_WRAPPER=yes only!)
+#
+# Warning! This will kill _ALL_ tasks with the specified names!
+#
+# Value: Space separated list of names in double quotes (e.g. "mpg123 mad")
+#
+#ASTERISK_CLEANUP_ON_CRASH="mpg123 asterisk-mpg123 mad"
diff --git a/net-misc/asterisk/files/1.2.0/asterisk.rc6 b/net-misc/asterisk/files/1.2.0/asterisk.rc6
new file mode 100755
index 0000000..fc1a987
--- /dev/null
+++ b/net-misc/asterisk/files/1.2.0/asterisk.rc6
@@ -0,0 +1,239 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/1.0.0/asterisk.rc6.sec,v 1.4 2005/08/24 21:13:56 dragonheart Exp $
+
+opts="${opts} forcestop reload"
+
+depend() {
+ need net
+ use zaptel mysql postgresql slapd capi
+}
+
+is_running() {
+ if [[ -z "$(pidof asterisk)" ]]; then
+ return 1
+ else
+ PID="$(cat /var/run/asterisk/asterisk.pid)"
+ for x in $(pidof asterisk); do
+ if [[ "${x}" = "${PID}" ]]; then
+ return 0
+ fi
+ done
+ fi
+
+ return 1
+}
+
+asterisk_run_loop() {
+ local OPTS ARGS MSG NICE=""
+ local result=0 signal=0
+
+ # default options
+ OPTS="-f" # don't fork / detach breaks wrapper script...
+
+ # filter (redundant) arguments
+ ARGS="$(echo "${@}" | sed -e "s:-c\|-f::g")"
+
+ # mangle yes/no options
+ ASTERISK_CONSOLE="$(echo ${ASTERISK_CONSOLE} | tr [:lower:] [:upper:])"
+
+ if [[ -n "${ASTERISK_CORE_SIZE}" ]] &&
+ [[ "${ASTERISK_CORE_SIZE}" != "0" ]]; then
+ ulimit -c ${ASTERISK_CORE_SIZE}
+
+ if [[ -n "${ASTERISK_CORE_DIR}" ]] && \
+ [[ ! -d "${ASTERISK_CORE_DIR}" ]]
+ then
+ mkdir -m750 -p "${ASTERISK_CORE_DIR}"
+
+ if [[ -n "${ASTERISK_USER}" ]]; then
+ chown -R "${ASTERISK_USER}:${ASTERISK_GROUPS%,*}" \
+ "${ASTERISK_CORE_DIR}"
+ fi
+ fi
+ ASTERISK_CORE_DIR="${ASTERISK_CORE_DIR:-/tmp}"
+
+ cd "${ASTERISK_CORE_DIR}"
+ echo " Core dump size : ${ASTERISK_CORE_SIZE}"
+ echo " Core dump location : ${ASTERISK_CORE_DIR}"
+ fi
+
+ if [[ -n "${ASTERISK_MAX_FD}" ]]; then
+ ulimit -n ${ASTERISK_MAX_FD}
+ echo " Max open filedescriptors : ${ASTERISK_MAX_FD}"
+ fi
+
+ if [[ -n "${ASTERISK_NICE}" ]]; then
+ echo " Nice level : ${ASTERISK_NICE}"
+ NICE="/bin/nice -n ${ASTERISK_NICE} --"
+ fi
+
+ if [[ -n "${ASTERISK_NOTIFY_EMAIL}" ]]; then
+ if [[ -x /usr/sbin/sendmail ]]; then
+ echo " Email notifications go to: ${ASTERISK_NOTIFY_EMAIL}"
+ else
+ echo " Notifications disabled, /usr/sbin/sendmail doesn't exist or is not executable!"
+ unset ASTERISK_NOTIFY_EMAIL
+ fi
+ fi
+
+ if [[ -n "${ASTERISK_TTY}" ]]; then
+ for x in ${ASTERISK_TTY} \
+ /dev/tty${ASTERISK_TTY} \
+ /dev/vc/${ASTERISK_TTY}
+ do
+ if [[ -c "${x}" ]]; then
+ TTY="${x}"
+ fi
+ done
+ [[ -n "${TTY}" ]] && \
+ echo " Messages are sent to : ${TTY}"
+ fi
+
+ if [[ "${ASTERISK_CONSOLE}" = "YES" ]]; then
+ echo " Starting Asterisk console: ${ASTERISK_CONSOLE}"
+ OPTS="${OPTS} -c"
+ fi
+
+ [[ -n "${ARGS}" ]] && \
+ echo " Additional options : ${ARGS}"
+
+ OPTS="${OPTS} ${ARGS}"
+
+ while :; do
+
+ if [[ -n "${TTY}" ]]; then
+ /usr/bin/stty -F ${TTY} sane
+ ${NICE} /usr/sbin/asterisk ${OPTS} >${TTY} 2>&1 <${TTY}
+ result=$?
+ else
+ ${NICE} /usr/sbin/asterisk ${OPTS} >/dev/null 2>&1
+ result=$?
+ fi
+
+ if [[ $result -eq 0 ]]; then
+ echo "Asterisk terminated normally"
+ break
+ else
+ if [[ $result -gt 128 ]]; then
+ signal=$((result - 128))
+ MSG="Asterisk terminated with Signal: $signal"
+
+ CORE_TARGET="core-$(date "+%Y%m%d-%h%M%s")"
+
+ local CORE_DUMPED=0
+ if [[ -f "${ASTERISK_CORE_DIR}/core" ]]; then
+ mv "${ASTERISK_CORE_DIR}/core" \
+ "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
+ CORE_DUMPED=1
+
+ elif [[ -f "${ASTERISK_CORE_DIR}/core.${PID}" ]]; then
+ mv "${ASTERISK_CORE_DIR}/core.${PID}" \
+ "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
+ CORE_DUMPED=1
+
+ fi
+
+ [[ $CORE_DUMPED -eq 1 ]] && \
+ MSG="${MSG}\n\rCore dumped: ${ASTERISK_CORE_DIR}/${CORE_TARGET}"
+
+ # kill left-over tasks
+ for X in ${ASTERISK_CLEANUP_ON_CRASH}; do
+ kill -9 $(pidof ${X});
+ done
+ else
+ MSG="Asterisk terminated with return code: $result"
+ fi
+ fi
+
+ echo "${MSG}"
+
+ if [[ -n "${ASTERISK_NOTIFY_EMAIL}" ]] && \
+ [[ -x /usr/sbin/sendmail ]]; then
+ echo -e -n "Subject: Asterisk crashed\n\r${MSG}\n\r" |\
+ /usr/sbin/sendmail "${ASTERISK_NOTIFY_EMAIL}"
+ fi
+ sleep 5
+ echo "Restarting Asterisk..."
+ done
+ return 0
+}
+
+start() {
+ local OPTS USER GROUP PID
+ local tmp x
+
+ if [[ -n "${ASTERISK_NICE}" ]]; then
+ if [[ ${ASTERISK_NICE} -ge -20 ]] && \
+ [[ ${ASTERISK_NICE} -le 19 ]]; then
+ OPTS="--nicelevel ${ASTERISK_NICE}"
+ else
+ eerror "Nice value must be between -20 and 19"
+ return 1
+ fi
+ fi
+
+ if [[ -n "${ASTERISK_USER}" ]]; then
+ ASTERISK_OPTS="${ASTERISK_OPTS} -U ${ASTERISK_USER}"
+ else
+ ASTERISK_USER="root"
+ fi
+
+ if [[ -n "${ASTERISK_GROUPS}" ]]; then
+ ASTERISK_OPTS="${ASTERISK_OPTS} -G ${ASTERISK_GROUPS}"
+ GROUP="${ASTERISK_GROUPS%,*}" # make it look nice...
+
+ [[ "${ASTERISK_GROUPS#*,}" != "${GROUP}" ]] && \
+ GROUP="${GROUP}+"
+ else
+ ASTERISK_GROUPS="root"
+ GROUP="root"
+ fi
+
+ ebegin "Starting asterisk PBX (as ${ASTERISK_USER}:${GROUP})"
+ if [[ "$(echo ${ASTERISK_WRAPPER} | tr [:upper:] [:lower:])" != "yes" ]]; then
+ start-stop-daemon --start --exec /usr/sbin/asterisk \
+ ${OPTS} -- ${ASTERISK_OPTS}
+ else
+ asterisk_run_loop ${ASTERISK_OPTS} 2>/dev/null &
+ fi
+
+ if [[ $result -eq 0 ]]; then
+ # 2 seconds should be enough for asterisk to start
+ sleep 2
+
+ result=$(is_running)
+ fi
+
+ eend $result
+}
+
+forcestop() {
+ ebegin "Stopping asterisk PBX"
+ start-stop-daemon --stop --pidfile /var/run/asterisk/asterisk.pid
+ eend $?
+}
+
+stop() {
+
+ if is_running; then
+ ebegin "Stopping asterisk PBX gracefully"
+ /usr/sbin/asterisk -r -x "stop gracefully" &>/dev/null
+ [[ $? -eq 0 ]] && svc_stop
+ eend
+ else
+
+ eerror "Asterisk is not running!"
+ fi
+}
+
+reload() {
+ if is_running; then
+ ebegin "Forcing asterisk to reload configuration"
+ /usr/sbin/asterisk -r -x "reload" &>/dev/null
+ eend $?
+ else
+ eerror "Asterisk is not running!"
+ fi
+}
diff --git a/net-misc/asterisk/files/digest-asterisk-1.2.0_beta1 b/net-misc/asterisk/files/digest-asterisk-1.2.0_beta1
new file mode 100644
index 0000000..27af8bb
--- /dev/null
+++ b/net-misc/asterisk/files/digest-asterisk-1.2.0_beta1
@@ -0,0 +1,2 @@
+MD5 b87447c18dac12815c6869f755377056 asterisk-1.2.0-beta1.tar.gz 10278681
+MD5 2ab925ff8b092f3bff533972bdac8f42 asterisk-1.2.0_beta-patches-1.0.tar.bz2 9213
diff --git a/net-misc/asterisk/metadata.xml b/net-misc/asterisk/metadata.xml
new file mode 100644
index 0000000..10f27dc
--- /dev/null
+++ b/net-misc/asterisk/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>voip</herd>
+<maintainer>
+ <email>stkn@gentoo.org</email>
+ <name>Stefan Knoblich</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-misc/linphone/Manifest b/net-misc/linphone/Manifest
new file mode 100644
index 0000000..5ebda6d
--- /dev/null
+++ b/net-misc/linphone/Manifest
@@ -0,0 +1,3 @@
+MD5 d2c097993b37ba7d6c182f6f556b755e linphone-1.1.0.ebuild 1692
+MD5 43613eb580df59c222f3572287b2adf2 files/digest-linphone-1.1.0 67
+MD5 09a1ce01898450b93c37d1021c5b4c7e files/linphone-1.0.1-ipv6-include.diff 340
diff --git a/net-misc/linphone/files/digest-linphone-1.1.0 b/net-misc/linphone/files/digest-linphone-1.1.0
new file mode 100644
index 0000000..d5bee96
--- /dev/null
+++ b/net-misc/linphone/files/digest-linphone-1.1.0
@@ -0,0 +1 @@
+MD5 9f164b41c76ef1caca164909dea199a1 linphone-1.1.0.tar.gz 7334577
diff --git a/net-misc/linphone/files/linphone-1.0.1-ipv6-include.diff b/net-misc/linphone/files/linphone-1.0.1-ipv6-include.diff
new file mode 100644
index 0000000..6d8b028
--- /dev/null
+++ b/net-misc/linphone/files/linphone-1.0.1-ipv6-include.diff
@@ -0,0 +1,13 @@
+--- linphone-1.0.1/coreapi/linphonecore.c.orig 2005-07-15 17:49:55.000000000 +0200
++++ linphone-1.0.1/coreapi/linphonecore.c 2005-07-15 17:50:23.000000000 +0200
+@@ -34,9 +34,8 @@
+ #include <arpa/inet.h>
+ #include <time.h>
+
+-#ifdef INET6
++/* once again, the ipv6 include fix - stkn */
+ #include <netdb.h>
+-#endif
+
+ #include "enum.h"
+
diff --git a/net-misc/linphone/linphone-1.1.0.ebuild b/net-misc/linphone/linphone-1.1.0.ebuild
new file mode 100644
index 0000000..9de72d5
--- /dev/null
+++ b/net-misc/linphone/linphone-1.1.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/linphone/linphone-1.1.0.ebuild,v 1.1 2005/08/29 02:46:33 stkn Exp $
+
+inherit eutils
+
+MY_DPV="${PV%.*}.x"
+
+DESCRIPTION="Linphone is a SIP phone with a GNOME interface."
+HOMEPAGE="http://www.linphone.org/?lang=us"
+SRC_URI="http://simon.morlat.free.fr/download/${MY_DPV}/source/${P}.tar.gz"
+SLOT=1
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc"
+
+IUSE="xv ipv6 gnome alsa"
+
+DEPEND="dev-libs/glib
+ dev-perl/XML-Parser
+ >=net-libs/libosip-2.2.0
+ || ( >=media-libs/speex-1.1.6
+ <media-libs/speex-1.1.0 )
+ x86? ( xv? ( dev-lang/nasm ) )
+ gnome? ( >=gnome-base/gnome-panel-2
+ >=gnome-base/libgnome-2
+ >=gnome-base/libgnomeui-2
+ >=x11-libs/gtk+-2 )
+ alsa? ( media-libs/alsa-lib )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # fix #99083
+ epatch ${FILESDIR}/${PN}-1.0.1-ipv6-include.diff
+}
+
+src_compile() {
+ local withgnome
+
+ if use gnome; then
+ einfo "Building with GNOME interface."
+ withgnome="yes"
+ else
+ withgnome="no"
+ fi
+
+ econf --enable-glib \
+ --with-speex=/usr \
+ --libdir=/usr/$(get_libdir)/linphone \
+ --enable-gnome_ui=${withgnome} \
+ `use_enable ipv6` \
+ `use_enable alsa` \
+ || die "Unable to configure"
+
+ emake || die "Unable to make"
+}
+
+src_install () {
+ make DESTDIR=${D} install || die "Failed to install"
+
+ dodoc ABOUT-NLS AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README
+ dodoc README.arm TODO
+
+ # don't install ortp includes, docs and pkgconfig files
+ # to avoid conflicts with net-libs/ortp
+ rm -rf ${D}/usr/include/ortp
+ rm -rf ${D}/usr/share/gtk-doc/html/ortp
+ rm -rf ${D}/usr/$(get_libdir)/linphone/pkgconfig
+}
diff --git a/net-misc/wanpipe/Manifest b/net-misc/wanpipe/Manifest
new file mode 100644
index 0000000..334cfdc
--- /dev/null
+++ b/net-misc/wanpipe/Manifest
@@ -0,0 +1,4 @@
+MD5 585c1e81378687a737d7bdf3b7005808 wanpipe-2.3.2_p4.ebuild 5341
+MD5 1ea3a63100f3e44a4fa4ecdd2a44ba6a files/wanpipe.confd 1694
+MD5 1c8be1e0d344dc6c31cc15fb7c5c4ae0 files/digest-wanpipe-2.3.2_p4 65
+MD5 a2e004ccfe869825d025a43d1262dd1d files/wanpipe-2.3.2_p4-gcc34.diff 239
diff --git a/net-misc/wanpipe/files/digest-wanpipe-2.3.2_p4 b/net-misc/wanpipe/files/digest-wanpipe-2.3.2_p4
new file mode 100644
index 0000000..5870c0c
--- /dev/null
+++ b/net-misc/wanpipe/files/digest-wanpipe-2.3.2_p4
@@ -0,0 +1 @@
+MD5 4063dad8d932a1db5f6c6bfa89fdcf3f wanpipe-2.3.2-4.tgz 5146047
diff --git a/net-misc/wanpipe/files/wanpipe-2.3.2_p4-gcc34.diff b/net-misc/wanpipe/files/wanpipe-2.3.2_p4-gcc34.diff
new file mode 100644
index 0000000..1abec52
--- /dev/null
+++ b/net-misc/wanpipe/files/wanpipe-2.3.2_p4-gcc34.diff
@@ -0,0 +1,11 @@
+--- build-tmp/src/sdla_edu.c.orig 2005-09-01 00:10:11.000000000 +0000
++++ build-tmp/src/sdla_edu.c 2005-09-01 00:10:53.000000000 +0000
+@@ -777,7 +777,7 @@
+ skb->mac.raw = skb->data;
+ netif_rx(skb);
+ rx_exit:
+-
++ ;
+ }
+
+
diff --git a/net-misc/wanpipe/files/wanpipe.confd b/net-misc/wanpipe/files/wanpipe.confd
new file mode 100644
index 0000000..e0394e3
--- /dev/null
+++ b/net-misc/wanpipe/files/wanpipe.confd
@@ -0,0 +1,56 @@
+# conf.d/wanpipe WAN router meta-configuration file.
+#
+# This file defines variables used by the router shell scripts
+# and should be located in /etc/wanpipe directory. These are:
+#
+# ROUTER_BOOT = Boot flag (YES/NO).
+# WAN_CONF_DIR = Where to put wanpipe config files.
+# WAN_INTR_DIR = Where to put wanpipe interface files.
+# WAN_LOG = Where to put start-up log file.
+# WAN_LOCK = File used as a lock.
+# WAN_LOCK_DIR =
+# WAN_IP_FORWARD = Enable IP Forwarding on startup.
+# WAN_DEVICES = Name of the wanpipe devices to be
+# loaded on 'wanrouter start'
+# (ex: "wanpipe1 wanpipe2 wanpipe3...")
+#
+# Note: Name of wanpipe devices correspond
+# to the configuration files in
+# WANPIPE_CONF_DIR directory:
+# (ex. $WAN_CONF_DIR/wanpipe1.conf )
+#
+
+ROUTER_BOOT="YES"
+
+WAN_CONF_DIR=$WAN_CONF_DIR"
+
+WAN_INTR_DIR="/etc/wanpipe/interfaces"
+
+WAN_LOG="/var/log/wanpipe"
+
+WAN_LOCK="/var/lock/wanpipe/wanpipe.lck"
+
+WAN_LOCK_DIR="/var/lock/wanpipe"
+
+WAN_IP_FORWARD="NO"
+
+NEW_IF_TYPE="$NEW_IF_TYPE"
+
+WAN_LIB_DIR="/etc/wanpipe/lib"
+
+WAN_ADSL_LIST="/etc/wanpipe/wan_adsl.list"
+
+WAN_ANNEXG_LOAD="NO"
+
+WAN_LIP_LOAD="NO"
+
+WAN_DYN_WANCONFIG="NO"
+
+WAN_SCRIPTS_DIR="/etc/wanpipe/scripts"
+
+WAN_FIRMWARE_DIR="/lib/firmware"
+
+WAN_DEVICES_REV_STOP_ORDER="YES"
+
+WAN_DEVICES="wanpipe1"
+
diff --git a/net-misc/wanpipe/wanpipe-2.3.2_p4.ebuild b/net-misc/wanpipe/wanpipe-2.3.2_p4.ebuild
new file mode 100644
index 0000000..f52b70c
--- /dev/null
+++ b/net-misc/wanpipe/wanpipe-2.3.2_p4.ebuild
@@ -0,0 +1,217 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs linux-mod
+
+DESCRIPTION="Driver for Sangoma WAN cards"
+HOMEPAGE="http://www.sangoma.com/"
+SRC_URI="ftp://ftp.sangoma.com/linux/current_wanpipe/${P//_p/-}.tgz"
+
+LICENSE="WANPIPE"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="adsl"
+
+RDEPEND="sys-libs/ncurses
+ >=net-misc/zaptel-1.2.0_beta1"
+
+DEPEND="sys-devel/flex
+ ${RDEPEND}"
+
+S=${WORKDIR}/${PN}
+S_BUILD=${WORKDIR}/build-tmp
+
+# Test log:
+#
+# Compile OK: linux-2.6.12.2
+# (zaptel-1.0.8 + /usr/include/zaptel hack)
+# linux-2.4.29-nd1
+# (zaptel-1.0.7-r1 + /usr/include/zaptel hack)
+# linux-2.6.11.12-grsec
+# (zaptel-1.2.0_pre20050817 + /usr/include/zaptel)
+# linux-2.6.12
+# (zaptel-1.2.0_beta1)
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ local n
+
+ ewarn "****************************** WARNING! ******************************"
+ ewarn "* *"
+ ewarn "* ALPHA QUALITY EBUILD *"
+ ewarn "* *"
+ ewarn "* Sangoma drivers built with this ebuild are _completely_ untested! *"
+ ewarn "* (Due to lack of hardware and a T1/E1 line) *"
+ ewarn "* *"
+ ewarn "* There is no init script to setup the card(s) on startup! *"
+ ewarn "* *"
+ ewarn "* You have been warned! *"
+ ewarn "* - stkn *"
+ ewarn "****************************** WARNING! ******************************"
+ echo
+ ebeep
+
+ n=10
+ while [[ $n -gt 0 ]]; do
+ echo -en " Waiting $n seconds...\r"
+ sleep 1
+ (( n-- ))
+ done
+}
+
+
+src_unpack() {
+ local binobj
+
+ unpack ${A}
+
+ # Instead of patching stuff in /usr/src/linux, we'll
+ # copy all needed files to ${S_BUILD} and build everything
+ # there
+
+ # let's go...
+ cd ${S}
+
+ mkdir -p ${S_BUILD}/{src,include}
+ mkdir -p ${S_BUILD}/src/{mod,tmp}
+ ln -s ${S_BUILD}/src ${S_BUILD}/src/modinfo
+ ln -s ${S_BUILD}/src ${S_BUILD}/src/common
+
+ cp -pPR /usr/src/linux/drivers/net/wan/*.{c,h} ${S_BUILD}/src
+ cp -pPR /usr/src/linux/include/linux ${S_BUILD}/include
+
+ cp ${S}/patches/kdrivers/src/wanrouter/*.c ${S_BUILD}/src
+ cp ${S}/patches/kdrivers/src/wan_aften/*.c ${S_BUILD}/src
+ cp ${S}/patches/kdrivers/src/net/*.c ${S_BUILD}/src
+
+ cp ${S}/patches/kdrivers/include/*.h ${S_BUILD}/include/linux
+
+ sed -i -e "s:\(-I/usr/src/linux/include \):-I${S_BUILD}/include \1:g" \
+ -e "s:-I/usr/src/zaptel:-I/usr/include/zaptel:g" \
+ ${S}/Makefile
+
+ #
+ # step 2: select the right binary modules and copy them
+ #
+ if [[ "$(gcc-major-version)" == "2" ]]; then
+ binobj="gcc2"
+ else
+ binobj="gcc3"
+ fi
+
+ binobj="${binobj}.$(uname -m)"
+
+ linux_chkconfig_present REGPARM \
+ && binobj="${binobj}.regparm" \
+
+ cp patches/kdrivers/src/net/wanpipe_adsl.${binobj}.o ${S_BUILD}/src/wanpipe_adsl.o
+ cp patches/kdrivers/src/net/wanpipe_atm.${binobj}.o ${S_BUILD}/src/wanpipe_atm.o
+ # fix the makefile...
+ sed -i -e "s:../adsl/wanpipe_adsl.o:common/wanpipe_adsl.o:g" \
+ -e "s:../atm/wanpipe_atm.o:common/wanpipe_atm.o:g" \
+ ${S}/Makefile
+
+ # these are needed too, wanpipe won't load otherwise
+ sed -i -e "s:^\(WANPIPE_FILE_LIST.*\):\1 sdla_edu.o sdla_bitstrm.o sdla_adccp.o sdla_sdlc.o sdla_mp_fr.o sdla_pos.o:" \
+ ${S}/Makefile
+
+ # fix Makefile for amd64
+ use amd64 && \
+ sed -i -e "s:-march=\$(ARCH):-march=k8 -mcmodel=kernel:" \
+ -e "s:\(-mpreferred-stack-boundary\)=2:\1=4:" \
+ -e "s:^\(LD_ELF=\).*:\1-m elf_x86_64:" \
+ ${S}/Makefile
+
+ # apply patch for gcc3.4 (todo: change path in patch to ${S}/...)
+ cd ${WORKDIR}
+ epatch ${FILESDIR}/${P}-gcc34.diff
+}
+
+
+
+src_compile() {
+ #
+ # well for the drivers, all that's left to do is:
+ #
+ cd ${S_BUILD}/src
+ make -f ${S}/Makefile || die "Error building drivers!"
+
+ #
+ # Build utilities
+ #
+ einfo "Building utils..."
+ cd ${S}/util
+ make \
+ SYSINC=${S_BUILD}/include \
+ PROTOCOL_DEFS=$(use adsl && echo "-DCONFIG_PRODUCT_WANPIPE_ADSL")
+
+ #
+ # Build WanCfg tool
+ #
+ einfo "Building WanCfg tool..."
+ make -C wancfg all \
+ SYSINC=${S_BUILD}/include
+
+ #
+ # Build misc utilities
+ #
+ einfo "Building misc utilities..."
+ make -C misc clean all \
+ SYSINC=${S_BUILD}/include
+
+ #
+ # Build API (for development)
+ #
+# if ! use minimal; then
+# einfo "Building development API..."
+# cd ${S}/api
+# make \
+# SYSINC=${S_BUILD}/include
+# else
+# einfo "Skipping API build..."
+# fi
+}
+
+src_install() {
+ #
+ # install kernel modules
+ #
+ insinto /lib/modules/${KV_FULL}/extra
+ doins ${S_BUILD}/src/mod/*.${KV_OBJ}
+
+ #
+ # install firmware
+ #
+ insinto /lib/firmware
+ doins firmware/*.sfm
+
+ #
+ # install tools
+ #
+ einfo "Installing utils..."
+ cd ${S}/util
+ make install \
+ WAN_VIRTUAL=${D}
+
+ einfo "Installing misc utilities..."
+ make -C misc install \
+ WAN_VIRTUAL=${D}
+ cd ${S}
+
+ #
+ # install config + scripts
+ #
+# newconfd ${FILESDIR}/wanpipe.confd wanpipe
+
+ #
+ # finally install docs
+ #
+ dodoc doc/README* doc/ANNOUNCE doc/COPYING doc/LICENSE
+ dodoc doc/*.txt
+
+ insinto /usr/share/doc/${PF}
+ doins doc/*.pdf doc/*.sfm
+}
diff --git a/net-misc/yate/Manifest b/net-misc/yate/Manifest
new file mode 100644
index 0000000..5eacd28
--- /dev/null
+++ b/net-misc/yate/Manifest
@@ -0,0 +1,7 @@
+MD5 46aae46f487bfef2875947fc621bd5bb yate-0.9.0_pre2.ebuild 1375
+MD5 68176f550dc1c12604d00efc69becda3 yate-0.9.0_pre1.ebuild 1290
+MD5 26cfc21d3f5f0e1dbec294e66f7ad71b files/yate.rc6 499
+MD5 edecbe99a20c597bf25842b603efb5a7 files/yate-0.9.0-gtk2.diff 339
+MD5 7c5dec856dd8b7ac3c6478dc08d25a4b files/digest-yate-0.9.0_pre1 66
+MD5 25957eca186961762745baaf9774ca8a files/yate.confd 219
+MD5 4fdef5b11a7def702e6ade6468d466d5 files/digest-yate-0.9.0_pre2 66
diff --git a/net-misc/yate/files/digest-yate-0.9.0_pre1 b/net-misc/yate/files/digest-yate-0.9.0_pre1
new file mode 100644
index 0000000..7e7afbd
--- /dev/null
+++ b/net-misc/yate/files/digest-yate-0.9.0_pre1
@@ -0,0 +1 @@
+MD5 a3b9bbdabbfcc78c24d5188d7bd630d8 yate-0.9.0pre1.tar.gz 789297
diff --git a/net-misc/yate/files/digest-yate-0.9.0_pre2 b/net-misc/yate/files/digest-yate-0.9.0_pre2
new file mode 100644
index 0000000..a75c871
--- /dev/null
+++ b/net-misc/yate/files/digest-yate-0.9.0_pre2
@@ -0,0 +1 @@
+MD5 10ec0a4f1cb1b0964ce3f37cdbce9798 yate-0.9.0pre2.tar.gz 853844
diff --git a/net-misc/yate/files/yate-0.9.0-gtk2.diff b/net-misc/yate/files/yate-0.9.0-gtk2.diff
new file mode 100644
index 0000000..c105393
--- /dev/null
+++ b/net-misc/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-misc/yate/files/yate.confd b/net-misc/yate/files/yate.confd
new file mode 100644
index 0000000..acb654c
--- /dev/null
+++ b/net-misc/yate/files/yate.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/yate/files/yate.confd,v 1.1 2005/03/22 15:37:22 stkn Exp $
+
+OPTS=""
diff --git a/net-misc/yate/files/yate.rc6 b/net-misc/yate/files/yate.rc6
new file mode 100755
index 0000000..33c85b7
--- /dev/null
+++ b/net-misc/yate/files/yate.rc6
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/yate/files/yate.rc6,v 1.1 2005/03/22 15:37:22 stkn Exp $
+
+depend() {
+ need net
+}
+
+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-misc/yate/yate-0.9.0_pre1.ebuild b/net-misc/yate/yate-0.9.0_pre1.ebuild
new file mode 100644
index 0000000..eb42f1c
--- /dev/null
+++ b/net-misc/yate/yate-0.9.0_pre1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/yate/yate-0.8.7.ebuild,v 1.5 2005/07/28 21:00:05 caleb Exp $
+
+IUSE="gsm gtk2 h323 ilbc zaptel"
+
+inherit eutils
+
+DESCRIPTION="YATE - Yet Another Telephony Engine"
+HOMEPAGE="http://yate.null.ro/"
+SRC_URI="http://voip.null.ro/tarballs/${P/_/}.tar.gz"
+
+S=${WORKDIR}/${PN}
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="media-sound/sox
+ zaptel? ( >=net-libs/libpri-1.0.0
+ >=net-misc/zaptel-1.0.0 )
+ h323? ( >=net-libs/openh323-1.15.3 )
+ gtk2? ( >=x11-libs/gtk+-2.6.8 )
+ gsm? ( media-sound/gsm )"
+
+#src_unpack() {
+# unpack ${A}
+#
+# cd ${S}
+# # patch for gcc3.4
+# epatch ${FILESDIR}/${P}-gcc34.patch
+#}
+
+src_compile() {
+ econf \
+ $(use_with gtk2 libgtk2 /usr) \
+ $(use_with h323 openh323 /usr) \
+ $(use_with h323 pwlib /usr) \
+ $(use_with zaptel libpri) \
+ $(use_with gsm libgsm) \
+ $(use_enable ilbc) \
+ || die "Configure failed"
+ emake everything || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "Make install failed"
+
+ newinitd ${FILESDIR}/yate.rc6 yate
+ newconfd ${FILESDIR}/yate.confd yate
+
+ # install standard docs...
+ dodoc README ChangeLog docs/*
+
+ docinto scripts
+ dodoc scripts/*
+}
diff --git a/net-misc/yate/yate-0.9.0_pre2.ebuild b/net-misc/yate/yate-0.9.0_pre2.ebuild
new file mode 100644
index 0000000..fd5e3d1
--- /dev/null
+++ b/net-misc/yate/yate-0.9.0_pre2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/yate/yate-0.9.0_pre1.ebuild,v 1.2 2005/09/23 00:04:39 stkn Exp $
+
+IUSE="gsm gtk h323 ilbc postgres zaptel"
+
+inherit eutils
+
+DESCRIPTION="YATE - Yet Another Telephony Engine"
+HOMEPAGE="http://yate.null.ro/"
+SRC_URI="http://voip.null.ro/tarballs/${P/_/}.tar.gz"
+
+S=${WORKDIR}/${PN}
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="media-sound/sox
+ zaptel? ( >=net-libs/libpri-1.0.0
+ >=net-misc/zaptel-1.0.0 )
+ h323? ( >=net-libs/openh323-1.15.3 )
+ gtk? ( >=x11-libs/gtk+-2.6.8 )
+ gsm? ( media-sound/gsm )
+ postgres? ( dev-db/postgresql )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # fix gtk2 plugin makefile
+ epatch ${FILESDIR}/${PN}-0.9.0-gtk2.diff
+}
+
+src_compile() {
+ econf \
+ $(use_with gtk libgtk2 /usr) \
+ $(use_with h323 openh323 /usr) \
+ $(use_with h323 pwlib /usr) \
+ $(use_with zaptel libpri) \
+ $(use_with gsm libgsm) \
+ $(use_with postgres libpq /usr) \
+ $(use_enable ilbc) \
+ || die "Configure failed"
+ emake everything || die "Make failed"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "Make install failed"
+
+ newinitd ${FILESDIR}/yate.rc6 yate
+ newconfd ${FILESDIR}/yate.confd yate
+
+ # install standard docs...
+ dodoc README ChangeLog docs/*
+
+ docinto scripts
+ dodoc scripts/*
+}
diff --git a/net-misc/zaptel/ChangeLog b/net-misc/zaptel/ChangeLog
new file mode 100644
index 0000000..8a1fcc1
--- /dev/null
+++ b/net-misc/zaptel/ChangeLog
@@ -0,0 +1,226 @@
+# ChangeLog for net-misc/zaptel
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.49 2005/06/28 21:00:13 stkn Exp $
+
+ 28 Jun 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.7-r1.ebuild:
+ Marking stable on x86.
+
+ 25 Jun 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.4-r1.ebuild,
+ zaptel-1.0.4.ebuild, zaptel-1.0.6-r1.ebuild, zaptel-1.0.6.ebuild,
+ zaptel-1.0.7-r1.ebuild, zaptel-1.0.7.ebuild:
+ Fixed SRC_URI.
+
+*zaptel-1.0.8 (25 Jun 2005)
+
+ 25 Jun 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/zaptel-1.0.8-gentoo.diff, +files/zaptel-bristuff-0.2.0-RC8h.patch,
+ +zaptel-1.0.8.ebuild:
+ Version bump.
+
+ 24 Jun 2005; Stefan Knoblich <stkn@gentoo.org> -zaptel-1.0.0.ebuild,
+ -zaptel-1.0.1.ebuild, -zaptel-1.0.2.ebuild:
+ Removing old zaptel ebuilds
+
+*zaptel-1.0.4-r1 (24 Jun 2005)
+
+ 24 Jun 2005; Stefan Knoblich <stkn@gentoo.org> +zaptel-1.0.4-r1.ebuild,
+ +zaptel-1.0.6-r1.ebuild:
+ Backported non-root changes to zaptel-1.0.4 and 1.0.6 for asterisk security
+ fix.
+
+ 24 Jun 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.7-r1.ebuild:
+ Renamed udev rules file to 10-zaptel.rules, making udev use our custom rules
+ instead of the shipped.
+
+ 23 Jun 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.7-r1.ebuild:
+ ~* keywords restored for asterisk-1.0.7 security update.
+
+ 01 Jun 2005; Stefan Knoblich <stkn@gentoo.org>
+ -files/zaptel-bristuff-0.2.0-RC8d.patch,
+ +files/zaptel-bristuff-0.2.0-RC8g.patch, zaptel-1.0.7-r1.ebuild:
+ Bristuff updated to 0.2.0-RC8g.
+
+ 12 May 2005; Stefan Knoblich <stkn@gentoo.org>
+ -files/zaptel-bristuff-0.2.0-RC8c.patch,
+ +files/zaptel-bristuff-0.2.0-RC8d.patch, zaptel-1.0.7-r1.ebuild:
+ Bristuff update and moved pkg_config permission bits to pkg_postinst.
+
+ 11 May 2005; Stefan Knoblich <stkn@gentoo.org> files/zaptel.devfsd,
+ files/zaptel.rc6:
+ Fixed init script and devfs.d file for 1.0.7-r1.
+
+ 10 May 2005; Stefan Knoblich <stkn@gentoo.org>
+ -files/zaptel-bristuff-0.2.0-RC8a.patch,
+ +files/zaptel-bristuff-0.2.0-RC8c.patch, zaptel-1.0.7-r1.ebuild:
+ Updated bristuff to latest version, minor changes.
+
+*zaptel-1.0.7-r1 (07 May 2005)
+
+ 07 May 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/zaptel-bristuff-0.2.0-RC8a.patch, +files/zaptel.devfsd,
+ +files/zaptel.udevd, +zaptel-1.0.7-r1.ebuild:
+ Fix for bug #88732, changing ownerships and permissions for
+ zaptel devices (root:dialup rw-rw----), updated to
+ bristuff-0.2.0-RC8a and florz-0.2.0-RC8a-6, masked for testing.
+
+ 05 May 2005; Sven Wegener <swegener@gentoo.org> zaptel-1.0.6.ebuild,
+ zaptel-1.0.7.ebuild:
+ Added missing parentheses to SRC_URI.
+
+*zaptel-1.0.7 (21 Mar 2005)
+
+ 21 Mar 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/zaptel-1.0.7-gentoo.diff, +zaptel-1.0.7.ebuild:
+ Version bump and moved some sed lines into the patch. Removed
+ selinux line in Makefile to fix #85052.
+
+ 18 Mar 2005; Chris Bainbridge <chrb@gentoo.org> zaptel-1.0.6.ebuild:
+ Add missing call to linux-mod_pkg_postinst
+
+ 12 Mar 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.6.ebuild:
+ Fixed gcc-3.4 patch path
+
+ 11 Mar 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.6.ebuild:
+ Fix zaptel Makefile(s) to use /usr/src/linux as the kernel to build for,
+ instead of the one reported by uname -r
+
+*zaptel-1.0.6 (10 Mar 2005)
+
+ 10 Mar 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/zaptel-bristuff-0.2.0-RC7k.patch, +zaptel-1.0.6.ebuild:
+ New version. Adds bristuff (+florz patches) support.
+
+ 14 Feb 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/zaptel-1.0.4-experimental-devfs26.diff, zaptel-1.0.4.ebuild:
+ Updated devfs26 patch (fixes devfs_mk_symlink errors and fixes devices node if
+ >1 card/interface), devfs26 disables zaptel's udev support to avoid conflicts.
+ Made the ebuild sleep once in pkg_setup(), not multiple times.
+
+ 07 Feb 2005; Simon Stelling <blubb@gentoo.org> zaptel-1.0.4.ebuild:
+ added ~amd64
+
+ 03 Feb 2005; Stefan Knoblich <stkn@gentoo.org> files/zaptel.rc6:
+ Fixed zaptel init script (checkconfig returned wrong values, bug #80298),
+ changed config error messages to use eerror. Using return instead of exit
+ if there's no config file, service won't be in state "started" this way.
+
+ 02 Feb 2005; Chris Bainbridge <chrb@gentoo.org> zaptel-1.0.4.ebuild:
+ Removed failure when PPP isn't found. The ebuild now gives a warning but
+ continues. Not everyone is using their ISDN for PPP ;-)
+
+ 01 Feb 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/zaptel-1.0.4-gcc34.patch, zaptel-1.0.3.ebuild, zaptel-1.0.4.ebuild:
+ New gcc34 patch, provided by Ray Russell Reese III <anti@gentoo.org>,
+ ebuild stops now if required PPP support is missing in kernel config.
+ Fixed check for DEVFS_FS and moved the UDEV message to pkg_postinst.
+ Fixed SRC_URI for 1.0.3.
+
+*zaptel-1.0.4 (28 Jan 2005)
+
+ 28 Jan 2005; Chris Bainbridge <chrb@gentoo.org> +zaptel-1.0.4.ebuild:
+ Version bump. Updated to linux-info eclass. Cleaned up einfos.
+
+ 27 Jan 2005; Stefan Knoblich <stkn@gentoo.org> -files/zaptel-modulesd.patch,
+ -zaptel-0.7.0.ebuild, -zaptel-0.8.1.ebuild:
+ removing old versions
+
+ 27 Jan 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.0.ebuild:
+ updated to use kernel-kmod
+
+ 13 Jan 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.3.ebuild:
+ Only apply gcc-3.4 fix if gcc-3.4.3 is used, older versions seem not to be
+ affected.
+
+ 13 Jan 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/zaptel-1.0.3-gcc34.patch, zaptel-1.0.3.ebuild:
+ Added workaround for gcc-3.4.x broken/unsupported static inline handling on
+ x86 (bug #76707).
+
+ 05 Jan 2005; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.3.ebuild:
+ changed the linux-2.6 + devfs warning messages, should be less confusing now...
+
+ 19 Dec 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-1.0.2.ebuild:
+ fixed SRC_URI
+
+*zaptel-1.0.3 (19 Dec 2004)
+
+ 19 Dec 2004; Stefan Knoblich <stkn@gentoo.org>
+ +files/zaptel-1.0.3-gentoo.diff, +zaptel-1.0.3.ebuild:
+ new version, changes: /etc/modules.d/zaptel cleanup, users will have to
+ use the zaptel init-script to load settings (or run /sbin/ztcfg manually)
+
+*zaptel-1.0.2 (10 Nov 2004)
+
+ 10 Nov 2004; <stkn@gentoo.org> +zaptel-1.0.2.ebuild:
+ version bump.
+
+*zaptel-1.0.1 (24 Oct 2004)
+
+ 24 Oct 2004; <stkn@gentoo.org> +files/zaptel-1.0.1-modulesd.diff,
+ +files/zaptel-1.0.1-skbuff.diff, +zaptel-1.0.1.ebuild:
+ New version, includes skbuff fixes for >=linux-2.6.9 (bug #66168, thx to Kevin
+ Daughtridge <kevin@kdau.ath.cx>), now using kernel-mod.eclass
+ (bug #68451, thx to Stefan Schweizer <sschweizer@gmail.com>)
+
+ 03 Oct 2004; <iggy@gentoo.org> zaptel-1.0.0.ebuild:
+ switched custom ARCH setting code to use set_arch_to_* from eutils, also
+ used some functions from kmod instead of homebrew stuff
+
+*zaptel-1.0.0 (24 Sep 2004)
+
+ 24 Sep 2004; <stkn@gentoo.org>
+ +files/zaptel-1.0.0-experimental-devfs26.diff,
+ +files/zaptel-1.0.0-modulesd.diff, +zaptel-1.0.0.ebuild:
+ version bump
+
+ 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> zaptel-0.7.0.ebuild,
+ zaptel-0.8.1.ebuild, zaptel-0.9.1.ebuild:
+ Switch to use epause and ebeep, bug #62950
+
+ 27 Jul 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-0.9.1.ebuild:
+ stable on x86
+
+ 01 Jul 2004; Jon Hood <squinky86@gentoo.org> zaptel-0.7.0.ebuild,
+ zaptel-0.8.1.ebuild, zaptel-0.9.1.ebuild:
+ change virtual/glibc to virtual/libc
+
+ 09 Jun 2004; Aron Griffis <agriffis@gentoo.org> zaptel-0.7.0.ebuild,
+ zaptel-0.8.1.ebuild, zaptel-0.9.1.ebuild:
+ Fix use invocation
+
+ 10 May 2004; David Holm <dholm@gentoo.org> zaptel-0.9.1.ebuild:
+ Added to ~ppc.
+
+*zaptel-0.9.1 (10 May 2004)
+
+ 10 May 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-0.9.1.ebuild,
+ files/zaptel-0.9.1-experimental-devfs26.diff,
+ files/zaptel-0.9.1-modulesd.diff:
+ version bump.
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> zaptel-0.7.0.ebuild,
+ zaptel-0.8.1.ebuild:
+ Add inherit eutils
+
+ 17 Mar 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-0.8.1.ebuild:
+ fixed SRC_URI
+
+ 16 Mar 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-0.7.0.ebuild:
+ removed blocking of dev-sources (bug #44588)
+
+*zaptel-0.8.1 (16 Mar 2004)
+
+ 16 Mar 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-0.8.1.ebuild:
+ version bump, this version still lacks linux-2.6 support
+ (kbuild + sandbox is a problem atm...)
+
+ 19 Feb 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-0.7.0.ebuild:
+ fixed SRC_URI
+
+*zaptel-0.7.0 (04 Jan 2004)
+
+ 04 Jan 2004; Stefan Knoblich <stkn@gentoo.org> zaptel-0.7.0.ebuild,
+ files/zaptel-install_prefix-typo.patch,
+ files/zaptel-mkdir-usrincludelinux.patch, files/zaptel-modulesd.patch:
+ initial import. ebuild created by Ray Russell Reese III <anti@gentoo.org>
+
diff --git a/net-misc/zaptel/Manifest b/net-misc/zaptel/Manifest
new file mode 100644
index 0000000..efad813
--- /dev/null
+++ b/net-misc/zaptel/Manifest
@@ -0,0 +1,11 @@
+MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248
+MD5 e33adbdca86c19623fb93dc9edd6af53 ChangeLog 8687
+MD5 300005440f080af6cdd69537fc9b4177 zaptel-1.2.0_beta1.ebuild 9214
+MD5 6e306307ede34b9428ec1c992a8a671e files/zaptel.devfsd 140
+MD5 090668aabb8e77cfd0d83835f52bd105 files/zaptel-1.0.4-gcc34.patch 821
+MD5 d40a84eeea5866a3afbac2603e970e7b files/zaptel-1.0.4-experimental-devfs26.diff 5982
+MD5 144ec2aec65f20a934f7affe613c69aa files/zaptel-1.2.0_beta1-gentoo.diff 4867
+MD5 fae1145da422b8838c2a6ac3405dc4c4 files/zaptel.confd 371
+MD5 3bff3fd5d8dc52513ceeac546e1e11bf files/zaptel.udevd 358
+MD5 a1ef57fe463da11030f2e18d87535466 files/zaptel.rc6 972
+MD5 62b106ceaf6f69da6e1051c37b33f3f5 files/digest-zaptel-1.2.0_beta1 70
diff --git a/net-misc/zaptel/files/digest-zaptel-1.2.0_beta1 b/net-misc/zaptel/files/digest-zaptel-1.2.0_beta1
new file mode 100644
index 0000000..4692000
--- /dev/null
+++ b/net-misc/zaptel/files/digest-zaptel-1.2.0_beta1
@@ -0,0 +1 @@
+MD5 528633610716bdb79f65e8d73a171b47 zaptel-1.2.0-beta1.tar.gz 571870
diff --git a/net-misc/zaptel/files/zaptel-1.0.4-experimental-devfs26.diff b/net-misc/zaptel/files/zaptel-1.0.4-experimental-devfs26.diff
new file mode 100644
index 0000000..e33002e
--- /dev/null
+++ b/net-misc/zaptel/files/zaptel-1.0.4-experimental-devfs26.diff
@@ -0,0 +1,220 @@
+--- zaptel/zaptel.c.orig 2005-01-03 23:31:28.266487240 +0100
++++ zaptel/zaptel.c 2005-01-03 23:20:16.149664528 +0100
+@@ -143,12 +143,14 @@
+
+ /* Here are a couple important little additions for devfs */
+ #ifdef CONFIG_DEVFS_FS
++#ifndef LINUX26
+ static devfs_handle_t zaptel_devfs_dir;
+ static devfs_handle_t channel;
+ static devfs_handle_t pseudo;
+ static devfs_handle_t ctl;
+ static devfs_handle_t timer;
+ #endif
++#endif
+
+ /* udev necessary data structures. Yeah! */
+ #ifdef CONFIG_ZAP_UDEV
+@@ -1087,6 +1089,7 @@
+ }
+
+ #ifdef CONFIG_DEVFS_FS
++#ifndef LINUX26
+ static devfs_handle_t register_devfs_channel(struct zt_chan *chan, devfs_handle_t dir)
+ {
+ char path[100];
+@@ -1129,6 +1132,36 @@
+
+ return chan_dev;
+ }
++#else
++static dev_t register_devfs_channel(struct zt_chan *chan, dev_t dir)
++{
++#ifdef HAS_DEVFS_MK_SYMLINK
++ char link[100];
++ char path[100];
++#endif
++ dev_t chan_dev;
++ umode_t mode = S_IFCHR|S_IRUGO|S_IWUGO;
++
++ /* create /dev/zap/span%d/%d channel device node */
++ if ((chan_dev = devfs_mk_cdev(MKDEV(ZT_MAJOR, chan->channo), mode, "zap/span%d/%d", dir, chan->chanpos)) < 0) {
++ printk("zaptel: Something really bad happened. Unable to register devfs entry\n");
++ return 0;
++ }
++
++#ifdef HAS_DEVFS_MK_SYMLINK
++ /* link /dev/zap/span%d/%d -> /dev/zap/%d ?!? */
++ sprintf(path, "zap/span%d/%d", dir, chan->chanpos);
++ sprintf(link, "zap/%d", chan->channo);
++ devfs_mk_symlink(link, path);
++#else
++ /* register /dev/zap/%d channel node directly */
++ if(devfs_mk_cdev(MKDEV(ZT_MAJOR, chan->channo), mode, "zap/%d", chan->channo) < 0) {
++ printk("zaptel: Unable to register compat devfs entry\n");
++ }
++#endif
++ return chan_dev;
++}
++#endif
+ #endif /* CONFIG_DEVFS_FS */
+
+ static int zt_chan_reg(struct zt_chan *chan)
+@@ -4304,6 +4337,7 @@
+ #endif
+
+ #ifdef CONFIG_DEVFS_FS
++#ifndef LINUX26
+ {
+ char span_name[50];
+ sprintf(span_name, "span%d", span->spanno);
+@@ -4313,6 +4347,15 @@
+ chan->fhandle = register_devfs_channel(chan, chan->span->dhandle); /* Register our stuff with devfs */
+ }
+ }
++#else
++ {
++ devfs_mk_dir("zap/span%d", span->spanno);
++ for (x = 0; x < span->channels; x++) {
++ struct zt_chan *chan = &span->chans[x];
++ register_devfs_channel(chan, span->spanno); /* Register our stuff with devfs */
++ }
++ }
++#endif
+ #endif /* CONFIG_DEVFS_FS */
+
+ #ifdef CONFIG_ZAP_UDEV
+@@ -4360,11 +4403,22 @@
+ remove_proc_entry(tempfile, NULL);
+ #endif /* CONFIG_PROC_FS */
+ #ifdef CONFIG_DEVFS_FS
++#ifndef LINUX26
+ for (x = 0; x < span->channels; x++) {
+ devfs_unregister(span->chans[x].fhandle);
+ devfs_unregister(span->chans[x].fhandle_symlink);
+ }
+ devfs_unregister(span->dhandle);
++#else
++ for (x = 0; x < span->channels; x++) {
++ /* remove symlink/compat device first */
++ devfs_remove("zap/%d", span->chans[x].channo);
++ /* remove channel device */
++ devfs_remove("zap/span%d/%d", span->spanno, span->chans[x].chanpos);
++ }
++ /* remove span dir */
++ devfs_remove("zap/span%d", span->spanno);
++#endif
+ #endif /* CONFIG_DEVFS_FS */
+
+ #ifdef CONFIG_ZAP_UDEV
+@@ -6301,6 +6355,7 @@
+ #endif /* CONFIG_ZAP_UDEV */
+
+ #ifdef CONFIG_DEVFS_FS
++#ifndef LINUX26
+ {
+ umode_t mode = S_IFCHR|S_IRUGO|S_IWUGO;
+ devfs_register_chrdev(ZT_MAJOR, "zaptel", &zt_fops);
+@@ -6312,6 +6367,22 @@
+ ctl = devfs_register(zaptel_devfs_dir, "ctl", DEVFS_FL_DEFAULT, ZT_MAJOR, 0, mode, &zt_fops, NULL);
+ }
+ #else
++ {
++ umode_t mode = S_IFCHR|S_IRUGO|S_IWUGO;
++ if ((res = register_chrdev(ZT_MAJOR, "zaptel", &zt_fops)) < 0) {
++ printk(KERN_ERR "Unable to register for device on %d, error: %d\n", ZT_MAJOR, res);
++ return res;
++ }
++
++ devfs_mk_dir("zap");
++
++ devfs_mk_cdev(MKDEV(ZT_MAJOR, 253), mode, "zap/timer");
++ devfs_mk_cdev(MKDEV(ZT_MAJOR, 254), mode, "zap/channel");
++ devfs_mk_cdev(MKDEV(ZT_MAJOR, 255), mode, "zap/pseudo");
++ devfs_mk_cdev(MKDEV(ZT_MAJOR, 0), mode, "zap/ctl");
++ }
++#endif
++#else
+ if ((res = register_chrdev(ZT_MAJOR, "zaptel", &zt_fops))) {
+ printk(KERN_ERR "Unable to register tor device on %d\n", ZT_MAJOR);
+ return res;
+@@ -6342,6 +6413,7 @@
+ if (tone_zones[x])
+ kfree(tone_zones[x]);
+ #ifdef CONFIG_DEVFS_FS
++#ifndef LINUX26
+ devfs_unregister(timer);
+ devfs_unregister(channel);
+ devfs_unregister(pseudo);
+@@ -6357,6 +6429,16 @@
+ class_simple_destroy(zap_class);
+ #endif /* CONFIG_ZAP_UDEV */
+ unregister_chrdev(ZT_MAJOR, "zaptel");
++
++ devfs_remove("zap/timer");
++ devfs_remove("zap/ctl");
++ devfs_remove("zap/pseudo");
++ devfs_remove("zap/channel");
++
++ devfs_remove("zap");
++#endif
++#else
++ unregister_chrdev(ZT_MAJOR, "zaptel");
+ #endif
+ #ifdef CONFIG_ZAPTEL_WATCHDOG
+ watchdog_cleanup();
+--- zaptel/zaptel.h.orig 2005-01-03 23:31:32.029915112 +0100
++++ zaptel/zaptel.h 2005-01-03 23:20:18.380325416 +0100
+@@ -46,18 +46,17 @@
+
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+ #define LINUX26
++/* devfs_mk_symlink has been removed in 2.6.10 */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
++#define HAS_DEVFS_MK_SYMLINK
++#endif
+ #endif
+
+ #include "ecdis.h"
+ #include "fasthdlc.h"
+ #endif
+ #ifdef CONFIG_DEVFS_FS
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
+ #include <linux/devfs_fs_kernel.h>
+-#else
+-#undef CONFIG_DEVFS_FS
+-//#warning "Zaptel doesn't support DEVFS in post 2.4 kernels. Disabling DEVFS in zaptel"
+-#endif
+ #endif /* CONFIG_DEVFS_FS */
+ #include <linux/ioctl.h>
+
+@@ -65,6 +64,8 @@
+ #define ELAST 500
+ #endif
+
++
++
+ /* Per-span configuration values */
+ #define ZT_CONFIG_TXLEVEL 7 /* bits 0-2 are tx level */
+
+@@ -1123,8 +1124,10 @@
+ #endif
+
+ #ifdef CONFIG_DEVFS_FS
++#ifndef LINUX26
+ devfs_handle_t fhandle; /* File handle in devfs for the channel */
+ devfs_handle_t fhandle_symlink;
++#endif
+ #endif /* CONFIG_DEVFS_FS */
+ };
+
+@@ -1254,7 +1257,9 @@
+ int lastalarms; /* Previous alarms */
+
+ #ifdef CONFIG_DEVFS_FS
++#ifndef LINUX26
+ devfs_handle_t dhandle; /* Directory name */
++#endif
+ #endif
+ /* If the watchdog detects no received data, it will call the
+ watchdog routine */
diff --git a/net-misc/zaptel/files/zaptel-1.0.4-gcc34.patch b/net-misc/zaptel/files/zaptel-1.0.4-gcc34.patch
new file mode 100644
index 0000000..ea80c9e
--- /dev/null
+++ b/net-misc/zaptel/files/zaptel-1.0.4-gcc34.patch
@@ -0,0 +1,30 @@
+diff -ruN zaptel-1.0.4.orig/wcfxs.c zaptel-1.0.4/wcfxs.c
+--- zaptel-1.0.4.orig/wcfxs.c 2005-01-31 14:27:54.828322677 -0500
++++ zaptel-1.0.4/wcfxs.c 2005-01-31 14:32:15.629810758 -0500
+@@ -740,7 +740,7 @@
+ return 0;
+ }
+
+-static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card)
++static void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card)
+ {
+ #ifndef AUDIO_RINGCHECK
+ unsigned char res;
+@@ -884,7 +884,7 @@
+ }
+ }
+
+-static inline void wcfxs_proslic_check_hook(struct wcfxs *wc, int card)
++static void wcfxs_proslic_check_hook(struct wcfxs *wc, int card)
+ {
+ char res;
+ int hook;
+@@ -939,7 +939,7 @@
+
+ }
+
+-static inline void wcfxs_proslic_recheck_sanity(struct wcfxs *wc, int card)
++static void wcfxs_proslic_recheck_sanity(struct wcfxs *wc, int card)
+ {
+ int res;
+ /* Check loopback */
diff --git a/net-misc/zaptel/files/zaptel-1.2.0_beta1-gentoo.diff b/net-misc/zaptel/files/zaptel-1.2.0_beta1-gentoo.diff
new file mode 100644
index 0000000..f8445f7
--- /dev/null
+++ b/net-misc/zaptel/files/zaptel-1.2.0_beta1-gentoo.diff
@@ -0,0 +1,124 @@
+--- zaptel/Makefile.orig 2005-08-15 18:18:49.000000000 +0200
++++ zaptel/Makefile 2005-08-15 18:33:42.000000000 +0200
+@@ -21,7 +21,7 @@
+ endif
+ KINCLUDES:=$(KSRC)/include
+
+-CFLAGS+=-I. -O4 -g -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER
++CFLAGS+=-I. -g -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER
+ CFLAGS_PPC:=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
+ CFLAGS_X86-64:=$(shell if uname -m | grep -q x86_64; then echo "-m64"; fi)
+ CFLAGS+=$(CFLAGS_PPC) $(CFLAGS_X64-64)
+@@ -55,27 +55,7 @@
+ BUILDVER:=linux24
+ endif
+
+-ifeq ($(BUILDVER),linux26)
+- ifneq (,$(wildcard $(ROOT_PREFIX)/etc/modprobe.d))
+- MODCONF:=$(ROOT_PREFIX)/etc/modprobe.d/zaptel
+- else
+- ifneq (,$(wildcard $(ROOT_PREFIX)/etc/modprobe.conf))
+- MODCONF:=$(ROOT_PREFIX)/etc/modprobe.conf
+- else
+- ifneq (,$(wildcard $(ROOT_PREFIX)/etc/conf.modules))
+- MODCONF:=$(ROOT_PREFIX)/etc/conf.modules
+- endif
+- endif
+- endif
+-else # BUILDVER == linux24
+- ifneq (,$(wildcard $(ROOT_PREFIX)/etc/modutils))
+- MODCONF:=$(ROOT_PREFIX)/etc/modutils/zaptel
+- else
+- ifneq (,$(wildcard $(ROOT_PREFIX)/etc/modules.conf))
+- MODCONF:=$(ROOT_PREFIX)/etc/modules.conf
+- endif
+- endif
+-endif
++MODCONF:=$(INSTALL_PREFIX)/etc/modules.d/zaptel
+
+ ifeq (${BUILDVER},linux24)
+ #We only support DEVFS in linux 2.4 kernels, since its considered obsolete post 2.4
+@@ -83,7 +63,7 @@
+ endif
+ ifeq (${BUILDVER},linux26)
+ #Tests for newer linux-2.6 udev support
+-DYNFS:=$(shell ps ax | grep -v grep | grep udevd && echo "yes")
++DYNFS:=$(shell ps ax | grep -v grep | grep -q udevd && echo "yes")
+ endif
+
+ CHKCONFIG:=$(shell sh -c 'type -p chkconfig' 2> /dev/null)
+@@ -312,7 +292,7 @@
+ docbook2man -o doc doc/ztmonitor.sgml
+ gzip doc/ztmonitor.8
+
+-install: all devices
++install: devices
+ install -D -m 755 ztcfg $(INSTALL_PREFIX)/sbin/ztcfg
+ if [ -f sethdlc-new ]; then \
+ install -D -m 755 sethdlc-new $(INSTALL_PREFIX)/sbin/sethdlc; \
+@@ -339,49 +319,27 @@
+ rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxs.o; \
+ fi
+ install -D -m 755 $(LIBTONEZONE_SO) $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER)
+- [ `id -u` = 0 ] && /sbin/ldconfig || :
+ rm -f $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO)
+ ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER) $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO)
+- if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO); fi
+ install -D -m 644 zaptel.h $(INSTALL_PREFIX)/usr/include/linux/zaptel.h
+ install -D -m 644 torisa.h $(INSTALL_PREFIX)/usr/include/linux/torisa.h
+ install -D -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include/tonezone.h
+- install -m 644 doc/ztcfg.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
+- install -m 644 doc/ztmonitor.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
+- install -m 644 doc/zttool.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
+- if [ -f $(MODCONF) ]; then mv -f $(MODCONF) $(MODCONF).bak ; fi
+- cat $(MODCONF).bak | grep -v "alias char-major-250" | \
+- grep -v "post-install torisa /sbin/ztcfg" | \
+- grep -v "post-install wcfxsusb /sbin/ztcfg" | \
+- grep -v "alias wctdm" | \
+- grep -v "post-install wctdm /sbin/ztcfg" > $(MODCONF) || true
++ install -D -m 644 doc/ztcfg.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
++ install -D -m 644 doc/ztmonitor.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
++ install -D -m 644 doc/zttool.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
++ if [ ! -d `dirname $(MODCONF)` ]; then install -d -m 755 `dirname $(MODCONF)` ; fi
+ if ! grep "options torisa" $(MODCONF); then \
+ echo "options torisa base=$(BASEADDR)" >> $(MODCONF); \
+ fi
+ if ! grep "alias char-major-196" $(MODCONF); then \
+ echo "alias char-major-196 $(PRIMARY)" >> $(MODCONF); \
+ fi
+- for x in $(MODULES); do \
+- if ! grep -q "post-install $$x" $(MODCONF); then \
+- if ! grep -q "install $$x " $(MODCONF); then \
+- if [ "$$x" != "zaptel" ] ; then \
+- if [ -f zaptel.ko ]; then echo "install $$x /sbin/modprobe --ignore-install $$x && /sbin/ztcfg" >> $(MODCONF); \
+- else echo "post-install $$x /sbin/ztcfg" >> $(MODCONF); \
+- fi; \
+- fi; \
+- fi; \
+- fi; \
+- done
+ if ! grep "alias wcfxs" $(MODCONF); then \
+ echo "alias wcfxs wctdm" >> $(MODCONF); \
+ fi
+ if ! grep "alias wct2xxp" $(MODCONF); then \
+ echo "alias wct2xxp wct4xxp" >> $(MODCONF); \
+ fi
+- if [ -d /etc/modutils ]; then \
+- /sbin/update-modules ; \
+- fi
+- [ `id -u` = 0 ] && /sbin/depmod -a || :
+ [ -f $(CONFIG_FILE) ] || install -D -m 644 zaptel.conf.sample $(CONFIG_FILE)
+
+ install-udev:
+--- zaptel/zconfig.h.orig 2005-08-16 21:33:25.000000000 +0200
++++ zaptel/zconfig.h 2005-08-16 21:33:58.000000000 +0200
+@@ -133,5 +133,10 @@
+ */
+ /* #define EMFLASH */
+
++/*
++ * Enable RTC support
++ */
++/* #define USE_RTC */
++
+ #endif
diff --git a/net-misc/zaptel/files/zaptel.confd b/net-misc/zaptel/files/zaptel.confd
new file mode 100644
index 0000000..5d547f3
--- /dev/null
+++ b/net-misc/zaptel/files/zaptel.confd
@@ -0,0 +1,13 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/files/zaptel.confd,v 1.2 2004/07/15 00:16:05 agriffis Exp $
+
+#
+# Some options for the zaptel init script
+#
+
+#
+# Forces the script to re-create missing /dev/zap
+# directory and device nodes
+#
+ZAP_FORCE_CREATE="no"
diff --git a/net-misc/zaptel/files/zaptel.devfsd b/net-misc/zaptel/files/zaptel.devfsd
new file mode 100644
index 0000000..2669777
--- /dev/null
+++ b/net-misc/zaptel/files/zaptel.devfsd
@@ -0,0 +1,5 @@
+#
+# devfs rules for zaptel
+#
+REGISTER zap PERMISSIONS root.dialout rwxrwx---
+REGISTER zap/.* PERMISSIONS root.dialout rw-rw----
diff --git a/net-misc/zaptel/files/zaptel.rc6 b/net-misc/zaptel/files/zaptel.rc6
new file mode 100644
index 0000000..3295422
--- /dev/null
+++ b/net-misc/zaptel/files/zaptel.rc6
@@ -0,0 +1,54 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/files/zaptel.rc6,v 1.4 2005/05/11 12:36:55 stkn Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -f /etc/zaptel.conf ]; then
+ eerror "Please create /etc/zaptel.conf!"
+ return 1
+ fi
+
+ return 0
+}
+
+create_devices() {
+ mkdir -p -m 0775 /dev/zap
+ for i in `seq 1 250`; do
+ mknod /dev/zap/$i c 196 $i
+ done
+ mknod /dev/zap/ctl c 196 0
+ mknod /dev/zap/timer c 196 253
+ mknod /dev/zap/channel c 196 254
+ mknod /dev/zap/pseudo c 196 255
+
+ chown -R root:dialout /dev/zap
+ chmod -R u=rwX,g=rwX,o= /dev/zap
+}
+
+
+start() {
+ checkconfig || return 1
+
+ if [ ! -d /dev/zap ] && [ "$ZAP_FORCE_CREATE" != "no" ]; then
+ einfo "Creating zaptel device nodes"
+ create_devices
+ fi
+
+ ebegin "Starting zaptel"
+ /sbin/ztcfg
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping zaptel"
+ /sbin/ztcfg -s
+ eend $?
+}
+
+
+# vim:ts=4
diff --git a/net-misc/zaptel/files/zaptel.udevd b/net-misc/zaptel/files/zaptel.udevd
new file mode 100644
index 0000000..45ae729
--- /dev/null
+++ b/net-misc/zaptel/files/zaptel.udevd
@@ -0,0 +1,8 @@
+#
+# udev rules for zaptel
+#
+KERNEL="zapctl", NAME="zap/ctl", MODE="0660", GROUP="dialout"
+KERNEL="zaptimer", NAME="zap/timer", MODE="0660", GROUP="dialout"
+KERNEL="zapchannel", NAME="zap/channel", MODE="0660", GROUP="dialout"
+KERNEL="zappseudo", NAME="zap/pseudo", MODE="0660", GROUP="dialout"
+KERNEL="zap[0-9]*", NAME="zap/%n", MODE="0660", GROUP="dialout"
diff --git a/net-misc/zaptel/metadata.xml b/net-misc/zaptel/metadata.xml
new file mode 100644
index 0000000..10f27dc
--- /dev/null
+++ b/net-misc/zaptel/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>voip</herd>
+<maintainer>
+ <email>stkn@gentoo.org</email>
+ <name>Stefan Knoblich</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-misc/zaptel/zaptel-1.2.0_beta1.ebuild b/net-misc/zaptel/zaptel-1.2.0_beta1.ebuild
new file mode 100644
index 0000000..1697fc1
--- /dev/null
+++ b/net-misc/zaptel/zaptel-1.2.0_beta1.ebuild
@@ -0,0 +1,378 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs eutils linux-mod
+
+## TODO:
+#
+# - bristuff (waiting for next upstream release...)
+# - cleanup (work-in-progress)
+# - testing of new features (zapras / -net)
+#
+
+#BRI_VERSION="0.2.0-RC8h"
+#FLORZ_VERSION="0.2.0-RC8a_florz-6"
+
+IUSE="devfs26 rtc ecmark ecmark2 ecmark3 ecaggressive ecsteve ecsteve2 watchdog zapras zapnet \
+ instsrc"
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Drivers for Digium and ZapataTelephony cards"
+HOMEPAGE="http://www.asterisk.org"
+SRC_URI="http://ftp.digium.com/pub/zaptel/${MY_P}.tar.gz"
+# bri? ( http://www.junghanns.net/asterisk/downloads/bristuff-${BRI_VERSION}.tar.gz )
+# florz? ( http://zaphfc.florz.dyndns.org/zaphfc_${FLORZ_VERSION}.diff.gz )"
+
+S="${WORKDIR}/${MY_P}"
+
+S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+DEPEND="virtual/libc
+ virtual/linux-sources
+ >=dev-libs/newt-0.50.0"
+
+# list of echo canceller use flags,
+# first active in this list is selected (=order does matter)
+ZAP_EC_FLAGS="ecmark ecmark2 ecmark3 ecsteve ecsteve2"
+
+### Begin: Helper functions
+
+select_echo_cancel() {
+ local myEC=""
+
+ for x in ${ZAP_EC_FLAGS}; do
+ if use $x; then
+ myEC=$(echo "$x" | sed -e "s:^ec::" | tr '[:lower:]' '[:upper:]')
+ break;
+ fi
+ done
+
+ echo ${myEC}
+}
+
+zconfig_disable() {
+ if grep -q "${1}" ${S}/zconfig.h; then
+ # match a little more than ${1} so we can use zconfig_disable
+ # to disable all echo cancellers in zconfig.h w/o calling it several times
+ sed -i -e "s:^[ \t]*#define[ \t]\+\(${1}[a-zA-Z0-9_-]*\).*:#undef \1:" \
+ ${S}/zconfig.h
+ fi
+
+ return $?
+}
+
+zconfig_enable() {
+ if grep -q "${1}" ${S}/zconfig.h; then
+ sed -i -e "s:^/\*[ \t]*#define[ \t]\+\(${1}\).*:#define \1:" \
+ -e "s:^[ \t]*#undef[ \t]\+\(${1}\).*:#define \1:" \
+ ${S}/zconfig.h
+ fi
+
+ return $?
+}
+
+### End: Helper functions
+
+pkg_setup() {
+ local result=0 numec=0
+
+ linux-mod_pkg_setup
+
+ einfo "Running pre-flight checks..."
+
+ # basic zaptel checks
+ if kernel_is 2 6 && ! linux_chkconfig_present CRC_CCITT; then
+ echo
+ eerror "Your kernel lacks CRC_CCITT support!"
+ eerror "Enable CONFIG_CRC_CCITT!"
+ result=$((result+1))
+ fi
+
+ # check if multiple echo cancellers have been selected
+ for x in ${ZAP_EC_FLAGS}; do
+ use $x && numec=$((numec+1))
+ done
+ if [[ $numec -gt 1 ]]; then
+ # multiple flags are active, only the first in the ZAP_EC_FLAGS list
+ # will be used, make sure the user knows about this
+ echo
+ ewarn "Multiple echo canceller flags are active but only one will be used!"
+ ewarn "Selected: $(select_echo_cancel)"
+ fi
+
+ # we need at least HDLC generic support
+ if use zapnet && ! linux_chkconfig_present HDLC; then
+ echo
+ eerror "zapnet: Your kernel lacks HDLC support!"
+ eerror "zapnet: Enable CONFIG_HDLC* to use zaptel network support!"
+ result=$((result+1))
+ fi
+
+ # zapras needs PPP support
+ if use zapras && ! linux_chkconfig_present PPP; then
+ echo
+ eerror "zapras: Your kernel lacks PPP support!"
+ eerror "zapras: Enable CONFIG_PPP* to use zaptel ras support!"
+ result=$((result+1))
+ fi
+
+ # rtc needs linux-2.6 and CONFIG_RTC
+ if use rtc; then
+ if ! kernel_is 2 6; then
+ echo
+ eerror "rtc: >=Linux-2.6.0 is needed for rtc support!"
+ result=$((result+1))
+ fi
+
+ if ! linux_chkconfig_present RTC; then
+ eerror "rtc: Your kernel lacks RealTime-Clock support!"
+ result=$((result+1))
+ fi
+ fi
+
+ if [[ $result -gt 0 ]]; then
+ echo
+ ewarn "One or more of the neccessary precondition(s) is/are not met!"
+ ewarn "Look at the messages above, resolve the problem (or disable the use-flag) and try again"
+ echo
+
+ if [[ $result -lt 3 ]]; then
+ eerror "[$result Error(s)] Zaptel is not happy :("
+ else
+ eerror "[$result Error(s)] You're making zaptel cry :´("
+ fi
+ die "[$result] Precondition(s) not met"
+ fi
+
+ echo
+ einfo "Zaptel is happy and continues... :)"
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+
+ if use devfs26; then
+ epatch ${FILESDIR}/${PN}-1.0.4-experimental-devfs26.diff
+
+ # fix Makefile to not create device nodes for
+ # devfs enabled 2.6 kernels
+ sed -i -e 's:grep -q udevd:grep -q \"udevd\\|devfsd\":' \
+ Makefile
+ fi
+
+ # try to apply bristuff patch
+# if use bri; then
+# einfo "Patching zaptel w/ BRI stuff (${BRI_VERSION})"
+# epatch ${FILESDIR}/zaptel-bristuff-${BRI_VERSION}.patch
+#
+# cd ${S_BRI}
+#
+# if use florz; then
+# einfo "Using florz patches (${FLORZ_VERSION}) for zaphfc"
+#
+# # remove as soon as there's a new florz patch available
+# sed -i -e "s:zaptel-1\.0\.7:zaptel-1.0.8:g" \
+# ${WORKDIR}/zaphfc_${FLORZ_VERSION}.diff
+#
+# epatch ${WORKDIR}/zaphfc_${FLORZ_VERSION}.diff
+# fi
+#
+# # patch includes
+# sed -i -e "s:^#include.*zaptel\.h.*:#include <zaptel.h>:" \
+# qozap/qozap.c \
+# zaphfc/zaphfc.c \
+# cwain/cwain.c
+#
+# # patch makefiles
+# sed -i -e "s:^ZAP[\t ]*=.*:ZAP=-I${S}:" \
+# -e "s:^MODCONF=.*:MODCONF=/etc/modules.d/zaptel:" \
+# -e "s:linux-2.6:linux:g" \
+# qozap/Makefile \
+# zaphfc/Makefile \
+# cwain/Makefile
+#
+# sed -i -e "s:^\(CFLAGS+=-I. \).*:\1 \$(ZAP):" \
+# zaphfc/Makefile
+# fi
+
+### Configuration changes
+ local myEC
+
+ # prepare zconfig.h
+ myEC=$(select_echo_cancel)
+ if [[ -n "${myEC}" ]]; then
+ einfo "Selected echo canceller: ${myEC}"
+ # disable default first, set new selected ec afterwards
+ zconfig_disable ECHO_CAN
+ zconfig_enable ECHO_CAN_${myEC}
+ fi
+
+ # enable rtc support on 2.6
+ if use rtc && linux_chkconfig_present RTC && kernel_is 2 6; then
+ einfo "Enabling ztdummy RTC support"
+ zconfig_enable USE_RTC
+ fi
+
+ # disable udev support on devfs26 systems
+ use devfs26 && \
+ zconfig_disable CONFIG_ZAP_UDEV
+
+ # enable agressive echo surpression
+ use ecaggressive && \
+ zconfig_enable AGGRESSIVE_SUPPRESSOR
+
+ # ppp ras support
+ use zapras && \
+ zconfig_enable CONFIG_ZAPATA_PPP
+
+ # frame relay, syncppp...
+ use zapnet && \
+ zconfig_enable CONFIG_ZAPATA_NET
+
+ # zaptel watchdog
+ use watchdog && \
+ zconfig_enable CONFIG_ZAPTEL_WATCHDOG
+}
+
+src_compile() {
+ # build
+ make KVERS=${KV_FULL} \
+ KSRC=/usr/src/linux ARCH=$(tc-arch-kernel) || die
+
+# if use bri; then
+# cd ${S_BRI}
+# make -C qozap || die
+# make -C zaphfc || die
+# make -C cwain || die
+# fi
+}
+
+src_install() {
+ make INSTALL_PREFIX=${D} ARCH=$(tc-arch-kernel) \
+ KVERS=${KV_FULL} KSRC=/usr/src/linux install || die
+
+ dodoc ChangeLog README README.udev README.Linux26 README.fxsusb zaptel.init
+ dodoc zaptel.conf.sample LICENSE zaptel.sysconfig
+
+ # additional tools
+ dobin ztmonitor ztspeed zttest
+
+ # install all header files, several packages need the complete set
+ # (e.g. sangoma wanpipe)
+ insinto /usr/include/zaptel
+ doins *.h
+
+# if use bri; then
+# einfo "Installing bri"
+# cd ${S_BRI}
+#
+# insinto /lib/modules/${KV_FULL}/misc
+# doins qozap/qozap.${KV_OBJ}
+# doins zaphfc/zaphfc.${KV_OBJ}
+# doins cwain/cwain.${KV_OBJ}
+#
+# # install example configs for octoBRI and quadBRI
+# insinto /etc
+# doins qozap/zaptel.conf.octoBRI
+# newins qozap/zaptel.conf zaptel.conf.quadBRI
+# newins zaphfc/zaptel.conf zaptel.conf.zaphfc
+#
+# insinto /etc/asterisk
+# doins qozap/zapata.conf.octoBRI
+# newins qozap/zapata.conf zapata.conf.quadBRI
+# newins zaphfc/zapata.conf zapata.conf.zaphfc
+#
+# docinto bristuff
+# dodoc CHANGES INSTALL
+#
+# docinto bristuff/qozap
+# dodoc qozap/LICENSE qozap/TODO qozap/*.conf*
+#
+# docinto bristuff/zaphfc
+# dodoc zaphfc/LICENSE zaphfc/*.conf
+#
+# docinto bristuff/cwain
+# dodoc cwain/TODO cwain/LICENSE
+# fi
+
+ # install init script
+ newinitd ${FILESDIR}/zaptel.rc6 zaptel
+ newconfd ${FILESDIR}/zaptel.confd zaptel
+
+ # install devfsd rule file
+ insinto /etc/devfs.d
+ newins ${FILESDIR}/zaptel.devfsd zaptel
+
+ # install udev rule file
+ insinto /etc/udev/rules.d
+ newins ${FILESDIR}/zaptel.udevd 10-zaptel.rules
+
+ # fix permissions if there's no udev / devfs around
+ if [[ -d ${D}/dev/zap ]]; then
+ chown -R root:dialout ${D}/dev/zap
+ chmod -R u=rwX,g=rwX,o= ${D}/dev/zap
+ fi
+
+ if use instsrc; then
+ # cleanup and copy ${S} to /usr/src
+ einfo "Installing ${PN} sources into ${ROOT}usr/src..."
+
+ make clean
+ cp -pPR ${S} ${D}/usr/src
+
+# if use bri; then
+# cd ${S_BRI}
+# make -C qozap clean
+# make -C cwain clean
+# make -C zaphfc clean
+#
+# cp -pPR ${S_BRI} ${D}/usr/src
+# fi
+ fi
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ if use devfs26; then
+ ewarn "*** Warning! ***"
+ ewarn "Devfs support for linux-2.6 is experimental and not"
+ ewarn "supported by digium or the asterisk project!"
+ echo
+ ewarn "Send bug-reports to: stkn@gentoo.org"
+ fi
+
+ echo
+ einfo "Use the /etc/init.d/zaptel script to load zaptel.conf settings on startup!"
+ echo
+
+# if use bri; then
+# einfo "Bristuff configs have been merged as:"
+# einfo ""
+# einfo "${ROOT}etc/"
+# einfo " zaptel.conf.zaphfc"
+# einfo " zaptel.conf.quadBRI"
+# einfo " zaptel.conf.octoBRI"
+# einfo ""
+# einfo "${ROOT}etc/asterisk/"
+# einfo " zapata.conf.zaphfc"
+# einfo " zapata.conf.quadBRI"
+# einfo " zapata.conf.octoBRI"
+# echo
+# fi
+
+ # fix permissions if there's no udev / devfs around
+ if [[ -d ${ROOT}dev/zap ]]; then
+ chown -R root:dialout ${ROOT}dev/zap
+ chmod -R u=rwX,g=rwX,o= ${ROOT}dev/zap
+ fi
+}