From 0a96e26bc67a6af80c61d1bd21e1710a258e49a9 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 5 Jul 2019 22:22:28 -0400 Subject: [PATCH] Clean up Debian control and add API package --- debian/control | 16 ++++++++++++---- debian/pvc-client-api.install | 3 +++ debian/pvc-client-api.postinst | 4 ++++ debian/pvc-client-api.prerm | 4 ++++ 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 debian/pvc-client-api.install create mode 100644 debian/pvc-client-api.postinst create mode 100644 debian/pvc-client-api.prerm diff --git a/debian/control b/debian/control index 8178ea73..838a3646 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Architecture: all Depends: python3-kazoo, python3-psutil, python3-apscheduler, python3-libvirt, python3-psycopg2, python3-dnspython, python3-yaml, ipmitool, libvirt-daemon-system, arping, vlan, bridge-utils, dnsmasq, nftables, pdns-server, pdns-backend-pgsql Suggests: pvc-client-cli Description: Parallel Virtual Cluster virtualization daemon (Python 3) - The Parallel Virtual Cluster provides a management solution for QEMU/KVM virtual clusters. + A KVM/Zookeeper/Ceph-based VM and private cloud manager . This package installs the PVC node daemon @@ -19,15 +19,23 @@ Package: pvc-client-common Architecture: all Depends: python3-kazoo, python3-psutil, python3-click, python3-lxml Description: Parallel Virtual Cluster common client libraries (Python 3) - The Parallel Virtual Cluster provides a management solution for QEMU/KVM virtual clusters. + A KVM/Zookeeper/Ceph-based VM and private cloud manager . This package installs the common client libraries Package: pvc-client-cli Architecture: all -Depends: pvc-client-common, python3-yaml, python3-netifaces, python3-dialog, python3-paramiko +Depends: pvc-client-common, python3-yaml, python3-netifaces, python3-dialog Description: Parallel Virtual Cluster client (Python 3) - The Parallel Virtual Cluster provides a management solution for QEMU/KVM virtual clusters. + A KVM/Zookeeper/Ceph-based VM and private cloud manager . This package installs the PVC command-line client +Package: pvc-client-api +Architecture: all +Depends: pvc-client-common, python3-yaml +Description: Parallel Virtual Cluster client (Python 3) + A KVM/Zookeeper/Ceph-based VM and private cloud manager + . + This package installs the PVC API client daemon + diff --git a/debian/pvc-client-api.install b/debian/pvc-client-api.install new file mode 100644 index 00000000..255fd644 --- /dev/null +++ b/debian/pvc-client-api.install @@ -0,0 +1,3 @@ +client-api/api.py usr/share/pvc +client-api/api_lib usr/share/pvc +client-api/pvc-api.service lib/systemd/system diff --git a/debian/pvc-client-api.postinst b/debian/pvc-client-api.postinst new file mode 100644 index 00000000..0152991b --- /dev/null +++ b/debian/pvc-client-api.postinst @@ -0,0 +1,4 @@ +#!/bin/sh + +# Install client binary to /usr/bin via symlink +ln -s /usr/share/pvc/api.py /usr/bin/pvc-api diff --git a/debian/pvc-client-api.prerm b/debian/pvc-client-api.prerm new file mode 100644 index 00000000..92a8b6ec --- /dev/null +++ b/debian/pvc-client-api.prerm @@ -0,0 +1,4 @@ +#!/bin/sh + +# Remove client binary symlink +rm -f /usr/bin/pvc-api