summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-06-27 22:30:00 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-06-27 22:30:00 +0000
commitd091309755fdd190690ade10aeac5db2a2be501d (patch)
tree3dedb85432e18b0efa020ba23dd2490e18a87cde /net-misc/asterisk-chan_capi-cm
parentVersion bumped. & (diff)
downloadgentoo-2-d091309755fdd190690ade10aeac5db2a2be501d.tar.gz
gentoo-2-d091309755fdd190690ade10aeac5db2a2be501d.tar.bz2
gentoo-2-d091309755fdd190690ade10aeac5db2a2be501d.zip
Adding the recently forked version of chan_capi
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-misc/asterisk-chan_capi-cm')
-rw-r--r--net-misc/asterisk-chan_capi-cm/ChangeLog10
-rw-r--r--net-misc/asterisk-chan_capi-cm/Manifest9
-rw-r--r--net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.5.2.ebuild61
-rw-r--r--net-misc/asterisk-chan_capi-cm/files/chan_capi-0.3.5-gentoo.diff24
-rw-r--r--net-misc/asterisk-chan_capi-cm/files/digest-asterisk-chan_capi-cm-0.5.21
-rw-r--r--net-misc/asterisk-chan_capi-cm/metadata.xml8
6 files changed, 113 insertions, 0 deletions
diff --git a/net-misc/asterisk-chan_capi-cm/ChangeLog b/net-misc/asterisk-chan_capi-cm/ChangeLog
new file mode 100644
index 000000000000..ee89301c321e
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/ChangeLog
@@ -0,0 +1,10 @@
+# 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.1 2005/06/27 22:30:00 stkn Exp $
+
+*asterisk-chan_capi-cm-0.5.2 (28 Jun 2005)
+
+ 28 Jun 2005; Stefan Knoblich <stkn@gentoo.org> +metadata.xml,
+ +files/chan_capi-0.3.5-gentoo.diff, +asterisk-chan_capi-cm-0.5.2.ebuild:
+ Initial import.
+
diff --git a/net-misc/asterisk-chan_capi-cm/Manifest b/net-misc/asterisk-chan_capi-cm/Manifest
new file mode 100644
index 000000000000..1c29dc8aa075
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/Manifest
@@ -0,0 +1,9 @@
+MD5 1b82b8c0faae43ff3e53418b6c4b0412 ChangeLog 885
+MD5 de41c503f05f5f99a8635b0e333729a5 metadata.xml 217
+MD5 dc0e3d685ff1fd09b5eb555f91b1b5c6 asterisk-chan_capi-cm-0.5.2.ebuild 1277
+MD5 638b29011d5aa2a04c9ae5a706d16b89 files/digest-chan_capi-0.3.5 66
+MD5 1e4bba4e8f386ad925da084174d4a5e2 files/digest-asterisk-chan_capi-0.3.5 138
+MD5 20866dceae16bdac07ffa8b6f8aa2986 files/chan_capi-0.3.5-gentoo.diff 1113
+MD5 e5aae4f4a5d2ebec655dcab65ef0fac4 files/chan_capi-0.4.0_pre1-fixstable.diff 500
+MD5 5fb008e4edf8bc00ef1dc2d54d7e3f82 files/digest-asterisk-chan_capi-0.4.0_pre1 71
+MD5 b22af51b0867cdbd91f0659d2aba14f1 files/digest-asterisk-chan_capi-cm-0.5.2 69
diff --git a/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.5.2.ebuild b/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.5.2.ebuild
new file mode 100644
index 000000000000..2099b16bd3f1
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.5.2.ebuild
@@ -0,0 +1,61 @@
+# 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.5.2.ebuild,v 1.1 2005/06/27 22:30:00 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="~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.3.5-gentoo.diff
+
+ # compile for asterisk-stable
+ sed -i -e "s:^\(CFLAGS+=-DCVS_HEAD\):#\1:" \
+ Makefile
+}
+
+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 [[ -z "$(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.3.5-gentoo.diff b/net-misc/asterisk-chan_capi-cm/files/chan_capi-0.3.5-gentoo.diff
new file mode 100644
index 000000000000..397d447099d6
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/files/chan_capi-0.3.5-gentoo.diff
@@ -0,0 +1,24 @@
+--- chan_capi-0.3.5/Makefile.orig 2005-01-30 00:02:33.258038984 +0000
++++ chan_capi-0.3.5/Makefile 2005-01-30 00:08:34.078185984 +0000
+@@ -24,9 +24,7 @@
+
+ DEBUG=-g #-pg
+ INCLUDE=-I$(ASTERISK_HEADER_DIR)
+-CFLAGS=-pipe -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+=-fPIC -DPIC -pipe -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)
+
+ # uncomment the following line if you really never ever want early b3 connects,
+@@ -78,8 +76,10 @@
+ $(CC) -shared -Xlinker -x -o $@ chan_capi.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/
+
diff --git a/net-misc/asterisk-chan_capi-cm/files/digest-asterisk-chan_capi-cm-0.5.2 b/net-misc/asterisk-chan_capi-cm/files/digest-asterisk-chan_capi-cm-0.5.2
new file mode 100644
index 000000000000..4b522b8b5c82
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/files/digest-asterisk-chan_capi-cm-0.5.2
@@ -0,0 +1 @@
+MD5 af7e1431a65f934ba25213417cfb2f29 chan_capi-cm-0.5.2.tar.gz 47588
diff --git a/net-misc/asterisk-chan_capi-cm/metadata.xml b/net-misc/asterisk-chan_capi-cm/metadata.xml
new file mode 100644
index 000000000000..a3cddc42f9cc
--- /dev/null
+++ b/net-misc/asterisk-chan_capi-cm/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>