X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/c295a9c09deae50d00778caeb74b79d189f5065f..307800de87824d5f39580901c893b801fb52fc8d:/debian/rules diff --git a/debian/rules b/debian/rules index d087b53..419c3b7 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,25 @@ #!/usr/bin/make -f +SHELL=/bin/bash + export PYBUILD_INSTALL_DIR=/usr/share/hippotat/python3 %: dh $@ --with python3 --buildsystem=pybuild + +i=debian/hippotat + +debian/copyright: COPYING AGPLv3+CAFv2 + cat $^ >$@.tmp && mv -f $@.tmp $@ + +override_dh_python3: + dh_python3 -O--buildsystem=pybuild + dh_installdirs /usr/sbin + mv $i/usr/{bin,sbin}/hippotatd + +override_dh_installinit: + dh_installinit --name=hippotatd + +override_dh_compress: + find $i/usr/{bin,sbin} -type f | xargs ./subst-sys-path + dh_compress