summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-02-21 01:32:39 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-02-21 01:32:39 +0000
commitb9ce6758ee172872b7d70cd946f1d49e7f66f7f3 (patch)
treef2b9226af113b952cd7020d84ba678c2f473f949 /net-misc/asterisk-chan_capi
parentAdd ~amd64. (diff)
downloadgentoo-2-b9ce6758ee172872b7d70cd946f1d49e7f66f7f3.tar.gz
gentoo-2-b9ce6758ee172872b7d70cd946f1d49e7f66f7f3.tar.bz2
gentoo-2-b9ce6758ee172872b7d70cd946f1d49e7f66f7f3.zip
Initial import
(Portage version: 2.0.51-r15)
Diffstat (limited to 'net-misc/asterisk-chan_capi')
-rw-r--r--net-misc/asterisk-chan_capi/ChangeLog10
-rw-r--r--net-misc/asterisk-chan_capi/Manifest3
-rw-r--r--net-misc/asterisk-chan_capi/asterisk-chan_capi-0.3.5.ebuild50
-rw-r--r--net-misc/asterisk-chan_capi/files/chan_capi-0.3.5-gentoo.diff24
-rw-r--r--net-misc/asterisk-chan_capi/files/digest-asterisk-chan_capi-0.3.51
-rw-r--r--net-misc/asterisk-chan_capi/metadata.xml8
6 files changed, 96 insertions, 0 deletions
diff --git a/net-misc/asterisk-chan_capi/ChangeLog b/net-misc/asterisk-chan_capi/ChangeLog
new file mode 100644
index 000000000000..c017436817c5
--- /dev/null
+++ b/net-misc/asterisk-chan_capi/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/asterisk-chan_capi
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi/ChangeLog,v 1.1 2005/02/21 01:32:39 stkn Exp $
+
+*asterisk-chan_capi-0.3.5 (21 Feb 2005)
+
+ 21 Feb 2005; Stefan Knoblich <stkn@gentoo.org> +metadata.xml,
+ +files/chan_capi-0.3.5-gentoo.diff, +asterisk-chan_capi-0.3.5.ebuild:
+ Initial import.
+
diff --git a/net-misc/asterisk-chan_capi/Manifest b/net-misc/asterisk-chan_capi/Manifest
new file mode 100644
index 000000000000..874c0c2e4b61
--- /dev/null
+++ b/net-misc/asterisk-chan_capi/Manifest
@@ -0,0 +1,3 @@
+MD5 4373d0f64378ebf6ee928840981d97fe asterisk-chan_capi-0.3.5.ebuild 521
+MD5 638b29011d5aa2a04c9ae5a706d16b89 files/digest-chan_capi-0.3.5 66
+MD5 638b29011d5aa2a04c9ae5a706d16b89 files/digest-asterisk-chan_capi-0.3.5 66
diff --git a/net-misc/asterisk-chan_capi/asterisk-chan_capi-0.3.5.ebuild b/net-misc/asterisk-chan_capi/asterisk-chan_capi-0.3.5.ebuild
new file mode 100644
index 000000000000..476bdc50537e
--- /dev/null
+++ b/net-misc/asterisk-chan_capi/asterisk-chan_capi-0.3.5.ebuild
@@ -0,0 +1,50 @@
+# 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/asterisk-chan_capi-0.3.5.ebuild,v 1.1 2005/02/21 01:32:39 stkn Exp $
+
+inherit eutils
+
+MY_PN="chan_capi"
+
+DESCRIPTION="CAPI2.0 channel module for Asterisk"
+HOMEPAGE="http://www.junghanns.net/asterisk/"
+SRC_URI="http://www.junghanns.net/asterisk/downloads/${MY_PN}.${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND=">=net-misc/asterisk-1.0.5-r1
+ net-dialup/capi4k-utils"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${MY_PN}-${PV}-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
+}
+
+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/files/chan_capi-0.3.5-gentoo.diff b/net-misc/asterisk-chan_capi/files/chan_capi-0.3.5-gentoo.diff
new file mode 100644
index 000000000000..397d447099d6
--- /dev/null
+++ b/net-misc/asterisk-chan_capi/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/files/digest-asterisk-chan_capi-0.3.5 b/net-misc/asterisk-chan_capi/files/digest-asterisk-chan_capi-0.3.5
new file mode 100644
index 000000000000..93626395ab32
--- /dev/null
+++ b/net-misc/asterisk-chan_capi/files/digest-asterisk-chan_capi-0.3.5
@@ -0,0 +1 @@
+MD5 516a053b9c49204da8fa625866e9e1c3 chan_capi.0.3.5.tar.gz 40825
diff --git a/net-misc/asterisk-chan_capi/metadata.xml b/net-misc/asterisk-chan_capi/metadata.xml
new file mode 100644
index 000000000000..a3cddc42f9cc
--- /dev/null
+++ b/net-misc/asterisk-chan_capi/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>