From 8b6e03758b427a3d7de59a0d197c493b0dfdbadf Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 2 Aug 2010 14:47:46 +0200 Subject: [PATCH] lirc: update to lirc-20100731, add metafile support, use lircd.conf from source, start with uinput support Signed-off-by: Stephan Raue --- packages/sysutils/remote/lirc/build | 2 - .../remote/lirc/config/lircd_mceusb.conf | 104 ------------------ packages/sysutils/remote/lirc/init.d/32_lirc | 2 +- packages/sysutils/remote/lirc/install | 2 +- packages/sysutils/remote/lirc/meta | 14 +++ packages/sysutils/remote/lirc/url | 1 - 6 files changed, 16 insertions(+), 109 deletions(-) delete mode 100644 packages/sysutils/remote/lirc/config/lircd_mceusb.conf create mode 100644 packages/sysutils/remote/lirc/meta delete mode 100644 packages/sysutils/remote/lirc/url diff --git a/packages/sysutils/remote/lirc/build b/packages/sysutils/remote/lirc/build index 048fe5c3ab..d2450c77c8 100755 --- a/packages/sysutils/remote/lirc/build +++ b/packages/sysutils/remote/lirc/build @@ -2,8 +2,6 @@ . config/options $1 -$SCRIPTS/build toolchain - if [ "$DEBUG" = yes ]; then DEBUG_CONFIG="--enable-debug" else diff --git a/packages/sysutils/remote/lirc/config/lircd_mceusb.conf b/packages/sysutils/remote/lirc/config/lircd_mceusb.conf deleted file mode 100644 index 041c2cbaf1..0000000000 --- a/packages/sysutils/remote/lirc/config/lircd_mceusb.conf +++ /dev/null @@ -1,104 +0,0 @@ -# -# RC-6 config file -# -# source: http://home.hccnet.nl/m.majoor/projects__remote_control.htm -# http://home.hccnet.nl/m.majoor/pronto.pdf -# -# used by: Philips -# -######### -# -# Philips Media Center Edition remote control -# For use with the USB MCE ir receiver -# -# Dan Conti dconti|acm.wwu.edu -# -# Updated with codes for MCE 2005 Remote additional buttons -# *, #, Teletext, Red, Green, Yellow & Blue Buttons -# Note: TV power button transmits no code until programmed. -# Updated 12th September 2005 -# Graham Auld - mce|graham.auld.me.uk -# -# Radio, Print, RecTV are only available on the HP Media Center remote control -# - -begin remote - - name mceusb - bits 16 - flags RC6|CONST_LENGTH - eps 30 - aeps 100 - - header 2667 889 - one 444 444 - zero 444 444 - pre_data_bits 21 - pre_data 0x37FF0 - gap 105000 - toggle_bit 22 - rc6_mask 0x100000000 - - - begin codes - - Blue 0x00007ba1 - Yellow 0x00007ba2 - Green 0x00007ba3 - Red 0x00007ba4 - Teletext 0x00007ba5 - -# starts at af - Radio 0x00007baf - Print 0x00007bb1 - Videos 0x00007bb5 - Pictures 0x00007bb6 - RecTV 0x00007bb7 - Music 0x00007bb8 - TV 0x00007bb9 -# no ba - d8 - - Guide 0x00007bd9 - LiveTV 0x00007bda - DVD 0x00007bdb - Back 0x00007bdc - OK 0x00007bdd - Right 0x00007bde - Left 0x00007bdf - Down 0x00007be0 - Up 0x00007be1 - - Star 0x00007be2 - Hash 0x00007be3 - - Replay 0x00007be4 - Skip 0x00007be5 - Stop 0x00007be6 - Pause 0x00007be7 - Record 0x00007be8 - Play 0x00007be9 - Rewind 0x00007bea - Forward 0x00007beb - ChanDown 0x00007bec - ChanUp 0x00007bed - VolDown 0x00007bee - VolUp 0x00007bef - More 0x00007bf0 - Mute 0x00007bf1 - Home 0x00007bf2 - Power 0x00007bf3 - Enter 0x00007bf4 - Clear 0x00007bf5 - Nine 0x00007bf6 - Eight 0x00007bf7 - Seven 0x00007bf8 - Six 0x00007bf9 - Five 0x00007bfa - Four 0x00007bfb - Three 0x00007bfc - Two 0x00007bfd - One 0x00007bfe - Zero 0x00007bff - end codes - -end remote diff --git a/packages/sysutils/remote/lirc/init.d/32_lirc b/packages/sysutils/remote/lirc/init.d/32_lirc index a20fcef27e..491eef647b 100755 --- a/packages/sysutils/remote/lirc/init.d/32_lirc +++ b/packages/sysutils/remote/lirc/init.d/32_lirc @@ -37,6 +37,6 @@ if [ "$REMOTE_BACKEND" = "lirc" ]; then LIRC_OUTPUT="/dev/lircd" $IONICE mkdir -p /var/run/lirc - lircd --driver=$LIRC_DRIVER --device=$LIRC_DEVICE --output=$LIRC_OUTPUT + lircd -u --driver=$LIRC_DRIVER --device=$LIRC_DEVICE --output=$LIRC_OUTPUT fi diff --git a/packages/sysutils/remote/lirc/install b/packages/sysutils/remote/lirc/install index 7fea9b8c02..9cd13fa8ad 100755 --- a/packages/sysutils/remote/lirc/install +++ b/packages/sysutils/remote/lirc/install @@ -10,7 +10,7 @@ mkdir -p $INSTALL/usr/bin cp $PKG_BUILD/tools/irpty $INSTALL/usr/bin mkdir -p $INSTALL/etc/lirc - cp $PKG_DIR/config/lircd_$REMOTE.conf $INSTALL/etc/lirc/lircd.conf + cp $PKG_BUILD/remotes/mceusb/lircd.conf.mceusb $INSTALL/etc/lirc/lircd.conf if [ "$DEVTOOLS" = yes ]; then mkdir -p $INSTALL/usr/bin diff --git a/packages/sysutils/remote/lirc/meta b/packages/sysutils/remote/lirc/meta new file mode 100644 index 0000000000..bab20f2382 --- /dev/null +++ b/packages/sysutils/remote/lirc/meta @@ -0,0 +1,14 @@ +PKG_NAME="lirc" +PKG_VERSION="20100731" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.lirc.org" +PKG_URL="http://sources.openelec.tv/svn/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="system/remote" +PKG_SHORTDESC="lirc: Linux Infrared Remote Control" +PKG_LONGDESC="LIRC is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls." +PKG_IS_ADDON="no" diff --git a/packages/sysutils/remote/lirc/url b/packages/sysutils/remote/lirc/url deleted file mode 100644 index c91a2a893c..0000000000 --- a/packages/sysutils/remote/lirc/url +++ /dev/null @@ -1 +0,0 @@ -http://sources.openelec.tv/svn/lirc-20100408.tar.bz2