eventlircd: convert to new package format

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-04 14:51:38 +02:00
parent 1df4ac98a7
commit c927b5f695
3 changed files with 12 additions and 71 deletions

View File

@ -1,34 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. 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

@ -1,35 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. config/options $1
mkdir -p $INSTALL/usr/sbin
cp $PKG_BUILD/src/eventlircd $INSTALL/usr/sbin
mkdir -p $INSTALL/lib/udev
cp $PKG_BUILD/udev/lircd_helper $INSTALL/lib/udev
chmod +x $INSTALL/lib/udev/lircd_helper
cp $PKG_BUILD/udev/wakeup_enable $INSTALL/lib/udev
chmod +x $INSTALL/lib/udev/wakeup_enable
mkdir -p $INSTALL/etc/eventlircd.d
cp $PKG_DIR/evmap/*.evmap $INSTALL/etc/eventlircd.d

View File

@ -26,11 +26,21 @@ PKG_LICENSE="GPL"
PKG_SITE="http://code.google.com/p/eventlircd"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="systemd lirc"
PKG_BUILD_DEPENDS="toolchain systemd"
PKG_BUILD_DEPENDS_TARGET="toolchain systemd"
PKG_PRIORITY="optional"
PKG_SECTION="system/remote"
PKG_SHORTDESC="eventlircd:The eventlircd daemon provides various functions for LIRC devices"
PKG_LONGDESC="The eventlircd daemon provides four functions for LIRC devices"
PKG_IS_ADDON="no"
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
post_makeinstall_target() {
# install our own evmap files and udev rules
rm -rf $INSTALL/etc/eventlircd.d
rm -rf $INSTALL/lib/udev/rules.d
mkdir -p $INSTALL/etc/eventlircd.d
cp $PKG_DIR/evmap/*.evmap $INSTALL/etc/eventlircd.d
}