From: dan carter Date: Tue, 22 Dec 2015 23:55:25 +0000 (+1300) Subject: User $PREFIX in the init file X-Git-Tag: 2.7.6~17^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F187%2Fhead;p=thirdparty%2Fshairport-sync.git User $PREFIX in the init file --- diff --git a/.gitignore b/.gitignore index 261468a6..cdbef556 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ stamp-h1 man/Makefile man/Makefile.in scripts/shairport-sync.service +scripts/shairport-sync \ No newline at end of file diff --git a/configure.ac b/configure.ac index ba31af0d..75e4db9e 100644 --- a/configure.ac +++ b/configure.ac @@ -256,4 +256,5 @@ AC_FUNC_REALLOC AC_CHECK_FUNCS([atexit clock_gettime gethostname inet_ntoa memchr memmove memset mkfifo pow select socket stpcpy strcasecmp strchr strdup strerror strstr strtol strtoul]) AC_CONFIG_FILES([Makefile man/Makefile scripts/shairport-sync.service]) +AC_CONFIG_FILES([scripts/shairport-sync],[chmod +x scripts/shairport-sync]) AC_OUTPUT diff --git a/scripts/shairport-sync b/scripts/shairport-sync.in similarity index 99% rename from scripts/shairport-sync rename to scripts/shairport-sync.in index d1175504..7e0dd767 100755 --- a/scripts/shairport-sync +++ b/scripts/shairport-sync.in @@ -17,7 +17,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="AirPlay Synchronous Audio Service" NAME=shairport-sync -DAEMON=/usr/local/bin/$NAME +DAEMON=@prefix@/bin/$NAME # We don't use the DAEMON_ARGS variable here because some of the identifiers may have spaces in them, and so are # impossible to pass as arguments.