net-misc/asterisk-g729: tools versions bumped again.

Rev bumps to ensure we know which versions are installed.

Also set QA_TEXTRELS which we cannot eliminate.

Add RESTRICT=bindist

Bug: https://bugs.gentoo.org/971616
Closes: https://bugs.gentoo.org/927676
Signed-off-by: Jaco Kroon <jkroon@gentoo.org>
This commit is contained in:
Jaco Kroon
2026-03-31 22:16:09 +02:00
parent f8a89f267d
commit d5abe69a19
8 changed files with 82 additions and 76 deletions

View File

@@ -1,7 +1,7 @@
DIST asthostid-x86_32-20260301 1678360 BLAKE2B 0caa098d9891cad9301bbc074d8ef8e0229ef3432c1f2328247e73c8248949c1951b61f47e0c395f0f6dee870d0962f9d5f612fd5565b43a3fbec1b198c6324d SHA512 9047533e47d4a806683368c0c432eb8699635dcde528adde7a34461f2104bf651cfd394a4b51c52c931f8bcebb7b41824c1db510996d20fb2d67e991ac0b63f8
DIST asthostid-x86_64-20260301 3512128 BLAKE2B 80f635a412e4d44bc944af0832e8e67c5f26c9a6a864003ec9a2a87da3a37f75deab9ae140644299229834bfac1920370ccea640e14d7d41b32164001bd95a77 SHA512 053fd42ab606d06f770e4560d5e3cd15b4fd065f61bba3090c5b9c741df501dc5ffe40f4f4c4f0112134891815ffed43db1ef32a34dbaf6c9fe722e08508709d
DIST astregister-x86_32-20260301 2103608 BLAKE2B 7fdf1c196152612cd28cfe7bf832dedb625b392f5e919480b1fb792327474d6ad91abaf4938ca8b230a1226bef62652e16f8d8ac1d0dad338fe308b3582c72e8 SHA512 3c3c4b8a32143d1aaaec6ec6b308335f59cf5381f844412e4e484aedc91bff2601778c28e99628fff828c81d2ec05b4de7c8c1cdddeea3ec37f5331beff47a2c
DIST astregister-x86_64-20260301 4571584 BLAKE2B ca69a552a087ba35801fd561196cf4e528f72dbf0e2d637284040d60d169798b1b3d6c8d4b8a2a1087c73dd5261abe111ba0685abaf3e12ca26044268528ff3b SHA512 ebfe1f0177400bf939a607f3d990a1c0bf066768a12755afb2b03cb6c7947fa9094c8599996dc974891a06efbd221d1f0e78eeebb9eab7c2c6512cd0f89d014e
DIST asthostid-x86_32-20260331 1678360 BLAKE2B 0caa098d9891cad9301bbc074d8ef8e0229ef3432c1f2328247e73c8248949c1951b61f47e0c395f0f6dee870d0962f9d5f612fd5565b43a3fbec1b198c6324d SHA512 9047533e47d4a806683368c0c432eb8699635dcde528adde7a34461f2104bf651cfd394a4b51c52c931f8bcebb7b41824c1db510996d20fb2d67e991ac0b63f8
DIST asthostid-x86_64-20260331 3524560 BLAKE2B 466bc7d172e47085430c241a05f8962c570954f313ccc3b77eb5736a9708ac82a7c6ad49c2b348c5a243da3109dc1f9726105c26c5f0f4a96aec78e9086fe34e SHA512 7b6c8e89ec8fb83465b9115db179d6f9c76b2c18cc168b06f8bed86c0c6addff98bbf998ea32a1033804dfc1c4e37879cca5bea6cccc06b6e1e60a6e6b55ec43
DIST astregister-x86_32-20260331 2103608 BLAKE2B 7fdf1c196152612cd28cfe7bf832dedb625b392f5e919480b1fb792327474d6ad91abaf4938ca8b230a1226bef62652e16f8d8ac1d0dad338fe308b3582c72e8 SHA512 3c3c4b8a32143d1aaaec6ec6b308335f59cf5381f844412e4e484aedc91bff2601778c28e99628fff828c81d2ec05b4de7c8c1cdddeea3ec37f5331beff47a2c
DIST astregister-x86_64-20260331 4584160 BLAKE2B 3f1f1a9767ecc77d95bdc22bfcb7856fb5eecab9c2929168969c1087f28bee9e7c4a1a5b0831b63ceadece8cedd83b18f96eba932b90d7fd439c0e8dbee5f227 SHA512 3979e7d55b77de24196e726a135f028aa21b1fef49c0a2b13fd11f1d165bcca12d5d847fc4528eb0f4347e8ced84a03678303fe26e9c7d2c0a3939b15ec13d56
DIST codec_g729a-20.0_3.1.10-x86_32.tar.gz 476843 BLAKE2B 8d014823184f17c158de9720bc903f841f290f1171344bc7a54ad7cf40627b7fcac697e642c35feef4e6eccff58b7fc85775e5d5a31c518b35a3b6c7bf258b19 SHA512 81d7d0921c9f17b31d9d3a3dd7e81844ee17bc9afd58418c2add40409c3eda932330e93411f32b5af67a42877f6abfba5d9b599812cc0655b2cc9851f1257c3c
DIST codec_g729a-20.0_3.1.10-x86_64.tar.gz 476178 BLAKE2B f27787c17929deecf048c0b79f38bd3630375d1e09afe142052ff7b4f9ef3d5577a09b11a11aa551ae6d82f44cf40931550fa5612ec132befa3c9e3776b7dd58 SHA512 91df558f4c88af703bde270d0e360ebba074ab5ff917f163f8a525b7fa0e4a2e7480884effafb1253d6a67a72e640d1cdaba75c10c24283655136d8a356dec56
DIST codec_g729a-20.0_3.1.11-x86_64.tar.gz 935324 BLAKE2B 236136c1e6d76784e36c7acafe7ac5e6843c941371f818d5a6529c5b5033315f93ff0d20a60a440f4c56f1850ac157d6f7af6fafbea26a3be5dff11c0827e4bb SHA512 026b84cc174a325cc19682b85e8d25d820dbb6b63b902ee4bac03ceb6997c502dabd743f39c2517775e8377e32f2376c202e1b0c49147fedd89ccfd5ba2955b9

