Gentoo Archives: gentoo-commits

From: "Timo Gurr (tgurr)" <tgurr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/asterisk-chan_capi: asterisk-chan_capi-1.1.4.ebuild ChangeLog asterisk-chan_capi-0.7.1.ebuild asterisk-chan_capi-1.1.1.ebuild
Date: Thu, 31 Dec 2009 18:59:33
Message-Id: E1NQQF7-0007wi-57@stork.gentoo.org
1 tgurr 09/12/31 18:59:29
2
3 Modified: ChangeLog
4 Added: asterisk-chan_capi-1.1.4.ebuild
5 Removed: asterisk-chan_capi-0.7.1.ebuild
6 asterisk-chan_capi-1.1.1.ebuild
7 Log:
8 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.
9 (Portage version: 2.2_rc61/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.11 net-misc/asterisk-chan_capi/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-chan_capi/ChangeLog?rev=1.11&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-chan_capi/ChangeLog?rev=1.11&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-chan_capi/ChangeLog?r1=1.10&r2=1.11
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi/ChangeLog,v
21 retrieving revision 1.10
22 retrieving revision 1.11
23 diff -u -r1.10 -r1.11
24 --- ChangeLog 26 Oct 2008 22:42:29 -0000 1.10
25 +++ ChangeLog 31 Dec 2009 18:59:28 -0000 1.11
26 @@ -1,6 +1,14 @@
27 # ChangeLog for net-misc/asterisk-chan_capi
28 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi/ChangeLog,v 1.10 2008/10/26 22:42:29 sbriesen Exp $
30 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi/ChangeLog,v 1.11 2009/12/31 18:59:28 tgurr Exp $
32 +
33 +*asterisk-chan_capi-1.1.4 (31 Dec 2009)
34 +
35 + 31 Dec 2009; Timo Gurr <tgurr@g.o>
36 + -asterisk-chan_capi-0.7.1.ebuild, -asterisk-chan_capi-1.1.1.ebuild,
37 + +asterisk-chan_capi-1.1.4.ebuild:
38 + Version bump, remove older broken ones wrt bug #298872. Tested using
39 + Asterisk 1.6.1.6 and a Dialogic Diva V-PRI/E1-30 PCI v3 card.
40
41 *asterisk-chan_capi-1.1.1 (26 Oct 2008)
42
43
44
45
46 1.1 net-misc/asterisk-chan_capi/asterisk-chan_capi-1.1.4.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-chan_capi/asterisk-chan_capi-1.1.4.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-chan_capi/asterisk-chan_capi-1.1.4.ebuild?rev=1.1&content-type=text/plain
50
51 Index: asterisk-chan_capi-1.1.4.ebuild
52 ===================================================================
53 # Copyright 1999-2009 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi/asterisk-chan_capi-1.1.4.ebuild,v 1.1 2009/12/31 18:59:28 tgurr Exp $
56
57 inherit eutils
58
59 DESCRIPTION="CAPI 2.0 channel module for Asterisk"
60 HOMEPAGE="http://www.melware.org/ChanCapi"
61 SRC_URI="ftp://ftp.chan-capi.org/chan-capi/${P/asterisk-}.tar.gz"
62
63 SLOT="0"
64 LICENSE="GPL-2"
65 KEYWORDS="~amd64 ~ppc ~x86"
66 IUSE=""
67
68 RDEPEND=">=net-misc/asterisk-1.2.0
69 net-dialup/capi4k-utils"
70
71 DEPEND="${RDEPEND}
72 sys-apps/sed"
73
74 S="${WORKDIR}/${P/asterisk-}"
75
76 src_unpack() {
77 unpack ${A}
78 cd "${S}"
79
80 # patch locations and compile flags
81 sed -i \
82 -e "s:^\(CFLAGS.*-O6.*\):# \1:g" \
83 -e "s:^\(CFLAGS.*-march=.*\):# \1:g" \
84 -e "s:/usr/lib/:/usr/$(get_libdir)/:g" \
85 -e "s:\(-shared\):\$(LDFLAGS) \1:g" Makefile || die "sed failed"
86 }
87
88 src_compile() {
89 emake V="1" CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" || die "emake failed"
90 }
91
92 src_install() {
93 emake AVERSION="" INSTALL_PREFIX="${D}" install install_config || die "emake install failed"
94 newdoc libcapi20/README README.capi20 || die "newdoc failed"
95 dodoc CHANGES README* capi.conf || die "dodoc failed"
96
97 # fix permissions
98 if [ -n "$(egetent group asterisk)" ]; then
99 chown -R root:asterisk "${D}etc/asterisk/capi.conf"
100 chmod -R u=rwX,g=rX,o= "${D}etc/asterisk/capi.conf"
101 fi
102 }
103
104 pkg_postinst() {
105 elog
106 elog "Please don't forget to enable chan_capi in"
107 elog "your /etc/asterisk/modules.conf:"
108 elog
109 elog " load => chan_capi.so"
110 elog
111 elog "and in the [global] section:"
112 elog
113 elog " chan_capi.so=yes"
114 elog
115 elog "Don't forget a trailing newline at the end of modules.conf!"
116 elog "See /usr/share/doc/${PF} for more information."
117 elog
118 }