diff --git a/Makefile b/Makefile index e101f0b..1b1f23c 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,17 @@ install-debug: @sudo systemctl --runtime link sfsmcd/sfsmc-debug@.service .PHONY: install-debug +install-dbus: + @if [[ ! -e /usr/share/dbus-1/system.d/ ]]; then \ + echo DBus security policy files are not located at the expected path;\ + echo Please install the security policy for 'org.ddnss.sfs.mc' manually;\ + echo " \`sudo cp sfsmcd/org.ddnss.sfs.mc.conf \`";\ + exit 1;\ + elif [[ ! -e /usr/share/dbus-1/system.d/org.ddnss.sfs.mc.conf ]]; then \ + sudo cp sfsmcd/org.ddnss.sfs.mc.conf /usr/share/dbus-1/system.d/;\ + fi +.PHONY: install-dbus + journalctl: @journalctl -efSnow -usfsmc-debug@$$(cd ..; pwd) -ocat .PHONY: journalctl