From e7f20f23664234d4a36c4af12439195fc36181b6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 9 Apr 2017 19:27:30 +0100 Subject: [PATCH] packaging fixes - really now it installs on xenophobe Signed-off-by: Ian Jackson --- debian/hippotat.hippotatd.init | 3 +++ debian/hippotat.postinst | 4 ++-- debian/rules | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/hippotat.hippotatd.init b/debian/hippotat.hippotatd.init index 640bd8f..ac91e3a 100644 --- a/debian/hippotat.hippotatd.init +++ b/debian/hippotat.hippotatd.init @@ -21,8 +21,11 @@ AS_USER=as_user_userv 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 diff --git a/debian/hippotat.postinst b/debian/hippotat.postinst index 5cf0faf..7954152 100644 --- a/debian/hippotat.postinst +++ b/debian/hippotat.postinst @@ -2,12 +2,12 @@ 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# diff --git a/debian/rules b/debian/rules index d23107c..375d057 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,9 @@ i=debian/hippotat 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 -- 2.11.0