summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/asterisk-chan_capi-cm/ChangeLog8
-rw-r--r--net-misc/asterisk-chan_capi-cm/Manifest13
-rw-r--r--net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.0.ebuild57
-rw-r--r--net-misc/asterisk-chan_capi-cm/files/chan_capi-0.6.0-gentoo.diff32
-rw-r--r--net-misc/asterisk-chan_capi-cm/files/digest-asterisk-chan_capi-cm-0.6.01
5 files changed, 105 insertions, 6 deletions
diff --git a/net-misc/asterisk-chan_capi-cm/ChangeLog b/net-misc/asterisk-chan_capi-cm/ChangeLog
index fe957f8323bd..4d9e93c31651 100644
--- a/net-misc/asterisk-chan_capi-cm/ChangeLog
+++ b/net-misc/asterisk-chan_capi-cm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/asterisk-chan_capi-cm
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi-cm/ChangeLog,v 1.9 2005/09/19 18:27:31 stkn Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi-cm/ChangeLog,v 1.10 2005/09/21 12:39:08 stkn Exp $
+
+*asterisk-chan_capi-cm-0.6.0 (21 Sep 2005)
+
+ 21 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/chan_capi-0.6.0-gentoo.diff, +asterisk-chan_capi-cm-0.6.0.ebuild:
+ Version bump. Lots of cleanups, bugfixes and new features.
19 Sep 2005; Stefan Knoblich <stkn@gentoo.org>
asterisk-chan_capi-cm-0.5.4.ebuild:
diff --git a/net-misc/asterisk-chan_capi-cm/Manifest b/net-misc/asterisk-chan_capi-cm/Manifest
index 6b66f4ea1fec..5359c4825c90 100644
--- a/net-misc/asterisk-chan_capi-cm/Manifest
+++ b/net-misc/asterisk-chan_capi-cm/Manifest
@@ -1,7 +1,10 @@
-MD5 de41c503f05f5f99a8635b0e333729a5 metadata.xml 217
-MD5 79bac78790f65484ca5af1471cd4eb63 ChangeLog 1412
-MD5 56c38e32af5d204847de2d9a87b72351 asterisk-chan_capi-cm-0.5.3.ebuild 1588
+MD5 f63d6e97fa8b596190b97a4cac1085e1 asterisk-chan_capi-cm-0.6.0.ebuild 1365
MD5 0280c5431b2bc4f09e3d249d25b1010e asterisk-chan_capi-cm-0.5.4.ebuild 1594
-MD5 7e64c5311ef2ac1051df45fb82b2aed6 files/digest-asterisk-chan_capi-cm-0.5.3 69
-MD5 26ad4e3f1d9f576c0cdb02f80881d678 files/digest-asterisk-chan_capi-cm-0.5.4 69
+MD5 56c38e32af5d204847de2d9a87b72351 asterisk-chan_capi-cm-0.5.3.ebuild 1588
+MD5 de41c503f05f5f99a8635b0e333729a5 metadata.xml 217
+MD5 4299f1778ec3250c7bbfeb4b34be5459 ChangeLog 1643
MD5 20866dceae16bdac07ffa8b6f8aa2986 files/chan_capi-0.3.5-gentoo.diff 1113
+MD5 e38626bf14b300bea371ed7dbe17003a files/digest-asterisk-chan_capi-cm-0.6.0 67
+MD5 26ad4e3f1d9f576c0cdb02f80881d678 files/digest-asterisk-chan_capi-cm-0.5.4 69
+MD5 7e64c5311ef2ac1051df45fb82b2aed6 files/digest-asterisk-chan_capi-cm-0.5.3 69
+MD5 49f69b06231dd6ef79fe070882426dab files/chan_capi-0.6.0-gentoo.diff 1296
diff --git a/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.0.ebuild b/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.0.ebuild
new file mode 100644
index 000000000000..5f1e92988ff7
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.0.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/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.0.ebuild,v 1.1 2005/09/21 12:39:08 stkn Exp $
+
+IUSE=""
+
+inherit eutils
+
+MY_P="chan_capi-cm-${PV%.*}"
+
+DESCRIPTION="Alternative CAPI2.0 channel module for Asterisk"
+HOMEPAGE="http://sourceforge.net/projects/chan-capi"
+SRC_URI="mirror://sourceforge/chan-capi/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+
+DEPEND="!net-misc/asterisk-chan_capi
+ >=net-misc/asterisk-1.0.5-r2
+ net-dialup/capi4k-utils"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/chan_capi-0.6.0-gentoo.diff
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ make INSTALL_PREFIX=${D} install config || die "make install failed"
+
+ dodoc INSTALL LICENSE README capi.conf
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ chown -R root:asterisk ${D}/etc/asterisk/capi.conf
+ chmod -R u=rwX,g=rX,o= ${D}/etc/asterisk/capi.conf
+ fi
+}
+
+pkg_postinst() {
+ einfo "Please don't forget to enable chan_capi in your /etc/asterisk/modules.conf:"
+ einfo ""
+ einfo "load => chan_capi.so"
+ einfo ""
+ einfo "and in the [global] section:"
+ einfo "chan_capi.so=yes"
+ einfo ""
+ einfo "(see /usr/share/doc/${PF} for more information)"
+}
diff --git a/net-misc/asterisk-chan_capi-cm/files/chan_capi-0.6.0-gentoo.diff b/net-misc/asterisk-chan_capi-cm/files/chan_capi-0.6.0-gentoo.diff
new file mode 100644
index 000000000000..64296bf4063c
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/files/chan_capi-0.6.0-gentoo.diff
@@ -0,0 +1,32 @@
+--- chan_capi-cm-0.6/Makefile.orig 2005-09-11 17:46:46.000000000 +0200
++++ chan_capi-cm-0.6/Makefile 2005-09-21 10:02:21.000000000 +0200
+@@ -41,14 +41,14 @@
+ PROC=$(shell uname -m)
+
+ DEBUG=-g #-pg
++ifneq ($(ASTERISK_HEADER_DIR),/usr/include)
+ INCLUDE=-I$(ASTERISK_HEADER_DIR)
++endif
+ ifeq (${OSNAME},FreeBSD)
+ INCLUDE+=$(shell [ -d /usr/include/i4b/include ] && \
+ echo -n -I/usr/include/i4b/include)
+ endif
+-CFLAGS=-pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE
+-CFLAGS+=-O6
+-CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
++CFLAGS+=-pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE
+ CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
+
+ CFLAGS+=-DASTERISKVERSION=\"$(ASTERISKVERSION)\"
+@@ -78,9 +78,11 @@
+ $(CC) -shared -Xlinker -x -o $@ $^ -lcapi20
+
+ install: all
++ if [ ! -d $(MODULES_DIR) ]; then mkdir -p $(MODULES_DIR); fi
+ for x in $(SHAREDOS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
+
+ config: all
++ if [ ! -d $(INSTALL_PREFIX)/etc/asterisk ]; then mkdir -p $(INSTALL_PREFIX)/etc/asterisk; fi
+ cp capi.conf $(INSTALL_PREFIX)/etc/asterisk/
+
+ samples: config
diff --git a/net-misc/asterisk-chan_capi-cm/files/digest-asterisk-chan_capi-cm-0.6.0 b/net-misc/asterisk-chan_capi-cm/files/digest-asterisk-chan_capi-cm-0.6.0
new file mode 100644
index 000000000000..1f33edbd65c2
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/files/digest-asterisk-chan_capi-cm-0.6.0
@@ -0,0 +1 @@
+MD5 0eca2fbd0c6779b72ea9e4f4bfa0b93a chan_capi-cm-0.6.tar.gz 57333