summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/asterisk-moh-opsound
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-misc/asterisk-moh-opsound')
-rw-r--r--net-misc/asterisk-moh-opsound/Manifest9
-rw-r--r--net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild52
-rw-r--r--net-misc/asterisk-moh-opsound/metadata.xml19
3 files changed, 80 insertions, 0 deletions
diff --git a/net-misc/asterisk-moh-opsound/Manifest b/net-misc/asterisk-moh-opsound/Manifest
new file mode 100644
index 000000000000..448aa3c01652
--- /dev/null
+++ b/net-misc/asterisk-moh-opsound/Manifest
@@ -0,0 +1,9 @@
+DIST asterisk-moh-opsound-alaw-2.03.tar.gz 7496413 SHA256 8b6d63486fd58fd535eaed394f9bd32ecdf6e650975aaa258941f423c8150b81
+DIST asterisk-moh-opsound-g722-2.03.tar.gz 7924391 SHA256 05d206cebfb3433e1bd7fddcf8886cc043e1b21b42ba80a762302e5cf90377ad
+DIST asterisk-moh-opsound-g729-2.03.tar.gz 1103000 SHA256 0147ca9a97f0c550227aacb7793499057c4d2c64e021c95f93722f27d5549585
+DIST asterisk-moh-opsound-gsm-2.03.tar.gz 1777967 SHA256 b0fb7b52b05094a3d5298c965e98717f9907d65a9ec47604ac05d8b06a96e940
+DIST asterisk-moh-opsound-siren14-2.03.tar.gz 6518720 SHA256 521cf5dbde700b2ab14cc9b78093a38104de96914179f0be846fe1d004f67f72
+DIST asterisk-moh-opsound-siren7-2.03.tar.gz 4233366 SHA256 b3abaf1334162e15a9cb2a57289377323d70348afac653577792560b0ee290f2
+DIST asterisk-moh-opsound-sln16-2.03.tar.gz 31309094 SHA256 30a47e80f182c8ee860354924c2d2ee687f936a2858b8a6a209ba97b86c88eaf
+DIST asterisk-moh-opsound-ulaw-2.03.tar.gz 7479839 SHA256 95b163d7f931d58864aba2cfe32156accca7af782c850fb867a85ce88c02573c
+DIST asterisk-moh-opsound-wav-2.03.tar.gz 15359473 SHA256 449fb810d16502c3052fedf02f7e77b36206ac5a145f3dacf4177843a2fcb538
diff --git a/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild b/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild
new file mode 100644
index 000000000000..cafbe05c6013
--- /dev/null
+++ b/net-misc/asterisk-moh-opsound/asterisk-moh-opsound-2.03.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+DESCRIPTION="asterisk moh music"
+HOMEPAGE="http://www.asterisk.org/"
+CODECS="alaw g722 g729 +gsm siren7 siren14 sln16 ulaw wav"
+
+SRC_URI=""
+for c in ${CODECS}; do
+ SRC_URI+=" ${c#+}? ( http://downloads.asterisk.org/pub/telephony/sounds/releases/${PN}-${c#+}-${PV}.tar.gz )"
+done
+
+IUSE="${CODECS}"
+LICENSE="CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+DEPEND=">=net-misc/asterisk-1.4"
+
+src_install() {
+ local c
+
+ for c in ${CODECS}; do
+ if use ${c#+}; then
+ for pf in CREDITS LICENSE CHANGES; do
+ dodoc "$pf-$PN-${c#+}"
+ rm "$pf-$PN-${c#+}"
+ done
+ fi
+ done
+
+ diropts -m 0770 -o asterisk -g asterisk
+ insopts -m 0660 -o asterisk -g asterisk
+
+ dodir /var/lib/asterisk/moh
+ insinto /var/lib/asterisk/moh
+ 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-moh-opsound/metadata.xml b/net-misc/asterisk-moh-opsound/metadata.xml
new file mode 100644
index 000000000000..a2a28b936d0e
--- /dev/null
+++ b/net-misc/asterisk-moh-opsound/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>
+ <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>