Skip to content

Commit

Permalink
bluez-alsa: fix permission issues.
Browse files Browse the repository at this point in the history
bluealsa is supposed to run in "audio" group, see
arkq/bluez-alsa#2 (comment)
  • Loading branch information
mcz committed Oct 19, 2018
1 parent 45156b2 commit fe9873a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion srcpkgs/bluez-alsa/files/bluez-alsa/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions srcpkgs/bluez-alsa/files/bluez_alsa.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="_bluez_alsa">
<allow send_destination="org.bluez"/>
</policy>
</busconfig>
5 changes: 4 additions & 1 deletion srcpkgs/bluez-alsa/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
}

0 comments on commit fe9873a

Please sign in to comment.