debian packages: split package into client/server

This commit is contained in:
Dietmar Maurer 2019-11-11 08:35:33 +01:00
parent f89359c2f3
commit 36d74cd633
7 changed files with 35 additions and 14 deletions

View File

@ -32,8 +32,8 @@ endif
COMPILED_BINS := \
$(addprefix $(COMPILEDIR)/,$(USR_BIN) $(USR_SBIN) $(SERVICE_BIN))
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
DEBS= ${PACKAGE}-server_${PKGVER}-${PKGREL}_${ARCH}.deb ${PACKAGE}-client_${PKGVER}-${PKGREL}_${ARCH}.deb
DESTDIR=
@ -64,10 +64,10 @@ build:
$(MAKE) -C build/$(i) clean ;)
.PHONY: deb
deb: $(DEB)
$(DEB): build
deb: $(DEBS)
$(DEBS): build
cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
lintian $(DEB)
lintian $(DEBS)
.PHONY: dsc
dsc: $(DSC)
@ -85,8 +85,8 @@ clean:
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}
dinstall: ${DEBS}
dpkg -i ${DEBS}
# make sure we build binaries before docs
docs: cargo-build

2
debian/compat vendored
View File

@ -1 +1 @@
10
12

14
debian/control vendored
View File

@ -15,12 +15,20 @@ Build-Depends: bash-completion,
Standards-Version: 3.9.5
Homepage: https://www.proxmox.com
Package: proxmox-backup
Package: proxmox-backup-server
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libjs-extjs (>= 6.0.1),
fonts-font-awesome,
proxmox-widget-toolkit,
libzstd1 (>= 1.3.8),
Description: Proxmox Backup Server
This is experimental code used to test Rust.
Description: Proxmox Backup Server daemon with tools and GUI
This package contains the Proxmox Backup Server daemons and related
tools. This includes a web-based graphical user interface.
Package: proxmox-backup-client
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
Description: Proxmox Backup Client tools
This package contains the Proxmox Backup client, which provides a
simple command line tool to create and restore backups.

2
debian/install vendored
View File

@ -1,2 +0,0 @@
etc/proxmox-backup.service /lib/systemd/system/
etc/proxmox-backup-proxy.service /lib/systemd/system/

3
debian/proxmox-backup-client.install vendored Normal file
View File

@ -0,0 +1,3 @@
usr/bin/proxmox-backup-client
usr/share/man/man1/proxmox-backup-client.1
usr/bin/pxar

9
debian/proxmox-backup-server.install vendored Normal file
View File

@ -0,0 +1,9 @@
etc/proxmox-backup.service /lib/systemd/system/
etc/proxmox-backup-proxy.service /lib/systemd/system/
usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-api
usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-proxy
usr/share/man/man1/proxmox-backup-proxy.1
usr/sbin/proxmox-backup-manager
usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js
usr/share/javascript/proxmox-backup/images/logo-128.png
usr/share/javascript/proxmox-backup/images/proxmox_logo.png

5
debian/rules vendored
View File

@ -6,13 +6,16 @@
export BUILD_MODE=release
%:
dh $@ --with=systemd --with=bash-completion
dh $@ --with=bash-completion
override_dh_auto_build:
dh_auto_build -- \
PROXY_USER=backup \
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
override_dh_missing:
dh_missing --fail-missing
override_dh_auto_install:
dh_auto_install -- \
PROXY_USER=backup \