Skip to content

Commit

Permalink
proxmox-backup-client: Add Proxmox backup client binaries
Browse files Browse the repository at this point in the history
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
  • Loading branch information
donald committed Oct 5, 2021
1 parent bb77ad0 commit f9d59fc
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions proxmox-backup-client.be0
Original file line number Diff line number Diff line change
@@ -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
#}

0 comments on commit f9d59fc

Please sign in to comment.