packaging fixes
[hippotat] / debian / rules
CommitLineData
c295a9c0
IJ
1#!/usr/bin/make -f
2
a571ef2d
IJ
3SHELL=/bin/bash
4
c295a9c0
IJ
5export PYBUILD_INSTALL_DIR=/usr/share/hippotat/python3
6
7%:
8 dh $@ --with python3 --buildsystem=pybuild
f11f140b 9
dd8fb46e
IJ
10i=debian/hippotat
11
f11f140b
IJ
12debian/copyright: COPYING AGPLv3+CAFv2
13 cat $^ >$@.tmp && mv -f $@.tmp $@
a571ef2d 14
1d33eef3
IJ
15override_dh_python3:
16 dh_python3 -O--buildsystem=pybuild
17 dh_installdirs /usr/sbin
18 mv $i/usr/{bin,sbin}/hippotatd
19
20#install -m755 -o0 -g0 -d $i//usr/sbin
21
e7f20f23
IJ
22override_dh_installinit:
23 dh_installinit --name=hippotatd
24
a571ef2d 25override_dh_compress:
dd8fb46e 26 find $i/usr/{bin,sbin} -type f | xargs ./subst-sys-path
a571ef2d 27 dh_compress