summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2016-07-20 11:49:46 -0400
committerDavid Seifert <soap@gentoo.org>2016-07-30 10:30:40 +0200
commitb56cfd2afbca914c16a992678c4f203706254c75 (patch)
treefe3dcc4e73cbdef1b160082515e3741324000c5f /app-misc/lirc/files
parentapp-misc/lirc-0.9.4a: workaround parallel make bug (diff)
downloadgentoo-b56cfd2afbca914c16a992678c4f203706254c75.tar.gz
gentoo-b56cfd2afbca914c16a992678c4f203706254c75.tar.bz2
gentoo-b56cfd2afbca914c16a992678c4f203706254c75.zip
app-misc/lirc-0.9.4a-r1 fix documentation and socket directories
set localstatedir to /var so lirc correctly uses /var/run instead of /var/lib/run install documentation to /usr/share/doc/lirc-${PF} use irexec-initd-0.9.4a-r1 instead of irexec-initd as the irexec initd script to resolve a QA notice Gentoo-bug: 589246 Closes: https://github.com/gentoo/gentoo/pull/1922 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-r128
-rw-r--r--app-misc/lirc/files/lirc-0.9.4-doc-path-fix.patch27
2 files changed, 55 insertions, 0 deletions
diff --git a/app-misc/lirc/files/irexec-initd-0.9.4a-r1 b/app-misc/lirc/files/irexec-initd-0.9.4a-r1
new file mode 100644
index 000000000000..203ad3a3d8d4
--- /dev/null
+++ b/app-misc/lirc/files/irexec-initd-0.9.4a-r1
@@ -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 --chuid ${IREXEC_USER} --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/lirc-0.9.4-doc-path-fix.patch b/app-misc/lirc/files/lirc-0.9.4-doc-path-fix.patch
new file mode 100644
index 000000000000..9a2d6c2e638e
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.9.4-doc-path-fix.patch
@@ -0,0 +1,27 @@
+https://sourceforge.net/p/lirc/tickets/214/
+
+diff --git a/doc/Makefile.am b/doc/Makefile.am
+index 53d0f21..f833b4b 100644
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -33,7 +33,6 @@ nodist_man_MANS += man/xmode2.1 man/irxevent.1
+ manpage_html += man-html/irxevent.html man-html/xmode2.html
+ endif
+
+-docdir = @datadir@/doc/@PACKAGE@
+ dist_doc_DATA = irxevent.keys
+
+ if HAVE_DOXYGEN
+@@ -58,10 +57,10 @@ if HAVE_PYMOD_YAML
+ nodist_website_html_DATA += table.html
+ endif
+
+-vardocsdir = $(localstatedir)/lib/lirc/plugins
++vardocsdir = $(docdir)/plugins
+ vardocs_DATA = index.html html-source/lirc.css
+
+-varimagedir = $(localstatedir)/lib/lirc/images
++varimagedir = $(docdir)/images
+ varimage_DATA = $(dist_image_DATA)
+
+ website_imagedir = $(docdir)/lirc.org/images