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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-cdr_shell/Attic/asterisk-cdr_shell-20060120.ebuild,v 1.2 2010/10/28 09:44:17 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-cdr_shell/Attic/asterisk-cdr_shell-20060120.ebuild,v 1.3 2010/10/28 09:45:57 ssuominen Exp $
4 4
5inherit eutils toolchain-funcs 5inherit eutils toolchain-funcs
6 6
7MY_PN="cdr_shell" 7MY_PN="cdr_shell"
8 8
21 21
22S=${WORKDIR}/${MY_PN} 22S=${WORKDIR}/${MY_PN}
23 23
24src_unpack() { 24src_unpack() {
25 unpack ${A} 25 unpack ${A}
26 cd ${S} 26 cd "${S}"
27 27
28 # use asterisk-config 28 # use asterisk-config
29 epatch ${FILESDIR}/${MY_PN}-20050626-astcfg.diff 29 epatch "${FILESDIR}"/${MY_PN}-20050626-astcfg.diff
30 30
31 # <asterisk.h> -> <asterisk/asterisk.h> 31 # <asterisk.h> -> <asterisk/asterisk.h>
32 sed -i -e "s:<asterisk\.h>:<asterisk/asterisk.h>:" \ 32 sed -i -e "s:<asterisk\.h>:<asterisk/asterisk.h>:" \
33 cdr_shell.c 33 cdr_shell.c
34} 34}
40src_install() { 40src_install() {
41 insinto /usr/$(get_libdir)/asterisk/modules 41 insinto /usr/$(get_libdir)/asterisk/modules
42 doins cdr_shell.so 42 doins cdr_shell.so
43 43
44 insinto /etc/asterisk 44 insinto /etc/asterisk
45 doins ${FILESDIR}/cdr.conf 45 doins "${FILESDIR}"/cdr.conf
46 46
47 # fix permissions 47 # fix permissions
48 chown -R root:asterisk ${D}etc/asterisk 48 chown -R root:asterisk "${D}"etc/asterisk
49 chmod -R u=rwX,g=rX,o= ${D}etc/asterisk 49 chmod -R u=rwX,g=rX,o= "${D}"etc/asterisk
50} 50}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20