1 |
commit: 8554d7d102cbbf958d287711a6fc52f8fddce6c5 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 5 23:57:19 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 6 00:00:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8554d7d1 |
7 |
|
8 |
media-sound/bluez-alsa: Added conf.d file (bug #608354). |
9 |
|
10 |
This enables users to submit their own set of options. |
11 |
Thanks to Sander Sweers for opening the bug and providing the initial |
12 |
patches. |
13 |
|
14 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
15 |
|
16 |
.../{bluez-alsa-1.1.0-r1.ebuild => bluez-alsa-1.1.0-r2.ebuild} | 3 ++- |
17 |
media-sound/bluez-alsa/bluez-alsa-9999.ebuild | 3 ++- |
18 |
media-sound/bluez-alsa/files/bluealsa-conf.d | 4 ++++ |
19 |
media-sound/bluez-alsa/files/bluealsa-init.d | 4 ++-- |
20 |
4 files changed, 10 insertions(+), 4 deletions(-) |
21 |
|
22 |
diff --git a/media-sound/bluez-alsa/bluez-alsa-1.1.0-r1.ebuild b/media-sound/bluez-alsa/bluez-alsa-1.1.0-r2.ebuild |
23 |
similarity index 91% |
24 |
rename from media-sound/bluez-alsa/bluez-alsa-1.1.0-r1.ebuild |
25 |
rename to media-sound/bluez-alsa/bluez-alsa-1.1.0-r2.ebuild |
26 |
index 20e4c0d..4cdd673 100644 |
27 |
--- a/media-sound/bluez-alsa/bluez-alsa-1.1.0-r1.ebuild |
28 |
+++ b/media-sound/bluez-alsa/bluez-alsa-1.1.0-r2.ebuild |
29 |
@@ -1,4 +1,4 @@ |
30 |
-# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
# $Id$ |
34 |
|
35 |
@@ -43,6 +43,7 @@ src_install() { |
36 |
prune_libtool_files --modules |
37 |
|
38 |
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa |
39 |
+ newconfd "${FILESDIR}"/bluealsa-conf.d bluealsa |
40 |
} |
41 |
|
42 |
pkg_postinst() { |
43 |
|
44 |
diff --git a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild |
45 |
index 263c3be..fc34300 100644 |
46 |
--- a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild |
47 |
+++ b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild |
48 |
@@ -1,4 +1,4 @@ |
49 |
-# Copyright 1999-2016 Gentoo Foundation |
50 |
+# Copyright 1999-2017 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Id$ |
53 |
|
54 |
@@ -51,6 +51,7 @@ multilib_src_install_all() { |
55 |
prune_libtool_files --modules |
56 |
|
57 |
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa |
58 |
+ newconfd "${FILESDIR}"/bluealsa-conf.d bluealsa |
59 |
} |
60 |
|
61 |
pkg_postinst() { |
62 |
|
63 |
diff --git a/media-sound/bluez-alsa/files/bluealsa-conf.d b/media-sound/bluez-alsa/files/bluealsa-conf.d |
64 |
new file mode 100644 |
65 |
index 00000000..feb2e1e |
66 |
--- /dev/null |
67 |
+++ b/media-sound/bluez-alsa/files/bluealsa-conf.d |
68 |
@@ -0,0 +1,4 @@ |
69 |
+# Config file for /etc/init.d/bluealsa |
70 |
+ |
71 |
+# Allow additional options to be set |
72 |
+BLUEALSA_CONF="--disable-hsp" |
73 |
|
74 |
diff --git a/media-sound/bluez-alsa/files/bluealsa-init.d b/media-sound/bluez-alsa/files/bluealsa-init.d |
75 |
index 1b61e83..0f60e93 100644 |
76 |
--- a/media-sound/bluez-alsa/files/bluealsa-init.d |
77 |
+++ b/media-sound/bluez-alsa/files/bluealsa-init.d |
78 |
@@ -1,11 +1,11 @@ |
79 |
#!/sbin/openrc-run |
80 |
-# Copyright 1999-2016 Gentoo Foundation |
81 |
+# Copyright 1999-2017 Gentoo Foundation |
82 |
# Distributed under the terms of the GNU General Public License v2 |
83 |
# $Id$ |
84 |
|
85 |
pidfile="/var/run/bluealsa.pid" |
86 |
command="/usr/bin/bluealsa" |
87 |
-command_args="--disable-hsp" |
88 |
+command_args="${BLUEALSA_CONF}" |
89 |
command_background="true" |
90 |
|
91 |
depend() { |