summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-08-17 21:42:19 -0400
committerDaniil Baturin <daniil@baturin.org>2017-08-17 21:42:19 -0400
commit8cc396c20398e01f4af76d386d87a38811cead06 (patch)
tree733de904aa6062bddce67159b602585b6ff099db /debian
parent6b3040c5b6cf3a7b545875e646c450cbb96ae8d6 (diff)
downloadvyos-1x-8cc396c20398e01f4af76d386d87a38811cead06.tar.gz
vyos-1x-8cc396c20398e01f4af76d386d87a38811cead06.zip
T353: add the Python library for reading VyOS config to the new package.
Diffstat (limited to 'debian')
-rw-r--r--debian/control4
-rwxr-xr-xdebian/rules9
2 files changed, 10 insertions, 3 deletions
diff --git a/debian/control b/debian/control
index 875b1135b..3c6abdb2b 100644
--- a/debian/control
+++ b/debian/control
@@ -2,11 +2,11 @@ Source: vyos-1x
Section: contrib/net
Priority: extra
Maintainer: VyOS Package Maintainers <maintainers@vyos.net>
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 9), python3, python3-setuptools, quilt
Standards-Version: 3.9.6
Package: vyos-1x
Architecture: all
-Depends: python3
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
Description: VyOS configuration scripts and data
VyOS configuration scripts, interface definitions, and everything
diff --git a/debian/rules b/debian/rules
index 2d33f6ac8..e76b80267 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,11 @@
#!/usr/bin/make -f
%:
- dh $@
+ dh $@ --with python3, --with quilt
+
+override_dh_auto_build:
+
+override_dh_auto_install:
+ dh_install -pvyos-1x
+ cd python; python3 setup.py install --install-layout=deb --root ../debian/vyos-1x; cd ..
+