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

DEB_PYTHON2_MODULE_PACKAGES = cloud-init
INIT_SYSTEM ?= upstart

binary-install/cloud-init::cloud-init-fixups

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

DEB_PYTHON_INSTALL_ARGS_ALL += --init-system=$(INIT_SYSTEM)

DEB_DH_INSTALL_SOURCEDIR := debian/tmp

cloud-init-fixups:
	install -d $(DEB_DESTDIR)/etc/rsyslog.d
	cp tools/21-cloudinit.conf $(DEB_DESTDIR)/etc/rsyslog.d/21-cloudinit.conf