From f9d59fcc0adc038737db744ffaa24c10cb6ff0c5 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 4 Oct 2021 16:41:45 +0200 Subject: [PATCH] proxmox-backup-client: Add Proxmox backup client binaries Create be0 file from mTEMPLATE.be0. The proxmox backup software is open source and it should be possible to build it from sources. However, the build system is strongly tied to Debian, so it would be a lot of work to port it or to set up some container build system. For the evaluation phase now, we can postpone this and install the binaries from the Debian package instead. This bee file installs these files from the Debian package: - /usr/bin/proxmox-backup-client - /usr/bin/pxar - /usr/share/man/man1/proxmox-backup-client.1.gz - /usr/share/man/man1/pxar.1.gz - /usr/share/bash-completion/completions/proxmox-backup-client - /usr/share/bash-completion/completions/pxar --- proxmox-backup-client.be0 | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 proxmox-backup-client.be0 diff --git a/proxmox-backup-client.be0 b/proxmox-backup-client.be0 new file mode 100755 index 000000000..6520db062 --- /dev/null +++ b/proxmox-backup-client.be0 @@ -0,0 +1,41 @@ +#!/usr/bin/env beesh + +# BEE_VERSION proxmox-backup-client-2.0.9_2-0 + +# more info: https://pbs.proxmox.com/docs/backup-client.html + +SRCURL[0]="http://download.proxmox.com/debian/pbs-client/dists/bullseye/main/binary-amd64/proxmox-backup-client_${PKGVERSION}-${PKGEXTRAVERSION}_amd64.deb" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +mee_extract() { + mkdir -p $B + (cd $B && ar xv "${@}" && tar xf control.tar.xz && tar xf data.tar.xz) +} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +mee_build() { + : +} + +mee_install() { + mkdir -p $D$BINDIR $D$MANDIR/man1 $D$DATAROOTDIR/bash-completion/completions + cp $B/usr/bin/* $D$BINDIR/ + cp $B/usr/share/man/man1/* $D$MANDIR/man1/ + cp $B/usr/share/bash-completion/completions/* $D$DATAROOTDIR/bash-completion/completions/ +} + +#mee_install_post() { +# exit +#}