#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_OPTIONS=-v

PACKAGE=roundup

UPSTREAM_VERSION=1.4.20
DEB_SRCDIR=$(CURDIR)
ROOT=$(DEB_SRCDIR)/debian/$(PACKAGE)
DEB_BUILDDIR=debian/$(PACKAGE)
DOC=$(DEB_SRCDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)

%:
	dh --with python2 $@

# The runit files have executables:
override_dh_install:
	dh_install
	chmod -R 0755 $(ROOT)/etc/roundup/service

# We have 2 initscripts instead of one
override_dh_installinit:
	dh_installinit

	# dh_installinit doesn't support renaming; use install:
	install -m 755 -o root -g bin debian/roundup-dirs.init $(ROOT)/etc/init.d/roundup-dirs


# somehow dh --builddirectory doesn't work for the builddir itself.
override_dh_clean:
	dh_clean
	rm -rf build
