/[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 - (hide 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 halcy0n 1.4 # Copyright 1999-2011 Gentoo Foundation
2 stkn 1.1 # Distributed under the terms of the GNU General Public License v2
3 halcy0n 1.4 # $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 stkn 1.1
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 halcy0n 1.4 KEYWORDS="~x86"
17 ssuominen 1.2 IUSE=""
18 stkn 1.1
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 ssuominen 1.3 cd "${S}"
27 stkn 1.1
28     # use asterisk-config
29 ssuominen 1.3 epatch "${FILESDIR}"/${MY_PN}-20050626-astcfg.diff
30 stkn 1.1
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 ssuominen 1.3 doins "${FILESDIR}"/cdr.conf
46 stkn 1.1
47     # fix permissions
48 ssuominen 1.3 chown -R root:asterisk "${D}"etc/asterisk
49     chmod -R u=rwX,g=rX,o= "${D}"etc/asterisk
50 stkn 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20