From f3df719ec0949a605d95cfa174f8ad581d25408f Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 11 Jul 2020 21:10:32 +0200 Subject: Fixed sha256sum and the script to produce it --- systemd-zfs-partition-backup/AUR/PKGBUILD | 2 +- systemd-zfs-partition-backup/AUR/clean.sh | 2 ++ systemd-zfs-partition-backup/AUR/getsha256sum.sh | 11 +++++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 systemd-zfs-partition-backup/AUR/clean.sh (limited to 'systemd-zfs-partition-backup/AUR') diff --git a/systemd-zfs-partition-backup/AUR/PKGBUILD b/systemd-zfs-partition-backup/AUR/PKGBUILD index 04efc57..7203915 100644 --- a/systemd-zfs-partition-backup/AUR/PKGBUILD +++ b/systemd-zfs-partition-backup/AUR/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'mkinitcpio' ) source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") -sha256sums=('8e9fda1fb852eae1605f7f53c1f98b57953357fa9077b57e699c26fbde6bd436') +sha256sums=('a8636f9fba3129feb07075daa802b47d6c338d35823a9bb8e3685efa799d1c3a') package() { install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh diff --git a/systemd-zfs-partition-backup/AUR/clean.sh b/systemd-zfs-partition-backup/AUR/clean.sh new file mode 100755 index 0000000..2a00a57 --- /dev/null +++ b/systemd-zfs-partition-backup/AUR/clean.sh @@ -0,0 +1,2 @@ +rm -r src/ pkg/ +rm -ri *.tar.[xgb]z diff --git a/systemd-zfs-partition-backup/AUR/getsha256sum.sh b/systemd-zfs-partition-backup/AUR/getsha256sum.sh index 92760b3..df3d588 100755 --- a/systemd-zfs-partition-backup/AUR/getsha256sum.sh +++ b/systemd-zfs-partition-backup/AUR/getsha256sum.sh @@ -11,11 +11,18 @@ ARCHIVE=$(mktemp --suffix=.tar.bz2) +echo $ARCHIVE cd $(git rev-parse --show-toplevel) -git archive -o "$ARCHIVE" master +git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" master cd - > /dev/null -cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }' +echo "# Archive content" +tar tvf $ARCHIVE | xargs -i printf "\t%s\n" "{}" +echo +echo +echo "# sha256sum" +cat $ARCHIVE | sha256sum | awk '/-$/{ print "\t" $1 "\n" }' + rm $ARCHIVE -- cgit v1.2.3