packaging fixes - really now it installs on xenophobe
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Apr 2017 18:27:30 +0000 (19:27 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Apr 2017 18:27:30 +0000 (19:27 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/hippotat.hippotatd.init
debian/hippotat.postinst
debian/rules

index 640bd8f..ac91e3a 100644 (file)
@@ -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
 
index 5cf0faf..7954152 100644 (file)
@@ -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#
index d23107c..375d057 100755 (executable)
@@ -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