new package: add initial package 'atvclient'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-09 16:57:02 +02:00
parent 6e02c1ece0
commit 9180af8c56
6 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/bin/sh
. config/options $1
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sbindir=/usr/sbin \
--exec-prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
make

View File

@ -0,0 +1,31 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
# start the ATVclient daemon
#
# runlevels: openelec, textmode
. /etc/profile
progress "starting ATVclient"
mkdir -p /storage/.cache
atvclient -m > /dev/null 2>&1

View File

@ -0,0 +1,6 @@
#!/bin/sh
. config/options $1
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/src/atvclient $INSTALL/usr/bin

View File

@ -0,0 +1,14 @@
PKG_NAME="atvclient"
PKG_VERSION="0.1"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://github.com/Evinyatar/atvclient/wiki"
PKG_URL="http://sources.openelec.tv/svn/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="libusb-compat"
PKG_BUILD_DEPENDS="toolchain libusb-compat"
PKG_PRIORITY="optional"
PKG_SECTION="system/remote"
PKG_SHORTDESC="atvclient: a background application for Linux that reads input from the AppleTVs internal infra-red receiver"
PKG_LONGDESC="atvclient is a background application for Linux that reads input from the AppleTVs internal infra-red receiver and submits it to XBMC in a way very similar to how XBMCHelper does this under the native AppleTV OS. It implements most of the functionality the ATV OS HID driver supports, including pairing and control of the status LED."
PKG_IS_ADDON="no"

View File

@ -0,0 +1,12 @@
diff -Naur atvclient-0.1/src/atvclient.cpp atvclient-0.1.patch/src/atvclient.cpp
--- atvclient-0.1/src/atvclient.cpp 2010-10-09 15:44:27.000000000 +0200
+++ atvclient-0.1.patch/src/atvclient.cpp 2010-10-09 16:01:29.774444638 +0200
@@ -161,7 +161,7 @@
static CPacketNOTIFICATION remote_unpaired("Remote unpaired", "You can now control XBMC with any Apple remote.", NULL, NULL);
static CPacketNOTIFICATION remote_pair_failed("Remote already paired", "This AppleTV was paired to another remote. To unpair, hold down menu and rewind for 6 seconds.", NULL, NULL);
-const char* remoteIdFile = "/etc/atvremoteid";
+const char* remoteIdFile = "/storage/.cache/atvremoteid";
static int pairedRemoteId = 0;
/* figure out kernel name corresponding to usb device */

View File

@ -4,6 +4,7 @@
$SCRIPTS/install irserver $SCRIPTS/install irserver
$SCRIPTS/install eventlircd $SCRIPTS/install eventlircd
[ "$ATVCLIENT_SUPPORT" ="yes" ] && $SCRIPTS/install atvclient
mkdir -p $INSTALL/usr/config mkdir -p $INSTALL/usr/config
cp $PKG_DIR/config/*.conf $INSTALL/usr/config cp $PKG_DIR/config/*.conf $INSTALL/usr/config