From fe9873a9a547f26b6aec29696d0faf4ef7cefae3 Mon Sep 17 00:00:00 2001 From: mcz Date: Fri, 19 Oct 2018 21:02:51 +0200 Subject: [PATCH] bluez-alsa: fix permission issues. bluealsa is supposed to run in "audio" group, see https://github.com/Arkq/bluez-alsa/issues/2#issuecomment-253973727 --- srcpkgs/bluez-alsa/files/bluez-alsa/run | 2 +- srcpkgs/bluez-alsa/files/bluez_alsa.conf | 7 +++++++ srcpkgs/bluez-alsa/template | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/bluez-alsa/files/bluez_alsa.conf diff --git a/srcpkgs/bluez-alsa/files/bluez-alsa/run b/srcpkgs/bluez-alsa/files/bluez-alsa/run index 106d8c00620254..d7772454b56e6d 100644 --- a/srcpkgs/bluez-alsa/files/bluez-alsa/run +++ b/srcpkgs/bluez-alsa/files/bluez-alsa/run @@ -2,7 +2,7 @@ dir=/var/run/bluealsa user=_bluez_alsa -group=_bluez_alsa +group=audio [ ! -d "${dir}" ] && mkdir "${dir}" && chown $user:$group ${dir} exec chpst -u $user:$group bluealsa diff --git a/srcpkgs/bluez-alsa/files/bluez_alsa.conf b/srcpkgs/bluez-alsa/files/bluez_alsa.conf new file mode 100644 index 00000000000000..b1de0810c6f14d --- /dev/null +++ b/srcpkgs/bluez-alsa/files/bluez_alsa.conf @@ -0,0 +1,7 @@ + + + + + + diff --git a/srcpkgs/bluez-alsa/template b/srcpkgs/bluez-alsa/template index 02cdda5c98fb99..aac11b81b126c7 100644 --- a/srcpkgs/bluez-alsa/template +++ b/srcpkgs/bluez-alsa/template @@ -1,7 +1,7 @@ # Template file for 'bluez-alsa' pkgname=bluez-alsa version=1.3.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable--aac --disable-hcitop --enable-debug" hostmakedepends="pkg-config automake libtool" @@ -14,12 +14,15 @@ homepage="https://github.com/Arkq/bluez-alsa" distfiles="https://github.com/Arkq/bluez-alsa/archive/v${version}.tar.gz" checksum=29dad23877d0cf46a16e2f8d3746219e89068c33d052059caf1caaacd8b40cac system_accounts="_bluez_alsa" +_bluez_alsa_groups="audio" pre_configure() { autoreconf -fi } post_install() { + vinstall ${FILESDIR}/bluez_alsa.conf 644 etc/dbus-1/system.d/ + vlicense LICENSE.txt vsv bluez-alsa }