diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-02-04 16:58:24 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-02-04 16:58:24 -0500 |
commit | 7077e1481ee22d99126ceb011b8819bd1a23487c (patch) | |
tree | 9a62b5b5d8296becf02197023850d80a502cd665 /debian.trunk/rules | |
parent | 38b21ce3c0972d0659c4a4a9fb22640ff1d3f439 (diff) | |
download | vyos-cloud-init-7077e1481ee22d99126ceb011b8819bd1a23487c.tar.gz vyos-cloud-init-7077e1481ee22d99126ceb011b8819bd1a23487c.zip |
add a debian.trunk dir and tools/bddeb to easily build a deb from here
Diffstat (limited to 'debian.trunk/rules')
-rwxr-xr-x | debian.trunk/rules | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian.trunk/rules b/debian.trunk/rules new file mode 100755 index 00000000..200b7abb --- /dev/null +++ b/debian.trunk/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM := pycentral +export DH_PYCENTRAL=include-links + +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_DH_INSTALL_SOURCEDIR := debian/tmp + +cloud-init-fixups: + for x in $(DEB_DESTDIR)/usr/bin/*.py; do mv "$$x" "$${x%.py}"; done + install -d $(DEB_DESTDIR)/etc/rsyslog.d + cp tools/21-cloudinit.conf $(DEB_DESTDIR)/etc/rsyslog.d/21-cloudinit.conf + +# You only need to run this immediately after checking out the package from +# revision control. +# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572204 +quilt-setup: + @[ ! -d .pc ] || { echo ".pc exists. remove it and re-run to start fresh"; exit 1; } + set -e; for patch in $$(quilt series | tac); do \ + patch -p1 -R --no-backup-if-mismatch <"debian/patches/$$patch"; \ + done + quilt push -a + +.PHONY: quilt-setup + |