alsa-utils: added runit service.

This commit is contained in:
Juan RP 2014-10-13 12:14:31 +02:00
parent a8c94d8347
commit 0dde9a0ea3
4 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
set -e
exec alsactl store

View File

@ -0,0 +1,4 @@
#!/bin/sh
set -e
alsactl restore
exec chpst -b alsa pause

View File

@ -0,0 +1 @@
/run/runit/supervise.alsa

View File

@ -1,7 +1,8 @@
# Template build file for 'alsa-utils'.
pkgname=alsa-utils
version=1.0.28
revision=2
revision=3
replaces="runit-void<20141013_2"
build_style=gnu-configure
configure_args="--with-udev-rules-dir=/usr/lib/udev/rules.d -disable-alsaconf"
hostmakedepends="pkg-config xmlto"
@ -25,4 +26,5 @@ post_install() {
# Install required udev rules file.
make -C alsactl 90-alsa-restore.rules
vinstall alsactl/90-alsa-restore.rules 644 usr/lib/udev/rules.d
vsv alsa
}