Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608354 - media-sound/bluez-alsa: allow extra options in init file
Summary: media-sound/bluez-alsa: allow extra options in init file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-05 19:14 UTC by Sander Sweers
Modified: 2017-02-06 00:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
bluealsa.confd (bluealsa.confd,55 bytes, text/plain)
2017-02-05 19:14 UTC, Sander Sweers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sander Sweers 2017-02-05 19:14:45 UTC
Created attachment 462562 [details]
bluealsa.confd

bluealsa has several options that may be of interest to users. It would be nice if the init file can source them from a conf.d file. Diffs below and conf.d file attached.

--------------

--- bluez-alsa-9999.ebuild.orig	2017-02-05 20:02:33.706526349 +0100
+++ bluez-alsa-9999.ebuild	2017-02-05 20:04:47.819755529 +0100
@@ -51,6 +51,7 @@
 	prune_libtool_files --modules
 
 	newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
+	newconfd "${FILESDIR}"/bluealsa.confd bluealsa
 }
 
 pkg_postinst() {

--------------

--- bluealsa-init.d.orig	2017-02-05 20:03:09.667391174 +0100
+++ bluealsa-init.d	2017-02-05 19:58:32.760730380 +0100
@@ -5,7 +5,7 @@
 
 pidfile="/var/run/bluealsa.pid"
 command="/usr/bin/bluealsa"
-command_args="--disable-hsp"
+command_args="${BLUEALSA_CONF} --disable-hsp"
 command_background="true"
 
 depend() {

--------------
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-02-06 00:02:04 UTC
commit 8554d7d102cbbf958d287711a6fc52f8fddce6c5
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Mon Feb 6 00:57:19 2017

    media-sound/bluez-alsa: Added conf.d file (bug #608354).

    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