summaryrefslogtreecommitdiff
path: root/media-sound/setmixer
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 /media-sound/setmixer
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/setmixer')
-rw-r--r--media-sound/setmixer/Manifest7
-rw-r--r--media-sound/setmixer/files/setmixer.rc21
-rw-r--r--media-sound/setmixer/metadata.xml8
-rw-r--r--media-sound/setmixer/setmixer-19941227_p1.ebuild38
4 files changed, 74 insertions, 0 deletions
diff --git a/media-sound/setmixer/Manifest b/media-sound/setmixer/Manifest
new file mode 100644
index 000000000000..b1589fc87e36
--- /dev/null
+++ b/media-sound/setmixer/Manifest
@@ -0,0 +1,7 @@
+AUX setmixer.rc 449 SHA256 39a08793e7dc9b0dcf3125fafa93f9f69d78968155c5a606ac6cd7439818a6f4 SHA512 a0a3e26798e04b4b209b290a3ebae531f1a2effb3610b370b2b2329c42498c3ac9497c7be8d32fb64abc99452c3877a98662c0469352400812077cb0721d8345 WHIRLPOOL 1d5c4335f690589b78e5fe5630ea8952993dbcaa7ff99c609e7f2d4e7fbd8ba2580765780889add846c7b33f504f710254602c3ff3d93db518bd8ce3a8071fbf
+DIST setmixer_27DEC94ds1-1.diff.gz 3843 SHA256 922618c8a35208af81b043c1b4f4e08daab18e753acb20fc1d6837d15c435542 SHA512 ec58b6b2da3723659352eb9930d6b1afcfa9087056511eddf4502e3a2a962763152b1df25a9bc44b0587a7284701b80c4583af4f00105bc3998f68b25842b0a7 WHIRLPOOL f8b4c7ca6170de4e6f4eea6edcfea3824cb190638f72df3ef06de63cbc79b9f592ea8f580343d3f45604062384c3ee0c2b3ad6ec4ad1084c7f4d18e1d8b3286b
+DIST setmixer_27DEC94ds1.orig.tar.gz 2884 SHA256 e9a570ecb5e02420414fa2aad650d2efd81587777bbe53b6de38423adb493d03 SHA512 65a88ba577b62d0e7f98897b711f319aad886918695ea0b5c5f7897c45d109d7d26d9b9c64fb6a53bd419ba7346c631f6c0252ef305797bfca0ab2407eefec15 WHIRLPOOL 8d87e411d6768f5413faff01755b289154749f5cc068981ea79d11152e8cdee9be08ca87fe9c1f77b48834961abcb99f58a551b3b7ce29ea08efe83da3a99625
+EBUILD setmixer-19941227_p1.ebuild 880 SHA256 4cdd816cb3f99706e5901eafc7f13ec6bc36dd18bba2aa705a953d8fb36cf964 SHA512 fc545b5f9da5afcc0d76be5f8458867ebdf48530f6824e76f87671967a87b82ec8a62450126a9cf25114bb62689c21c4950ccb77dd4c83ef32f8670f2c1aed8a WHIRLPOOL 8b5065445d5d99f4bbd31f471d0511e2705429660473a56fc9997d6b80539b3a6f4ced3b10efb278bad061fa94243e4b8513c88586deb3d78930bb3392c5823d
+MISC ChangeLog 2593 SHA256 21d1bd53fed5d08a8488b7d022009ffcc217c7005ffb735bb7b13a68cada29a5 SHA512 ec7fa79d856f76aaf975bab61acc4e70a780f56d74955056cbaf98b7d31804cff34eaf857a0c2ba1bff42a32a86d72210a7003737dc5755400310009777e2048 WHIRLPOOL 5941ee7c399b98e286e249c684681b12d965bb698807b11216c3c61257f045e81f0ab751021a05bda33605679610044239e6845c8af0e3c60f6807c75e146e4f
+MISC ChangeLog-2015 1748 SHA256 7055f3378edc6c81b93c58345207bc631d207cb5fc534fb965295ee1b41737dd SHA512 1cd696261d8dab90bea0f6de2dd2cb80f7aa1c4fe5f70301326d8b47a3794f39f8d6a02fd6c5d9ce6fedda2bd793ea1c33dc2dc5a5600804f30d75de6cb12aa5 WHIRLPOOL 05edc5505036b8fad70cc727b7b2e8f42a2bfe2c4ff7e914309a2606a2412d2f1240d2df16b671e6ee398cf8688f0fc1ef39609d2ca9b5ac18eadc89cf65e5bc
+MISC metadata.xml 249 SHA256 a591aa91a9c413e7f7e24fd25b924ce2dfef686da8b4ce38bebb088ebfdba9db SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 WHIRLPOOL ae5b0c583f3a07ed1ccf651b5b9c8d6c8c637fba2d505fc4b028ea60239fc0a84e37a169b5114f879712ae74f7f41960a2cc6b59e67cacc7f964b105b5fb8723
diff --git a/media-sound/setmixer/files/setmixer.rc b/media-sound/setmixer/files/setmixer.rc
new file mode 100644
index 000000000000..4070041fb560
--- /dev/null
+++ b/media-sound/setmixer/files/setmixer.rc
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need modules
+ use alsa
+}
+
+start() {
+ ebegin "Loading mixer settings"
+ [ ! -e /etc/setmixer.conf ] && setmixer -V | sed -e 's:-::' > /etc/setmixer.conf
+ setmixer $(cat /etc/setmixer.conf)
+ eend $?
+}
+
+stop() {
+ ebegin "Saving mixer settings"
+ setmixer -V | awk '{print $1" "$3}' > /etc/setmixer.conf
+ eend $?
+}
diff --git a/media-sound/setmixer/metadata.xml b/media-sound/setmixer/metadata.xml
new file mode 100644
index 000000000000..c870d0eef0ab
--- /dev/null
+++ b/media-sound/setmixer/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="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-sound/setmixer/setmixer-19941227_p1.ebuild b/media-sound/setmixer/setmixer-19941227_p1.ebuild
new file mode 100644
index 000000000000..9dc57eb2b010
--- /dev/null
+++ b/media-sound/setmixer/setmixer-19941227_p1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+MY_PV="27DEC94ds1"
+DEB_REV="1"
+
+DESCRIPTION="A commandline mixer"
+HOMEPAGE="http://packages.debian.org/unstable/sound/setmixer"
+SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${MY_PV}.orig.tar.gz
+ mirror://debian/pool/main/s/${PN}/${PN}_${MY_PV}-${DEB_REV}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc sparc x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}-${MY_PV}.orig
+
+src_unpack() {
+ unpack ${A}
+ epatch "${DISTDIR}"/${PN}_${MY_PV}-${DEB_REV}.diff.gz
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" setmixer || die "emake failed."
+}
+
+src_install() {
+ dobin setmixer
+ dodoc README setmixer.lsm
+ doman setmixer.1
+ insinto /etc
+ doins debian/setmixer.conf
+ newinitd "${FILESDIR}"/setmixer.rc setmixer
+}