summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaco Kroon <jaco@uls.co.za>2022-10-22 12:58:20 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-11-05 15:36:48 +0200
commit428d221cff46b88bbd3b8499cb4d3a4f9f9fbdf3 (patch)
treefbc73cec58fbcfbf9a2bde6d620204e7bebce958 /net-misc
parentnet-misc/asterisk-opus: add 20.0.1.3.0 (diff)
downloadgentoo-428d221cff46b88bbd3b8499cb4d3a4f9f9fbdf3.tar.gz
gentoo-428d221cff46b88bbd3b8499cb4d3a4f9f9fbdf3.tar.bz2
gentoo-428d221cff46b88bbd3b8499cb4d3a4f9f9fbdf3.zip
net-misc/asterisk-g729: add 16.0.3.1.10
Signed-off-by: Jaco Kroon <jaco@uls.co.za> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/asterisk-g729/Manifest2
-rw-r--r--net-misc/asterisk-g729/asterisk-g729-16.0.3.1.10.ebuild68
2 files changed, 70 insertions, 0 deletions
diff --git a/net-misc/asterisk-g729/Manifest b/net-misc/asterisk-g729/Manifest
index 8a07c5df0e56..7ff7e83fa10f 100644
--- a/net-misc/asterisk-g729/Manifest
+++ b/net-misc/asterisk-g729/Manifest
@@ -2,6 +2,8 @@ DIST asthostid-x86_32 1678360 BLAKE2B 0caa098d9891cad9301bbc074d8ef8e0229ef3432c
DIST asthostid-x86_64 1806296 BLAKE2B cd2e08ee760374f781d79a952679dc7d54f83dbd3f9a63dfe8fe4f36ea74c19c4a0486d459a5cb90877111100dd6e147bc701489e38ecefe585a4473147a5886 SHA512 be7d7b63259d5c4f15e6b3a55b283030bfc3f4ccf59c58848a9803838f7aa2ff470353a4d78d289bdcd40213c0cc81fad31e2bfad690fcaf111ea5cabae5adfd
DIST astregister-x86_32 2103608 BLAKE2B 7fdf1c196152612cd28cfe7bf832dedb625b392f5e919480b1fb792327474d6ad91abaf4938ca8b230a1226bef62652e16f8d8ac1d0dad338fe308b3582c72e8 SHA512 3c3c4b8a32143d1aaaec6ec6b308335f59cf5381f844412e4e484aedc91bff2601778c28e99628fff828c81d2ec05b4de7c8c1cdddeea3ec37f5331beff47a2c
DIST astregister-x86_64 2193440 BLAKE2B 9c9ac2343f5d7291251b9ceaa00fc4f8e4c39673e8d4854f8743beee5c86bbbc14c802c34ff26aa8412f1219113edeab7cb3b7adb94086c2f63724095d9f1fc5 SHA512 9302a7ead6bedd6683bcd0da92b7a7ca54fdb975784ef1783aa99f2bb26424dbb77b4c0fa6b809ae6e6ad839807feb055bee5c03a38292737412aa1c3d7df4e4
+DIST codec_g729a-16.0_3.1.10-x86_32.tar.gz 476844 BLAKE2B c476afe4a8b2d559157d26fd03250e0ac566019a547ca9ecdb6f734bc1adb5401a2f9ceac59bd98c75e870b20570a2fe6067b635475a23826e3a9f802fa4e39a SHA512 18239b4c0c5cf35b6b1fd8a2a0e0b6453e6c48f27052a6b525392288a08f403c69909c94b74b4bc3748b25ad06764fa57ad7c1022e9471e9c23b7b45e556fbbf
+DIST codec_g729a-16.0_3.1.10-x86_64.tar.gz 476330 BLAKE2B 51639c52b67133b585ae48df5b363a5eb94c55a33d7fe4cf436eff21f9729ea61e2899419bc510f11706d4a3e002415ce1bd429cd72b5bbad433016c0e7a787d SHA512 489fbc1d3c1a354f3775e46422ca43fd4314af69037c280e95419d0d58dd10df1fa12858b98f6e5905b361164624eccf398e22c3305e78fa9b84d1a8f62afacc
DIST codec_g729a-16.0_3.1.9-x86_32.tar.gz 476772 BLAKE2B e1a7b8baefc551f16618fded2663acfb825a7eabcccc7ca844792e6179bac5b9ac2e0f4c387e3b2861347c6deb5db13f41ecd265c2261dbb65756890d976f4f7 SHA512 cddf46f369b0922a5569961688fcd4fb840bcce3a5573549d8a3a3e6150e20cd7c18e32ea07edc10150dd409763504ab50fad5d884fb33a49d624e4ebe0afd10
DIST codec_g729a-16.0_3.1.9-x86_64.tar.gz 475819 BLAKE2B d738dccb1e94ae5458b72de7f52d3bb9964f3be993efe44f615bc06b0c17638ac743dd0465a68c172f339d888ceac35b54babadd217c13b028575c3b1e5aa94b SHA512 f6c60c66fce03ea5ce02301dc9c8b5a93fefbc60089980401cd1fee58357b2c03ab2b12eb50df82d2f3a25613e37c1bb370a319cf0a36c92983ef98aa137429d
DIST codec_g729a-18.0_3.1.9-x86_32.tar.gz 476626 BLAKE2B 7a8a0a763fcae579ac4be2891c691e7e540881cfd723a2c25af0c0f67499fde24a3d786d9ec9dddb6ee70e77973d71af6538d52963ff33b41d1940c8b506266d SHA512 bb223c03185d33107dc3cfa9393fe07950ae3a5825e1a347e26d06e9ffb8bfbc7ba350cb1e072dd52eaa6ded5a98e53dec9be8d8c55d89f0c816058a2f6bb247
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
new file mode 100644
index 000000000000..c62b6daea016
--- /dev/null
+++ b/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.10.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+DESCRIPTION="G.729 codec and supporting files for asterisk"
+HOMEPAGE="https://www.sangoma.com/asterisk/software/g729-codec/"
+
+AST_PV="$(ver_cut 1-2)"
+MY_PV="$(ver_rs 2 _)"
+
+SRC_URI="x86? (
+ https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-x86_32.tar.gz
+ https://downloads.digium.com/pub/register/x86-32/register -> astregister-x86_32
+ https://downloads.digium.com/pub/register/x86-32/asthostid -> asthostid-x86_32
+)
+amd64? (
+ https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-x86_64.tar.gz
+ https://downloads.digium.com/pub/register/x86-64/register -> astregister-x86_64
+ https://downloads.digium.com/pub/register/x86-64/asthostid -> asthostid-x86_64
+)"
+
+LICENSE="Digium"
+SLOT="0/${AST_PV}"
+KEYWORDS="-* ~amd64 ~x86"
+
+RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
+
+RESTRICT="mirror strip"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
+ QA_PREBUILT="${QA_FLAGS_IGNORED}
+ /usr/sbin/asthostid
+ /usr/sbin/astregister"
+}
+
+src_unpack() {
+ local dfile
+
+ for dfile in ${A}; do
+ [[ "${dfile}" = *.tar.gz ]] && unpack "${dfile}"
+ cp "${DISTDIR}/${dfile}" "${WORKDIR}/" || die "Error copying ${dfile} to ${WORKDIR}"
+ done
+}
+
+src_install() {
+ local binsuffix
+
+ if use x86; then
+ binsuffix=x86_32
+ elif use amd64; then
+ binsuffix=x86_64
+ fi
+
+ newsbin astregister-${binsuffix} astregister
+ newsbin asthostid-${binsuffix} asthostid
+
+ dodoc codec_g729a-${MY_PV}-${binsuffix}/README
+ insinto usr/$(get_libdir)/asterisk/modules/
+ doins "codec_g729a-${MY_PV}-${binsuffix}/codec_g729a.so"
+}
+
+pkg_postinst() {
+ einfo "Please note that Digium's register utility has been installed as astregister"
+}