Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk-g729/
Date: Sat, 05 Nov 2022 13:41:37
Message-Id: 1667655408.428d221cff46b88bbd3b8499cb4d3a4f9f9fbdf3.juippis@gentoo
1 commit: 428d221cff46b88bbd3b8499cb4d3a4f9f9fbdf3
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Sat Oct 22 10:58:20 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 5 13:36:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=428d221c
7
8 net-misc/asterisk-g729: add 16.0.3.1.10
9
10 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 net-misc/asterisk-g729/Manifest | 2 +
14 .../asterisk-g729/asterisk-g729-16.0.3.1.10.ebuild | 68 ++++++++++++++++++++++
15 2 files changed, 70 insertions(+)
16
17 diff --git a/net-misc/asterisk-g729/Manifest b/net-misc/asterisk-g729/Manifest
18 index 8a07c5df0e56..7ff7e83fa10f 100644
19 --- a/net-misc/asterisk-g729/Manifest
20 +++ b/net-misc/asterisk-g729/Manifest
21 @@ -2,6 +2,8 @@ DIST asthostid-x86_32 1678360 BLAKE2B 0caa098d9891cad9301bbc074d8ef8e0229ef3432c
22 DIST asthostid-x86_64 1806296 BLAKE2B cd2e08ee760374f781d79a952679dc7d54f83dbd3f9a63dfe8fe4f36ea74c19c4a0486d459a5cb90877111100dd6e147bc701489e38ecefe585a4473147a5886 SHA512 be7d7b63259d5c4f15e6b3a55b283030bfc3f4ccf59c58848a9803838f7aa2ff470353a4d78d289bdcd40213c0cc81fad31e2bfad690fcaf111ea5cabae5adfd
23 DIST astregister-x86_32 2103608 BLAKE2B 7fdf1c196152612cd28cfe7bf832dedb625b392f5e919480b1fb792327474d6ad91abaf4938ca8b230a1226bef62652e16f8d8ac1d0dad338fe308b3582c72e8 SHA512 3c3c4b8a32143d1aaaec6ec6b308335f59cf5381f844412e4e484aedc91bff2601778c28e99628fff828c81d2ec05b4de7c8c1cdddeea3ec37f5331beff47a2c
24 DIST astregister-x86_64 2193440 BLAKE2B 9c9ac2343f5d7291251b9ceaa00fc4f8e4c39673e8d4854f8743beee5c86bbbc14c802c34ff26aa8412f1219113edeab7cb3b7adb94086c2f63724095d9f1fc5 SHA512 9302a7ead6bedd6683bcd0da92b7a7ca54fdb975784ef1783aa99f2bb26424dbb77b4c0fa6b809ae6e6ad839807feb055bee5c03a38292737412aa1c3d7df4e4
25 +DIST codec_g729a-16.0_3.1.10-x86_32.tar.gz 476844 BLAKE2B c476afe4a8b2d559157d26fd03250e0ac566019a547ca9ecdb6f734bc1adb5401a2f9ceac59bd98c75e870b20570a2fe6067b635475a23826e3a9f802fa4e39a SHA512 18239b4c0c5cf35b6b1fd8a2a0e0b6453e6c48f27052a6b525392288a08f403c69909c94b74b4bc3748b25ad06764fa57ad7c1022e9471e9c23b7b45e556fbbf
26 +DIST codec_g729a-16.0_3.1.10-x86_64.tar.gz 476330 BLAKE2B 51639c52b67133b585ae48df5b363a5eb94c55a33d7fe4cf436eff21f9729ea61e2899419bc510f11706d4a3e002415ce1bd429cd72b5bbad433016c0e7a787d SHA512 489fbc1d3c1a354f3775e46422ca43fd4314af69037c280e95419d0d58dd10df1fa12858b98f6e5905b361164624eccf398e22c3305e78fa9b84d1a8f62afacc
27 DIST codec_g729a-16.0_3.1.9-x86_32.tar.gz 476772 BLAKE2B e1a7b8baefc551f16618fded2663acfb825a7eabcccc7ca844792e6179bac5b9ac2e0f4c387e3b2861347c6deb5db13f41ecd265c2261dbb65756890d976f4f7 SHA512 cddf46f369b0922a5569961688fcd4fb840bcce3a5573549d8a3a3e6150e20cd7c18e32ea07edc10150dd409763504ab50fad5d884fb33a49d624e4ebe0afd10
28 DIST codec_g729a-16.0_3.1.9-x86_64.tar.gz 475819 BLAKE2B d738dccb1e94ae5458b72de7f52d3bb9964f3be993efe44f615bc06b0c17638ac743dd0465a68c172f339d888ceac35b54babadd217c13b028575c3b1e5aa94b SHA512 f6c60c66fce03ea5ce02301dc9c8b5a93fefbc60089980401cd1fee58357b2c03ab2b12eb50df82d2f3a25613e37c1bb370a319cf0a36c92983ef98aa137429d
29 DIST codec_g729a-18.0_3.1.9-x86_32.tar.gz 476626 BLAKE2B 7a8a0a763fcae579ac4be2891c691e7e540881cfd723a2c25af0c0f67499fde24a3d786d9ec9dddb6ee70e77973d71af6538d52963ff33b41d1940c8b506266d SHA512 bb223c03185d33107dc3cfa9393fe07950ae3a5825e1a347e26d06e9ffb8bfbc7ba350cb1e072dd52eaa6ded5a98e53dec9be8d8c55d89f0c816058a2f6bb247
30
31 diff --git a/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.10.ebuild b/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.10.ebuild
32 new file mode 100644
33 index 000000000000..c62b6daea016
34 --- /dev/null
35 +++ b/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.10.ebuild
36 @@ -0,0 +1,68 @@
37 +# Copyright 1999-2022 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI="7"
41 +
42 +DESCRIPTION="G.729 codec and supporting files for asterisk"
43 +HOMEPAGE="https://www.sangoma.com/asterisk/software/g729-codec/"
44 +
45 +AST_PV="$(ver_cut 1-2)"
46 +MY_PV="$(ver_rs 2 _)"
47 +
48 +SRC_URI="x86? (
49 + https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-x86_32.tar.gz
50 + https://downloads.digium.com/pub/register/x86-32/register -> astregister-x86_32
51 + https://downloads.digium.com/pub/register/x86-32/asthostid -> asthostid-x86_32
52 +)
53 +amd64? (
54 + https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-x86_64.tar.gz
55 + https://downloads.digium.com/pub/register/x86-64/register -> astregister-x86_64
56 + https://downloads.digium.com/pub/register/x86-64/asthostid -> asthostid-x86_64
57 +)"
58 +
59 +LICENSE="Digium"
60 +SLOT="0/${AST_PV}"
61 +KEYWORDS="-* ~amd64 ~x86"
62 +
63 +RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
64 +
65 +RESTRICT="mirror strip"
66 +
67 +S="${WORKDIR}"
68 +
69 +pkg_setup() {
70 + QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
71 + QA_PREBUILT="${QA_FLAGS_IGNORED}
72 + /usr/sbin/asthostid
73 + /usr/sbin/astregister"
74 +}
75 +
76 +src_unpack() {
77 + local dfile
78 +
79 + for dfile in ${A}; do
80 + [[ "${dfile}" = *.tar.gz ]] && unpack "${dfile}"
81 + cp "${DISTDIR}/${dfile}" "${WORKDIR}/" || die "Error copying ${dfile} to ${WORKDIR}"
82 + done
83 +}
84 +
85 +src_install() {
86 + local binsuffix
87 +
88 + if use x86; then
89 + binsuffix=x86_32
90 + elif use amd64; then
91 + binsuffix=x86_64
92 + fi
93 +
94 + newsbin astregister-${binsuffix} astregister
95 + newsbin asthostid-${binsuffix} asthostid
96 +
97 + dodoc codec_g729a-${MY_PV}-${binsuffix}/README
98 + insinto usr/$(get_libdir)/asterisk/modules/
99 + doins "codec_g729a-${MY_PV}-${binsuffix}/codec_g729a.so"
100 +}
101 +
102 +pkg_postinst() {
103 + einfo "Please note that Digium's register utility has been installed as astregister"
104 +}