Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
DESCRIPTION='Asinine IP over HTTP server'
if type -p authbind >/dev/null 2>&1; then AUTHBIND=authbind; fi
+test -e /etc/default/hippotatd &&
. /etc/default/hippotatd
+set -e
+
test -f $DAEMON || exit 0
egrep '^[^ #]' $MASTER_CONFIG >/dev/null 2>&1 || exit 0
set -e
adduser --system --group --force-badname --shell=/bin/bash \
- --home /etc/hippotat Debian-hippotat
+ --quiet --home /etc/hippotat Debian-hippotat
umask 077
pd=/etc/hippotat/passwords.d
test -d $pd || \
-install -m750 -o root -g Debian-hippotat $pd
+install -m 750 -o root -g Debian-hippotat -d $pd
#DEBHELPER#
debian/copyright: COPYING AGPLv3+CAFv2
cat $^ >$@.tmp && mv -f $@.tmp $@
+override_dh_installinit:
+ dh_installinit --name=hippotatd
+
override_dh_compress:
find $i/usr/{bin,sbin} -type f | xargs ./subst-sys-path
dh_compress