sndio: fix service and split into libsndio

Based on changes from @ebfe:
Let sndio drop privileges so it creates a unix socket clients can find
(/tmp/aucat/aucatX). Add sndiod to the audio group so it can access
/dev/snd/* devices. Use the primary group for it to let sndiod use the
right path for the listening unix socket.
This commit is contained in:
Duncaen 2017-12-08 18:17:57 +01:00
parent 29bac5ab7b
commit c5a71e6441
4 changed files with 13 additions and 4 deletions

View File

@ -1973,7 +1973,7 @@ libKF5CddbWidgets.so.5 libkcddb-17.08.2_1
libKF5Cddb.so.5 libkcddb-17.08.2_1
libk3bdevice.so.7 k3b-17.08.2_1
libk3blib.so.7 k3b-17.08.2_1
libsndio.so.6.1 sndio-1.1.0_1
libsndio.so.6.1 libsndio-1.2.0_2
libopenconnect.so.5 openconnect-7.05_1
libusbredirparser.so.1 usbredir-0.7_1
libusbredirhost.so.1 usbredir-0.7_1

1
srcpkgs/libsndio Symbolic link
View File

@ -0,0 +1 @@
sndio

View File

@ -1,2 +1,3 @@
#!/bin/sh
exec chpst -u sndiod:audio sndiod -L :: -d 2>&1
[ -r conf ] && . ./conf
exec sndiod ${OPTS} -d 2>&1

View File

@ -1,7 +1,7 @@
# Template file for 'sndio'
pkgname=sndio
version=1.2.0
revision=1
revision=2
build_style=configure
configure_args="--prefix=/usr"
makedepends="alsa-lib-devel"
@ -10,6 +10,7 @@ maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="ISC"
system_accounts="sndiod"
sndiod_descr="sndio daemon"
sndiod_pgroup="audio"
homepage="http://www.sndio.org/"
distfiles="http://www.sndio.org/${pkgname}-${version}.tar.gz"
checksum=b9808e189481904a4404b0c1715ad0c4b301e72abca8e49653bb526ff4e16cdc
@ -20,8 +21,14 @@ post_install() {
vlicense LICENSE
}
libsndio_package() {
short_desc+=" -- library"
pkg_install() {
vmove "usr/lib/libsndio.so.*"
}
}
sndio-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
depends="libsndio>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include