Add lirc
git-svn-id: https://svn.o-hand.com/repos/poky@246 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
da8ed28828
commit
bc4e7ed899
|
@ -0,0 +1,10 @@
|
|||
--- lirc/drivers/lirc_sir/lirc_sir.c.orig 2004-11-18 17:30:17 +0100
|
||||
+++ lirc/drivers/lirc_sir/lirc_sir.c 2004-11-18 17:30:21 +0100
|
||||
@@ -628,6 +628,7 @@
|
||||
struct timeval curr_tv;
|
||||
static unsigned long deltv;
|
||||
#ifdef LIRC_ON_SA1100
|
||||
+ unsigned long deltintrtv;
|
||||
int status;
|
||||
static int n=0;
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,38 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# This is an init script for Familiar
|
||||
# Copy it to /etc/init.d/lircd and type
|
||||
# > update-rc.d lircd defaults 20
|
||||
#
|
||||
|
||||
|
||||
test -f /usr/sbin/lircd || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting lirc daemon: lircd"
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc
|
||||
echo "."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping lirc daemon: lircd"
|
||||
start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
|
||||
echo "."
|
||||
;;
|
||||
reload|force-reload)
|
||||
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd
|
||||
;;
|
||||
restart)
|
||||
echo -n "Stopping lirc daemon: lircd"
|
||||
start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
|
||||
sleep 1
|
||||
echo -n "Starting lirc daemon: lircd"
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc
|
||||
echo "."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,36 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# This is an init script for Familiar
|
||||
# Copy it to /etc/init.d/lircexecd and type
|
||||
# > update-rc.d lircexecd defaults 20
|
||||
# It must be started after lircd (and it does alphabetically :-)
|
||||
# irexec reads /etc/lircrc by default
|
||||
|
||||
|
||||
test -f /usr/bin/irexec || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting lircexec daemon: irexec"
|
||||
start-stop-daemon --start --quiet --exec /usr/bin/irexec
|
||||
echo "."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping lircexec daemon: irexec"
|
||||
start-stop-daemon --stop --quiet --exec /usr/bin/irexec
|
||||
echo "."
|
||||
;;
|
||||
restart|force-restart)
|
||||
echo -n "Stopping lircexec daemon: irexec"
|
||||
start-stop-daemon --stop --quiet --exec /usr/bin/irexec
|
||||
sleep 1
|
||||
echo -n "Starting lircexec daemon: irexec"
|
||||
start-stop-daemon --start --quiet --exec /usr/bin/irexec
|
||||
echo "."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/lircexec {start|stop|reload|restart|force-restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,38 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# This is an init script for Familiar
|
||||
# Copy it to /etc/init.d/lirc and type
|
||||
# > update-rc.d lirc defaults 20
|
||||
#
|
||||
|
||||
|
||||
test -f /usr/sbin/lircmd || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting lirc daemon: lircmd"
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
|
||||
echo "."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping lirc daemon: lircmd"
|
||||
start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
|
||||
echo "."
|
||||
;;
|
||||
reload|force-reload)
|
||||
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircmd
|
||||
;;
|
||||
restart)
|
||||
echo -n "Stopping lirc daemon: lircmd"
|
||||
start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
|
||||
sleep 1
|
||||
echo -n "Starting lirc daemon: lircmd"
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
|
||||
echo "."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/lircmd {start|stop|reload|restart|force-reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,113 @@
|
|||
# This is the default files read by all lirc clients
|
||||
# (see also /etc/lircd.conf)
|
||||
|
||||
# I run /sbin/buzzer before every command to get an audible feedback
|
||||
|
||||
## Here LIRC could shutdown your system
|
||||
#begin
|
||||
# prog = irexec
|
||||
# remote = RC5
|
||||
# repeat = 0
|
||||
# button = vcr2-standby
|
||||
# config = /sbin/buzzer; /sbin/halt
|
||||
#end
|
||||
|
||||
|
||||
## Here LIRC controls your mpd music deamon
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-pause
|
||||
config = /sbin/buzzer; mpc toggle
|
||||
end
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-step+
|
||||
config = /sbin/buzzer; mpc next
|
||||
end
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-step-
|
||||
config = /sbin/buzzer; mpc prev
|
||||
end
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-scan_forward
|
||||
config = /sbin/buzzer; mpc seek +00:00:30
|
||||
end
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-scan_reverse
|
||||
config = /sbin/buzzer; mpc seek -00:00:30
|
||||
end
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-brightness+
|
||||
config = /sbin/buzzer; mpc volume +20
|
||||
end
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-brightness-
|
||||
config = /sbin/buzzer; mpc volume -20
|
||||
end
|
||||
|
||||
|
||||
## Here LIRC acts as an repeater
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-volume+
|
||||
config = /sbin/buzzer; irsend SEND_ONCE RC5 amp1-volume+
|
||||
end
|
||||
begin
|
||||
prog = irexec
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-volume-
|
||||
config = /sbin/buzzer; irsend SEND_ONCE RC5 amp1-volume-
|
||||
end
|
||||
|
||||
|
||||
## Here LIRC is the input device for your LC display software
|
||||
begin
|
||||
prog = lcdd
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-1
|
||||
config = A
|
||||
end
|
||||
begin
|
||||
prog = lcdd
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-2
|
||||
config = B
|
||||
end
|
||||
begin
|
||||
prog = lcdd
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-3
|
||||
config = C
|
||||
end
|
||||
begin
|
||||
prog = lcdd
|
||||
remote = RC5
|
||||
repeat = 0
|
||||
button = vcr2-4
|
||||
config = D
|
||||
end
|
|
@ -0,0 +1,141 @@
|
|||
--- lirc/remotes/hauppauge/lircd.conf.hauppauge~ 2003-05-03 15:42:30.000000000 +0100
|
||||
+++ lirc/remotes/hauppauge/lircd.conf.hauppauge 2004-10-10 20:14:14.000000000 +0100
|
||||
@@ -51,71 +51,3 @@
|
||||
end codes
|
||||
|
||||
end remote
|
||||
-
|
||||
-
|
||||
-#
|
||||
-# this config file was automatically generated
|
||||
-# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
|
||||
-#
|
||||
-# contributed by
|
||||
-#
|
||||
-# brand: Hauppauge
|
||||
-# model no. of remote control:
|
||||
-# devices being controlled by this remote: PVR 2/350
|
||||
-#
|
||||
-
|
||||
-begin remote
|
||||
-
|
||||
- name hauppauge_pvr
|
||||
- bits 13
|
||||
- flags RC5|CONST_LENGTH
|
||||
- eps 30
|
||||
- aeps 100
|
||||
-
|
||||
- one 969 811
|
||||
- zero 969 811
|
||||
- plead 1097
|
||||
- gap 114605
|
||||
- toggle_bit 2
|
||||
-
|
||||
-
|
||||
- begin codes
|
||||
- Power 0x00000000000017FD
|
||||
- Go 0x00000000000017FB
|
||||
- 1 0x00000000000017C1
|
||||
- 2 0x00000000000017C2
|
||||
- 3 0x00000000000017C3
|
||||
- 4 0x00000000000017C4
|
||||
- 5 0x00000000000017C5
|
||||
- 6 0x00000000000017C6
|
||||
- 7 0x00000000000017C7
|
||||
- 8 0x00000000000017C8
|
||||
- 9 0x00000000000017C9
|
||||
- Back/Exit 0x00000000000017DF
|
||||
- 0 0x00000000000017C0
|
||||
- Menu 0x00000000000017CD
|
||||
- Red 0x00000000000017CB
|
||||
- Green 0x00000000000017EE
|
||||
- Yellow 0x00000000000017F8
|
||||
- Blue 0x00000000000017E9
|
||||
- Ch+ 0x00000000000017E0
|
||||
- Ch- 0x00000000000017E1
|
||||
- Vol- 0x00000000000017D1
|
||||
- Vol+ 0x00000000000017D0
|
||||
- Ok 0x00000000000017E5
|
||||
- Mute 0x00000000000017CF
|
||||
- Blank 0x00000000000017CC
|
||||
- Full 0x00000000000017FC
|
||||
- Rewind 0x00000000000017F2
|
||||
- Play 0x00000000000017F5
|
||||
- Forward 0x00000000000017F4
|
||||
- Record 0x00000000000017F7
|
||||
- Stop 0x00000000000017F6
|
||||
- Pause 0x00000000000017F0
|
||||
- Replay 0x00000000000017E4
|
||||
- Skip 0x00000000000017DE
|
||||
- end codes
|
||||
-
|
||||
-end remote
|
||||
-
|
||||
-
|
||||
--- /dev/null 2004-06-13 02:32:19.000000000 +0100
|
||||
+++ lirc/remotes/hauppauge/lircd.conf.hauppauge-pvr 2004-10-10 20:14:05.000000000 +0100
|
||||
@@ -0,0 +1,64 @@
|
||||
+#
|
||||
+# this config file was automatically generated
|
||||
+# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
|
||||
+#
|
||||
+# contributed by
|
||||
+#
|
||||
+# brand: Hauppauge
|
||||
+# model no. of remote control:
|
||||
+# devices being controlled by this remote: PVR 2/350
|
||||
+#
|
||||
+
|
||||
+begin remote
|
||||
+
|
||||
+ name hauppauge_pvr
|
||||
+ bits 13
|
||||
+ flags RC5|CONST_LENGTH
|
||||
+ eps 30
|
||||
+ aeps 100
|
||||
+
|
||||
+ one 969 811
|
||||
+ zero 969 811
|
||||
+ plead 1097
|
||||
+ gap 114605
|
||||
+ toggle_bit 2
|
||||
+
|
||||
+
|
||||
+ begin codes
|
||||
+ Power 0x00000000000017FD
|
||||
+ Go 0x00000000000017FB
|
||||
+ 1 0x00000000000017C1
|
||||
+ 2 0x00000000000017C2
|
||||
+ 3 0x00000000000017C3
|
||||
+ 4 0x00000000000017C4
|
||||
+ 5 0x00000000000017C5
|
||||
+ 6 0x00000000000017C6
|
||||
+ 7 0x00000000000017C7
|
||||
+ 8 0x00000000000017C8
|
||||
+ 9 0x00000000000017C9
|
||||
+ Back/Exit 0x00000000000017DF
|
||||
+ 0 0x00000000000017C0
|
||||
+ Menu 0x00000000000017CD
|
||||
+ Red 0x00000000000017CB
|
||||
+ Green 0x00000000000017EE
|
||||
+ Yellow 0x00000000000017F8
|
||||
+ Blue 0x00000000000017E9
|
||||
+ Ch+ 0x00000000000017E0
|
||||
+ Ch- 0x00000000000017E1
|
||||
+ Vol- 0x00000000000017D1
|
||||
+ Vol+ 0x00000000000017D0
|
||||
+ Ok 0x00000000000017E5
|
||||
+ Mute 0x00000000000017CF
|
||||
+ Blank 0x00000000000017CC
|
||||
+ Full 0x00000000000017FC
|
||||
+ Rewind 0x00000000000017F2
|
||||
+ Play 0x00000000000017F5
|
||||
+ Forward 0x00000000000017F4
|
||||
+ Record 0x00000000000017F7
|
||||
+ Stop 0x00000000000017F6
|
||||
+ Pause 0x00000000000017F0
|
||||
+ Replay 0x00000000000017E4
|
||||
+ Skip 0x00000000000017DE
|
||||
+ end codes
|
||||
+
|
||||
+end remote
|
|
@ -0,0 +1,12 @@
|
|||
EXTRA_OECONF = "--with-kerneldir=${STAGING_KERNEL_DIR} --with-driver=${DRIVER}"
|
||||
|
||||
DRIVER ?= "serial"
|
||||
DRIVER_collie = "sa1100"
|
||||
DRIVER_h3600 = "sa1100"
|
||||
DRIVER_simpad = "sa1100"
|
||||
DRIVER_nslu2 = "nslu2"
|
||||
# XXX Why is X disabled on all these platforms anyway?
|
||||
EXTRA_OECONF_append_collie = " --without-x"
|
||||
EXTRA_OECONF_append_h3600 = " --without-x"
|
||||
EXTRA_OECONF_append_simpad = " --without-x"
|
||||
EXTRA_OECONF_append_nslu2 = " --without-x --with-transmitter --with-soft-carrier"
|
|
@ -0,0 +1,34 @@
|
|||
DESCRIPTION = "LIRC is a package that allows you to decode and send infra-red signals of many commonly used remote controls."
|
||||
SECTION = "base"
|
||||
PRIORITY = "optional"
|
||||
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
|
||||
LICENSE = "GPL"
|
||||
DEPENDS = "virtual/kernel fakeroot-native"
|
||||
PR = "r2"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/lirc/lirc-${PV}.tar.gz \
|
||||
file://lirc_sir-sa1100.patch;patch=1"
|
||||
S = "${WORKDIR}/lirc-${PV}"
|
||||
|
||||
inherit autotools module-base
|
||||
|
||||
include lirc-config.inc
|
||||
|
||||
do_compile() {
|
||||
# ${KERNEL_LD} doesn't understand the LDFLAGS, so suppress them
|
||||
cd drivers && oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" LDFLAGS=""
|
||||
}
|
||||
|
||||
fakeroot do_install() {
|
||||
oe_runmake -C drivers DESTDIR="${D}" moduledir="/lib/modules/${KERNEL_VERSION}/lirc" install
|
||||
rm -rf ${D}/dev
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
#!/bin/sh
|
||||
set -e
|
||||
if [ ! -c $D/dev/lirc ]; then mknod $D/dev/lirc c 61 0; fi
|
||||
exit 0
|
||||
}
|
||||
|
||||
FILES_${PN} = "/lib/modules"
|
|
@ -0,0 +1,38 @@
|
|||
DESCRIPTION = "LIRC is a package that allows you to decode and send infra-red signals of many commonly used remote controls."
|
||||
SECTION = "console/network"
|
||||
PRIORITY = "optional"
|
||||
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
|
||||
LICENSE = "GPL"
|
||||
DEPENDS = "virtual/kernel x11 xau libsm ice"
|
||||
PR = "r5"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/lirc/lirc-${PV}.tar.gz \
|
||||
file://lircd.init file://lircmd.init"
|
||||
S = "${WORKDIR}/lirc-${PV}"
|
||||
|
||||
inherit autotools module-base update-rc.d
|
||||
|
||||
INITSCRIPT_NAME = "lircd"
|
||||
INITSCRIPT_PARAMS = "defaults 20"
|
||||
|
||||
include lirc-config.inc
|
||||
|
||||
EXTRA_OEMAKE = 'SUBDIRS="daemons tools"'
|
||||
|
||||
do_stage() {
|
||||
oe_libinstall -so -C tools liblirc_client ${STAGING_LIBDIR}
|
||||
install -d ${STAGING_INCDIR}/lirc/
|
||||
install -m 0644 tools/lirc_client.h ${STAGING_INCDIR}/lirc/
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install ${WORKDIR}/lircd.init ${D}${sysconfdir}/init.d/lircd
|
||||
|
||||
install -d ${D}${datadir}/lirc/
|
||||
cp -pPR ${S}/remotes ${D}${datadir}/lirc/
|
||||
}
|
||||
|
||||
PACKAGES =+ "lirc-x"
|
||||
|
||||
FILES_lirc-x = "${bindir}/irxevent ${bindir}/xmode2"
|
Loading…
Reference in New Issue