commit:     71f5864682b7ca0ad5765bd9dbe051c90794eed3
Author:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  1 07:49:28 2026 +0000
Commit:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
CommitDate: Sun Mar  1 07:49:28 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71f58646

net-misc/asterisk-g729: add 22.0.3.1.11

Signed-off-by: Jaco Kroon <jkroon <AT> gentoo.org>

 net-misc/asterisk-g729/Manifest                    |  1 +
 .../asterisk-g729/asterisk-g729-22.0.3.1.11.ebuild | 62 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/net-misc/asterisk-g729/Manifest b/net-misc/asterisk-g729/Manifest
index 55f1f101565a..cfca181af9f9 100644
--- a/net-misc/asterisk-g729/Manifest
+++ b/net-misc/asterisk-g729/Manifest
@@ -8,3 +8,4 @@ DIST codec_g729a-20.0_3.1.11-x86_64.tar.gz 935324 BLAKE2B 
236136c1e6d76784e36c7a
 DIST codec_g729a-21.0_3.1.10-x86_64.tar.gz 490480 BLAKE2B 
71e3d68fdf5180fbef0e1f1f026ef24b91fb876c54bb35706dda4cc243b8a6997ffb16b888cdc2019d996c8192ffc3be8c2cd3f76033017e3c744a61230e3bd9
 SHA512 
2be1bb6334dbf7c327729cdecb7f303c942a7d02ac5e3180c0234f490ba9e1660c4d9e8ec3033dec9c996ee26dc1bdced39f9d53bc7a4a0dd16c5e9a6e8ff0e0
 DIST codec_g729a-21.0_3.1.11-x86_64.tar.gz 935305 BLAKE2B 
939b4a952207a3e4bedf789a2241d584741ed21a8dced92ec0c7f968427b5da1aa24607037f33a56377ff5168e6d22de248e9e25be65eba9e76d7e5e50a34a6d
 SHA512 
b134f4c892770ea102583f94e00cab826013130ef0e658e06d04e7ca899d8e7eae16e9d274690cb906f1f5596fcd6eef8eb48008e7f637b13b6efa0a1a7ac23f
 DIST codec_g729a-22.0_3.1.10-x86_64.tar.gz 490553 BLAKE2B 
2a7fb76604e0d5bafdc2a671994667d13cae73df553ab8e406949d1fb7007d6eb85c1cadeedd64201912fec670ce19d9c5bfb5a9d4fc23bbb242194f2e1107a7
 SHA512 
de9169ed3710972d3ed4a4656e874c6f37dd741794db52b392dd0d8b64d833f39cb58129daed8ec0d3af3c53ad7659a655ac0540332de05d241263de7a7d3c54
+DIST codec_g729a-22.0_3.1.11-x86_64.tar.gz 935266 BLAKE2B 
72ce4792f0c7d8ef9dc161be5379fd729dc282ab2b94d2a46f350ebc1fc9635ffc13b2add4d99c84218cd2709a558112523289b2e09a63834872537e94fe1a54
 SHA512 
0e3d12c1e84bc6840bc2f31592f2a56af8c881d7358a71c8567cf6a4e3fb535afeac05009da348699eabdccaec38ebdac1260b1d564c9e54967dc8b79c6b4796

diff --git a/net-misc/asterisk-g729/asterisk-g729-22.0.3.1.11.ebuild 
b/net-misc/asterisk-g729/asterisk-g729-22.0.3.1.11.ebuild
new file mode 100644
index 000000000000..b019ff08ea23
--- /dev/null
+++ b/net-misc/asterisk-g729/asterisk-g729-22.0.3.1.11.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+DESCRIPTION="G.729 codec and supporting files for asterisk"
+HOMEPAGE="https://www.asterisk.org/products/add-ons/g729-codec/";
+
+AST_PV="$(ver_cut 1-2)"
+MY_PV="$(ver_rs 2 _)"
+
+MY_TOOLS_VERSION=20260301
+
+# Keep the binary suffix to re-use already downloaded files.
+SRC_URI="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-${MY_TOOLS_VERSION}
+       https://downloads.digium.com/pub/register/x86-64/asthostid -> 
asthostid-x86_64-${MY_TOOLS_VERSION}
+)"
+
+S="${WORKDIR}"
+
+LICENSE="Digium"
+SLOT="0/${AST_PV}"
+KEYWORDS="-* ~amd64"
+RESTRICT="mirror strip"
+
+RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
+
+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=x86_64
+
+       newsbin astregister-${binsuffix}-${MY_TOOLS_VERSION} 
astregister-${MY_TOOLS_VERSION}
+       dosym astregister-${MY_TOOLS_VERSION} /usr/sbin/astregister
+
+       newsbin asthostid-${binsuffix}-${MY_TOOLS_VERSION} 
asthostid-${MY_TOOLS_VERSION}
+       dosym asthostid-${MY_TOOLS_VERSION} /usr/sbin/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"
+}

Reply via email to