#!/bin/sh

[ -d etc ] || mkdir etc
cp ../../flarmclient.conf etc

[ -d etc/cron.d ] || mkdir etc/cron.d
cp ../../examples/flarmradar.cron etc/cron.d/flarmradar

[ -d usr/bin ] || mkdir -p usr/bin 
cp ../../flarmclient.pl usr/bin/flarmclient

[ `which equivs-build` ] || ( echo "Missing 'equivs-build', install package equivs first" && exit 1 )
equivs-build flarmclient

exit 0
