diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2006-10-09 00:51:11 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2006-10-09 00:51:11 +0000 |
commit | ab1f743345207fa1afa1f4bfd00b073d4b917e44 (patch) | |
tree | 7253c043f1f42e736f31661ff2856f204bea757c /net-misc/asterisk-chan_capi | |
parent | Updating deps wrt bug #143033 (diff) | |
download | gentoo-2-ab1f743345207fa1afa1f4bfd00b073d4b917e44.tar.gz gentoo-2-ab1f743345207fa1afa1f4bfd00b073d4b917e44.tar.bz2 gentoo-2-ab1f743345207fa1afa1f4bfd00b073d4b917e44.zip |
first step to remove chan_capi-cm from portage: version bump with new name, replacing obsolete original chan_capi from Junghanns. major ebuild cleanup, if you have problems with it please report via bugzilla.
(Portage version: 2.1.2_pre2-r5)
Diffstat (limited to 'net-misc/asterisk-chan_capi')
-rw-r--r-- | net-misc/asterisk-chan_capi/ChangeLog | 12 | ||||
-rw-r--r-- | net-misc/asterisk-chan_capi/asterisk-chan_capi-0.7.1.ebuild | 63 | ||||
-rw-r--r-- | net-misc/asterisk-chan_capi/files/digest-asterisk-chan_capi-0.7.1 | 3 |
3 files changed, 76 insertions, 2 deletions
diff --git a/net-misc/asterisk-chan_capi/ChangeLog b/net-misc/asterisk-chan_capi/ChangeLog index 90fb2ce18504..a94e02eaaa55 100644 --- a/net-misc/asterisk-chan_capi/ChangeLog +++ b/net-misc/asterisk-chan_capi/ChangeLog @@ -1,6 +1,14 @@ # 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.5 2005/08/16 16:30:33 stkn Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi/ChangeLog,v 1.6 2006/10/09 00:51:11 sbriesen Exp $ + +*asterisk-chan_capi-0.7.1 (09 Oct 2006) + + 09 Oct 2006; Stefan Briesenick <sbriesen@gentoo.org> + +asterisk-chan_capi-0.7.1.ebuild: + first step to remove chan_capi-cm from portage: version bump with new name, + replacing obsolete original chan_capi from Junghanns. major ebuild cleanup, + if you have problems with it please report via bugzilla. 16 Aug 2005; Stefan Knoblich <stkn@gentoo.org> asterisk-chan_capi-0.3.5.ebuild, asterisk-chan_capi-0.4.0_pre1.ebuild: diff --git a/net-misc/asterisk-chan_capi/asterisk-chan_capi-0.7.1.ebuild b/net-misc/asterisk-chan_capi/asterisk-chan_capi-0.7.1.ebuild new file mode 100644 index 000000000000..5e4e976ff104 --- /dev/null +++ b/net-misc/asterisk-chan_capi/asterisk-chan_capi-0.7.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2006 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.7.1.ebuild,v 1.1 2006/10/09 00:51:11 sbriesen Exp $ + +inherit eutils toolchain-funcs + +MY_P="${P/asterisk-}" + +DESCRIPTION="CAPI 2.0 channel module for Asterisk" +HOMEPAGE="http://www.melware.org/ChanCapi" +SRC_URI="ftp://ftp.chan-capi.org/chan-capi/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="!net-misc/asterisk-chan_capi-cm + >=net-misc/asterisk-1.2.0 + net-dialup/capi4k-utils" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + + # patch locations and compile flags + sed -i -e "s:^\(CFLAGS.*-march=.*\):# \1:g" -e "s:^\(CFLAGS.*-O6.*\):# \1:g" \ + -e "s:^\(MODULES_DIR=[^/]*\).*:\1/usr/$(get_libdir)/asterisk/modules:g" \ + -e "s:^\(ASTERISK_HEADER_DIR=[^/]*\).*:\1/usr/include:g" \ + -e "s:^\(CONFIG_DIR=[^/]*\).*:\1/etc/asterisk:g" \ + -e "s:\(-shared\):\$(LDFLAGS) \1:g" Makefile +} + +src_compile() { + emake OPTIMIZE="${CFLAGS}" || die "emake failed" +} + +src_install() { + make INSTALL_PREFIX="${D}" install install_config || die "make install failed" + dodoc CHANGES INSTALL 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 + einfo "Please don't forget to enable chan_capi in" + einfo "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)" + einfo +} diff --git a/net-misc/asterisk-chan_capi/files/digest-asterisk-chan_capi-0.7.1 b/net-misc/asterisk-chan_capi/files/digest-asterisk-chan_capi-0.7.1 new file mode 100644 index 000000000000..6e338b804405 --- /dev/null +++ b/net-misc/asterisk-chan_capi/files/digest-asterisk-chan_capi-0.7.1 @@ -0,0 +1,3 @@ +MD5 2e9809373b30932293295dd9f759d6cb chan_capi-0.7.1.tar.gz 258576 +RMD160 ba6c5e97aec5d82e84f9dee2167f7debd7bbdc1d chan_capi-0.7.1.tar.gz 258576 +SHA256 3656e449b1d81024f3484b5980209cbc1acd12afe326957b14e241baeba8de60 chan_capi-0.7.1.tar.gz 258576 |