| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 22.0.3.1.10-r1 | 8 | -* ~amd64 | 0/$(ver_cut 1-2) |
# 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"
}
=net-misc/asterisk-$(ver_cut 1)*
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | asthostid-x86_64-20260301 | 3512128 bytes | https://downloads.digium.com/pub/register/x86-64/asthostid |
| DIST | astregister-x86_64-20260301 | 4571584 bytes | https://downloads.digium.com/pub/register/x86-64/register |