Joshua Harlow 1988b1d43b Get the debian package building working again.
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.
2012-07-09 16:08:22 -04:00

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