/[gentoo-x86]/net-misc/asterisk-cdr_shell/asterisk-cdr_shell-20060120.ebuild
Gentoo

Contents of /net-misc/asterisk-cdr_shell/asterisk-cdr_shell-20060120.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun May 1 00:40:04 2011 UTC (8 years, 5 months ago) by halcy0n
Branch: MAIN
Changes since 1.3: +3 -3 lines
Dropping ppc since there is no asterisk keyworded anymore

(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-cdr_shell/asterisk-cdr_shell-20060120.ebuild,v 1.3 2010/10/28 09:45:57 ssuominen Exp $
4
5 inherit eutils toolchain-funcs
6
7 MY_PN="cdr_shell"
8
9 DESCRIPTION="Asterisk plugin to use an external shell script for cdr handling"
10 HOMEPAGE="http://www.pbxfreeware.org/"
11 SRC_URI="http://www.netdomination.org/pub/asterisk/${P}.tar.bz2
12 mirror://gentoo/${P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~x86"
17 IUSE=""
18
19 DEPEND=">=net-misc/asterisk-1.2.0
20 !=net-misc/asterisk-1.0*"
21
22 S=${WORKDIR}/${MY_PN}
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27
28 # use asterisk-config
29 epatch "${FILESDIR}"/${MY_PN}-20050626-astcfg.diff
30
31 # <asterisk.h> -> <asterisk/asterisk.h>
32 sed -i -e "s:<asterisk\.h>:<asterisk/asterisk.h>:" \
33 cdr_shell.c
34 }
35
36 src_compile() {
37 emake -j1 || die "make failed"
38 }
39
40 src_install() {
41 insinto /usr/$(get_libdir)/asterisk/modules
42 doins cdr_shell.so
43
44 insinto /etc/asterisk
45 doins "${FILESDIR}"/cdr.conf
46
47 # fix permissions
48 chown -R root:asterisk "${D}"etc/asterisk
49 chmod -R u=rwX,g=rX,o= "${D}"etc/asterisk
50 }

  ViewVC Help
Powered by ViewVC 1.1.20