#!/bin/sh -e

if [ -e /usr/src/daemontools-installer/daemontools_0.76.orig.tar.gz ]; then
	SUM=`md5sum /usr/src/daemontools-installer/daemontools_0.76.orig.tar.gz | awk '{print $1}'`
fi

if [ "$SUM" != "1871af2453d6e464034968a0fbcb2bfc" ]; then
	get-daemontools
else
	echo ""
	echo "Looks like the daemontools source is already on your system!"
fi

echo ""
echo "To build daemontools binary package, you have to run"
echo ""
echo "         build-daemontools"
echo ""

#DEBHELPER#

exit 0
