summaryrefslogtreecommitdiff
path: root/packages/lirc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/lirc')
-rw-r--r--packages/lirc/.mtn2git_empty0
-rw-r--r--packages/lirc/files/.mtn2git_empty0
-rw-r--r--packages/lirc/files/lirc_sir-sa1100.patch10
-rwxr-xr-x[-rw-r--r--]packages/lirc/files/lircd.init0
-rwxr-xr-x[-rw-r--r--]packages/lirc/files/lircmd.init38
-rw-r--r--packages/lirc/files/split-hauppauge.patch141
-rw-r--r--packages/lirc/lirc-config.inc12
7 files changed, 201 insertions, 0 deletions
diff --git a/packages/lirc/.mtn2git_empty b/packages/lirc/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/lirc/.mtn2git_empty
diff --git a/packages/lirc/files/.mtn2git_empty b/packages/lirc/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/lirc/files/.mtn2git_empty
diff --git a/packages/lirc/files/lirc_sir-sa1100.patch b/packages/lirc/files/lirc_sir-sa1100.patch
index e69de29bb2..245b28ac51 100644
--- a/packages/lirc/files/lirc_sir-sa1100.patch
+++ b/packages/lirc/files/lirc_sir-sa1100.patch
@@ -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;
+
diff --git a/packages/lirc/files/lircd.init b/packages/lirc/files/lircd.init
index e549b7ede9..e549b7ede9 100644..100755
--- a/packages/lirc/files/lircd.init
+++ b/packages/lirc/files/lircd.init
diff --git a/packages/lirc/files/lircmd.init b/packages/lirc/files/lircmd.init
index e69de29bb2..16296f41d9 100644..100755
--- a/packages/lirc/files/lircmd.init
+++ b/packages/lirc/files/lircmd.init
@@ -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/bin/lircmd || exit 0
+
+case "$1" in
+ start)
+ echo -n "Starting lirc daemon: lircmd"
+ start-stop-daemon --start --quiet --exec /usr/bin/lircmd
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping lirc daemon: lircmd"
+ start-stop-daemon --stop --quiet --exec /usr/bin/lircmd
+ echo "."
+ ;;
+ reload|force-reload)
+ start-stop-daemon --stop --quiet --signal 1 --exec /usr/bin/lircmd
+ ;;
+ restart)
+ echo -n "Stopping lirc daemon: lircmd"
+ start-stop-daemon --stop --quiet --exec /usr/bin/lircmd
+ sleep 1
+ echo -n "Starting lirc daemon: lircmd"
+ start-stop-daemon --start --quiet --exec /usr/bin/lircmd
+ echo "."
+ ;;
+ *)
+ echo "Usage: /etc/init.d/lircmd {start|stop|reload|restart|force-reload}"
+ exit 1
+esac
+
+exit 0
diff --git a/packages/lirc/files/split-hauppauge.patch b/packages/lirc/files/split-hauppauge.patch
index e69de29bb2..170a233ffb 100644
--- a/packages/lirc/files/split-hauppauge.patch
+++ b/packages/lirc/files/split-hauppauge.patch
@@ -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
diff --git a/packages/lirc/lirc-config.inc b/packages/lirc/lirc-config.inc
index e69de29bb2..d8809d1aa6 100644
--- a/packages/lirc/lirc-config.inc
+++ b/packages/lirc/lirc-config.inc
@@ -0,0 +1,12 @@
+EXTRA_OECONF = "--with-kerneldir=${STAGING_KERNEL_DIR} --with-driver=${DRIVER}"
+
+DRIVER ?= "serial"
+DRIVER_collie = "sa1100"
+DRIVER_h3600 = "sa1100"
+DRIVER_beagle = "sa1100"
+DRIVER_simpad = "sa1100"
+# 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_beagle = " --without-x"
+EXTRA_OECONF_append_simpad = " --without-x"