@@ -, +, @@ --- .../0001-asterisk-opus-13.0.1.3.0-ebuild.patch | 101 +++++++++++++++++++++ net-misc/asterisk-opus/Manifest | 2 + .../asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild | 47 ++++++++++ net-misc/asterisk-opus/metadata.xml | 16 ++++ 4 files changed, 166 insertions(+) create mode 100644 net-misc/asterisk-opus/0001-asterisk-opus-13.0.1.3.0-ebuild.patch create mode 100644 net-misc/asterisk-opus/Manifest create mode 100644 net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild create mode 100644 net-misc/asterisk-opus/metadata.xml --- a/net-misc/asterisk-opus/0001-asterisk-opus-13.0.1.3.0-ebuild.patch +++ a/net-misc/asterisk-opus/0001-asterisk-opus-13.0.1.3.0-ebuild.patch @@ -0,0 +1,101 @@ +From 443cb57cd1f07a18fba6c11fdef45f11f0d4f689 Mon Sep 17 00:00:00 2001 +From: Jaco Kroon +Date: Thu, 10 May 2018 17:53:47 +0200 +Subject: [PATCH] asterisk-opus-13.0.1.3.0 ebuild + +This adds the opus codec provided by Digium for asterisk 13 to the tree. +--- + net-misc/asterisk-opus/Manifest | 2 + + .../asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild | 47 ++++++++++++++++++++++ + net-misc/asterisk-opus/metadata.xml | 16 ++++++++ + 3 files changed, 65 insertions(+) + create mode 100644 net-misc/asterisk-opus/Manifest + create mode 100644 net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild + create mode 100644 net-misc/asterisk-opus/metadata.xml + +diff --git a/net-misc/asterisk-opus/Manifest b/net-misc/asterisk-opus/Manifest +new file mode 100644 +index 00000000000..87a613cab20 +--- /dev/null ++++ b/net-misc/asterisk-opus/Manifest +@@ -0,0 +1,2 @@ ++DIST codec_opus-13.0_1.3.0-x86_32.tar.gz 308059 BLAKE2B ec93fe29c030f2e63dffef882326c9f362e2a81c8de26eb04e96995c00acf965ea376555c0befa90bdf0f2592d40cc2e296abba720702a6cd7f6683f9784d533 SHA512 aa4aafa4c688a328eec81daafd0589fc3a25d22d374742a0500ca71763d4191a24b055e3eb6ecd9bd3a0556ef359ab9a8482b44e9c1633568136db4997284063 ++DIST codec_opus-13.0_1.3.0-x86_64.tar.gz 343694 BLAKE2B ff43085aabbfc4f4082dc22f11b12d62ddb631b46df492baef8786a1f76cbc6b2828091867d40c77f0c268ed2ba50148fd6a1394493b595342da408d6746fe20 SHA512 0932006e8537ddee8c73b598bf04b6b552e1bf9527c65abdd6f7b8ff7ef677e251bc4fff55233e5d7e715f9ff5b928347618ed0d14a1f6bc9c6c728303593213 +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 +new file mode 100644 +index 00000000000..6106bd1b946 +--- /dev/null ++++ b/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild +@@ -0,0 +1,47 @@ ++# Copyright 1999-2018 Gentoo Foundation ++# Distributed under the terms of the GNU General Public License v2 ++ ++EAPI="6" ++ ++inherit versionator multilib ++ ++DESCRIPTION="OPUS codec and supporting files for asterisk" ++HOMEPAGE="https://wiki.asterisk.org/wiki/display/AST/Codec+Opus" ++ ++MY_PV=$(replace_version_separator 2 _) ++AST_PV=${MY_PV%%_*} ++ ++SRC_URI="x86? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-32/codec_opus-${MY_PV}-x86_32.tar.gz ) ++amd64? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-64/codec_opus-${MY_PV}-x86_64.tar.gz )" ++ ++LICENSE="Digium" ++SLOT="0" ++KEYWORDS="~amd64 ~x86" ++IUSE="" ++ ++DEPEND="" ++RDEPEND="${DEPEND} =net-misc/asterisk-${PV%%.*}*" ++ ++RESTRICT="mirror strip" ++ ++S="${WORKDIR}" ++ ++src_install() { ++ local arch ++ ++ if use x86; then ++ arch=x86_32 ++ elif use amd64; then ++ arch=x86_64 ++ else ++ die "Ebuild only functions for x86 and amd64." ++ fi ++ ++ dodoc codec_opus-${MY_PV}-${arch}/LICENSE ++ dodoc codec_opus-${MY_PV}-${arch}/README ++ insinto /usr/$(get_libdir)/asterisk/modules/ ++ doins "codec_opus-${MY_PV}-${arch}/codec_opus.so" ++ ++ insinto /var/lib/asterisk/documentation/thirdparty ++ doins "codec_opus-${MY_PV}-${arch}/codec_opus_config-en_US.xml" ++} +diff --git a/net-misc/asterisk-opus/metadata.xml b/net-misc/asterisk-opus/metadata.xml +new file mode 100644 +index 00000000000..e6da82c6ab9 +--- /dev/null ++++ b/net-misc/asterisk-opus/metadata.xml +@@ -0,0 +1,16 @@ ++ ++ ++ ++ ++ jaco@uls.co.za ++ Jaco Kroon ++ ++ ++ proxy-maint@gentoo.org ++ Proxy Maintainers ++ ++ ++ OPUS is one of the codecs utilized for WebRTC, this one is a binary module ++ provided by Digium (royalty free) for use in asterisk for transcoding. ++ ++ +-- +2.15.1 + --- a/net-misc/asterisk-opus/Manifest +++ a/net-misc/asterisk-opus/Manifest @@ -0,0 +1,2 @@ +DIST codec_opus-13.0_1.3.0-x86_32.tar.gz 308059 BLAKE2B ec93fe29c030f2e63dffef882326c9f362e2a81c8de26eb04e96995c00acf965ea376555c0befa90bdf0f2592d40cc2e296abba720702a6cd7f6683f9784d533 SHA512 aa4aafa4c688a328eec81daafd0589fc3a25d22d374742a0500ca71763d4191a24b055e3eb6ecd9bd3a0556ef359ab9a8482b44e9c1633568136db4997284063 +DIST codec_opus-13.0_1.3.0-x86_64.tar.gz 343694 BLAKE2B ff43085aabbfc4f4082dc22f11b12d62ddb631b46df492baef8786a1f76cbc6b2828091867d40c77f0c268ed2ba50148fd6a1394493b595342da408d6746fe20 SHA512 0932006e8537ddee8c73b598bf04b6b552e1bf9527c65abdd6f7b8ff7ef677e251bc4fff55233e5d7e715f9ff5b928347618ed0d14a1f6bc9c6c728303593213 --- a/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild +++ a/net-misc/asterisk-opus/asterisk-opus-13.0.1.3.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit versionator multilib + +DESCRIPTION="OPUS codec and supporting files for asterisk" +HOMEPAGE="https://wiki.asterisk.org/wiki/display/AST/Codec+Opus" + +MY_PV=$(replace_version_separator 2 _) +AST_PV=${MY_PV%%_*} + +SRC_URI="x86? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-32/codec_opus-${MY_PV}-x86_32.tar.gz ) +amd64? ( http://downloads.digium.com/pub/telephony/codec_opus/asterisk-${AST_PV}/x86-64/codec_opus-${MY_PV}-x86_64.tar.gz )" + +LICENSE="Digium" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} =net-misc/asterisk-${PV%%.*}*" + +RESTRICT="mirror strip" + +S="${WORKDIR}" + +src_install() { + local arch + + if use x86; then + arch=x86_32 + elif use amd64; then + arch=x86_64 + else + die "Ebuild only functions for x86 and amd64." + fi + + dodoc codec_opus-${MY_PV}-${arch}/LICENSE + dodoc codec_opus-${MY_PV}-${arch}/README + insinto /usr/$(get_libdir)/asterisk/modules/ + doins "codec_opus-${MY_PV}-${arch}/codec_opus.so" + + insinto /var/lib/asterisk/documentation/thirdparty + doins "codec_opus-${MY_PV}-${arch}/codec_opus_config-en_US.xml" +} --- a/net-misc/asterisk-opus/metadata.xml +++ a/net-misc/asterisk-opus/metadata.xml @@ -0,0 +1,16 @@ + + + + + jaco@uls.co.za + Jaco Kroon + + + proxy-maint@gentoo.org + Proxy Maintainers + + + OPUS is one of the codecs utilized for WebRTC, this one is a binary module + provided by Digium (royalty free) for use in asterisk for transcoding. + + --