mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
bluez-alsa: fix permission issues.
bluealsa is supposed to run in "audio" group, see https://github.com/Arkq/bluez-alsa/issues/2#issuecomment-253973727 Closes: #3968 [via git-merge-pr]
This commit is contained in:
parent
45156b206a
commit
e354e73581
3 changed files with 13 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
dir=/var/run/bluealsa
|
dir=/var/run/bluealsa
|
||||||
user=_bluez_alsa
|
user=_bluez_alsa
|
||||||
group=_bluez_alsa
|
group=audio
|
||||||
|
|
||||||
[ ! -d "${dir}" ] && mkdir "${dir}" && chown $user:$group ${dir}
|
[ ! -d "${dir}" ] && mkdir "${dir}" && chown $user:$group ${dir}
|
||||||
exec chpst -u $user:$group bluealsa
|
exec chpst -u $user:$group bluealsa
|
||||||
|
|
7
srcpkgs/bluez-alsa/files/bluez_alsa.conf
Normal file
7
srcpkgs/bluez-alsa/files/bluez_alsa.conf
Normal file
|
@ -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>
|
|
@ -1,25 +1,28 @@
|
||||||
# Template file for 'bluez-alsa'
|
# Template file for 'bluez-alsa'
|
||||||
pkgname=bluez-alsa
|
pkgname=bluez-alsa
|
||||||
version=1.3.1
|
version=1.3.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable--aac --disable-hcitop --enable-debug"
|
configure_args="--enable--aac --disable-hcitop --enable-debug"
|
||||||
hostmakedepends="pkg-config automake libtool"
|
hostmakedepends="pkg-config automake libtool"
|
||||||
makedepends="alsa-lib-devel fdk-aac-devel libbluetooth-devel libglib-devel
|
makedepends="alsa-lib-devel fdk-aac-devel libbluetooth-devel libglib-devel
|
||||||
ortp-devel sbc-devel"
|
ortp-devel sbc-devel"
|
||||||
short_desc="Bluetooth Audio ALSA Backend"
|
short_desc="Bluetooth Audio ALSA Backend"
|
||||||
maintainer="Toyam Cox <Vaelatern@Voidlinux.eu>"
|
maintainer="Toyam Cox <Vaelatern@voidlinux.eu>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/Arkq/bluez-alsa"
|
homepage="https://github.com/Arkq/bluez-alsa"
|
||||||
distfiles="https://github.com/Arkq/bluez-alsa/archive/v${version}.tar.gz"
|
distfiles="https://github.com/Arkq/bluez-alsa/archive/v${version}.tar.gz"
|
||||||
checksum=29dad23877d0cf46a16e2f8d3746219e89068c33d052059caf1caaacd8b40cac
|
checksum=29dad23877d0cf46a16e2f8d3746219e89068c33d052059caf1caaacd8b40cac
|
||||||
system_accounts="_bluez_alsa"
|
system_accounts="_bluez_alsa"
|
||||||
|
_bluez_alsa_groups="audio"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
vinstall ${FILESDIR}/bluez_alsa.conf 644 etc/dbus-1/system.d/
|
||||||
|
|
||||||
vlicense LICENSE.txt
|
vlicense LICENSE.txt
|
||||||
vsv bluez-alsa
|
vsv bluez-alsa
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue