From 47e0806a0bb0df80acd7d2f54834f13eca966b03 Mon Sep 17 00:00:00 2001 From: Tony Vroon Date: Tue, 3 Jan 2012 13:29:14 +0000 Subject: [PATCH] Version bump, ebuild by Jaco Kroon with input from Agostino "ago" Sarubbo. Closes bug #396415. Package-Manager: portage-2.1.10.44/cvs/Linux x86_64 --- net-misc/asterisk-g729/ChangeLog | 9 +- net-misc/asterisk-g729/Manifest | 31 ++++- .../asterisk-g729-10.0.3.1.5.ebuild | 126 ++++++++++++++++++ 3 files changed, 161 insertions(+), 5 deletions(-) create mode 100644 net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild diff --git a/net-misc/asterisk-g729/ChangeLog b/net-misc/asterisk-g729/ChangeLog index 8a3105c0ba02..a6b9788bc7b1 100644 --- a/net-misc/asterisk-g729/ChangeLog +++ b/net-misc/asterisk-g729/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/asterisk-g729 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/ChangeLog,v 1.2 2012/01/03 13:07:36 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/ChangeLog,v 1.3 2012/01/03 13:29:14 chainsaw Exp $ + +*asterisk-g729-10.0.3.1.5 (03 Jan 2012) + + 03 Jan 2012; Tony Vroon + +asterisk-g729-10.0.3.1.5.ebuild: + Version bump, ebuild by Jaco Kroon with input from Agostino "ago" Sarubbo. + Closes bug #396415. *asterisk-g729-1.8.4.3.1.5-r1 (03 Jan 2012) diff --git a/net-misc/asterisk-g729/Manifest b/net-misc/asterisk-g729/Manifest index 962450ce4029..8919802fb7b4 100644 --- a/net-misc/asterisk-g729/Manifest +++ b/net-misc/asterisk-g729/Manifest @@ -29,14 +29,37 @@ DIST codec_g729a-1.8.4_3.1.5-pentium3m_32.tar.gz 404207 RMD160 1ad69a220aefcada2 DIST codec_g729a-1.8.4_3.1.5-pentium4m_32.tar.gz 408839 RMD160 9a201613bf6d9c70ea70dc2542593d8c2d1fffc6 SHA1 4b069c0358b94bd8cea0db2b8d28e7bb4dee764c SHA256 7bf2c1feb4a4d579b377f81625c4522ecb546b7dfa5431f3815de2e267c10948 DIST codec_g729a-1.8.4_3.1.5-pentium_m_32.tar.gz 412950 RMD160 d24e8ef0624c2c74ee4e121609fc0016a8706cd5 SHA1 17a108d31a47540ca04425bc7a911ac190e64db3 SHA256 9a8a94ec14977dcb060d5a910e500ada175c63f872a2784f436e355dd76ca86f DIST codec_g729a-1.8.4_3.1.5-prescott_32.tar.gz 411062 RMD160 5c17d3721a5652def5fea89fe06db1c9bb02e23f SHA1 a46ae9294406ae2e5ebd26bc1e03cb7ccb24a223 SHA256 719ce410b658b14bae6c08923420b819f23aae948a079ea1cec60b5bbb775d9b +DIST codec_g729a-10.0_3.1.5-athlon_32.tar.gz 403835 RMD160 952bd96666f3b9f0e8ccfc050da607500a15a382 SHA1 2b7bae59b315095320b3d888db1141da8740b436 SHA256 5f1868e55840b0912535e832a10decba263e6a9741efd746134c3ec47a8f01df +DIST codec_g729a-10.0_3.1.5-athlon_xp_32.tar.gz 404026 RMD160 31e2d096b22e42b3f9a852ddf4126b3e3011667a SHA1 d45863ce9e25f9289816f5146965b07604713aa8 SHA256 83309386b1721b42f66987b3c7c52dc97bdf765ae12f979a059fc42242b3772f +DIST codec_g729a-10.0_3.1.5-barcelona_32.tar.gz 411895 RMD160 469022d8f5e0d538b5f4736779d7c14d6601a307 SHA1 3ece3a908d3ad91412ab15a3b01c5b3a4ebec975 SHA256 e6ae98bb90d40169b6faabefde7a8763d678edef996d1116b92747d100adbf42 +DIST codec_g729a-10.0_3.1.5-barcelona_64.tar.gz 464513 RMD160 3d82664257d11884e533625caf2ccfcbd6a4be5e SHA1 a5614f45a4b7c5f3ef7acdb77b4868fbfaf17ff5 SHA256 39072f176e3de69a3f5c6b1abfedff6f3d4bfb397e4d84032a0ea48e6af3a071 +DIST codec_g729a-10.0_3.1.5-c3_2_32.tar.gz 404427 RMD160 769da6ec723ba9328e62ff98bf93e199f59be16f SHA1 784479760f31f62cd72a1eb962ee991dced1d4c6 SHA256 1e1af7351bcfafe9a897d046907ee6ff646f0d9dce69317b2367c3232b991919 +DIST codec_g729a-10.0_3.1.5-c3_32.tar.gz 405431 RMD160 fd7c680f4632122bef00b8a8b12b7fea611a19fc SHA1 3350c80362cbc853a05582edaf508cfe2bd228ca SHA256 1e8928907cba2764702f3803e4a04b7c4afc3bcaca0d69a5c035923e7439a6e2 +DIST codec_g729a-10.0_3.1.5-core2_32.tar.gz 411686 RMD160 3af8c8838b793d27920e238f040bffcf37b214f4 SHA1 61680e847176ffca7691b0e76efc1b4c49e30229 SHA256 73c5bd423a8cdba4eb19ec11a06b3c2da69d80ce989f26e695cfac215b729647 +DIST codec_g729a-10.0_3.1.5-core2_64.tar.gz 464324 RMD160 a9bb33a40041aca0d4eb1e210658acc2935dba9b SHA1 6e273130c0c953c771df7308a4447d2704be4ace SHA256 9314155b7f12e46619f5d654b11b8361f5335efc35597dfce30569e5f343d70f +DIST codec_g729a-10.0_3.1.5-generic_32.tar.gz 402880 RMD160 9b897052c15528474a10dda05cbb018d2bff712b SHA1 5271b56edaa16a8d66e31c100eae28396b543073 SHA256 b78de51123197771b08b8a9823aa9ccaf97ce11e70a86a56f49eefe40c300146 +DIST codec_g729a-10.0_3.1.5-generic_64.tar.gz 464099 RMD160 d62feaff8439ac9f3b44d2ebd71d1e83bc770f2f SHA1 06da27a79c8151194769b8ffef5a02826b79b17a SHA256 b01d4a7503a9d2dacaafde83da34de6ad211ff8a2cf2865da6e603de6da364e8 +DIST codec_g729a-10.0_3.1.5-i686_32.tar.gz 403725 RMD160 712287eb67226ed5e5a8bb4b7ade4fc4d0a75cb2 SHA1 acb45c0b8b3b5733d88b16c7a782a86606b451a6 SHA256 a7b252ba8aaddd3d6e859a2b1eb8fcd7a32ff1dc8be931cd52acf77c58ca72db +DIST codec_g729a-10.0_3.1.5-k6_3_32.tar.gz 406261 RMD160 4ae1a39f467aa365b3787757d5bcb336725e14e8 SHA1 c8cd7ac70aaa48eaa29997bbd8ffc40a1a115cb2 SHA256 6d18b3cf9bb2700a48bbff1169ed72745c1123e2031dc17858431419fa841fc5 +DIST codec_g729a-10.0_3.1.5-nocona_32.tar.gz 411103 RMD160 7e345533473cd4664c89518d137d8d0d11c1d47e SHA1 18c58d96ec67b30a82f624b36ec3326542062433 SHA256 b7b06e9df6922c24bf5c5cbcd695132655d05f51846da3bfbd8a587f72a23aec +DIST codec_g729a-10.0_3.1.5-nocona_64.tar.gz 462983 RMD160 42cd3a1698293e739c6b686e25538a2c8a5796e7 SHA1 b4c2a6e6af46f662f4a4dc4b3c33412efa71e073 SHA256 5fda82ffd5c528352dc025d95ce697e470d7a8f01d753b73cca2ec375dc5fd30 +DIST codec_g729a-10.0_3.1.5-opteron_32.tar.gz 413147 RMD160 60758007766a12b36f713f6681baeca469b37e2e SHA1 a5cd204cf7e220ae527bca704adf1485af5238a6 SHA256 0cd70de0dc6151f2c1dff0c6a147e31ae4ef38f73d4da90fdd439e93ab824d39 +DIST codec_g729a-10.0_3.1.5-opteron_64.tar.gz 465636 RMD160 9451f3f8f350eb16f421224a4ece765a77e181b6 SHA1 1a5214c5cdd506824519c91809fc2f60189ba3ab SHA256 45c459cd17e781f99f34bc50df7f6198825c426713fc709e8142b4eaa1a5d840 +DIST codec_g729a-10.0_3.1.5-opteron_sse3_32.tar.gz 413489 RMD160 929ed343c960d368b7c5a735b9b69caa735c5521 SHA1 de8ac0906a1f1c5b891b8330d472567a0a33c94e SHA256 3c4c3fc296c9aeffd2291157e62e944938e351d687e3d65e566692ba15c78466 +DIST codec_g729a-10.0_3.1.5-opteron_sse3_64.tar.gz 465412 RMD160 74d1a1d33c833e46a7c3d6040b5efc36b149d193 SHA1 5a84a64eb02f3103096c483a48bcfc925452ab6a SHA256 b13d21b83d341fa65cf8fe454042ac685afb14f2cbcab1a935a8227db8a649fc +DIST codec_g729a-10.0_3.1.5-pentium3m_32.tar.gz 404443 RMD160 f2e479c2feb8a85c952ef4756043e4361af3db29 SHA1 934fe561e1a11add84aea3c5a98d8a2a9fdf1836 SHA256 3801b15560d8c3ad8ccc473141562b45d3bbf546e3488e3c92fbb2ad0b8f215b +DIST codec_g729a-10.0_3.1.5-pentium4m_32.tar.gz 409039 RMD160 5393e61708d9be544536ca00fd75f5d436501c59 SHA1 2fb2ff9d35634bf68f4ab191b95dda8ea75eaeec SHA256 435a18c5fc1662b05a81db10135f7529bb512a9e2565f659675e241c227ea144 +DIST codec_g729a-10.0_3.1.5-pentium_m_32.tar.gz 413086 RMD160 ce18795b4c3273acbd7bd43eff786d6fa9db9c1c SHA1 df5e58090900f26c8d9833996fe32c89f7512f36 SHA256 ab6bcc5e79b5d9e19b992cbd9c11d85732a755effd99f40ab64864ce39c3f63b +DIST codec_g729a-10.0_3.1.5-prescott_32.tar.gz 411108 RMD160 911ecdd0692800c1a35885dca1fd838a574b4f43 SHA1 5d59ec12987acabcfa788c38f28423bb7d49b24a SHA256 719ffa516e6d64de33f4d933d65504c6bcbd2ae49d7f6b64f7d73ae2b4612f95 DIST collect-g729-stats.sh 4857 RMD160 7241876ac8f1a778507b3f655820adebd871a0b1 SHA1 2a87944f1d2535ad867d93dd1eec95267d386b56 SHA256 901aeac3b3b5e11d8ef983820d1761cb5404a9240c9500f59e670ced2966c074 EBUILD asterisk-g729-1.8.4.3.1.5-r1.ebuild 5812 RMD160 db0c0b31f621237deb5c5c2194bede236fc9db3f SHA1 6c4723befb4875a25e6e660f864c857524c7e888 SHA256 82343588db74d3a7e8eb00730da5f61d843221ab5d76a04130c7106d1193a0bc -MISC ChangeLog 841 RMD160 eecb79f2a82053735ae694dcb2a0715ba7d7ab7e SHA1 96fe9bf77a66df4bd8272f0355be39968a0f5432 SHA256 85173e1b279af9316ccf3746aecac07678fbc4e0ac1fec68b5cc677181736f4b +EBUILD asterisk-g729-10.0.3.1.5.ebuild 5806 RMD160 c6fcea5862ef787d9c895f71c92c44dc7d896cde SHA1 31ca59470549ea2744f331f6224c173e66955821 SHA256 e6344e3ee8afe8a186637b136b5edc09e07180fa2509a434d456f34bacbebf78 +MISC ChangeLog 1066 RMD160 25b99a70ec2cd1ca4396f3f2898a2db9272f86dc SHA1 028b1346cb58290c3b7220e3c5faac9b8e8bf98e SHA256 e0c781f2b9389f5bf42ae6c810c1b4480d928f1a8e37cf2719088bab05f9bc83 MISC metadata.xml 257 RMD160 310ad9c194b37abe9bb814131148f5cc78c77625 SHA1 9f8b9263984b3fca531dcd3c859b0f0945d9920f SHA256 ad64812c2b7c47f6071002a0d7614aff3d4ba8349958093745d0a637b265d23b -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iEYEARECAAYFAk8C/bYACgkQp5vW4rUFj5qYLACguonAAI1tBA2WOJklsZo9pmFQ -mG8An14wgFC52s1qlBqAKRuVUIF7TBft -=hltX +iEYEARECAAYFAk8DAskACgkQp5vW4rUFj5rJKQCdFKbHYqK9DVq1XQRwg2CmXh1C +Y5kAniP+1n3XWquwqHZccy65Dtb5GfI/ +=lU/A -----END PGP SIGNATURE----- diff --git a/net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild b/net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild new file mode 100644 index 000000000000..02fc4ddd0523 --- /dev/null +++ b/net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/asterisk-g729-10.0.3.1.5.ebuild,v 1.1 2012/01/03 13:29:14 chainsaw Exp $ + +EAPI="4" + +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_DPV=10.0 +AST_PV=10.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}-athlon_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-athlon_xp_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-barcelona_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-c3_2_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-c3_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-core2_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-generic_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-i686_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-k6_3_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-nocona_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-opteron_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-opteron_sse3_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-pentium3m_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-pentium4m_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-pentium_m_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-32/codec_g729a-${MY_PV}-prescott_32.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-${BENCH_PV}-x86_32 -> benchg729-x86_32 + 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}-barcelona_64.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-core2_64.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-generic_64.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-nocona_64.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-opteron_64.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/asterisk-${AST_PV}/x86-64/codec_g729a-${MY_PV}-opteron_sse3_64.tar.gz + http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-64/benchg729-${BENCH_PV}-x86_64 -> benchg729-x86_64 + http://downloads.digium.com/pub/register/x86-64/register -> astregister-x86_64 + http://downloads.digium.com/pub/register/x86-64/asthostid -> asthostid-x86_64 +) +http://g729.uls.co.za/static/g729-stats-collector/collect-g729-stats.sh" + +LICENSE="Digium" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} =net-misc/asterisk-${AST_DPV-${AST_PV}}*" + +RESTRICT="mirror strip" + +QA_DT_HASH_amd64="usr/lib64/codec_g729a.so usr/sbin/benchg729" +QA_DT_HASH_x86="usr/lib/codec_g729a.so usr/sbin/benchg729" + +QA_EXECSTACK="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 benchg729; do + cp "${DISTDIR}/${b}-${binsuffix}" "${WORKDIR}/${b}" || die + fperms 755 ${b} + done + + cp "${DISTDIR}/collect-g729-stats.sh" "${WORKDIR}" || die +} + +src_compile() { + ./benchg729 | tee benchdata + variant=$(sed -nre "s/^Recommended flavor for this system is '([^']*)'.*/\1/p" < benchdata) + [ -d codec_g729a-${MY_PV}-${variant}_${size} ] || variant=generic + [ -z $variant ] && variant=generic +} + +src_install() { + local size + + if use x86; then + size=32 + elif use amd64; then + size=64 + else + die "Ebuild only functions for x86 and amd64." + fi + + dosbin astregister + dosbin asthostid + dosbin benchg729 + dosbin collect-g729-stats.sh + + dodoc codec_g729a-${MY_PV}-${variant}_${size}/LICENSE + dodoc codec_g729a-${MY_PV}-${variant}_${size}/README + insinto usr/$(get_libdir)/asterisk/modules/ + doins "codec_g729a-${MY_PV}-${variant}_${size}/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." + [ "${variant}" = "generic" ] && einfo "You are using the generic flavor of the codec, in order to install a more appropriate one please install a G.729 license and remerge this package (${PN})." +} -- 2.26.2