/[gentoo-x86]/net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild
Gentoo

Contents of /net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon Feb 28 22:35:29 2011 UTC (8 years, 9 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Remove package dependent on Asterisk 1.0; this has been unusable for a very long time.

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_icd/asterisk-app_icd-1.0.0.ebuild,v 1.8 2010/10/28 09:49:41 ssuominen Exp $
4
5 EAPI=2
6 inherit eutils
7
8 MY_PN="icd"
9
10 DESCRIPTION="ICD (Intelligent Call Distributor) application plugin for Asterisk"
11 HOMEPAGE="http://icd.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}-${PV}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ppc x86"
17 IUSE="debug"
18
19 RDEPEND=">=net-misc/asterisk-1.0.7-r1
20 >=net-misc/zaptel-1.0.7-r1
21 !>=net-misc/asterisk-1.2.0"
22 DEPEND="${RDEPEND}"
23
24 S=${WORKDIR}/${MY_PN}-${PV}
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${P}-gentoo.diff
28
29 # asterisk + bristuff
30 if has_version net-misc/asterisk[bri]; then
31 epatch "${FILESDIR}"/${P}-bristuff.diff
32 fi
33
34 # fix segfault in config parser (patch sent upstream)
35 epatch "${FILESDIR}"/${P}-configsegv.diff
36 }
37
38 src_compile() {
39 local myconf
40
41 use debug && \
42 myconf="${myconf} DEBUG=1"
43
44 emake CFLAGS="${CFLAGS}" \
45 .sqlite || die "Building sqlite failed"
46
47 emake \
48 ${myconf} || die "emake failed"
49 }
50
51 src_install() {
52 make INSTALL_PREFIX="${D}" install || die
53
54 insinto /etc/asterisk
55 newins icd_config/extensions.conf.sample extensions.conf.icd
56
57 chmod -R 750 "${D}"/etc/asterisk
58 chown -R root:asterisk "${D}"/etc/asterisk
59
60 dodoc README README.memory BUGS *.txt
61 }
62
63 pkg_postinst() {
64 einfo "An example dialplan config for asterisk has been installed into:"
65 einfo " ${ROOT}/etc/asterisk/extensions.conf.icd"
66 einfo ""
67 einfo "See http://icd.sourceforge.net/ for more information"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20