#!/bin/bash

./configure --host=arm-linux --prefix=/usr

sed -i	-e'10a\MULTI=1' \
	-e'10a\SCPPROGRESS=1' \
	-e'10a\PROGRAMS=dropbear dbclient dropbearkey dropbearconvert scp' \
	-e's/-chown/#-chown/' \
	-e's/-chgrp/#-chgrp/' \
	Makefile

sed -i 	-e's/^#define DO_HOST_LOOKUP/\/*#define DO_HOST_LOOKUP*\//' options.h

cat >ECO_INSTALL <<EOF
#!/bin/sh

export DESTDIR=\$(pwd)/../../rootfs
EOF
chmod 755 ECO_INSTALL