View File

@@ -9,7 +9,7 @@ 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
MY_TOOLS_VERSION=20260331
SRC_URI="x86? (
https://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-x86_32.tar.gz
@@ -27,12 +27,13 @@ S="${WORKDIR}"
LICENSE="Digium"
SLOT="0/${AST_PV}"
KEYWORDS="-* amd64 x86"
RESTRICT="mirror strip"
RESTRICT="bindist mirror strip"
RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
pkg_setup() {
QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_TEXTRELS="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_PREBUILT="${QA_FLAGS_IGNORED}
/usr/sbin/asthostid
/usr/sbin/astregister"

View File

@@ -9,7 +9,7 @@ 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
MY_TOOLS_VERSION=20260331
# Keep the binary suffix to re-use already downloaded files.
SRC_URI="amd64? (
@@ -23,12 +23,13 @@ S="${WORKDIR}"
LICENSE="Digium"
SLOT="0/${AST_PV}"
KEYWORDS="-* ~amd64"
RESTRICT="mirror strip"
RESTRICT="bindist mirror strip"
RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
pkg_setup() {
QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_TEXTRELS="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_PREBUILT="${QA_FLAGS_IGNORED}
/usr/sbin/asthostid
/usr/sbin/astregister"

View File

@@ -9,7 +9,7 @@ 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
MY_TOOLS_VERSION=20260331
# Keep the binary suffix to re-use already downloaded files.
SRC_URI="amd64? (
@@ -23,12 +23,13 @@ S="${WORKDIR}"
LICENSE="Digium"
SLOT="0/${AST_PV}"
KEYWORDS="-* ~amd64"
RESTRICT="mirror strip"
RESTRICT="bindist mirror strip"
RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
pkg_setup() {
QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_TEXTRELS="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_PREBUILT="${QA_FLAGS_IGNORED}
/usr/sbin/asthostid
/usr/sbin/astregister"

View File

@@ -9,7 +9,7 @@ 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
MY_TOOLS_VERSION=20260331
# Keep the binary suffix to re-use already downloaded files.
SRC_URI="amd64? (
@@ -23,12 +23,13 @@ S="${WORKDIR}"
LICENSE="Digium"
SLOT="0/${AST_PV}"
KEYWORDS="-* ~amd64"
RESTRICT="mirror strip"
RESTRICT="bindist mirror strip"
RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
pkg_setup() {
QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_TEXTRELS="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_PREBUILT="${QA_FLAGS_IGNORED}
/usr/sbin/asthostid
/usr/sbin/astregister"

View File

@@ -9,7 +9,7 @@ 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
MY_TOOLS_VERSION=20260331
# Keep the binary suffix to re-use already downloaded files.
SRC_URI="amd64? (
@@ -23,12 +23,13 @@ S="${WORKDIR}"
LICENSE="Digium"
SLOT="0/${AST_PV}"
KEYWORDS="-* ~amd64"
RESTRICT="mirror strip"
RESTRICT="bindist mirror strip"
RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
pkg_setup() {
QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_TEXTRELS="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_PREBUILT="${QA_FLAGS_IGNORED}
/usr/sbin/asthostid
/usr/sbin/astregister"

View File

@@ -0,0 +1,63 @@
# 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=20260331
# 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="bindist mirror strip"
RDEPEND="=net-misc/asterisk-$(ver_cut 1)*"
pkg_setup() {
QA_FLAGS_IGNORED="/usr/$(get_libdir)/asterisk/modules/codec_g729a.so"
QA_TEXTRELS="/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"
}

View File

@@ -1,62 +0,0 @@
# 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"
}