diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2005-02-21 01:32:39 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2005-02-21 01:32:39 +0000 |
commit | ccd9620cac2c01155e6e1d1fb1e962bd2d93cc89 (patch) | |
tree | 5c4d096ce6b9889754caec3a6869ad863fe52512 /net-misc/asterisk-chan_capi | |
parent | Add ~amd64. (diff) | |
download | historical-ccd9620cac2c01155e6e1d1fb1e962bd2d93cc89.tar.gz historical-ccd9620cac2c01155e6e1d1fb1e962bd2d93cc89.tar.bz2 historical-ccd9620cac2c01155e6e1d1fb1e962bd2d93cc89.zip |
Initial import
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'net-misc/asterisk-chan_capi')
6 files changed, 98 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..7e0cc9c3b6f3 --- /dev/null +++ b/net-misc/asterisk-chan_capi/Manifest @@ -0,0 +1,5 @@ +MD5 015f5e120080cde3cedc62e64c6f7825 asterisk-chan_capi-0.3.5.ebuild 1141 +MD5 de41c503f05f5f99a8635b0e333729a5 metadata.xml 217 +MD5 8d12e0a4774db939301995bd295d768a ChangeLog 421 +MD5 638b29011d5aa2a04c9ae5a706d16b89 files/digest-asterisk-chan_capi-0.3.5 66 +MD5 20866dceae16bdac07ffa8b6f8aa2986 files/chan_capi-0.3.5-gentoo.diff 1113 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> |