summaryrefslogtreecommitdiff
path: root/net-misc/asterisk-extra-sounds
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/asterisk-extra-sounds
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/asterisk-extra-sounds')
-rw-r--r--net-misc/asterisk-extra-sounds/Manifest22
-rw-r--r--net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild66
-rw-r--r--net-misc/asterisk-extra-sounds/metadata.xml19
3 files changed, 107 insertions, 0 deletions
diff --git a/net-misc/asterisk-extra-sounds/Manifest b/net-misc/asterisk-extra-sounds/Manifest
new file mode 100644
index 000000000000..37defd12e11a
--- /dev/null
+++ b/net-misc/asterisk-extra-sounds/Manifest
@@ -0,0 +1,22 @@
+DIST asterisk-extra-sounds-en-alaw-1.4.11.tar.gz 13870284 SHA256 ab9e91747f9ad424b14e8f5508018eeaf06a854e4f5b1234b60a712f7ba451bd SHA512 485a265d1e28cbf03e57fb02dc517b1004806c8ff9f13aa24ca6f6e17a8101871e4b81a52c1691ac16af7e8b33d58795bf12a9516177ae67dad9f14cf73615ee WHIRLPOOL 36363f3e030e142e8c4b2b056475d7ce310f6122ccf9ea5bc173558ad2ee18fdf738d441dba1b9f8bb302d450259b6bd18eb2e4e06408483a685f88db04e6315
+DIST asterisk-extra-sounds-en-g722-1.4.11.tar.gz 14184931 SHA256 cc302da7156a134e1c11bd960e4aef088ee403b443e67aaa10c780e3d75957ed SHA512 0306f024142712d56aada332d10a45222e49feed0701d65b3a214681b10074ae7dd9d68f952fa826f9e80f35a6bf67b5f1206c49394c9c530588eefe28e590cb WHIRLPOOL c2a4f92e440b6dcd79f621b79a8ebc859188b8509ef57db64feff178a8dff7b0af1eddf158a36bd93871c5f6259c7e53d0e82858ab680a3ec60a9cd3f9ed27e5
+DIST asterisk-extra-sounds-en-g729-1.4.11.tar.gz 2102012 SHA256 e8589bf4f88c6ba75315be8c55f2bfde7086b62050d5815f4b41cb43b8e1fbb0 SHA512 32de0ddc94db5a25000038b44b4f475e69350934319ddf3762f26f096a700a8369ee3a5fd888645af3ab3b5198850aa9776e0378daae6a91a1850f33a7a4d8f0 WHIRLPOOL e0531cc8778703e15152cbb29daa2437ccc790a5a21fed054f5980b6b28d4f48f17ec5e2119fdb11e4ff07df3fe3ea9cf64358d60d000e9e2ee4d73b63b8dba9
+DIST asterisk-extra-sounds-en-gsm-1.4.11.tar.gz 3349898 SHA256 d5f031cc31ebebec99ce3fcf44ff947bd7b27b5e9565a7b3a6185c2d1bda094c SHA512 fa65d47f2946194791671cb35aa604e2d17da9f24b04e99e0385bf076131c59d76f44fe42e54febdb14bb430e961a734a56146d1b54cc89747ab68f290d3d633 WHIRLPOOL 931f3c1a9a58e3880ad536b28d18e507ff5fdede367ac209db97688740fa0fae5b7827c291e75c56afb5016379f57f4bda07809b491f05d16b8b1a4c46062c61
+DIST asterisk-extra-sounds-en-siren14-1.4.11.tar.gz 11770392 SHA256 cd62cc292ce506d7ce1acf37caed07c986eb96eb795073deae289cbf0fe324fc SHA512 dbff3cc3ad8d8ba5c1db7b19fe843198ff398f049fadf4d5ae93d79ef3cf5a24c3b3f68117197800e23f8d80fe85fc300d5cc5d6d33ab9d78b533c623ccfa88a WHIRLPOOL c776aaaed12f023bcf93eaa6dc2428f5abe4f5b6c43cc4791d9b3c436db0da541b46ab621d1b1307b011a08c74e770269c808fd0ba2727e546eb9ba8713b5b16
+DIST asterisk-extra-sounds-en-siren7-1.4.11.tar.gz 8001319 SHA256 2af1ebba33566f47593eb0ccdc99d6a20865c6338ffa81e1fae1c2237c28d576 SHA512 430c8c4db2409cf173ab2677446f2603d92beb0b480aa41adedfcf0cbdffc96654b82026c0ed50787b71b8e9736440539d476b7c62bea81cfd11cb94e5af1e7e WHIRLPOOL 0db6c4273ff60eb6ff9059cd6f9f8cc23255ad2afbbfb1c80b91e4bc4ddafa27afe8f2f343e09cb0987c26619cb49e1c64963705ca714ef9e9a990d4fa41fe49
+DIST asterisk-extra-sounds-en-sln16-1.4.11.tar.gz 56596426 SHA256 5d3836e512cfcb06feff7f6e64229a5f7ca5d4186b21c079a7b998109c242d68 SHA512 29bd4d2761fca204e645db2bf103a9839a4e7ab610d77eb19f437a3ee31111de80d6d99ccc46232977f230271da78b4aa9d635aeb11a6770b9cdd6a7cd6da056 WHIRLPOOL 1a2474ccfc762d10771177b965365fa061956fc03660e52b8fe64ca96c1912a4f81068f8bcef2771a69fb5d5c921ee5b4c819005355f15fab9633acb71c7eddb
+DIST asterisk-extra-sounds-en-ulaw-1.4.11.tar.gz 14277966 SHA256 22dd692dde962683601599926efa9281624fce469776bccbd6f5c6b727e77a4a SHA512 bf64aaa2e59aac112a30b5797cf9feda09ad81aa95b8f800381c4276b9138fe826cec0aa562ad458bea6876801d0163e680035c935e756bf951d6d5edf4f87d1 WHIRLPOOL 254ff3648a6d62377b565a79fed3f176f7996966c4bc3df34dc3dd5a7cdcb2379243a12d9aa7aa5a463f9d7ac1d0f44fa5d7d00818904e3a8183ba09633a544f
+DIST asterisk-extra-sounds-en-wav-1.4.11.tar.gz 27948533 SHA256 34cefb8aa31021e947c77033b99ced9d62f9d8785b45a04bd12675a0eddd9ed5 SHA512 163d7acb06ae8216c27293351768b658e61ecf928c5e13edcbf25014107b763d92e3e31424ba36703a7d92b617a78d9491bff86fce5046fb8ecabc3327f364b3 WHIRLPOOL a5838fe7c5211c45d446a9a2204f50ad3f2db5a77b30c933b66fb69d8ebf0dcd5b56d46b8f253380789bfd41c98312de913f19e2e6510c2d05d1b24cb6f4969c
+DIST asterisk-extra-sounds-fr-alaw-1.4.11.tar.gz 11474936 SHA256 2f042b94474000d15d373c727c9ad9dd4151ce6100b7cc7486748babc3879836 SHA512 c5922db421e168e350785f837b8007540438cdd9e5a8fef0260120c23f0d6df5ad83d18f11545e23cb24b68fd35b0454594091fc8a75176d1604bdd5b08290da WHIRLPOOL 2d538abef6e6b2cd0d778ca957da1b726ce704d212cdbdf3a3e3cc6dc751d966fe25efffb80ef8cf1668153cde60d5fba0ed925a8c2ed40ec4ae30f53dd5c17a
+DIST asterisk-extra-sounds-fr-g722-1.4.11.tar.gz 12976829 SHA256 0bc0f9fe98d528625db827d474cd619f79abbb9d1495936e41f86b69d63f3f2d SHA512 834a4baf05512e299be5cf5eaf7b100dfc8c77175515fb53885b9393cc7edba5e582780a8e3b689eed9c6b0828d3a989c39e96c601b49a2353bbf8487a7fa52a WHIRLPOOL ced997b6affa36e643dd026ed887b8844236c6b70e5e7e590550436e2e9c036a1963345bbd1358abc2c03afa2e4e3c1c717b7c6e711015a7114f6c96e5a29c26
+DIST asterisk-extra-sounds-fr-g729-1.4.11.tar.gz 1868622 SHA256 687b6e2f7632372a125acb97ead9b597819ec02c4b77cd6e62fd070b34fd9b26 SHA512 2cc5fe3cb600b4f08cda0b67f63f92a0675b7d88bef193eef02b2d76c1a1357221ddf21a7ae3e64bf9741528241969083c7374a9dd9bc8fa94213912362ba009 WHIRLPOOL 89768e213c3138eeae08ae928254ca56d53c2b65e3023470644692a3d46355da2482fe40a0bb3a8da859130bd078a374242c2a4eba75ee795b0e83d049106a87
+DIST asterisk-extra-sounds-fr-gsm-1.4.11.tar.gz 2930043 SHA256 1608776dbad3a97aad525eb4087d5c9944d7856ff8e015afeb353c5e97b38746 SHA512 f9df81f89c679f1f28da7932c544e5d8da7c60fe06dbb1b11978b02e881eeae134dc298a4a971812f836c49e3c0491e983286ac45e5640c23e62fb069315aae6 WHIRLPOOL 54ffea6c6ea4d90b273971e5b25693cafff7aced37ae861988d5f276203d488347d8a9abcf76461179598025c8d703cefe84c82d131d039e13b66f66ffabfcff
+DIST asterisk-extra-sounds-fr-siren14-1.4.11.tar.gz 10811820 SHA256 bcf7b3528c2e8a37badd9d5fa4aeac6357bd113974288345ca9e56fcdb1080e3 SHA512 5af35a5d5c5e800c372a00eeb30b0f942d9b6b3876f3290c92f2c24607527901edbcab29a72d1464ad5e9a5e3a65694a3e09362162bbb19e977fead694b08ce6 WHIRLPOOL a4c056dfbb68074e18bc30406c53112ee136297ae1d020dd5b93676cc9371c8f9d92fd76c4559a7240ecdc77929813a8f362e2ffe23f8041f342b22a33c48ba4
+DIST asterisk-extra-sounds-fr-siren7-1.4.11.tar.gz 7128320 SHA256 a02d8d554ec365dd32a747845457323e649928dce1ac0cfffd6910b622130981 SHA512 e583beae9a7878e9b5975ad4556ea9469f327f145e6ba6c4775c4023b6b8536931ae884aab0c2af1d3e1bb2d4b92600082337f6e6520e8982b1da7a6b5646962 WHIRLPOOL b7266046ebec57959a6e16991600d0c4cfa43d4e446c180f0f2075a027d4564798f1fdd52bdb7c001a5d685740147c585ef58d5ac1ef803f75f9496124e3d3f6
+DIST asterisk-extra-sounds-fr-sln16-1.4.11.tar.gz 48517491 SHA256 d130ca16550dbc85ccba3ce791a4b1aadbde6e88b84579cc0446af3e6e4870a6 SHA512 f8b0a1eebd93fdda707846dc73d30418462a07572962cbe822eb11ed5c2ce7741b185b0e4abd05c47d0c2c53e817c47b3c493d94e92e50848c7a270e87e9a586 WHIRLPOOL 55fc1cce39a48aed5bb33546675b8f27760986a49258c9f05d872c7b6144880b782a0a1b7fa15277b8e9708a7813008c6eddb591c356b86b763b3b5cb9b0eb2d
+DIST asterisk-extra-sounds-fr-ulaw-1.4.11.tar.gz 11818928 SHA256 7a20535f45ed4415e7adf6f2e19dcb6419bee8262ac11611778ed8e6eabbf0cf SHA512 34ba851729186250a3fc459b685c0a4d475e32820e4a49b3a1b2c038e0252a71a0637e1bfd67e0bd4960cb90ec24f8cb28435a049fcc91f7b3ed4f0f1009b0ab WHIRLPOOL bdb91645d1c6a58a8b5df9ddf21725be504796a6c386f411014b5600a2badbc2811353325f477c41165f35976e22003cf010ec9c2e1f1a1503541814da232a0e
+DIST asterisk-extra-sounds-fr-wav-1.4.11.tar.gz 23829634 SHA256 d3891730151e0a76c0a811499040379535d3ab7b63ee10f3a2e12b5c083887c0 SHA512 4482f7a95fcd5b43ead86e877e4df88d017ea003bbe56c4813fe6814956fb015d4359bd1257513b34c3d80ac171472c0749e534ede6ab9aecf42a589ad76c0ba WHIRLPOOL 74f4f402715b44c97de6800a88f7b75dbc9c2412457f6cbaae16d4d642377a74a37787320caa4600fd7515fcf7cae7cf3a3117d690a9d4587675b15cae2f9654
+EBUILD asterisk-extra-sounds-1.4.11.ebuild 1795 SHA256 66d04db6af4bae076f5c51e6024b512994b3faab3006cac08c7a5bd2a82e95c9 SHA512 050fd1b23dd1873529a871327dd88f77a8d8fcd3f49145878d90ec82f2e1326de930a704708b0ab38c38c052605448382ad65e707db5fe68459b176df34e8b62 WHIRLPOOL ded6e89afaa4bf02d7b1fa0d80f551ce5b7649c6a597a8272d6252b99dc896b4be4a35997c606757962fcb4c182633afffafaece839b34c5604663714f062954
+MISC ChangeLog 2220 SHA256 6169d18149a507e6827db353e52d11d460ca45b9cd26c7d2364404a71f519f96 SHA512 598b3428aa331be6b99a97966741cf6d7b89e89563279109814b6a0b3b275b8288f26c0343c290f44934050fb6d0158c8210b2c85b7ec9c6fedc57d9bcc7a736 WHIRLPOOL 58dc57986e2944a1db54edfabaa825db8d8e500a105bf4182b7f5c410c692d9524bf5e69983a3e272973c5c7728282891752268bae1c73bc0d7672d1f6d2447a
+MISC ChangeLog-2015 1146 SHA256 17ce5b935017ad02d6cb3408cb74179afa08aaeaaba7973080bed7741d755736 SHA512 674a52e37c8aa2f33669bfdf830725e7eeefd1413cd01bc79990225f608f776cb9af6a7a279ed890f0da4a75ffbaf92cdb8d67f2653b7093dd9549168a00022f WHIRLPOOL 4d28581b3b38891f21fda424edc93141946e07ca8244be38af24df6c6e016f6fd85b761f73e36d92165c2c20b8f3d74f3a524987e49ba96bb2d127fc5a00ddd4
+MISC metadata.xml 917 SHA256 c12ec8e21f4f708b69162bb190dce24f798f421d6aec9e0608c371c527452ba1 SHA512 834aff23b944bdd2ad940458323fee9db3e4b9cf3b2e83265bc59a1c7a1b9d992c244b834fbf465a1f3d135470741b27dfa150193f9371519e19d8550a86742a WHIRLPOOL 7b9e22c021fe8c9d6c14e838b0c693ee5ce28400d42d8fe293c3b9a043fd9bb4b7d78090378e4b7280695932339caf0060b2d88b8cb0c0561844f79ff99b6156
diff --git a/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild b/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild
new file mode 100644
index 000000000000..8ca668e30853
--- /dev/null
+++ b/net-misc/asterisk-extra-sounds/asterisk-extra-sounds-1.4.11.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+DESCRIPTION="Extra sounds for asterisk"
+HOMEPAGE="http://www.asterisk.org/"
+LINGUAS="^en fr" # ^ is used to indicate to the loops below to NOT set this as an optional
+CODECS="alaw g722 g729 +gsm siren7 siren14 sln16 ulaw wav"
+
+SRC_URI=""
+IUSE="${CODECS}"
+for l in ${LINGUAS}; do
+ [[ "${l}" != ^* ]] && IUSE+=" linguas_${l}" && SRC_URI+=" linguas_${l}? ("
+ for c in ${CODECS}; do
+ SRC_URI+=" ${c#+}? ( http://downloads.asterisk.org/pub/telephony/sounds/releases/${PN}-${l#^}-${c#+}-${PV}.tar.gz )"
+ done
+ [[ "${l}" = ^* ]] || SRC_URI+=" )"
+done
+
+LICENSE="CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+
+DEPEND=">=net-misc/asterisk-1.4"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ local ar
+
+ for ar in ${A}; do
+ l="${ar#${PN}-}"
+ l=${l%%-*}
+ echo ">>> Unpacking $ar to ${WORKDIR}/${l}"
+ [ -d "${WORKDIR}/${l}" ] || mkdir "${WORKDIR}/${l}" || die "Error creating unpack directory"
+ tar xf "${DISTDIR}/${ar}" -C "${WORKDIR}/${l}" || die "Error unpacking ${ar}"
+ done
+}
+
+src_install() {
+ for l in ${LINGUAS}; do
+ if [[ "${l}" = ^* ]] || use linguas_${l}; then
+ l="${l#^}"
+ dodoc ${l}/CHANGES-${PN%-sounds}-${l}-${PV} ${l}/${PN#asterisk-}-${l}.txt
+ rm ${l}/CHANGES-${PN%-sounds}-${l}-${PV} ${l}/${PN#asterisk-}-${l}.txt
+ fi
+ done
+
+ diropts -m 0770 -o asterisk -g asterisk
+ insopts -m 0660 -o asterisk -g asterisk
+
+ dodir /var/lib/asterisk/sounds
+ insinto /var/lib/asterisk/sounds
+ doins -r .
+}
+
+pkg_postinst() {
+ local c has_once_codec=
+
+ for c in ${CODECS}; do
+ use ${c#+} && has_one_codec=1
+ done
+
+ [ -n "${has_one_codec}" ] || ewarn "You have none of the codec use flags (${CODECS}) set. You need to have at least one set in order for this package to be useful."
+}
diff --git a/net-misc/asterisk-extra-sounds/metadata.xml b/net-misc/asterisk-extra-sounds/metadata.xml
new file mode 100644
index 000000000000..7413756723d5
--- /dev/null
+++ b/net-misc/asterisk-extra-sounds/metadata.xml
@@ -0,0 +1,19 @@
+<?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>
+ <use>
+ <flag name="alaw">Install the sounds files for the alaw codec.</flag>
+ <flag name="g722">Install the sounds files for the g722 codec.</flag>
+ <flag name="g729">Install the sounds files for the g729 codec.</flag>
+ <flag name="gsm">Install the sounds files for the +gsm codec.</flag>
+ <flag name="siren7">Install the sounds files for the siren7 codec.</flag>
+ <flag name="siren14">Install the sounds files for the siren14 codec.</flag>
+ <flag name="sln16">Install the sounds files for the sln16 codec.</flag>
+ <flag name="ulaw">Install the sounds files for the ulaw codec.</flag>
+ <flag name="wav">Install the sounds files for the wav codec.</flag>
+ </use>
+</pkgmetadata>