
Also, remove the pre-processing of debian/rules. instead use an environment variable. To build with sysvinit: $ INIT_SYSTEM=sysvinit ./packages/bddeb Note, debuild does complain with several errors on sysvinit building at the moment. Primarily about package installing into /etc/init.d.
19 lines
467 B
Makefile
Executable File
19 lines
467 B
Makefile
Executable File
#!/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
|
|
|