#!/bin/sh -e

autoconf;autoheader

./configure \
    --prefix=/usr \
    --enable-static

make
make scp
install -Dm755 scp "$1/usr/bin/scp"
make DESTDIR="$1" install

ln -s dbclient "$1/usr/bin/ssh"