summaryrefslogtreecommitdiff
path: root/extras/dbus/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'extras/dbus/Makefile')
-rw-r--r--extras/dbus/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/extras/dbus/Makefile b/extras/dbus/Makefile
index 99aa33d8fb..04f17605e8 100644
--- a/extras/dbus/Makefile
+++ b/extras/dbus/Makefile
@@ -22,8 +22,9 @@ exec_prefix = ${prefix}
etcdir = ${prefix}/etc
sbindir = ${exec_prefix}/sbin
usrbindir = ${exec_prefix}/usr/bin
+usrsbindir = ${exec_prefix}/usr/sbin
mandir = ${prefix}/usr/share/man
-hotplugdir = ${etcdir}/hotplug.d/default
+devddir = ${etcdir}/dev.d/default
dbusdir = ${etcdir}/dbus-1/system.d
configdir = ${etcdir}/udev/
initdir = ${etcdir}/init.d/
@@ -53,9 +54,13 @@ spotless: clean
install-dbus-policy:
$(INSTALL) -d $(DESTDIR)$(dbusdir)
$(INSTALL_DATA) etc/dbus-1/system.d/udev_sysbus_policy.conf $(DESTDIR)$(dbusdir)
+ $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(usrsbindir)/$(PROG)
+ - ln -s -f $(DESTDIR)$(usrsbindir)/$(PROG) $(DESTDIR)$(devddir)/$(PROG).dev
uninstall-dbus-policy:
- rm $(DESTDIR)$(dbusdir)/udev_sysbus_policy.conf
+ - rm $(DESTDIR)$(devddir)/$(PROG).dev
+ - rm $(DESTDIR)$(usrsbindir)/$(PROG)
install: install-dbus-policy all