summaryrefslogtreecommitdiff
path: root/packages/debian/rules.in
blob: 16f9b817d4fd0a32e4bacb08767c9cb55e90beee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## template:basic
#!/usr/bin/make -f
INIT_SYSTEM ?= upstart,systemd
export PYBUILD_INSTALL_ARGS=--init-system=$(INIT_SYSTEM)
PYVER ?= python${pyver}

%:
	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

ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
   http_proxy= make check
endif

override_dh_systemd_enable:
	dh_systemd_enable --no-enable

override_dh_systemd_start:
	dh_systemd_start --no-restart-on-upgrade --no-start