summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2016-07-31 18:34:27 -0400
committerDavid Seifert <soap@gentoo.org>2016-08-02 19:29:12 +0200
commitc43a8b3cd8be202b594522496958762e6701109d (patch)
tree1112f2a0e930a8763a42aa0e932cd0d9594917a5 /app-misc/lirc/files
parentsys-devel/llvm: Backport abi-tag support, bug #571600 (diff)
downloadgentoo-c43a8b3cd8be202b594522496958762e6701109d.tar.gz
gentoo-c43a8b3cd8be202b594522496958762e6701109d.tar.bz2
gentoo-c43a8b3cd8be202b594522496958762e6701109d.zip
app-misc/lirc-0.9.4a-r2: cleanup old ebuild, init script improvements, remove la files, don't set docdir unnecessarily (EAPI 6 does that automatically)
Gentoo-bug: 454466, 353774 Closes: https://github.com/gentoo/gentoo/pull/1988 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-misc/lirc/files')
-rw-r--r--app-misc/lirc/files/irexec-initd-0.9.4a-r228
-rw-r--r--app-misc/lirc/files/lircmd-0.9.4a-r220
-rw-r--r--app-misc/lirc/files/lircmd.conf4
3 files changed, 52 insertions, 0 deletions
diff --git a/app-misc/lirc/files/irexec-initd-0.9.4a-r2 b/app-misc/lirc/files/irexec-initd-0.9.4a-r2
new file mode 100644
index 000000000000..29455775a76d
--- /dev/null
+++ b/app-misc/lirc/files/irexec-initd-0.9.4a-r2
@@ -0,0 +1,28 @@
+#!/sbin/openrc-run
+# Copyright 2003 Martin Hierling <mad@cc.fh-lippe.de>
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+: ${IREXEC_USER:=root}
+
+depend() {
+ need lircd
+}
+
+start() {
+ if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then
+ ewarn "Warning: Running irexec as root can open security holes"
+ fi
+
+ ebegin "Starting irexec"
+ start-stop-daemon --start --user ${IREXEC_USER} --chdir / \
+ --exec /usr/bin/irexec -- --daemon ${IREXEC_OPTS}
+ eend $? "Failed to start irexec."
+}
+
+stop() {
+ ebegin "Stopping irexec"
+ start-stop-daemon --stop --exec /usr/bin/irexec --user ${IREXEC_USER}
+ eend $? "Failed to stop irexec."
+}
+
diff --git a/app-misc/lirc/files/lircmd-0.9.4a-r2 b/app-misc/lirc/files/lircmd-0.9.4a-r2
new file mode 100644
index 000000000000..6b51c6ea427f
--- /dev/null
+++ b/app-misc/lirc/files/lircmd-0.9.4a-r2
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need lircd
+}
+
+start() {
+ ebegin "Starting lircmd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/lircmd -- ${LIRCMD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lircmd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
+ eend $?
+}
diff --git a/app-misc/lirc/files/lircmd.conf b/app-misc/lirc/files/lircmd.conf
new file mode 100644
index 000000000000..319362a321aa
--- /dev/null
+++ b/app-misc/lirc/files/lircmd.conf
@@ -0,0 +1,4 @@
+# Options to pass to the lircmd process
+
+LIRCMD_OPTS="--uinput"
+