Merge pull request #357 from ilovezfs/sysconfdir-dev
**use `$(sysconfdir)` rather than "hardwiring" `/etc`** This update means the build process now uses the directory path `sysconfdir` to determine where to place the configuration file `shairport-sync.conf`. The default value for `sysconfdir` is `/usr/local/etc` which is used in the BSD family, but `/etc` is normally used in Linux, so, to retain the present behaviour of Shairport Sync, you must add an extra parameter to the `./configure... ` command – the parameter you must add is `--sysconfdir=/etc` This is one component of the updates needed to use `sysconfdir` properly. The others will be part of a subsequent commit. Also, documentation will need to be updated.
This commit is contained in:
+5
-5
@@ -52,13 +52,13 @@ endif
|
||||
|
||||
install-exec-hook:
|
||||
if INSTALL_CONFIG_FILES
|
||||
[ -e $(DESTDIR)/etc ] || mkdir $(DESTDIR)/etc
|
||||
cp scripts/shairport-sync.conf $(DESTDIR)/etc/shairport-sync.conf.sample
|
||||
[ -f $(DESTDIR)/etc/shairport-sync.conf ] || cp scripts/shairport-sync.conf $(DESTDIR)/etc/shairport-sync.conf
|
||||
[ -e $(DESTDIR)$(sysconfdir) ] || mkdir $(DESTDIR)$(sysconfdir)
|
||||
cp scripts/shairport-sync.conf $(DESTDIR)$(sysconfdir)/shairport-sync.conf.sample
|
||||
[ -f $(DESTDIR)$(sysconfdir)/shairport-sync.conf ] || cp scripts/shairport-sync.conf $(DESTDIR)$(sysconfdir)/shairport-sync.conf
|
||||
endif
|
||||
if INSTALL_SYSTEMV
|
||||
[ -e $(DESTDIR)/etc/init.d ] || mkdir -p $(DESTDIR)/etc/init.d
|
||||
[ -f $(DESTDIR)/etc/init.d/shairport-sync ] || cp scripts/shairport-sync $(DESTDIR)/etc/init.d/
|
||||
[ -e $(DESTDIR)$(sysconfdir)/init.d ] || mkdir -p $(DESTDIR)$(sysconfdir)/init.d
|
||||
[ -f $(DESTDIR)$(sysconfdir)/init.d/shairport-sync ] || cp scripts/shairport-sync $(DESTDIR)$(sysconfdir)/init.d/
|
||||
endif
|
||||
if INSTALL_SYSTEMD
|
||||
[ -e $(DESTDIR)$(systemdsystemunitdir) ] || mkdir -p $(DESTDIR)$(systemdsystemunitdir)
|
||||
|
||||
Reference in New Issue
Block a user