diff --git a/Makefile b/Makefile index af23203..f59266c 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ PREFIX ?= /usr INITDIR = $(PREFIX)/lib/systemd/system USERDIR = $(PREFIX)/lib/sysusers.d TMPFDIR = $(PREFIX)/lib/tmpfiles.d +UDEVDIR = $(PREFIX)/lib/udev/rules.d RM = rm INSTALL = install -p @@ -15,6 +16,10 @@ common/$(PN): @echo -e '\033[1;32mNothing to be done.\033[0m' @echo -e '\033[1;32mJust run make install as root.\033[0m' +install-common: + $(INSTALL_DIR) "$(DESTDIR)$(UDEVDIR)" + $(INSTALL_DATA) udev/99-kodi.rules "$(DESTDIR)$(UDEVDIR)/99-kodi.rules" + install-init: $(INSTALL_DIR) "$(DESTDIR)$(INITDIR)" $(INSTALL_DIR) "$(DESTDIR)$(USERDIR)" @@ -31,7 +36,8 @@ uninstall: $(RM) "$(DESTDIR)$(INITDIR)/kodi-x11.service" $(RM) "$(DESTDIR)$(TMPFDIR)/kodi-standalone.conf" $(RM) "$(DESTDIR)$(USERDIR)/kodi-standalone.conf" + $(RM) "$(DESTDIR)$(UDEVDIR)/99-kodi.rules" -install: install-init +install: install-common install-init -.PHONY: install-init uninstall +.PHONY: install-common install-init uninstall diff --git a/udev/99-kodi.rules b/udev/99-kodi.rules new file mode 100644 index 0000000..0d21282 --- /dev/null +++ b/udev/99-kodi.rules @@ -0,0 +1,2 @@ +SUBSYSTEM=="dma_heap", KERNEL=="linux*", GROUP="video", MODE="0660" +SUBSYSTEM=="dma_heap", KERNEL=="system", GROUP="video", MODE="0660"