/[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.1 - (hide annotations) (download)
Sat May 6 15:16:25 2006 UTC (13 years, 5 months ago) by stkn
Branch: MAIN
Version bump, 20060120 verified to compile with asterisk-1.2.x, block unsupported versions in DEPEND.
(Portage version: 2.1_pre10)

1 stkn 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
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="~ppc ~x86"
17    
18     DEPEND=">=net-misc/asterisk-1.2.0
19     !=net-misc/asterisk-1.0*"
20    
21     S=${WORKDIR}/${MY_PN}
22    
23     src_unpack() {
24     unpack ${A}
25     cd ${S}
26    
27     # use asterisk-config
28     epatch ${FILESDIR}/${MY_PN}-20050626-astcfg.diff
29    
30     # <asterisk.h> -> <asterisk/asterisk.h>
31     sed -i -e "s:<asterisk\.h>:<asterisk/asterisk.h>:" \
32     cdr_shell.c
33     }
34    
35     src_compile() {
36     emake -j1 || die "make failed"
37     }
38    
39     src_install() {
40     insinto /usr/$(get_libdir)/asterisk/modules
41     doins cdr_shell.so
42    
43     insinto /etc/asterisk
44     doins ${FILESDIR}/cdr.conf
45    
46     # fix permissions
47     chown -R root:asterisk ${D}etc/asterisk
48     chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
49     }

  ViewVC Help
Powered by ViewVC 1.1.20