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

Contents of /net-misc/asterisk-chan_capi/asterisk-chan_capi-0.4.0_pre1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Oct 26 22:42:29 2008 UTC (11 years, 1 month ago) by sbriesen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
version bump, removing old versions.
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 i686)

1 # Copyright 1999-2007 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-0.4.0_pre1.ebuild,v 1.5 2007/01/06 16:50:51 drizzt Exp $
4
5 IUSE=""
6
7 inherit eutils
8
9 MY_P="chan_capi-${PV/_pre/-PRE}"
10
11 DESCRIPTION="CAPI2.0 channel module for Asterisk"
12 HOMEPAGE="http://www.junghanns.net/asterisk/"
13 SRC_URI="http://www.junghanns.net/asterisk/downloads/${MY_P}.tar.gz"
14 # fax? ( http://mlkj.net/asterisk/${MY_P}-patch.tar.bz2 )"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~x86 ~ppc"
19
20 DEPEND=">=net-misc/asterisk-1.0.5-r1
21 !>=net-misc/asterisk-1.1.0
22 net-dialup/capi4k-utils"
23
24 S="${WORKDIR}"/${MY_P}
25
26 src_unpack() {
27 unpack ${A}
28
29 cd "${S}"
30 epatch "${FILESDIR}"/chan_capi-0.3.5-gentoo.diff
31 epatch "${FILESDIR}"/chan_capi-${PV}-fixstable.diff
32
33 # compile for asterisk-stable
34 sed -i -e "s:^\(CFLAGS+=-DCVS_HEAD\):#\1:" \
35 Makefile
36
37 # if use fax; then
38 # einfo "Enabling fax support"
39 # epatch "${WORKDIR}"/chan_capi.diff
40 # cp "${WORKDIR}"/app_capiFax.c "${S}"
41 # fi
42 }
43
44 src_compile() {
45 emake || die "emake failed"
46 }
47
48 src_install() {
49 make INSTALL_PREFIX="${D}" install config || die "make install failed"
50
51 dodoc INSTALL LICENSE README capi.conf
52 }
53
54 pkg_postinst() {
55 elog "Please don't forget to enable chan_capi in your /etc/asterisk/modules.conf:"
56 echo
57 elog "load => chan_capi.so"
58 echo
59 elog "and in the global section:"
60 elog "chan_capi.so=yes"
61 echo
62 elog "(see /usr/share/doc/${PF} for more information)"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20