#!/bin/sh

. config/options

$SCRIPTS/install zlib

mkdir -p $INSTALL/usr/sbin
  cp -PR $PKG_BUILD/dropbear $INSTALL/usr/sbin

mkdir -p $INSTALL/usr/bin
  cp -PR $PKG_BUILD/dbclient $INSTALL/usr/bin/ssh
  cp -PR $PKG_BUILD/dropbearconvert $INSTALL/usr/bin
  cp -PR $PKG_BUILD/dropbearkey $INSTALL/usr/bin
  cp -PR $PKG_BUILD/scp $INSTALL/usr/bin

mkdir -p $INSTALL/etc
  ln -s /storage/.cache/dropbear $INSTALL/etc/dropbear