From 4a795e1c347c9b1a8f79fe924e9b317bdae89400 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Tue, 26 Nov 2013 19:48:33 +0100 Subject: [PATCH] add sysvinit startup scripts --- Makefile.in | 3 +- configure | 7 +++-- contrib/default.sndiod | 2 ++ contrib/init.d.sndiod.in | 63 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 contrib/default.sndiod create mode 100644 contrib/init.d.sndiod.in diff --git a/Makefile.in b/Makefile.in index b44244f..c59b804 100644 --- a/Makefile.in +++ b/Makefile.in @@ -28,4 +28,5 @@ distclean: clean rm -f \ Makefile libsndio/Makefile \ sndiod/Makefile sndioctl/Makefile \ - aucat/Makefile examples/Makefile + aucat/Makefile examples/Makefile \ + contrib/init.d.sndiod diff --git a/configure b/configure index d6519c2..b46737f 100755 --- a/configure +++ b/configure @@ -159,8 +159,9 @@ if [ $rmidi = yes ]; then defs="$defs -DUSE_RMIDI" fi -for makefile in Makefile aucat/Makefile sndiod/Makefile \ -libsndio/Makefile sndioctl/Makefile examples/Makefile +for f in Makefile aucat/Makefile sndiod/Makefile \ +libsndio/Makefile sndioctl/Makefile examples/Makefile \ +contrib/init.d.sndiod do sed \ -e "s:@bindir@:$bindir:" \ @@ -174,7 +175,7 @@ do -e "s:@vars@:${vars}:" \ -e "s:@precision@:$precision:" \ -e "s:@user@:$user:" \ - < $makefile.in > $makefile + < $f.in > $f done cat <&2 + exit 3 + ;; +esac + +: