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 := \ COMPILED_BINS := \
$(addprefix $(COMPILEDIR)/,$(USR_BIN) $(USR_SBIN) $(SERVICE_BIN)) $(addprefix $(COMPILEDIR)/,$(USR_BIN) $(USR_SBIN) $(SERVICE_BIN))
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb DEBS= ${PACKAGE}-server_${PKGVER}-${PKGREL}_${ARCH}.deb ${PACKAGE}-client_${PKGVER}-${PKGREL}_${ARCH}.deb
DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
DESTDIR= DESTDIR=
@ -64,10 +64,10 @@ build:
$(MAKE) -C build/$(i) clean ;) $(MAKE) -C build/$(i) clean ;)
.PHONY: deb .PHONY: deb
deb: $(DEB) deb: $(DEBS)
$(DEB): build $(DEBS): build
cd build; dpkg-buildpackage -b -us -uc --no-pre-clean cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
lintian $(DEB) lintian $(DEBS)
.PHONY: dsc .PHONY: dsc
dsc: $(DSC) dsc: $(DSC)
@ -85,8 +85,8 @@ clean:
find . -name '*~' -exec rm {} ';' find . -name '*~' -exec rm {} ';'
.PHONY: dinstall .PHONY: dinstall
dinstall: ${DEB} dinstall: ${DEBS}
dpkg -i ${DEB} dpkg -i ${DEBS}
# make sure we build binaries before docs # make sure we build binaries before docs
docs: cargo-build 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 Standards-Version: 3.9.5
Homepage: https://www.proxmox.com Homepage: https://www.proxmox.com
Package: proxmox-backup Package: proxmox-backup-server
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, Depends: ${shlibs:Depends}, ${misc:Depends},
libjs-extjs (>= 6.0.1), libjs-extjs (>= 6.0.1),
fonts-font-awesome, fonts-font-awesome,
proxmox-widget-toolkit, proxmox-widget-toolkit,
libzstd1 (>= 1.3.8), libzstd1 (>= 1.3.8),
Description: Proxmox Backup Server Description: Proxmox Backup Server daemon with tools and GUI
This is experimental code used to test Rust. 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 export BUILD_MODE=release
%: %:
dh $@ --with=systemd --with=bash-completion dh $@ --with=bash-completion
override_dh_auto_build: override_dh_auto_build:
dh_auto_build -- \ dh_auto_build -- \
PROXY_USER=backup \ PROXY_USER=backup \
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
override_dh_missing:
dh_missing --fail-missing
override_dh_auto_install: override_dh_auto_install:
dh_auto_install -- \ dh_auto_install -- \
PROXY_USER=backup \ PROXY_USER=backup \