/[gentoo-x86]/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild
Gentoo

Contents of /net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Feb 7 22:35:07 2013 UTC (6 years, 7 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
Move Creative Commons licenses to shorter names.

(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild,v 1.4 2011/02/27 19:03:14 chainsaw Exp $
4
5 EAPI="2"
6
7 DESCRIPTION="asterisk moh music"
8 HOMEPAGE="http://www.asterisk.org/"
9 CODECS="alaw g722 g729 +gsm siren7 siren14 sln16 ulaw wav"
10
11 SRC_URI=""
12 for c in ${CODECS}; do
13 SRC_URI+=" ${c#+}? ( http://downloads.asterisk.org/pub/telephony/sounds/releases/${PN}-${c#+}-${PV}.tar.gz )"
14 done
15
16 IUSE="${CODECS}"
17 LICENSE="CC-BY-SA-3.0"
18 SLOT="0"
19 KEYWORDS="amd64 x86"
20
21 DEPEND=">=net-misc/asterisk-1.4"
22
23 src_install() {
24 local c
25
26 for c in ${CODECS}; do
27 if use ${c#+}; then
28 for pf in CREDITS LICENSE CHANGES; do
29 dodoc "$pf-$PN-${c#+}"
30 rm "$pf-$PN-${c#+}"
31 done
32 fi
33 done
34
35 diropts -m 0770 -o asterisk -g asterisk
36 insopts -m 0660 -o asterisk -g asterisk
37
38 dodir /var/lib/asterisk/moh
39 insinto /var/lib/asterisk/moh
40 doins -r .
41
42 }
43
44 pkg_postinst() {
45 local c has_once_codec=
46
47 for c in ${CODECS}; do
48 use ${c#+} && has_one_codec=1
49 done
50
51 [ -n "${has_one_codec}" ] || ewarn "You have none of the codec use flags (${CODECS}) set. You need to have at least one set in order for this package to be useful."
52 }

  ViewVC Help
Powered by ViewVC 1.1.20