Line 0
Link Here
|
|
|
1 |
From 443cb57cd1f07a18fba6c11fdef45f11f0d4f689 Mon Sep 17 00:00:00 2001 |
2 |
From: Jaco Kroon <jaco@iewc.co.za> |
3 |
Date: Thu, 10 May 2018 17:53:47 +0200 |
4 |
Subject: [PATCH] asterisk-opus-13.0.1.3.0 ebuild |
5 |
|
6 |
This adds the opus codec provided by Digium for asterisk 13 to the tree. |
7 |
--- |
8 |
net-misc/asterisk-opus/Manifest | 2 + |
9 |
.../asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild | 47 ++++++++++++++++++++++ |
10 |
net-misc/asterisk-opus/metadata.xml | 16 ++++++++ |
11 |
3 files changed, 65 insertions(+) |
12 |
create mode 100644 net-misc/asterisk-opus/Manifest |
13 |
create mode 100644 net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild |
14 |
create mode 100644 net-misc/asterisk-opus/metadata.xml |
15 |
|
16 |
diff --git a/net-misc/asterisk-opus/Manifest b/net-misc/asterisk-opus/Manifest |
17 |
new file mode 100644 |
18 |
index 00000000000..87a613cab20 |
19 |
--- /dev/null |
20 |
+++ b/net-misc/asterisk-opus/Manifest |
21 |
@@ -0,0 +1,2 @@ |
22 |
+DIST codec_opus-13.0_1.3.0-x86_32.tar.gz 308059 BLAKE2B ec93fe29c030f2e63dffef882326c9f362e2a81c8de26eb04e96995c00acf965ea376555c0befa90bdf0f2592d40cc2e296abba720702a6cd7f6683f9784d533 SHA512 aa4aafa4c688a328eec81daafd0589fc3a25d22d374742a0500ca71763d4191a24b055e3eb6ecd9bd3a0556ef359ab9a8482b44e9c1633568136db4997284063 |
23 |
+DIST codec_opus-13.0_1.3.0-x86_64.tar.gz 343694 BLAKE2B ff43085aabbfc4f4082dc22f11b12d62ddb631b46df492baef8786a1f76cbc6b2828091867d40c77f0c268ed2ba50148fd6a1394493b595342da408d6746fe20 SHA512 0932006e8537ddee8c73b598bf04b6b552e1bf9527c65abdd6f7b8ff7ef677e251bc4fff55233e5d7e715f9ff5b928347618ed0d14a1f6bc9c6c728303593213 |
24 |
diff --git a/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild b/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..6106bd1b946 |
27 |
--- /dev/null |
28 |
+++ b/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild |
29 |
@@ -0,0 +1,47 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI="6" |
34 |
+ |
35 |
+inherit versionator multilib |
36 |
+ |
37 |
+DESCRIPTION="OPUS codec and supporting files for asterisk" |
38 |
+HOMEPAGE="https://wiki.asterisk.org/wiki/display/AST/Codec+Opus" |
39 |
+ |
40 |
+MY_PV=$(replace_version_separator 2 _) |
41 |
+AST_PV=${MY_PV%%_*} |
42 |
+ |
43 |
+SRC_URI="x86? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-32/codec_opus-${MY_PV}-x86_32.tar.gz ) |
44 |
+amd64? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-64/codec_opus-${MY_PV}-x86_64.tar.gz )" |
45 |
+ |
46 |
+LICENSE="Digium" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="" |
50 |
+ |
51 |
+DEPEND="" |
52 |
+RDEPEND="${DEPEND} =net-misc/asterisk-${PV%%.*}*" |
53 |
+ |
54 |
+RESTRICT="mirror strip" |
55 |
+ |
56 |
+S="${WORKDIR}" |
57 |
+ |
58 |
+src_install() { |
59 |
+ local arch |
60 |
+ |
61 |
+ if use x86; then |
62 |
+ arch=x86_32 |
63 |
+ elif use amd64; then |
64 |
+ arch=x86_64 |
65 |
+ else |
66 |
+ die "Ebuild only functions for x86 and amd64." |
67 |
+ fi |
68 |
+ |
69 |
+ dodoc codec_opus-${MY_PV}-${arch}/LICENSE |
70 |
+ dodoc codec_opus-${MY_PV}-${arch}/README |
71 |
+ insinto /usr/$(get_libdir)/asterisk/modules/ |
72 |
+ doins "codec_opus-${MY_PV}-${arch}/codec_opus.so" |
73 |
+ |
74 |
+ insinto /var/lib/asterisk/documentation/thirdparty |
75 |
+ doins "codec_opus-${MY_PV}-${arch}/codec_opus_config-en_US.xml" |
76 |
+} |
77 |
diff --git a/net-misc/asterisk-opus/metadata.xml b/net-misc/asterisk-opus/metadata.xml |
78 |
new file mode 100644 |
79 |
index 00000000000..e6da82c6ab9 |
80 |
--- /dev/null |
81 |
+++ b/net-misc/asterisk-opus/metadata.xml |
82 |
@@ -0,0 +1,16 @@ |
83 |
+<?xml version="1.0" encoding="UTF-8"?> |
84 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
85 |
+<pkgmetadata> |
86 |
+ <maintainer type="person"> |
87 |
+ <email>jaco@uls.co.za</email> |
88 |
+ <name>Jaco Kroon</name> |
89 |
+ </maintainer> |
90 |
+ <maintainer type="project"> |
91 |
+ <email>proxy-maint@gentoo.org</email> |
92 |
+ <name>Proxy Maintainers</name> |
93 |
+ </maintainer> |
94 |
+ <longdescription lang="en"> |
95 |
+ OPUS is one of the codecs utilized for WebRTC, this one is a binary module |
96 |
+ provided by Digium (royalty free) for use in asterisk for transcoding. |
97 |
+ </longdescription> |
98 |
+</pkgmetadata> |
99 |
-- |
100 |
2.15.1 |
101 |
|