summaryrefslogtreecommitdiff
path: root/packages/debian/rules.in
blob: d6cd23aea96368ddf3983398d3ee722650792b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## template:basic
#!/usr/bin/make -f

INIT_SYSTEM ?= upstart,systemd
PYVER ?= python${pyver}
export PYBUILD_INSTALL_ARGS=--init-system=$(INIT_SYSTEM)

%:
	dh $@ --with $(PYVER),systemd --buildsystem pybuild

override_dh_install:
	dh_install
	install -d debian/cloud-init/etc/rsyslog.d
	cp tools/21-cloudinit.conf debian/cloud-init/etc/rsyslog.d/21-cloudinit.conf

override_dh_auto_test:
	# Because setup tools didn't copy data...
	[ ! -d .pybuild/pythonX.Y_?.?/build/tests ] || cp -r tests/data .pybuild/pythonX.Y_?.?/build/tests
	http_proxy= make check