summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaco Kroon <jaco@uls.co.za>2022-10-22 12:58:50 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-11-05 15:36:48 +0200
commitb88e9da54385be3f7aa60fc0f4bd83b30d9062a1 (patch)
tree0ba3e249731e653c390fabae69553b65c0be2d80
parentnet-misc/asterisk-g729: add 16.0.3.1.10 (diff)
downloadgentoo-b88e9da5.tar.gz
gentoo-b88e9da5.tar.bz2
gentoo-b88e9da5.zip
net-misc/asterisk-g729: add 18.0.3.1.10
Signed-off-by: Jaco Kroon <jaco@uls.co.za> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--net-misc/asterisk-g729/Manifest2
-rw-r--r--net-misc/asterisk-g729/asterisk-g729-18.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 7ff7e83fa10f..26b0114aaff7 100644
--- a/net-misc/asterisk-g729/Manifest
+++ b/net-misc/asterisk-g729/Manifest
@@ -6,5 +6,7 @@ DIST codec_g729a-16.0_3.1.10-x86_32.tar.gz 476844 BLAKE2B c476afe4a8b2d559157d26
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.10-x86_32.tar.gz 475393 BLAKE2B ad7b2c7699f82f27bce00aa528e22166c9345229fc1169cd358e088d470dd781e229b76c3939e123809efc9dcaf065d9cfd27efef99818f7a765d7771af2649b SHA512 767d21fc669a4e6fe2da55557fe12ed7e3f9fe62090d0f5eb669305d5cb74ae11211b99e01535a1b2c13574d2791a5bda9c8852c7d2ae368b616cd4703d99898
+DIST codec_g729a-18.0_3.1.10-x86_64.tar.gz 476294 BLAKE2B 21fe46bdd544627dbe018730676091f9882ef25a02e6ce436f25757e46b91a6670c410da94c96fb9bc30e5e1976f3803d290049da319a2ad6230612e7805ebc6 SHA512 c7aaa72e7744309971e8abc71da8217ba181f85c163e24ca82bc0ac1276cb4e6e8107edf9f896fee941c8680188f931a14de3d2fbc5cdadfd3c9ecef53c15618
DIST codec_g729a-18.0_3.1.9-x86_32.tar.gz 476626 BLAKE2B 7a8a0a763fcae579ac4be2891c691e7e540881cfd723a2c25af0c0f67499fde24a3d786d9ec9dddb6ee70e77973d71af6538d52963ff33b41d1940c8b506266d SHA512 bb223c03185d33107dc3cfa9393fe07950ae3a5825e1a347e26d06e9ffb8bfbc7ba350cb1e072dd52eaa6ded5a98e53dec9be8d8c55d89f0c816058a2f6bb247
DIST codec_g729a-18.0_3.1.9-x86_64.tar.gz 475817 BLAKE2B ef45f1edab67b1fdb57d11340d2b3885c72d9f09f00fdccfdaa8674d61cf95ddf8ace223f29049e1e700f0bdcabd824ffbfa5382e492a1e0d0a47e1ab030d606 SHA512 12bbd2bcef0b7138d0ef261b6b1265f803526ce3c4ec371be830267e01e0e674150f17169742fe72737291b162136ea5224b320b655112cbc10fa207733c7f54
diff --git a/net-misc/asterisk-g729/asterisk-g729-18.0.3.1.10.ebuild b/net-misc/asterisk-g729/asterisk-g729-18.0.3.1.10.ebuild
new file mode 100644
index 000000000000..c62b6daea016
--- /dev/null
+++ b/net-misc/asterisk-g729/asterisk-g729-18.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"
+}