From da3366a2a6ba2dbeb0e917393a0b0eab7b4e9d1d Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sat, 25 Nov 2017 09:25:50 +0000 Subject: [PATCH] Remember to install a dbus system bus access rule for mpris, separate dbus and mpris access rules, move them to scripts folder --- Makefile.am | 5 ++++- .../shairport-sync-dbus-policy.conf | 3 --- scripts/shairport-sync-mpris-policy.conf | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) rename shairport-sync-dbus-policy.conf => scripts/shairport-sync-dbus-policy.conf (77%) create mode 100644 scripts/shairport-sync-mpris-policy.conf diff --git a/Makefile.am b/Makefile.am index 353d54b5..48ef77aa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -131,7 +131,10 @@ 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 - cp shairport-sync-dbus-policy.conf $(DESTDIR)$(sysconfdir)/dbus-1/system.d/shairport-sync.conf + cp scripts/shairport-sync-dbus-policy.conf $(DESTDIR)$(sysconfdir)/dbus-1/system.d/shairport-sync-dbus.conf +endif +if USE_MPRIS + cp scripts/shairport-sync-mpris-policy.conf $(DESTDIR)$(sysconfdir)/dbus-1/system.d/shairport-sync-mpris.conf endif endif if INSTALL_SYSTEMV diff --git a/shairport-sync-dbus-policy.conf b/scripts/shairport-sync-dbus-policy.conf similarity index 77% rename from shairport-sync-dbus-policy.conf rename to scripts/shairport-sync-dbus-policy.conf index 01e09521..497dd885 100644 --- a/shairport-sync-dbus-policy.conf +++ b/scripts/shairport-sync-dbus-policy.conf @@ -7,15 +7,12 @@ - - - diff --git a/scripts/shairport-sync-mpris-policy.conf b/scripts/shairport-sync-mpris-policy.conf new file mode 100644 index 00000000..1efb0072 --- /dev/null +++ b/scripts/shairport-sync-mpris-policy.conf @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + +