1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
%:
dh $@ --buildsystem=pybuild --with python3
override_dh_auto_install:
dh_auto_install -- --install-args="--install-scripts=/usr/sbin --install-layout=deb"
rm -f debian/dhcpy6d/usr/share/doc/dhcpy6d/LICENSE
rm -f debian/dhcpy6d/var/log/dhcpy6d.log
rm -f debian/dhcpy6d/usr/share/doc/dhcpy6d/*.[0-9]
find debian/dhcpy6d/ -name __pycache__ -print0 | xargs -0 --no-run-if-empty rm -rv
mv -v debian/dhcpy6d/var/lib/dhcpy6d/volatile.sqlite debian/dhcpy6d/usr/share/dhcpy6d/
override_dh_install:
dh_install
chmod 0644 debian/dhcpy6d/usr/share/dhcpy6d/default/dhcpy6d
override_dh_installsystemd:
dh_installsystemd --no-enable --no-start
# there are no tests - build package anyway
override_dh_auto_test:
|