Skip to content

Commit

Permalink
media-sound/bluez-alsa: Added conf.d file (bug #608354).
Browse files Browse the repository at this point in the history
This enables users to submit their own set of options.
Thanks to Sander Sweers for opening the bug and providing the initial
patches.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
Lars Wendler committed Feb 6, 2017
1 parent e4a8364 commit 8554d7d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand Down Expand Up @@ -43,6 +43,7 @@ src_install() {
prune_libtool_files --modules

newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
newconfd "${FILESDIR}"/bluealsa-conf.d bluealsa
}

pkg_postinst() {
Expand Down
3 changes: 2 additions & 1 deletion media-sound/bluez-alsa/bluez-alsa-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand Down Expand Up @@ -51,6 +51,7 @@ multilib_src_install_all() {
prune_libtool_files --modules

newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
newconfd "${FILESDIR}"/bluealsa-conf.d bluealsa
}

pkg_postinst() {
Expand Down
4 changes: 4 additions & 0 deletions media-sound/bluez-alsa/files/bluealsa-conf.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Config file for /etc/init.d/bluealsa

# Allow additional options to be set
BLUEALSA_CONF="--disable-hsp"
4 changes: 2 additions & 2 deletions media-sound/bluez-alsa/files/bluealsa-init.d
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

pidfile="/var/run/bluealsa.pid"
command="/usr/bin/bluealsa"
command_args="--disable-hsp"
command_args="${BLUEALSA_CONF}"
command_background="true"

depend() {
Expand Down

0 comments on commit 8554d7d

Please sign in to comment.