From e8f92525c9f0cc1366afa3676d6ee4e1619837e4 Mon Sep 17 00:00:00 2001 From: Jaco Kroon Date: Wed, 26 May 2021 11:48:52 +0200 Subject: net-misc/asterisk-g729: QA issues (existing versions). The pre-built .so file should be listed as such in the QA variables. Additionally introduce subslot as per net-misc/asterisk and other related modules. Revbump due to SUBSLOT introduction, no change to actual installation. Closes: https://bugs.gentoo.org/792183 Signed-off-by: Jaco Kroon Signed-off-by: Sam James --- .../asterisk-g729-13.0.3.1.9-r1.ebuild | 68 +++++++++++++++++++++ .../asterisk-g729/asterisk-g729-13.0.3.1.9.ebuild | 69 ---------------------- .../asterisk-g729-16.0.3.1.9-r1.ebuild | 68 +++++++++++++++++++++ .../asterisk-g729/asterisk-g729-16.0.3.1.9.ebuild | 67 --------------------- 4 files changed, 136 insertions(+), 136 deletions(-) create mode 100644 net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9-r1.ebuild delete mode 100644 net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9.ebuild create mode 100644 net-misc/asterisk-g729/asterisk-g729-16.0.3.1.9-r1.ebuild delete mode 100644 net-misc/asterisk-g729/asterisk-g729-16.0.3.1.9.ebuild (limited to 'net-misc/asterisk-g729') diff --git a/net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9-r1.ebuild b/net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9-r1.ebuild new file mode 100644 index 000000000000..01114a23c866 --- /dev/null +++ b/net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2021 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" +} diff --git a/net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9.ebuild b/net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9.ebuild deleted file mode 100644 index 1a226c0eb772..000000000000 --- a/net-misc/asterisk-g729/asterisk-g729-13.0.3.1.9.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2021 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" -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="/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 - else - die "Ebuild only functions for x86 and amd64." - 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" -} diff --git a/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.9-r1.ebuild b/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.9-r1.ebuild new file mode 100644 index 000000000000..01114a23c866 --- /dev/null +++ b/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.9-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2021 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" +} diff --git a/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.9.ebuild b/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.9.ebuild deleted file mode 100644 index 317b54926409..000000000000 --- a/net-misc/asterisk-g729/asterisk-g729-16.0.3.1.9.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2020 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" -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="/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" -} -- cgit v1.2.3-65-gdbad