void-packages/srcpkgs/pbbuttonsd/patches/010-rundir.patch
q66 d9cc3b4898 New package: pbbuttonsd-0.8.1a
This is a daemon that allows functionality such as keyboard
backlight and media keys in general to work on Apple PowerPC
laptops.
2020-02-09 03:10:17 +01:00

38 lines
1 KiB
Diff

Description: Do not use /var/run
Author: Mathieu Malaterre <malat@debian.org>
Origin: vendor
Forwarded: not-needed
--- pbbuttonsd-0.8.1a.orig/pbbuttonsd.1
+++ pbbuttonsd-0.8.1a/pbbuttonsd.1
@@ -530,7 +530,7 @@ after connecting new input devices. Scan
signal to the server:
.PP
.ad c
-kill \-HUP \`cat /var/run/pbbuttonsd.pid\`
+kill \-HUP \`cat /run/pbbuttonsd.pid\`
.PP
.ad b
Be aware that the configuration file will also be reloaded in this case.
--- pbbuttonsd-0.8.1a.orig/src/init.h
+++ pbbuttonsd-0.8.1a/src/init.h
@@ -23,7 +23,7 @@
#define ARG_QUIET 'q'
#define DEFAULT_CONFIG SYS_CONF_DIR "/pbbuttonsd.cnf"
-#define DEFAULT_PIDFILE "/var/run/" PACKAGE ".pid"
+#define DEFAULT_PIDFILE "/run/" PACKAGE ".pid"
#define MODULECOUNT 15
/**
--- pbbuttonsd-0.8.1a.orig/src/module_acpi.h
+++ pbbuttonsd-0.8.1a/src/module_acpi.h
@@ -21,7 +21,7 @@
# define PATH_ACPI "/proc/acpi"
#endif
-#define ACPID_SOCKET "/var/run/acpid.socket"
+#define ACPID_SOCKET "/run/acpid.socket"
/**
* @brief Battery data