From 0dde9a0ea3351b5ce7f5cb7e4f2cc31a4399ccd9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Oct 2014 12:14:31 +0200 Subject: [PATCH] alsa-utils: added runit service. --- srcpkgs/alsa-utils/files/alsa/finish | 3 +++ srcpkgs/alsa-utils/files/alsa/run | 4 ++++ srcpkgs/alsa-utils/files/alsa/supervise | 1 + srcpkgs/alsa-utils/template | 4 +++- 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 srcpkgs/alsa-utils/files/alsa/finish create mode 100755 srcpkgs/alsa-utils/files/alsa/run create mode 120000 srcpkgs/alsa-utils/files/alsa/supervise diff --git a/srcpkgs/alsa-utils/files/alsa/finish b/srcpkgs/alsa-utils/files/alsa/finish new file mode 100755 index 00000000000..14392586afa --- /dev/null +++ b/srcpkgs/alsa-utils/files/alsa/finish @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +exec alsactl store diff --git a/srcpkgs/alsa-utils/files/alsa/run b/srcpkgs/alsa-utils/files/alsa/run new file mode 100755 index 00000000000..728c4c8dd76 --- /dev/null +++ b/srcpkgs/alsa-utils/files/alsa/run @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +alsactl restore +exec chpst -b alsa pause diff --git a/srcpkgs/alsa-utils/files/alsa/supervise b/srcpkgs/alsa-utils/files/alsa/supervise new file mode 120000 index 00000000000..30bed6bfecf --- /dev/null +++ b/srcpkgs/alsa-utils/files/alsa/supervise @@ -0,0 +1 @@ +/run/runit/supervise.alsa \ No newline at end of file diff --git a/srcpkgs/alsa-utils/template b/srcpkgs/alsa-utils/template index 7b6bb0ce152..8084e678f1a 100644 --- a/srcpkgs/alsa-utils/template +++ b/srcpkgs/alsa-utils/template @@ -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 }