]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Create the dbus/system.d directory if it doesn't already exist.
authorMike Brady <mikebrady@eircom.net>
Mon, 18 Mar 2019 19:37:09 +0000 (19:37 +0000)
committerMike Brady <mikebrady@eircom.net>
Mon, 18 Mar 2019 19:37:09 +0000 (19:37 +0000)
Makefile.am
dacp.c

index e17bf39ac0c037b6aead6f1204789d8780067f72..9d489ad8e6e90ce26b4078a4924547bde348cdf7 100644 (file)
@@ -163,6 +163,7 @@ if INSTALL_CONFIG_FILES
        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
 if USE_DBUS
+       [ -e $(DESTDIR)$(sysconfdir)/dbus-1/system.d ] || mkdir -p $(DESTDIR)$(sysconfdir)/dbus-1/system.d
 if INSTALL_CYGWIN_SERVICE
        cp scripts/shairport-sync-dbus-policy-cygwin.conf $(DESTDIR)$(sysconfdir)/dbus-1/system.d/shairport-sync-dbus.conf
 else
@@ -170,6 +171,7 @@ else
 endif
 endif
 if USE_MPRIS
+       [ -e $(DESTDIR)$(sysconfdir)/dbus-1/system.d ] || mkdir -p $(DESTDIR)$(sysconfdir)/dbus-1/system.d
 if INSTALL_CYGWIN_SERVICE
        cp scripts/shairport-sync-mpris-policy-cygwin.conf $(DESTDIR)$(sysconfdir)/dbus-1/system.d/shairport-sync-dbus.conf
 else
diff --git a/dacp.c b/dacp.c
index f5797554d1fba724d8ca04af164b63ab78697aef..b1d5bbda887895b2a25b594639280e11c6585efa 100644 (file)
--- a/dacp.c
+++ b/dacp.c
@@ -1,6 +1,6 @@
 /*
  * DACP protocol handler. This file is part of Shairport Sync.
- * Copyright (c) Mike Brady 2017
+ * Copyright (c) Mike Brady 2017 -- 2019
  * All rights reserved.
  *
  * Permission is hereby granted, free of charge, to any person