diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2005-09-21 12:39:08 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2005-09-21 12:39:08 +0000 |
commit | 7cb3f283acd4b795e050fd6484a0ec0ae1311289 (patch) | |
tree | bfd9d94756fe921ba5da55a0937db218857d52fa /net-misc | |
parent | stable on amd64 wrt bug #106678 (diff) | |
download | gentoo-2-7cb3f283acd4b795e050fd6484a0ec0ae1311289.tar.gz gentoo-2-7cb3f283acd4b795e050fd6484a0ec0ae1311289.tar.bz2 gentoo-2-7cb3f283acd4b795e050fd6484a0ec0ae1311289.zip |
Version bump. Lots of cleanups, bugfixes and new features.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc')
4 files changed, 97 insertions, 1 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/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 |