3 # Uncomment this to turn on verbose mode.
6 include /usr/share/openstack-pkg-tools/pkgos.make
9 dh $@ --with python2,systemd,sphinxdoc
11 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
12 override_dh_auto_test:
13 rm -rf .testrepository
16 TEMP_REZ=`mktemp -t` && \
17 testr run --subunit | tee $$TEMP_REZ | subunit2pyunit; \
22 dh_install --fail-missing -Xbin/cinder-all
23 install -D -m 0440 debian/cinder_sudoers $(CURDIR)/debian/cinder-common/etc/sudoers.d/cinder-common
24 install -D -m 0644 $(CURDIR)/debian/logging.conf $(CURDIR)/debian/cinder-common/etc/cinder/logging.conf
27 dh_fixperms -Xcinder_tgt.conf
28 chmod 0440 $(CURDIR)/debian/cinder-common/etc/sudoers.d/cinder-common
31 # temporary workaround for d2to1 wonkyness
33 rm -f debian/*.init debian/*.service debian/*.upstart
35 override_dh_sphinxdoc:
36 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
37 python setup.py build_sphinx
38 cp -rf doc/build/html $(CURDIR)/debian/cinder-doc/usr/share/doc/cinder-doc
39 dh_sphinxdoc -O--buildsystem=python_distutils