diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/inputlircd/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/inputlircd/files')
-rw-r--r-- | app-misc/inputlircd/files/inputlircd-linux-4.4-fix.patch | 13 | ||||
-rw-r--r-- | app-misc/inputlircd/files/inputlircd.conf | 2 | ||||
-rw-r--r-- | app-misc/inputlircd/files/inputlircd.init | 13 | ||||
-rw-r--r-- | app-misc/inputlircd/files/inputlircd.init.2 | 17 |
4 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/inputlircd/files/inputlircd-linux-4.4-fix.patch b/app-misc/inputlircd/files/inputlircd-linux-4.4-fix.patch new file mode 100644 index 000000000000..c605e34c3b0b --- /dev/null +++ b/app-misc/inputlircd/files/inputlircd-linux-4.4-fix.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 71bc693..3904632 100644 +--- a/Makefile ++++ b/Makefile +@@ -27,7 +27,7 @@ MANDIR ?= $(SHAREDIR)/man + + all: $(SBIN) + +-names.h: /usr/include/linux/input.h gennames ++names.h: /usr/include/linux/input-event-codes.h gennames + ./gennames $< > $@ + + inputlircd: inputlircd.c /usr/include/linux/input.h names.h diff --git a/app-misc/inputlircd/files/inputlircd.conf b/app-misc/inputlircd/files/inputlircd.conf new file mode 100644 index 000000000000..7e718ebdfb5b --- /dev/null +++ b/app-misc/inputlircd/files/inputlircd.conf @@ -0,0 +1,2 @@ +# Options to pass to the lircd process +INPUTLIRCD_OPTS="/dev/input/event2" diff --git a/app-misc/inputlircd/files/inputlircd.init b/app-misc/inputlircd/files/inputlircd.init new file mode 100644 index 000000000000..3cde6f917fcb --- /dev/null +++ b/app-misc/inputlircd/files/inputlircd.init @@ -0,0 +1,13 @@ +#!/sbin/openrc-run + +start() { + ebegin "Starting lircd" + start-stop-daemon --start --quiet --exec /usr/sbin/inputlircd -- ${INPUTLIRCD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping lircd" + start-stop-daemon --stop --quiet --exec /usr/sbin/inputlircd + eend $? +} diff --git a/app-misc/inputlircd/files/inputlircd.init.2 b/app-misc/inputlircd/files/inputlircd.init.2 new file mode 100644 index 000000000000..dc599f36e925 --- /dev/null +++ b/app-misc/inputlircd/files/inputlircd.init.2 @@ -0,0 +1,17 @@ +#!/sbin/openrc-run + +depend() { + provide lirc +} + +start() { + ebegin "Starting inputlircd" + start-stop-daemon --start --quiet --exec /usr/sbin/inputlircd -- ${INPUTLIRCD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping inputlircd" + start-stop-daemon --stop --quiet --exec /usr/sbin/inputlircd + eend $? +} |