summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2011-09-02 13:00:51 +0000
committerTony Vroon <chainsaw@gentoo.org>2011-09-02 13:00:51 +0000
commit8e7b6a9d2ef3af99f0719f593efee1812890c3cc (patch)
treec33041d0bbc1b0fdf5fdfa77bce690ea012435f1 /net-misc/asterisk-g729
parentAdd Digium license for net-misc/asterisk-g729. (diff)
downloadhistorical-8e7b6a9d2ef3af99f0719f593efee1812890c3cc.tar.gz
historical-8e7b6a9d2ef3af99f0719f593efee1812890c3cc.tar.bz2
historical-8e7b6a9d2ef3af99f0719f593efee1812890c3cc.zip
Initial commit. Ebuild by Jaco Kroon, subsequently ported to EAPI 4 and further improved by Agostino "ago" Sarubbo. Closes bug #33277.
Package-Manager: portage-2.1.10.11/cvs/Linux x86_64
Diffstat (limited to 'net-misc/asterisk-g729')
-rw-r--r--net-misc/asterisk-g729/ChangeLog11
-rw-r--r--net-misc/asterisk-g729/Manifest42
-rw-r--r--net-misc/asterisk-g729/asterisk-g729-1.8.4.3.1.5.ebuild145
-rw-r--r--net-misc/asterisk-g729/metadata.xml9
4 files changed, 207 insertions, 0 deletions
diff --git a/net-misc/asterisk-g729/ChangeLog b/net-misc/asterisk-g729/ChangeLog
new file mode 100644
index 000000000000..9d4d6c6f855a
--- /dev/null
+++ b/net-misc/asterisk-g729/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/asterisk-g729
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/ChangeLog,v 1.1 2011/09/02 13:00:51 chainsaw Exp $
+
+*asterisk-g729-1.8.4.3.1.5 (02 Sep 2011)
+
+ 02 Sep 2011; Tony Vroon <chainsaw@gentoo.org>
+ +asterisk-g729-1.8.4.3.1.5.ebuild, +metadata.xml:
+ Initial commit. Ebuild by Jaco Kroon, subsequently ported to EAPI 4 and
+ further improved by Agostino "ago" Sarubbo. Closes bug #33277.
+
diff --git a/net-misc/asterisk-g729/Manifest b/net-misc/asterisk-g729/Manifest
new file mode 100644
index 000000000000..7a38cf20fbdc
--- /dev/null
+++ b/net-misc/asterisk-g729/Manifest
@@ -0,0 +1,42 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST asthostid-x86_32 1166416 RMD160 2b6fc2f4a345de933358cc9f3c7af76458a59742 SHA1 f2aea0394964585f5ea4d17bb859f504600472f6 SHA256 c6a208e4842a8137cd0efe86d0b4b82fe995bfb443d935e9a6fa6c69e3c191f8
+DIST asthostid-x86_64 1166416 RMD160 2b6fc2f4a345de933358cc9f3c7af76458a59742 SHA1 f2aea0394964585f5ea4d17bb859f504600472f6 SHA256 c6a208e4842a8137cd0efe86d0b4b82fe995bfb443d935e9a6fa6c69e3c191f8
+DIST astregister-x86_32 1178780 RMD160 a73de5575591821df518c196d70582d730c4d2d0 SHA1 05973a695fc8d735933f91f77edfb95abe348a70 SHA256 14cbcfc5e6b3aa03c2885816aef87b5d96ee34b3c7f70b1b536a975423c5358d
+DIST astregister-x86_64 1178780 RMD160 a73de5575591821df518c196d70582d730c4d2d0 SHA1 05973a695fc8d735933f91f77edfb95abe348a70 SHA256 14cbcfc5e6b3aa03c2885816aef87b5d96ee34b3c7f70b1b536a975423c5358d
+DIST benchg729-x86_32 2948664 RMD160 c945db1178811bb3e8440997fd525291b91ea53c SHA1 d1f4e1963416c6e272268cc96b170e2c14c491f3 SHA256 47a33e8588843cd7245b8ed483e061da39f12ee10c602476e302fa35ca7985e9
+DIST benchg729-x86_64 2358320 RMD160 34bae50695e58fd4154be3b8e16fca8023236b97 SHA1 43d5125f264728694a187c7c57c2740001cd9239 SHA256 bb2694fd5676eb9049933d785f79713a11fbdec0c49917787e4415866c1e25a3
+DIST codec_g729a-1.8.4_3.1.5-athlon_32.tar.gz 403709 RMD160 ed9cd54031cc8e7a43392aec34f06ffc34d885a8 SHA1 fa59c0ca95ed516aecd41f4b9e716e7fc3e0badd SHA256 2c6013b117a5bf5d0a45083a04f73ed743d0478edd11c7ac26d630139744c815
+DIST codec_g729a-1.8.4_3.1.5-athlon_xp_32.tar.gz 403996 RMD160 8a9ff9f994d03f74e0d58d9a8d5c2e333e01a3e0 SHA1 005487769eda377267d1b0664dee7ea25f6ccf1a SHA256 4d44dc96b6cc4a9058c57056da84353cfee01be7d82e4bbd7213d8e82a922cb1
+DIST codec_g729a-1.8.4_3.1.5-barcelona_32.tar.gz 411798 RMD160 4b93cc491e9babd9c655cf42c5ea3f5f29336612 SHA1 a721d0c6708e7f36c3310dadd445d208be02554c SHA256 60458577fd3b438a048f4dbcabbb5e20b1fbcaad72659d487b61be2e1e67d4ee
+DIST codec_g729a-1.8.4_3.1.5-barcelona_64.tar.gz 464569 RMD160 d33d570a051dad024970edd09aff07c016751302 SHA1 b2917f0c506c8aa48b29ac0bcad9334990483079 SHA256 2b872be4e67626a6472012ea89c103c074d357ec5b67325ab31002ce907108ce
+DIST codec_g729a-1.8.4_3.1.5-c3_2_32.tar.gz 404203 RMD160 f68ecae56dfbe0f8e6e2fb1fb04f73276dc5272e SHA1 07bc50166d43470f2f8570b87b32fba2d382309f SHA256 94a39b7fb90c0cf001d1fea5df6f3b75ab44f9ccbe3f1913530f1d5a1664b691
+DIST codec_g729a-1.8.4_3.1.5-c3_32.tar.gz 405547 RMD160 8a6c84e551ce01b8951c90bfb02b6bca1add5268 SHA1 9c99979f615b8d0c5a2f3088b3327fa955edaedc SHA256 759e9793b613e17156308bf1f81855713a49ae074566e2472ef22ad6b9799ccb
+DIST codec_g729a-1.8.4_3.1.5-core2_32.tar.gz 410393 RMD160 8f6726b376c9b8b0b42204ee4c3f579eec29e72e SHA1 bdc052b1293001114dc597242a622a3d51f35973 SHA256 d86316c57acb7882a8f283a25c4fd63acf3331224a5011f466c7465da73d78cf
+DIST codec_g729a-1.8.4_3.1.5-core2_64.tar.gz 464245 RMD160 d31b61c94e699e65bffae6c1bdf984a8789890c9 SHA1 cdfa7c56a2096fac89870586eeb1421caca4821b SHA256 728c002d07271ff9e4f350b75052185793f44382411f38db6b408d793f4ac9fb
+DIST codec_g729a-1.8.4_3.1.5-generic_32.tar.gz 403733 RMD160 c4c4d7699ddf4425fc8f3d83a1db4b737e1d37c7 SHA1 7c077bb7ca108b3b0c34db08998e6f8f3128e330 SHA256 784a007cb08d79b6da02f005317d672e460fa9a441d649c361daccae444a75c4
+DIST codec_g729a-1.8.4_3.1.5-generic_64.tar.gz 464031 RMD160 6d42048e710e637da41a48d9a7e050a794c9d84b SHA1 0a2928fe1868907ed8f039ecdcd85fcacde4714a SHA256 96bf0822b569ad883d2aa3837619a3747a718061a4e665d77aa6a3271c89be0e
+DIST codec_g729a-1.8.4_3.1.5-i686_32.tar.gz 403626 RMD160 c843f74e2d0e2eb5e072e435def399d5208c616a SHA1 99124e66b2ad5fcbca3708d8d7e87b4a4a154d22 SHA256 a5e5f0d86a22147c16ce55c0d92de73e5493ca3d7aca7873e854a8e7b12d9e39
+DIST codec_g729a-1.8.4_3.1.5-k6_3_32.tar.gz 406209 RMD160 a031d27a86041a3bd595cbb1be3d430160b73022 SHA1 5f6bb74c4cf5eaf2be61ae838ab3bf37ec924d5f SHA256 0fbe34539a7a0b58af09b25813fe2ca4da9b20d1454932eba20f92de00221328
+DIST codec_g729a-1.8.4_3.1.5-nocona_32.tar.gz 411059 RMD160 fb2ca1b4fa965141bde4967adb8afdc9b2d46bd9 SHA1 fad859274d888d2b4f3f6b05e69abba2a132bcc4 SHA256 4d12a79e94418105f2e8563f829d0628bcdd448dcdc9f80f6bc0fc90f349b7c4
+DIST codec_g729a-1.8.4_3.1.5-nocona_64.tar.gz 463007 RMD160 4b12bbc142503dc42804f75b3e9fbbf6279d22f0 SHA1 a7abae79cee8cf07c65b0785181908bf724e330f SHA256 f79dac0d400e89b1275a328fac214a103480377076c10327dab04cd2159e4294
+DIST codec_g729a-1.8.4_3.1.5-opteron_32.tar.gz 413490 RMD160 ac29a9f966647af43ead07c965a678f85cc227f7 SHA1 8728c3c68bb975ee6e58eb962fcfbd146576338e SHA256 3443eea4698890bf3d98a20951ac4f83fc4d13efd7eca089e318b3a9226650fe
+DIST codec_g729a-1.8.4_3.1.5-opteron_64.tar.gz 465550 RMD160 ec628f850e7b4da9a90cf2130641f0fe4412aacc SHA1 f17248b63ececdafb59adf6c9b33138e376a2fa9 SHA256 56ae4bf06d5ae772b93aa3a8ae0c871c6e1ecd267276eec0e96c5ea83702a45f
+DIST codec_g729a-1.8.4_3.1.5-opteron_sse3_32.tar.gz 413386 RMD160 2caeb52fa41ab9161ab5e6124e07a6dfc7204660 SHA1 9c267f81a1a25d74ee80e0b9d7b459ae157aecbd SHA256 aa8079a16bd61aa588452383556207f8f37c78092302b32db8503ddbe30d3f7d
+DIST codec_g729a-1.8.4_3.1.5-opteron_sse3_64.tar.gz 465431 RMD160 34e3d345aff6d8d3634e31b776fadab614d9b6d5 SHA1 462d23e0137146324d4388059f97d59ec2efd512 SHA256 02e488d75e1de580ab1e987794f70e1419e49c92ba32844b4296e0654a9647d3
+DIST codec_g729a-1.8.4_3.1.5-pentium3m_32.tar.gz 404207 RMD160 1ad69a220aefcada20332b4530f5f9ac6be78e03 SHA1 483bc326ab9105bf0ebb9c3f13f36f82c0d5521e SHA256 9302262cb83c99c2692bcc89a835fa1e034773b77ae7e21900a6d75b4686c372
+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 collect-g729-stats.sh 4857 RMD160 7241876ac8f1a778507b3f655820adebd871a0b1 SHA1 2a87944f1d2535ad867d93dd1eec95267d386b56 SHA256 901aeac3b3b5e11d8ef983820d1761cb5404a9240c9500f59e670ced2966c074
+EBUILD asterisk-g729-1.8.4.3.1.5.ebuild 6139 RMD160 b82218dd5b3164b70cd343163c8ace646e71f7c2 SHA1 c1c0615b5f2db67f218c03fea9a389b2ca9d8a0a SHA256 96103a3e1ac5cf8baa92a48a29e7a9e17e6dc2225ab82e052b52c603d279b6db
+MISC ChangeLog 501 RMD160 e2524cd87920ceb915229b8dc28dc9e5b440f70f SHA1 aeae4caa3ee7bb3e2a66fc74fbc0cfe6b3252de5 SHA256 d2f5a6ca66d157586904b00ad2116de709861b906f5477325611de44e75706a1
+MISC metadata.xml 257 RMD160 310ad9c194b37abe9bb814131148f5cc78c77625 SHA1 9f8b9263984b3fca531dcd3c859b0f0945d9920f SHA256 ad64812c2b7c47f6071002a0d7614aff3d4ba8349958093745d0a637b265d23b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iEYEARECAAYFAk5g04sACgkQp5vW4rUFj5o99ACfcqZwHu0V4rQ9H0PJxxYFEChT
+EtUAn2RkYhnu6iP5ue35SFa1L5C0EE7h
+=gwu8
+-----END PGP SIGNATURE-----
diff --git a/net-misc/asterisk-g729/asterisk-g729-1.8.4.3.1.5.ebuild b/net-misc/asterisk-g729/asterisk-g729-1.8.4.3.1.5.ebuild
new file mode 100644
index 000000000000..8807e76a1ead
--- /dev/null
+++ b/net-misc/asterisk-g729/asterisk-g729-1.8.4.3.1.5.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-g729/asterisk-g729-1.8.4.3.1.5.ebuild,v 1.1 2011/09/02 13:00:51 chainsaw Exp $
+
+EAPI="4"
+
+inherit versionator
+
+DESCRIPTION="G.729 codec and supporting files for asterisk"
+HOMEPAGE="http://store.digium.com/productview.php?product_code=G729CODEC"
+
+BENCH_PV=1.0.8
+PV_C=($(get_version_components))
+
+case ${PV_C[1]} in
+ 4)
+ AST_PV=1.4
+ MY_PV=$(replace_version_separator 2 _)
+ ;;
+ 6)
+ AST_DPV=1.6.${PV_C[2]}
+ case ${PV_C[2]} in
+ 0|1)
+ AST_PV=1.6.${PV_C[2]}
+ MY_PV=$(replace_version_separator 3 _)
+ ;;
+ 2)
+ AST_PV=1.6.${PV_C[2]}.${PV_C[3]}
+ MY_PV=$(replace_version_separator 4 _)
+ ;;
+ esac
+ ;;
+ 8)
+ AST_DPV=1.8
+ AST_PV=1.8.${PV_C[2]}
+ MY_PV=$(replace_version_separator 3 _)
+ ;;
+esac
+
+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() {
+ 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/lib/asterisk/modules/
+ dolib.so 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})."
+}
diff --git a/net-misc/asterisk-g729/metadata.xml b/net-misc/asterisk-g729/metadata.xml
new file mode 100644
index 000000000000..66a09d837718
--- /dev/null
+++ b/net-misc/asterisk-g729/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>voip</herd>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+</pkgmetadata>