add patched lirc ebuild, that properly compiles on amd64(bug #160134)
This commit is contained in:
9
app-misc/lirc/files/irexec-confd
Normal file
9
app-misc/lirc/files/irexec-confd
Normal file
@ -0,0 +1,9 @@
|
||||
# Options to pass to the irexec process
|
||||
IREXEC_OPTS="/etc/lircrc"
|
||||
|
||||
# User to execute irexec as.
|
||||
# Warning: Running irexec as root can open security holes
|
||||
#IREXEC_USER="root"
|
||||
|
||||
# Use this to disable the warning printed when starting irexec as root
|
||||
# IREXEC_DISABLE_ROOT_WARNING=yes
|
28
app-misc/lirc/files/irexec-initd-0.8.6-r2
Executable file
28
app-misc/lirc/files/irexec-initd-0.8.6-r2
Executable file
@ -0,0 +1,28 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 2003 Martin Hierling <mad@cc.fh-lippe.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/irexec-initd-0.8.6-r2,v 1.1 2009/11/15 10:04:21 zzam Exp $
|
||||
|
||||
: ${IREXEC_USER:=root}
|
||||
|
||||
depend() {
|
||||
need lirc
|
||||
}
|
||||
|
||||
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."
|
||||
}
|
||||
|
26
app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch
Normal file
26
app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch
Normal file
@ -0,0 +1,26 @@
|
||||
--- lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c.orig 2005-10-29 08:18:53.000000000 -0600
|
||||
+++ lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c 2006-04-01 14:31:05.000000000 -0700
|
||||
@@ -147,8 +147,9 @@
|
||||
/* init strings */
|
||||
#define USB_OUTLEN 7
|
||||
|
||||
-static char init1[] = {0x01, 0x00, 0x20, 0x14};
|
||||
-static char init2[] = {0x01, 0x00, 0x20, 0x14, 0x20, 0x20, 0x20};
|
||||
+static char init1[] = {0x80, 0x05, 0x1b, 0x15, 0x14, 0x20, 0x24, 0x15};
|
||||
+static char init2[] = {0x83, 0x03};
|
||||
+static char init3[] = {0x84, 0xd7, 0x020};
|
||||
|
||||
struct in_endpt {
|
||||
/* inner link in list of endpoints for the remote specified by ir */
|
||||
@@ -1034,8 +1034,9 @@
|
||||
usb_sndintpipe(ir->usbdev, oep->ep->bEndpointAddress), oep->buf,
|
||||
USB_OUTLEN, usb_remote_send, oep, oep->ep->bInterval);
|
||||
|
||||
- send_packet(oep, 0x8004, init1);
|
||||
- send_packet(oep, 0x8007, init2);
|
||||
+ send_packet(oep, 0x8007, init1);
|
||||
+ send_packet(oep, 0x8002, init2);
|
||||
+ send_packet(oep, 0x8003, init3);
|
||||
}
|
||||
}
|
||||
|
18
app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch
Normal file
18
app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch
Normal file
@ -0,0 +1,18 @@
|
||||
Portaudio is only needed for LIRC_DEVICES=audio, so not checking for Portaudio when the device is disabled will prevent automagic dependencies.
|
||||
--- configure.ac.orig 2009-03-13 10:02:50.000000000 +0100
|
||||
+++ configure.ac 2009-03-13 10:04:00.000000000 +0100
|
||||
@@ -336,14 +336,6 @@
|
||||
AC_DEFINE(HAVE_LIBIRMAN_SW)
|
||||
possible_drivers="${possible_drivers} (irman_sw)"
|
||||
)
|
||||
-dnl audio driver requires PortAudio library installed and some linker flags
|
||||
-AC_CHECK_HEADERS(portaudio.h,[
|
||||
- AC_CHECK_LIB(portaudio, Pa_Initialize,[
|
||||
- AC_DEFINE(HAVE_LIBPORTAUDIO)
|
||||
- possible_drivers="${possible_drivers} (audio)"
|
||||
- ],,${portaudio_lib_other}
|
||||
- )]
|
||||
-)
|
||||
dnl audio_alsa driver requires ALSA library installed and some linker flags
|
||||
have_alsa=no
|
||||
AC_CHECK_HEADERS(alsa/asoundlib.h,[
|
41
app-misc/lirc/files/lircd-0.8.6
Normal file
41
app-misc/lirc/files/lircd-0.8.6
Normal file
@ -0,0 +1,41 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircd-0.8.6,v 1.2 2010/05/21 02:32:36 beandog Exp $
|
||||
|
||||
PIDFILE=/var/run/lirc/${SVCNAME}.pid
|
||||
LIRCD_SYMLINKFILE=/dev/lircd
|
||||
LIRCD_SOCKET=/var/run/lirc/lircd
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
use modules
|
||||
provide lirc
|
||||
}
|
||||
|
||||
start() {
|
||||
local retval
|
||||
ebegin "Starting lircd"
|
||||
rm -f ${LIRCD_SOCKET} && ln -s ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE}
|
||||
if [ $? -ne 0 ]; then
|
||||
eend $? "Unable to create symbolic link ${LIRCD_SYMLINKFILE}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd -- \
|
||||
-P "${PIDFILE}" ${LIRCD_OPTS}
|
||||
retval=$?
|
||||
|
||||
if [ ${retval} -ne 0 ]; then
|
||||
rm -f ${LIRCD_SOCKET}
|
||||
fi
|
||||
|
||||
eend ${retval}
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping lircd"
|
||||
rm -f ${LIRCD_SYMLINKFILE}
|
||||
start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd
|
||||
eend $?
|
||||
}
|
10
app-misc/lirc/files/lircd.conf.2
Normal file
10
app-misc/lirc/files/lircd.conf.2
Normal file
@ -0,0 +1,10 @@
|
||||
# Options to pass to the lircd process
|
||||
|
||||
# for devices with lirc-kernel-module
|
||||
#LIRCD_OPTS="-d /dev/lirc0"
|
||||
#LIRCD_OPTS="-d /dev/lirc"
|
||||
|
||||
# for devices using the input-layer
|
||||
#LIRCD_OPTS="-H devinput -d /dev/input/by-path/pci-0000:00:0a.0--event-ir"
|
||||
# This should work, Bug #235107
|
||||
#LIRCD_OPTS="-H devinput -d name=*DVB*"
|
20
app-misc/lirc/files/lircmd
Normal file
20
app-misc/lirc/files/lircmd
Normal file
@ -0,0 +1,20 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircmd,v 1.2 2004/09/28 00:22:15 swegener Exp $
|
||||
|
||||
depend() {
|
||||
need lircd
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting lircmd"
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping lircmd"
|
||||
start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
|
||||
eend $?
|
||||
}
|
22
app-misc/lirc/files/modprobed.lirc
Normal file
22
app-misc/lirc/files/modprobed.lirc
Normal file
@ -0,0 +1,22 @@
|
||||
#
|
||||
# For first serial receivers:
|
||||
#
|
||||
#options lirc_serial irq=4 io=0x3f8
|
||||
#options lirc_sir irq=4 io=0x3f8
|
||||
|
||||
#
|
||||
# Detach first serial port from serial-driver.
|
||||
# Use this when you have your serial-port-driver statically
|
||||
# compiled into your kernel, or as a module but loaded before
|
||||
# the lirc-module.
|
||||
#
|
||||
#install lirc_serial setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_serial
|
||||
#
|
||||
#install lirc_sir setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_sir
|
||||
|
||||
|
||||
#
|
||||
# For parallel receivers:
|
||||
#
|
||||
#options lirc_parallel irq=7 io=0x3bc
|
||||
|
Reference in New Issue
Block a user