mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
adjust config file paths for prefix
This commit is contained in:
parent
2dcb98d6e3
commit
149bb6a0a6
@ -103,7 +103,7 @@ fi
|
||||
|
||||
dnl Darwin's stupid cpp preprocessor....
|
||||
echo Host type is $host
|
||||
CPPFLAGS="$CPPFLAGS -DHOST='\"$host\"'"
|
||||
CPPFLAGS="$CPPFLAGS -DHOST='\"$host\"' -DPREFIX=$prefix"
|
||||
|
||||
dnl
|
||||
dnl The apple mDNS stuff wants these compile flags.
|
||||
@ -130,6 +130,7 @@ case $host in
|
||||
AM_CONDITIONAL(COND_REND_POSIX,false);;
|
||||
esac
|
||||
|
||||
|
||||
dnl Checks for libraries.
|
||||
AC_ARG_WITH(static-libs,
|
||||
[--with-static-libs[[=DIR]] use static libs in DIR],[
|
||||
|
@ -1,6 +1,23 @@
|
||||
# $Id$
|
||||
#
|
||||
EXTRA_DIST = README mt-daapd.spec mt-daapd.conf mt-daapd.playlist mt-daapd mt-daapd-gentoo mt-daapd-ssc.sh mt-daapd-ssc.pl
|
||||
EXTRA_DIST = README mt-daapd.spec mt-daapd.conf.templ mt-daapd.playlist mt-daapd mt-daapd-gentoo mt-daapd-ssc.sh mt-daapd-ssc.pl mt-daapd-ssc.pl mt-daapd-ssc.sh
|
||||
|
||||
BUILT_SOURCES = mt-daapd.conf
|
||||
sysconf_DATA = mt-daapd.conf
|
||||
bin_SCRIPTS=mt-daapd-ssc.sh
|
||||
|
||||
dbdir="/var/cache/mt-daapd"
|
||||
|
||||
mt-daapd.conf: mt-daapd.conf.templ
|
||||
if [ "$(prefix)" == "/usr" ]; then \
|
||||
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],/var/cache/mt-daapd,g $< >$@; \
|
||||
else \
|
||||
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],$(prefix)/var/cache/mt-daapd,g $< >$@; \
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user