summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2018-06-14 12:10:48 +0100
committerTony Vroon <chainsaw@gentoo.org>2018-06-14 12:10:48 +0100
commiteb35893fe0d552c13ce82d42ca1d88f3af0de0d2 (patch)
tree1f9aff693bd8234b7243e9c054e5dc06fc295f77 /net-misc
parentapp-crypt/gnupg: amd64 stable wrt bug #657596 (diff)
downloadgentoo-eb35893fe0d552c13ce82d42ca1d88f3af0de0d2.tar.gz
gentoo-eb35893fe0d552c13ce82d42ca1d88f3af0de0d2.tar.bz2
gentoo-eb35893fe0d552c13ce82d42ca1d88f3af0de0d2.zip
net-misc/asterisk-g729: Reintroduce package.
Closes: https://bugs.gentoo.org/600962 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/asterisk-g729/Manifest6
-rw-r--r--net-misc/asterisk-g729/asterisk-g729-11.0.3.1.9.ebuild89
-rw-r--r--net-misc/asterisk-g729/metadata.xml8
3 files changed, 103 insertions, 0 deletions
diff --git a/net-misc/asterisk-g729/Manifest b/net-misc/asterisk-g729/Manifest
new file mode 100644
index 000000000000..b5e1af58070a
--- /dev/null
+++ b/net-misc/asterisk-g729/Manifest
@@ -0,0 +1,6 @@
+DIST asthostid-x86_32 1678360 BLAKE2B 0caa098d9891cad9301bbc074d8ef8e0229ef3432c1f2328247e73c8248949c1951b61f47e0c395f0f6dee870d0962f9d5f612fd5565b43a3fbec1b198c6324d SHA512 9047533e47d4a806683368c0c432eb8699635dcde528adde7a34461f2104bf651cfd394a4b51c52c931f8bcebb7b41824c1db510996d20fb2d67e991ac0b63f8
+DIST asthostid-x86_64 1806296 BLAKE2B cd2e08ee760374f781d79a952679dc7d54f83dbd3f9a63dfe8fe4f36ea74c19c4a0486d459a5cb90877111100dd6e147bc701489e38ecefe585a4473147a5886 SHA512 be7d7b63259d5c4f15e6b3a55b283030bfc3f4ccf59c58848a9803838f7aa2ff470353a4d78d289bdcd40213c0cc81fad31e2bfad690fcaf111ea5cabae5adfd
+DIST astregister-x86_32 2103608 BLAKE2B 7fdf1c196152612cd28cfe7bf832dedb625b392f5e919480b1fb792327474d6ad91abaf4938ca8b230a1226bef62652e16f8d8ac1d0dad338fe308b3582c72e8 SHA512 3c3c4b8a32143d1aaaec6ec6b308335f59cf5381f844412e4e484aedc91bff2601778c28e99628fff828c81d2ec05b4de7c8c1cdddeea3ec37f5331beff47a2c
+DIST astregister-x86_64 2193440 BLAKE2B 9c9ac2343f5d7291251b9ceaa00fc4f8e4c39673e8d4854f8743beee5c86bbbc14c802c34ff26aa8412f1219113edeab7cb3b7adb94086c2f63724095d9f1fc5 SHA512 9302a7ead6bedd6683bcd0da92b7a7ca54fdb975784ef1783aa99f2bb26424dbb77b4c0fa6b809ae6e6ad839807feb055bee5c03a38292737412aa1c3d7df4e4
+DIST codec_g729a-11.0_3.1.9-x86_32.tar.gz 411132 BLAKE2B 6325763e27c25ab101ec825f08e8ba86a1b42dac1e75e792dfd1467a03909523097a6cb5c92233e391b293069e7bed7d23cd955329653d0730f529a6b5a1495f SHA512 3426e0ce15cba5866c1ef8f3c692237f6910ebde5740cacdf27e04f110caf7f289834eb8dc793dd4fa50ec17854a2ebad19764d9c485221e0237ac207ccff991
+DIST codec_g729a-11.0_3.1.9-x86_64.tar.gz 478377 BLAKE2B 409cdd436b0cf11c8d68372b1b22f29ed6e2d9f01d77ca8494415c29e89e88472c126461e9d124661dbd4ef26725301cbc3bb859884ae02592ad583a37608896 SHA512 f97972e4afac2897162cfce7c49423a36d313801246238e3923993e04a2add020028a509c11cb1f4f39ec612c4243007fe564438cf82e1c71543a44bf0bbd2c8
diff --git a/net-misc/asterisk-g729/asterisk-g729-11.0.3.1.9.ebuild b/net-misc/asterisk-g729/asterisk-g729-11.0.3.1.9.ebuild
new file mode 100644
index 000000000000..55994b2777f9
--- /dev/null
+++ b/net-misc/asterisk-g729/asterisk-g729-11.0.3.1.9.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit versionator multilib
+
+DESCRIPTION="G.729 codec and supporting files for asterisk"
+HOMEPAGE="http://store.digium.com/productview.php?product_code=G729CODEC"
+
+BENCH_PV=1.0.8
+
+AST_PV=11.0
+MY_PV=$(replace_version_separator 2 _)
+
+SRC_URI="x86? (
+ http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-x86_32.tar.gz
+ http://downloads.digium.com/pub/register/x86-32/register -> astregister-x86_32
+ http://downloads.digium.com/pub/register/x86-32/asthostid -> asthostid-x86_32
+)
+amd64? (
+ http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-x86_64.tar.gz
+ http://downloads.digium.com/pub/register/x86-64/register -> astregister-x86_64
+ http://downloads.digium.com/pub/register/x86-64/asthostid -> asthostid-x86_64
+)"
+
+LICENSE="Digium"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND} =net-misc/asterisk-11*"
+
+RESTRICT="mirror strip"
+
+QA_FLAGS_IGNORED_amd64="usr/lib64/asterisk/modules/codec_g729a.so usr/sbin/benchg729"
+QA_FLAGS_IGNORED_x86="usr/lib/asterisk/modules/codec_g729a.so usr/sbin/benchg729"
+QA_PREBUILT="usr/sbin/benchg729 usr/sbin/asthostid usr/sbin/astregister"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ local binsuffix
+ local b
+
+ if use x86; then
+ binsuffix=x86_32
+ elif use amd64; then
+ binsuffix=x86_64
+ else
+ die "Ebuild only functions for x86 and amd64."
+ fi
+
+ for b in astregister asthostid; do
+ cp "${DISTDIR}/${b}-${binsuffix}" "${WORKDIR}/${b}" || die
+ fperms 755 ${b}
+ done
+ default
+}
+
+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
+
+ dosbin astregister
+ dosbin asthostid
+
+ dodoc codec_g729a-${MY_PV}-${binsuffix}/LICENSE
+ 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"
+ einfo
+ einfo "Please consider participating in the G.729 stats collection that ULS"
+ einfo "is performing. This will assist in picking better variants for more"
+ einfo "processors as we gather more statistics. All you need to do is run"
+ einfo "the collect-g729-stats.sh command."
+}
diff --git a/net-misc/asterisk-g729/metadata.xml b/net-misc/asterisk-g729/metadata.xml
new file mode 100644
index 000000000000..1a06e96ebdc7
--- /dev/null
+++ b/net-misc/asterisk-g729/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+</pkgmetadata>