X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=debian%2Frules;h=419c3b74a5bd75490f58a2e68d98f8cd8218fc1f;hp=97072131a49b20eaee11fa4ebc8f4c5c6ad8c693;hb=216519e342072164533ae340141d585c638db8e2;hpb=f11f140b51724bddc1a20c66680d657a4ec6ef96 diff --git a/debian/rules b/debian/rules index 9707213..419c3b7 100755 --- a/debian/rules +++ b/debian/rules @@ -1,9 +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