From: | "Tony Vroon (chainsaw)" <chainsaw@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/asterisk-moh-opsound: metadata.xml ChangeLog asterisk-moh-opsound-2.03.ebuild |
Date: | Fri, 20 Aug 2010 23:12:58 |
Message-Id: | 20100820231253.265722004E@flycatcher.gentoo.org |
1 | chainsaw 10/08/20 23:12:53 |
2 | |
3 | Added: metadata.xml ChangeLog |
4 | asterisk-moh-opsound-2.03.ebuild |
5 | Log: |
6 | Initial commit, ebuild by Jaco Kroon. For bug #328513. |
7 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-misc/asterisk-moh-opsound/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-moh-opsound/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-moh-opsound/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>voip</herd> |
21 | <maintainer> |
22 | <email>chainsaw@g.o</email> |
23 | <name>Tony Vroon</name> |
24 | </maintainer> |
25 | <use> |
26 | <flag name="alaw">Install the sounds files for the alaw codec.</flag> |
27 | <flag name="g722">Install the sounds files for the g722 codec.</flag> |
28 | <flag name="g729">Install the sounds files for the g729 codec.</flag> |
29 | <flag name="gsm">Install the sounds files for the +gsm codec.</flag> |
30 | <flag name="siren7">Install the sounds files for the siren7 codec.</flag> |
31 | <flag name="siren14">Install the sounds files for the siren14 codec.</flag> |
32 | <flag name="sln16">Install the sounds files for the sln16 codec.</flag> |
33 | <flag name="ulaw">Install the sounds files for the ulaw codec.</flag> |
34 | <flag name="wav">Install the sounds files for the wav codec.</flag> |
35 | </use> |
36 | </pkgmetadata> |
37 | |
38 | |
39 | |
40 | 1.1 net-misc/asterisk-moh-opsound/ChangeLog |
41 | |
42 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-moh-opsound/ChangeLog?rev=1.1&view=markup |
43 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-moh-opsound/ChangeLog?rev=1.1&content-type=text/plain |
44 | |
45 | Index: ChangeLog |
46 | =================================================================== |
47 | # ChangeLog for net-misc/asterisk-moh-opsound |
48 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
49 | # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-moh-opsound/ChangeLog,v 1.1 2010/08/20 23:12:53 chainsaw Exp $ |
50 | |
51 | *asterisk-moh-opsound-2.03 (20 Aug 2010) |
52 | |
53 | 20 Aug 2010; <chainsaw@g.o> +asterisk-moh-opsound-2.03.ebuild, |
54 | +metadata.xml: |
55 | Initial commit, ebuild by Jaco Kroon. For bug #328513. |
56 | |
57 | |
58 | |
59 | |
60 | 1.1 net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild |
61 | |
62 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild?rev=1.1&view=markup |
63 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild?rev=1.1&content-type=text/plain |
64 | |
65 | Index: asterisk-moh-opsound-2.03.ebuild |
66 | =================================================================== |
67 | # Copyright 1999-2010 Gentoo Foundation |
68 | # Distributed under the terms of the GNU General Public License v2 |
69 | # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild,v 1.1 2010/08/20 23:12:53 chainsaw Exp $ |
70 | |
71 | EAPI="2" |
72 | |
73 | DESCRIPTION="asterisk moh music" |
74 | HOMEPAGE="http://www.asterisk.org/" |
75 | CODECS="alaw g722 g729 +gsm siren7 siren14 sln16 ulaw wav" |
76 | |
77 | SRC_URI="" |
78 | for c in ${CODECS}; do |
79 | SRC_URI+=" ${c#+}? ( http://downloads.asterisk.org/pub/telephony/sounds/releases/${PN}-${c#+}-${PV}.tar.gz )" |
80 | done |
81 | |
82 | IUSE="${CODECS}" |
83 | LICENSE="CCPL-Attribution-ShareAlike-3.0" |
84 | SLOT="0" |
85 | KEYWORDS="~amd64 ~x86" |
86 | |
87 | DEPEND=">=net-misc/asterisk-1.6.2.11-r1" |
88 | |
89 | src_install() { |
90 | local c |
91 | |
92 | for c in ${CODECS}; do |
93 | if use ${c#+}; then |
94 | for pf in CREDITS LICENSE CHANGES; do |
95 | dodoc "$pf-$PN-${c#+}" |
96 | rm "$pf-$PN-${c#+}" |
97 | done |
98 | fi |
99 | done |
100 | |
101 | diropts -m 0770 -o asterisk -g asterisk |
102 | insopts -m 0660 -o asterisk -g asterisk |
103 | |
104 | dodir /var/lib/asterisk/moh |
105 | insinto /var/lib/asterisk/moh |
106 | doins -r . |
107 | |
108 | } |
109 | |
110 | pkg_postinst() { |
111 | local c has_once_codec= |
112 | |
113 | for c in ${CODECS}; do |
114 | use ${c#+} && has_one_codec=1 |
115 | done |
116 | |
117 | [ -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." |
118 | } |