From 05fac524b5801e15e20d704d9c75afe0bb6bea63 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 4 Oct 2021 15:22:34 +0200 Subject: [PATCH 1/4] libfuse: Add version 3.10.5 Create bee template from mTEMPLATE.be0 Add option useroot=false to disable install_helper.sh from the package to use chown and chmod u+s on fusermount3. This is so that the bee script can be called without root (`unshare -r`) Add `chmod u+s $D$BINDIR/fusermount3` because it is no longer done by install_helper.sh. --- libfuse.be0 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 libfuse.be0 diff --git a/libfuse.be0 b/libfuse.be0 new file mode 100755 index 000000000..c2b3bff51 --- /dev/null +++ b/libfuse.be0 @@ -0,0 +1,38 @@ +#!/usr/bin/env beesh + +# BEE_VERSION libfuse-3.10.5-0 + +# more info: https://github.com/libfuse + +SRCURL[0]="https://github.com/libfuse/libfuse/releases/download/fuse-${PKGVERSION}/fuse-${PKGVERSION}.tar.xz" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +mee_configure() { + bee_configure -D useroot=false +} + +#mee_build() { +# bee_build +#} + +mee_install() { + bee_install + chmod u+s $D$BINDIR/fusermount3 +} + +#mee_install_post() { +# exit +#} From bb77ad03441b8e142e0635db523ec7ec171c6883 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 5 Oct 2021 09:09:39 +0200 Subject: [PATCH 2/4] libfuse: Use https://beehive.molgen.mpg.de/ --- libfuse.be0 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfuse.be0 b/libfuse.be0 index c2b3bff51..ff3fa9b69 100755 --- a/libfuse.be0 +++ b/libfuse.be0 @@ -4,7 +4,8 @@ # more info: https://github.com/libfuse -SRCURL[0]="https://github.com/libfuse/libfuse/releases/download/fuse-${PKGVERSION}/fuse-${PKGVERSION}.tar.xz" +#SRCURL[0]="https://github.com/libfuse/libfuse/releases/download/fuse-${PKGVERSION}/fuse-${PKGVERSION}.tar.xz" +SRCURL[0]="https://beehive.molgen.mpg.de/d2eb13af5288047dc942fc84e608cfbd/fuse-3.10.5.tar.xz" # PATCHURL+=() From f9d59fcc0adc038737db744ffaa24c10cb6ff0c5 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 4 Oct 2021 16:41:45 +0200 Subject: [PATCH 3/4] 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 +#} From 5ad0cac4947b40296ea7d281cb346f85eae2d529 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 5 Oct 2021 09:09:26 +0200 Subject: [PATCH 4/4] proxmox-backup-client: Use https://beehive.molgen.mpg.de/ --- proxmox-backup-client.be0 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxmox-backup-client.be0 b/proxmox-backup-client.be0 index 6520db062..4e0c998fe 100755 --- a/proxmox-backup-client.be0 +++ b/proxmox-backup-client.be0 @@ -4,7 +4,8 @@ # 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" +#SRCURL[0]="http://download.proxmox.com/debian/pbs-client/dists/bullseye/main/binary-amd64/proxmox-backup-client_${PKGVERSION}-${PKGEXTRAVERSION}_amd64.deb" +SRCURL[0]="https://beehive.molgen.mpg.de/0d7f51b447a07ce70c1d0db1cdbe7b6c/proxmox-backup-client_2.0.9-2_amd64.deb" # PATCHURL+=()