#!/usr/bin/make -f %: dh $@ --with python3 --buildsystem=pybuild override_dh_auto_install: echo "Do nothing..." override_dh_auto_test: echo "Do nothing..." override_dh_auto_build: echo "Do nothing..." override_dh_install: GRAPHITE_NO_PREFIX=True python3 setup.py install --install-layout=deb --root $(CURDIR)/debian/graphite-carbon rename 's/\.py//' debian/graphite-carbon/usr/bin/*.py # clean unneeded stuff rm -rf debian/graphite-carbon/usr/conf rm -rf debian/graphite-carbon/usr/storage rm -rf debian/graphite-carbon/usr/examples # install global default file for the three carbon daemons cp debian/graphite-carbon.default debian/graphite-carbon/etc/default/graphite-carbon # install config files cp conf/carbon.conf.example debian/graphite-carbon/etc/carbon/carbon.conf cp conf/storage-schemas.conf.example debian/graphite-carbon/etc/carbon/storage-schemas.conf dh_install override_dh_installinit: dh_installinit --name=carbon-cache override_dh_installsystemd: dh_installsystemd --name=carbon-cache dh_installsystemd --name=carbon-relay@ --no-enable dh_installsystemd --name=carbon-aggregator@ --no-enable dh_installsystemd --name=carbon-aggregator-cache@ --no-enable