summaryrefslogtreecommitdiff
path: root/packages/debian/rules
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-07-24 09:09:08 -0400
committerScott Moser <smoser@ubuntu.com>2014-07-24 09:09:08 -0400
commitf7e63d61cffde091f0d876e4acc6778943cb7499 (patch)
treebec7d2858d483d7cf20b455f8842baa9a1535242 /packages/debian/rules
parent27ce1e10692e93cfb9b87df547de4e0930ec4d28 (diff)
parentd6b77380f9e0a3d083300c6168c71466068094cf (diff)
downloadvyos-cloud-init-f7e63d61cffde091f0d876e4acc6778943cb7499.tar.gz
vyos-cloud-init-f7e63d61cffde091f0d876e4acc6778943cb7499.zip
change trunk packaging to be more modern.
use pybuild and drop cdbs. This also now runs test during that build and does then require build dependencies.
Diffstat (limited to 'packages/debian/rules')
-rwxr-xr-xpackages/debian/rules25
1 files changed, 12 insertions, 13 deletions
diff --git a/packages/debian/rules b/packages/debian/rules
index 7623ac9d..9e0c5ddb 100755
--- a/packages/debian/rules
+++ b/packages/debian/rules
@@ -1,18 +1,17 @@
#!/usr/bin/make -f
-DEB_PYTHON2_MODULE_PACKAGES = cloud-init
-INIT_SYSTEM ?= upstart
+INIT_SYSTEM ?= upstart,systemd
+export PYBUILD_INSTALL_ARGS=--init-system=$(INIT_SYSTEM)
-binary-install/cloud-init::cloud-init-fixups
+%:
+ dh $@ --with python2,systemd --buildsystem pybuild
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
+override_dh_install:
+ dh_install
+ install -d debian/cloud-init/etc/rsyslog.d
+ cp tools/21-cloudinit.conf debian/cloud-init/etc/rsyslog.d/21-cloudinit.conf
-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
-
+override_dh_auto_test:
+ # Becuase setup tools didn't copy data...
+ cp -r tests/data .pybuild/pythonX.Y_2.7/build/tests
+ http_proxy= dh_auto_test -- --test-nose