summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2015-03-25 11:04:05 -0600
committerusd-importer <ubuntu-server@lists.ubuntu.com>2015-04-10 23:48:27 +0000
commitc40af8b3fec1b840776ca36d64b1857ed2bdd95b (patch)
tree1a3a285788176bf6cb7d7ab3a5cf757011fcfb9f /debian/rules
parentf9cd6b27fad4d9fdf557138966f2d34cae234edb (diff)
downloadvyos-walinuxagent-c40af8b3fec1b840776ca36d64b1857ed2bdd95b.tar.gz
vyos-walinuxagent-c40af8b3fec1b840776ca36d64b1857ed2bdd95b.zip
Import patches-unapplied version 2.0.12-0ubuntu1 to ubuntu/vivid-proposed
Imported using git-ubuntu import. Changelog parent: f9cd6b27fad4d9fdf557138966f2d34cae234edb New changelog entries: * New upstream release. * Added debian/watch for easier maintenance. * Fix regression of missing dataloss warning by adding systemd unit file.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 5b9c8e9..5358b7e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,6 @@
#!/usr/bin/make -f
+INIT_SYSTEM ?= upstart,systemd
+export PYBUILD_INSTALL_ARGS=--init-system=$(INIT_SYSTEM)
DEB_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
ORIG_SRC=https://github.com/WindowsAzure/WALinuxAgent
@@ -6,6 +8,7 @@ ORIG_SRC=https://github.com/WindowsAzure/WALinuxAgent
get-packaged-orig-source:
git clone --separate-git-dir=.git \
$(ORIG_SRC) orig_source
+ git checkout -b tags/$(DEB_VERSION)
git archive --format=tar.gz WALinuxAgent-$(DEB_VERSION) \
-o walinuxagent_$(DEB_VERSION).orig.tar.gz