diff --git a/packages/sysutils/remote/eventlircd/build b/packages/sysutils/remote/eventlircd/build deleted file mode 100755 index 0cc8c47eb4..0000000000 --- a/packages/sysutils/remote/eventlircd/build +++ /dev/null @@ -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 diff --git a/packages/sysutils/remote/eventlircd/install b/packages/sysutils/remote/eventlircd/install deleted file mode 100755 index bf92e2d891..0000000000 --- a/packages/sysutils/remote/eventlircd/install +++ /dev/null @@ -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 diff --git a/packages/sysutils/remote/eventlircd/meta b/packages/sysutils/remote/eventlircd/package.mk similarity index 84% rename from packages/sysutils/remote/eventlircd/meta rename to packages/sysutils/remote/eventlircd/package.mk index 79b9f2fac7..8d9e65438b 100644 --- a/packages/sysutils/remote/eventlircd/meta +++ b/packages/sysutils/remote/eventlircd/package.mk @@ -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 +} +