split package into pve-cluster/pmxcfs and perl modules

with the former containing:
- pmxcfs binary + service
- IPCC perl bindings
- PVE::Cluster

and the latter being further split into

libpve-cluster-perl:
- PVE::DataCenterConfig
- various other perl modules not directly related to pmxcfs

and libpve-cluster-api-perl:
- ClusterConfig API
- pvecm CLI
- PVE::Corosync
- PVE::Cluster::Setup helper module

this second split is needed to avoid a (pre-existing) circular
dependency between libpve-access-control and libpve-cluster-perl:
- the cluster API code uses PVE::RPCEnvironment
- the access-control API code uses PVE::DataCenterConfig

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2019-11-11 11:28:05 +01:00 committed by Thomas Lamprecht
parent 995743c4c4
commit 352d651007
11 changed files with 67 additions and 16 deletions

57
debian/control vendored
View File

@ -3,15 +3,15 @@ Section: admin
Priority: optional Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com> Maintainer: Proxmox Support Team <support@proxmox.com>
Build-Depends: check, Build-Depends: check,
libcorosync-common-dev,
debhelper (>= 10), debhelper (>= 10),
libcmap-dev (>= 0.17.1-1), libcmap-dev (>= 0.17.1-1),
libcorosync-common-dev,
libcpg-dev (>= 2.3.4-1), libcpg-dev (>= 2.3.4-1),
libdigest-hmac-perl, libdigest-hmac-perl,
libfuse-dev (>= 2.9.2-4), libfuse-dev (>= 2.9.2-4),
libglib2.0-dev (>= 2.42.1-1), libglib2.0-dev (>= 2.42.1-1),
libpve-apiclient-perl,
libpve-access-control, libpve-access-control,
libpve-apiclient-perl,
libpve-common-perl (>= 5.0-28), libpve-common-perl (>= 5.0-28),
libqb-dev (>= 0.17.1-1), libqb-dev (>= 0.17.1-1),
libquorum-dev (>= 2.3.4-1), libquorum-dev (>= 2.3.4-1),
@ -28,21 +28,12 @@ Package: pve-cluster
Architecture: any Architecture: any
Pre-Depends: ${misc:Pre-Depends}, Pre-Depends: ${misc:Pre-Depends},
Depends: corosync (>= 2.3.4-1), Depends: corosync (>= 2.3.4-1),
faketime,
fuse, fuse,
libcrypt-ssleay-perl,
libdigest-hmac-perl,
libfuse2 (>= 2.9.2-4), libfuse2 (>= 2.9.2-4),
libglib2.0-0 (>= 2.42.1-1), libglib2.0-0 (>= 2.42.1-1),
libpve-apiclient-perl,
libpve-common-perl (>= 6.0-7~), libpve-common-perl (>= 6.0-7~),
libqb0 (>= 0.17.1-1), libqb0 (>= 0.17.1-1),
librrds-perl,
libsqlite3-0, libsqlite3-0,
libuuid-perl,
openssl,
rrdcached,
rsync,
sqlite3, sqlite3,
systemd, systemd,
${misc:Depends}, ${misc:Depends},
@ -55,7 +46,43 @@ Breaks: libpve-access-control (<= 6.0-3),
pve-ha-manager (<= 3.0-2), pve-ha-manager (<= 3.0-2),
pve-manager (<= 6.0-11), pve-manager (<= 6.0-11),
qemu-server (<= 6.0-13), qemu-server (<= 6.0-13),
Description: Cluster Infrastructure for Proxmox Virtual Environment Description: The "pmxcfs" distributed cluster filesystem for Proxmox Virtual Environment.
This package contains the Cluster Infrastructure for the Proxmox This FUSE filesystem is using corosync and sqlite3 to provide a cluster-wide,
Virtual Environment, namely a distributed filesystem to store consistent view of config and other files.
configuration data on all nodes.
Package: libpve-cluster-perl
Architecture: all
Pre-Depends: ${misc:Pre-Depends},
Depends: libcrypt-ssleay-perl,
libpve-apiclient-perl,
libpve-common-perl (>= 6.0-7~),
librrds-perl,
rrdcached,
${misc:Depends},
${perl:Depends},
${shlibs:Depends},
Breaks: pve-cluster (<= 6.0-7),
Replaces: pve-cluster (<= 6.0-7),
Description: The Proxmox Virtual Environment cluster Perl modules.
This package contains various cluster-related perl modules.
Package: libpve-cluster-api-perl
Architecture: all
Pre-Depends: ${misc:Pre-Depends},
Depends: faketime,
libcrypt-ssleay-perl,
libdigest-hmac-perl,
libpve-access-control,
libpve-apiclient-perl,
libpve-cluster-perl,
libpve-common-perl (>= 5.0-28),
libuuid-perl,
openssl,
rsync,
${misc:Depends},
${perl:Depends},
${shlibs:Depends},
Breaks: pve-cluster (<= 6.0-7),
Replaces: pve-cluster (<= 6.0-7),
Description: The Proxmox Virtual Environment cluster Perl modules.
This package contains the API2 endpoints and CLI binary 'pvecm'.

1
debian/install vendored
View File

@ -1 +0,0 @@
debian/sysctl.d/pve.conf etc/sysctl.d

1
debian/libpve-cluster-api-perl.docs vendored Normal file
View File

@ -0,0 +1 @@
debian/SOURCE

View File

@ -0,0 +1,7 @@
usr/bin/pvecm
usr/share/bash-completion/completions/pvecm
usr/share/man/man1/pvecm.1
usr/share/perl5/PVE/API2
usr/share/perl5/PVE/CLI
usr/share/perl5/PVE/Cluster/Setup.pm
usr/share/zsh/vendor-completions/_pvecm

1
debian/libpve-cluster-perl.docs vendored Normal file
View File

@ -0,0 +1 @@
debian/SOURCE

5
debian/libpve-cluster-perl.install vendored Normal file
View File

@ -0,0 +1,5 @@
usr/share/man/man5/datacenter.cfg.5
usr/share/perl5/PVE/Corosync.pm
usr/share/perl5/PVE/DataCenterConfig.pm
usr/share/perl5/PVE/RRD.pm
usr/share/perl5/PVE/SSHInfo.pm

8
debian/pve-cluster.install vendored Normal file
View File

@ -0,0 +1,8 @@
debian/sysctl.d/pve.conf etc/sysctl.d
usr/bin/create_pmxcfs_db
usr/bin/pmxcfs
usr/lib/
usr/share/man/man8/pmxcfs.8
usr/share/perl5/PVE/Cluster.pm
usr/share/perl5/PVE/Cluster/IPCConst.pm
usr/share/perl5/PVE/IPCC.pm

3
debian/rules vendored
View File

@ -14,3 +14,6 @@ override_dh_systemd_start:
dh_systemd_start --restart-after-upgrade dh_systemd_start --restart-after-upgrade
override_dh_installinit: override_dh_installinit:
override_dh_missing:
dh_missing --fail-missing