/[gentoo-x86]/net-misc/asterisk-chan_capi/asterisk-chan_capi-1.1.1.ebuild
Gentoo

Contents of /net-misc/asterisk-chan_capi/asterisk-chan_capi-1.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 31 18:59:28 2009 UTC (9 years, 11 months ago) by tgurr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, remove older broken ones wrt bug #298872. Tested using Asterisk 1.6.1.6 and a Dialogic Diva V-PRI/E1-30 PCI v3 card.
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi/asterisk-chan_capi-1.1.1.ebuild,v 1.1 2008/10/26 22:42:29 sbriesen Exp $
4
5 inherit eutils
6
7 DESCRIPTION="CAPI 2.0 channel module for Asterisk"
8 HOMEPAGE="http://www.melware.org/ChanCapi"
9 SRC_URI="ftp://ftp.chan-capi.org/chan-capi/${P/asterisk-}.tar.gz"
10
11 SLOT="0"
12 LICENSE="GPL-2"
13 KEYWORDS="~amd64 ~ppc ~x86"
14
15 RDEPEND=">=net-misc/asterisk-1.2.0
16 net-dialup/capi4k-utils"
17
18 DEPEND="${RDEPEND}
19 sys-apps/sed"
20
21 S="${WORKDIR}/${P/asterisk-}"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26
27 # patch locations and compile flags
28 sed -i \
29 -e "s:^\(CFLAGS.*-O6.*\):# \1:g" \
30 -e "s:^\(CFLAGS.*-march=.*\):# \1:g" \
31 -e "s:/usr/lib/:/usr/$(get_libdir)/:g" \
32 -e "s:\(-shared\):\$(LDFLAGS) \1:g" Makefile
33 }
34
35 src_compile() {
36 emake V="1" CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" || die "emake failed"
37 }
38
39 src_install() {
40 emake AVERSION="" INSTALL_PREFIX="${D}" install install_config || die "emake install failed"
41 newdoc libcapi20/README README.capi20
42 dodoc CHANGES README* capi.conf
43
44 # fix permissions
45 if [ -n "$(egetent group asterisk)" ]; then
46 chown -R root:asterisk "${D}etc/asterisk/capi.conf"
47 chmod -R u=rwX,g=rX,o= "${D}etc/asterisk/capi.conf"
48 fi
49 }
50
51 pkg_postinst() {
52 elog
53 elog "Please don't forget to enable chan_capi in"
54 elog "your /etc/asterisk/modules.conf:"
55 elog
56 elog " load => chan_capi.so"
57 elog
58 elog "and in the [global] section:"
59 elog
60 elog " chan_capi.so=yes"
61 elog
62 elog "Don't forget a trailing newline at the end of modules.conf!"
63 elog "See /usr/share/doc/${PF} for more information."
64 elog
65 }

  ViewVC Help
Powered by ViewVC 1.1.20