diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/inputlircd/files |
reinit the tree, so we can have metadata
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 $? +} |