From 0e9425a2389e4126728579e9a6e20c793933efdb Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 11 Jul 2020 17:07:38 +0200 Subject: The script now searched for a dataset first --- systemd-zfs-partition-backup/AUR/PKGBUILD | 5 +++-- systemd-zfs-partition-backup/AUR/getsha256sum.sh | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100755 systemd-zfs-partition-backup/AUR/getsha256sum.sh (limited to 'systemd-zfs-partition-backup') diff --git a/systemd-zfs-partition-backup/AUR/PKGBUILD b/systemd-zfs-partition-backup/AUR/PKGBUILD index f9d7315..918497f 100644 --- a/systemd-zfs-partition-backup/AUR/PKGBUILD +++ b/systemd-zfs-partition-backup/AUR/PKGBUILD @@ -12,8 +12,9 @@ depends=( 'kbd' 'mkinitcpio' ) -source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.bz2") -sha256sums=('a734c145709687c5621f430d3baec3105977984dfbb35348beab4b793aeb8e1b') +source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") +sha256sums=('80c5a14dbbccc1f0164557cf2f4f31ab45c3b08aa577e60a54d198bac01ca91b') +echo "test" package() { install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh diff --git a/systemd-zfs-partition-backup/AUR/getsha256sum.sh b/systemd-zfs-partition-backup/AUR/getsha256sum.sh new file mode 100755 index 0000000..92760b3 --- /dev/null +++ b/systemd-zfs-partition-backup/AUR/getsha256sum.sh @@ -0,0 +1,21 @@ +#!/usr/bin/bash +# source PKGBUILD +# function allsha() { +# for i in $source +# do +# printf "'%s' " "$(wget -q -O- "$i" | sha256sum | awk '/-$/{ print $1 }')" +# done +# } +# +# allsha | tee /tmp/output.txt + + +ARCHIVE=$(mktemp --suffix=.tar.bz2) + +cd $(git rev-parse --show-toplevel) +git archive -o "$ARCHIVE" master +cd - > /dev/null + +cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }' +rm $ARCHIVE + -- cgit v1.2.3