#!/bin/sh

. config/options $1

mkdir -p $INSTALL/usr/sbin
  cp $PKG_BUILD/daemons/lircd $INSTALL/usr/sbin

mkdir -p $INSTALL/etc/lirc
  cp $PKG_BUILD/remotes/mceusb/lircd.conf.mceusb $INSTALL/etc/lirc/lircd.conf
#  cp $PKG_BUILD/remotes/devinput/lircd.conf.devinput $INSTALL/etc/lirc

if [ "$DEVTOOLS" = yes ]; then
  mkdir -p $INSTALL/usr/sbin
    cp $PKG_BUILD/daemons/lircmd $INSTALL/usr/sbin # do we need this?

  mkdir -p $INSTALL/usr/bin
    cp $PKG_BUILD/tools/ircat $INSTALL/usr/bin # do we need this?
    cp $PKG_BUILD/tools/irexec $INSTALL/usr/bin # do we need this?
    cp $PKG_BUILD/tools/irpty $INSTALL/usr/bin
    cp $PKG_BUILD/tools/irsend $INSTALL/usr/bin
    cp $PKG_BUILD/tools/irw $INSTALL/usr/bin
    cp $PKG_BUILD/tools/lircrcd $INSTALL/usr/bin # do we need this?
    cp $PKG_BUILD/tools/mode2 $INSTALL/usr/bin
    cp $PKG_BUILD/daemons/irrecord $INSTALL/usr/bin
    cp $PKG_BUILD/tools/irsend $INSTALL/usr/bin # do we need this?
fi
