#!/bin/sh

. config/options

$SCRIPTS/install hal
$SCRIPTS/install dbus
$SCRIPTS/install udev
$SCRIPTS/install bluez
$SCRIPTS/install wpa_supplicant
$SCRIPTS/install gettext-dummy

PKG_DIR=`find $PACKAGES -type d -name $1`

mkdir -p $INSTALL/usr/sbin
cp -PR $PKG_BUILD/src/connmand $INSTALL/usr/sbin

mkdir -p $INSTALL/usr/lib/connman/plugins
cp -PR $PKG_BUILD/plugins/.libs/*.so $INSTALL/usr/lib/connman/plugins

mkdir -p $INSTALL/usr/lib/connman/scripts
cp -PR $PKG_BUILD/scripts/udhcpc-script $INSTALL/usr/lib/connman/scripts

mkdir -p $INSTALL/etc/dbus-1/system.d
cp -PR $PKG_BUILD/src/connman.conf $INSTALL/etc/dbus-1/system.d
