diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-25 12:28:59 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-25 12:28:59 -0700 |
commit | 6d74afcd0e11de5cb56623d9121472e9212e8481 (patch) | |
tree | 9256187f8e4a5b3e6e9212105c87a2de187f68a9 /packages/debian.trunk/rules | |
parent | ffe4cde6d3fd95131b4434ca2d88af469dacfd51 (diff) | |
download | vyos-cloud-init-6d74afcd0e11de5cb56623d9121472e9212e8481.tar.gz vyos-cloud-init-6d74afcd0e11de5cb56623d9121472e9212e8481.zip |
1. Moving around the packages dir.
2. Adjusting the bddep shell script
3. Starting to add a brpm
Diffstat (limited to 'packages/debian.trunk/rules')
-rwxr-xr-x | packages/debian.trunk/rules | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/debian.trunk/rules b/packages/debian.trunk/rules new file mode 100755 index 00000000..0f79136c --- /dev/null +++ b/packages/debian.trunk/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +DEB_PYTHON2_MODULE_PACKAGES = cloud-init + +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 + |