2 # Uncomment this to turn on verbose mode.
5 DEB_PYTHON_SYSTEM=pycentral
7 include /usr/share/cdbs/1/rules/debhelper.mk
8 include /usr/share/cdbs/1/class/python-distutils.mk
10 # this ought to be the name of the package that we're building, which is
11 # different on each tahoe branch. debian/control is the master: whatever
12 # package is listed in there will be built.
13 DEBNAME := $(firstword $(DEB_PACKAGES))
15 STAGING_DIR := $(CURDIR)/debian/$(DEBNAME)
17 DEB_INSTALL_DOCS_ALL := COPYING.TGPPL.html CREDITS NEWS.rst README.txt relnotes.txt \
18 docs misc/operations_helpers/spacetime misc/operations_helpers/cpu-watcher.tac
19 DEB_COMPRESS_EXCLUDE := .tac
22 dh_install misc/munin/* usr/share/$(DEBNAME)/munin
23 chmod +x $(STAGING_DIR)/usr/share/$(DEBNAME)/munin/*
24 chmod -x $(STAGING_DIR)/usr/share/$(DEBNAME)/munin/*-conf
26 # the base rules do "python setup.py clean", which spuriously downloads and
27 # builds several setuptools-extensions eggs. The tahoe 'setup.py clean'
28 # leaves those and many other files in place, but its "make clean" does the
29 # right thing. Putting this double-colon rule after the 'include' statements
30 # above should ensure that it runs after the base rules.