/[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.2 - (hide annotations) (download)
Thu Oct 28 09:44:17 2010 UTC (8 years, 11 months ago) by ssuominen
Branch: MAIN
Changes since 1.1: +3 -2 lines
missing iuse

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

1 ssuominen 1.2 # Copyright 1999-2010 Gentoo Foundation
2 stkn 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-cdr_shell/asterisk-cdr_shell-20060120.ebuild,v 1.1 2006/05/06 15:16:25 stkn 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     KEYWORDS="~ppc ~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     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