From 3a9cabe54fbfeb64cfcc71d5700704cd18d1b658 Mon Sep 17 00:00:00 2001 From: graysky Date: Sat, 3 Apr 2021 03:48:09 -0400 Subject: [PATCH] move x86 files to /x86 path --- Makefile | 14 +++++++------- {doc => x86/doc}/kodi.service.1 | 11 ++++++----- {init => x86/init}/kodi-gbm.service | 0 {init => x86/init}/kodi-wayland.service | 0 {init => x86/init}/kodi-x11.service | 0 {init => x86/init}/sysusers.conf | 0 {init => x86/init}/tmpfiles.conf | 0 {udev => x86/udev}/99-kodi.rules | 0 8 files changed, 13 insertions(+), 12 deletions(-) rename {doc => x86/doc}/kodi.service.1 (84%) rename {init => x86/init}/kodi-gbm.service (100%) rename {init => x86/init}/kodi-wayland.service (100%) rename {init => x86/init}/kodi-x11.service (100%) rename {init => x86/init}/sysusers.conf (100%) rename {init => x86/init}/tmpfiles.conf (100%) rename {udev => x86/udev}/99-kodi.rules (100%) diff --git a/Makefile b/Makefile index 5f7c219..4f9b551 100644 --- a/Makefile +++ b/Makefile @@ -19,21 +19,21 @@ common/$(PN): install-common: $(INSTALL_DIR) "$(DESTDIR)$(UDEVDIR)" - $(INSTALL_DATA) udev/99-kodi.rules "$(DESTDIR)$(UDEVDIR)/99-kodi.rules" + $(INSTALL_DATA) x86/udev/99-kodi.rules "$(DESTDIR)$(UDEVDIR)/99-kodi.rules" install-init: $(INSTALL_DIR) "$(DESTDIR)$(INITDIR)" $(INSTALL_DIR) "$(DESTDIR)$(USERDIR)" $(INSTALL_DIR) "$(DESTDIR)$(TMPFDIR)" - $(INSTALL_DATA) init/kodi-gbm.service "$(DESTDIR)$(INITDIR)/kodi-gbm.service" - $(INSTALL_DATA) init/kodi-wayland.service "$(DESTDIR)$(INITDIR)/kodi-wayland.service" - $(INSTALL_DATA) init/kodi-x11.service "$(DESTDIR)$(INITDIR)/kodi-x11.service" - $(INSTALL_DATA) init/tmpfiles.conf "$(DESTDIR)$(TMPFDIR)/kodi-standalone.conf" - $(INSTALL_DATA) init/sysusers.conf "$(DESTDIR)$(USERDIR)/kodi-standalone.conf" + $(INSTALL_DATA) x86/init/kodi-gbm.service "$(DESTDIR)$(INITDIR)/kodi-gbm.service" + $(INSTALL_DATA) x86/init/kodi-wayland.service "$(DESTDIR)$(INITDIR)/kodi-wayland.service" + $(INSTALL_DATA) x86/init/kodi-x11.service "$(DESTDIR)$(INITDIR)/kodi-x11.service" + $(INSTALL_DATA) x86/init/tmpfiles.conf "$(DESTDIR)$(TMPFDIR)/kodi-standalone.conf" + $(INSTALL_DATA) x86/init/sysusers.conf "$(DESTDIR)$(USERDIR)/kodi-standalone.conf" install-man: $(INSTALL_DIR) "$(DESTDIR)$(MANDIR)" - $(INSTALL_DATA) doc/kodi.service.1 "$(DESTDIR)$(MANDIR)/kodi.service.1" + $(INSTALL_DATA) x86/doc/kodi.service.1 "$(DESTDIR)$(MANDIR)/kodi.service.1" uninstall: $(RM) "$(DESTDIR)$(INITDIR)/kodi-gbm.service" diff --git a/doc/kodi.service.1 b/x86/doc/kodi.service.1 similarity index 84% rename from doc/kodi.service.1 rename to x86/doc/kodi.service.1 index 6989755..8d7d5cd 100644 --- a/doc/kodi.service.1 +++ b/x86/doc/kodi.service.1 @@ -1,5 +1,5 @@ .\" Text automatically generated by txt2man -.TH kodi.service 1 "13 March 2021" "" "" +.TH kodi.service 1 "03 April 2021" "" "" .SH NAME \fBkodi-xxx.service \fP- Systemd service units to run Kodi in standalone mode without the need for a DE. \fB @@ -20,7 +20,7 @@ This is NOT recommended: .PP .nf .fam C - # systemctl reboot + # systemctl reboot .fam T .fi @@ -32,15 +32,16 @@ Select the corresponding option under Power menu in the Kodi GUI. .IP \(bu 3 Use the official Android/iOS remote app. .IP \(bu 3 -If a CLI option is preferred, use kodi-send (depending on the Distro, this may or may not be including in the standard kodi package) to issue a \fBShutDown\fP() or Reboot like so: +If a CLI option is preferred, use kodi-send to issue the command to reboot or shutdown like so: .PP .nf .fam C - $ kodi-send -a "Reboot" - $ kodi-send -a "ShutDown()" + $ kodi-send -a "Reboot" + $ kodi-send -a "ShutDown()" .fam T .fi +Note that kodi-send may not be included with your Distro's kodi package. For example, on Arch Linux, it is provided by the kodi-eventclients package. .SH PASSING ENVIRONMENT VARIABLES TO THE SERVICE Should the need arise, one can pass environment variables to the service by creating /etc/conf.d/kodi-standalone and populating it with the needed variables. .SH CONTRIBUTE diff --git a/init/kodi-gbm.service b/x86/init/kodi-gbm.service similarity index 100% rename from init/kodi-gbm.service rename to x86/init/kodi-gbm.service diff --git a/init/kodi-wayland.service b/x86/init/kodi-wayland.service similarity index 100% rename from init/kodi-wayland.service rename to x86/init/kodi-wayland.service diff --git a/init/kodi-x11.service b/x86/init/kodi-x11.service similarity index 100% rename from init/kodi-x11.service rename to x86/init/kodi-x11.service diff --git a/init/sysusers.conf b/x86/init/sysusers.conf similarity index 100% rename from init/sysusers.conf rename to x86/init/sysusers.conf diff --git a/init/tmpfiles.conf b/x86/init/tmpfiles.conf similarity index 100% rename from init/tmpfiles.conf rename to x86/init/tmpfiles.conf diff --git a/udev/99-kodi.rules b/x86/udev/99-kodi.rules similarity index 100% rename from udev/99-kodi.rules rename to x86/udev/99-kodi.rules