1 |
commit: e2b91d054474c21c864a5c0773ce3f0ee9c3b1df |
2 |
Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za> |
3 |
AuthorDate: Wed May 26 09:54:38 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 26 12:34:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2b91d05 |
7 |
|
8 |
net-misc/asterisk-g729: Version for asterisk 18.* |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/20995 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
net-misc/asterisk-g729/Manifest | 2 + |
16 |
.../asterisk-g729/asterisk-g729-18.0.3.1.9.ebuild | 68 ++++++++++++++++++++++ |
17 |
2 files changed, 70 insertions(+) |
18 |
|
19 |
diff --git a/net-misc/asterisk-g729/Manifest b/net-misc/asterisk-g729/Manifest |
20 |
index b110e50433c..4df9a0fd8b5 100644 |
21 |
--- a/net-misc/asterisk-g729/Manifest |
22 |
+++ b/net-misc/asterisk-g729/Manifest |
23 |
@@ -6,3 +6,5 @@ DIST codec_g729a-13.0_3.1.9-x86_32.tar.gz 411156 BLAKE2B 179c77d32d1f8ac3314813a |
24 |
DIST codec_g729a-13.0_3.1.9-x86_64.tar.gz 478364 BLAKE2B 49136479e1bd139fcb22130868575d5be7d6784081307679cfeee16951f6a303b5328a62c23a0ade506f2df0527b275bd198560dacd59ba5b9ba237095622778 SHA512 5fa2dca977ca1dcbf3019fc86c3edc91fd561c814bfa9a5202680b7a581f03faa1705a4392a70409f9cd30a4379691b609f0f572030972cbe432cad435314951 |
25 |
DIST codec_g729a-16.0_3.1.9-x86_32.tar.gz 476772 BLAKE2B e1a7b8baefc551f16618fded2663acfb825a7eabcccc7ca844792e6179bac5b9ac2e0f4c387e3b2861347c6deb5db13f41ecd265c2261dbb65756890d976f4f7 SHA512 cddf46f369b0922a5569961688fcd4fb840bcce3a5573549d8a3a3e6150e20cd7c18e32ea07edc10150dd409763504ab50fad5d884fb33a49d624e4ebe0afd10 |
26 |
DIST codec_g729a-16.0_3.1.9-x86_64.tar.gz 475819 BLAKE2B d738dccb1e94ae5458b72de7f52d3bb9964f3be993efe44f615bc06b0c17638ac743dd0465a68c172f339d888ceac35b54babadd217c13b028575c3b1e5aa94b SHA512 f6c60c66fce03ea5ce02301dc9c8b5a93fefbc60089980401cd1fee58357b2c03ab2b12eb50df82d2f3a25613e37c1bb370a319cf0a36c92983ef98aa137429d |
27 |
+DIST codec_g729a-18.0_3.1.9-x86_32.tar.gz 476626 BLAKE2B 7a8a0a763fcae579ac4be2891c691e7e540881cfd723a2c25af0c0f67499fde24a3d786d9ec9dddb6ee70e77973d71af6538d52963ff33b41d1940c8b506266d SHA512 bb223c03185d33107dc3cfa9393fe07950ae3a5825e1a347e26d06e9ffb8bfbc7ba350cb1e072dd52eaa6ded5a98e53dec9be8d8c55d89f0c816058a2f6bb247 |
28 |
+DIST codec_g729a-18.0_3.1.9-x86_64.tar.gz 475817 BLAKE2B ef45f1edab67b1fdb57d11340d2b3885c72d9f09f00fdccfdaa8674d61cf95ddf8ace223f29049e1e700f0bdcabd824ffbfa5382e492a1e0d0a47e1ab030d606 SHA512 12bbd2bcef0b7138d0ef261b6b1265f803526ce3c4ec371be830267e01e0e674150f17169742fe72737291b162136ea5224b320b655112cbc10fa207733c7f54 |
29 |
|
30 |
diff --git a/net-misc/asterisk-g729/asterisk-g729-18.0.3.1.9.ebuild b/net-misc/asterisk-g729/asterisk-g729-18.0.3.1.9.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..01114a23c86 |
33 |
--- /dev/null |
34 |
+++ b/net-misc/asterisk-g729/asterisk-g729-18.0.3.1.9.ebuild |
35 |
@@ -0,0 +1,68 @@ |
36 |
+# Copyright 1999-2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI="7" |
40 |
+ |
41 |
+DESCRIPTION="G.729 codec and supporting files for asterisk" |
42 |
+HOMEPAGE="https://www.sangoma.com/asterisk/software/g729-codec/" |
43 |
+ |
44 |
+AST_PV="$(ver_cut 1-2)" |
45 |
+MY_PV="$(ver_rs 2 _)" |
46 |
+ |
47 |
+SRC_URI="x86? ( |
48 |
+ https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-x86_32.tar.gz |
49 |
+ https://downloads.digium.com/pub/register/x86-32/register -> astregister-x86_32 |
50 |
+ https://downloads.digium.com/pub/register/x86-32/asthostid -> asthostid-x86_32 |
51 |
+) |
52 |
+amd64? ( |
53 |
+ https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-x86_64.tar.gz |
54 |
+ https://downloads.digium.com/pub/register/x86-64/register -> astregister-x86_64 |
55 |
+ https://downloads.digium.com/pub/register/x86-64/asthostid -> asthostid-x86_64 |
56 |
+)" |
57 |
+ |
58 |
+LICENSE="Digium" |
59 |
+SLOT="0/${AST_PV}" |
60 |
+KEYWORDS="-* ~amd64 ~x86" |
61 |
+ |
62 |
+RDEPEND="=net-misc/asterisk-$(ver_cut 1)*" |
63 |
+ |
64 |
+RESTRICT="mirror strip" |
65 |
+ |
66 |
+S="${WORKDIR}" |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so" |
70 |
+ QA_PREBUILT="${QA_FLAGS_IGNORED} |
71 |
+ /usr/sbin/asthostid |
72 |
+ /usr/sbin/astregister" |
73 |
+} |
74 |
+ |
75 |
+src_unpack() { |
76 |
+ local dfile |
77 |
+ |
78 |
+ for dfile in ${A}; do |
79 |
+ [[ "${dfile}" = *.tar.gz ]] && unpack "${dfile}" |
80 |
+ cp "${DISTDIR}/${dfile}" "${WORKDIR}/" || die "Error copying ${dfile} to ${WORKDIR}" |
81 |
+ done |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ local binsuffix |
86 |
+ |
87 |
+ if use x86; then |
88 |
+ binsuffix=x86_32 |
89 |
+ elif use amd64; then |
90 |
+ binsuffix=x86_64 |
91 |
+ fi |
92 |
+ |
93 |
+ newsbin astregister-${binsuffix} astregister |
94 |
+ newsbin asthostid-${binsuffix} asthostid |
95 |
+ |
96 |
+ dodoc codec_g729a-${MY_PV}-${binsuffix}/README |
97 |
+ insinto usr/$(get_libdir)/asterisk/modules/ |
98 |
+ doins "codec_g729a-${MY_PV}-${binsuffix}/codec_g729a.so" |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ einfo "Please note that Digium's register utility has been installed as astregister" |
103 |
+} |