aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2020-07-11 21:10:32 +0200
committerMax Christian Pohle2020-07-11 21:10:32 +0200
commitf3df719ec0949a605d95cfa174f8ad581d25408f (patch)
tree46c70a7eeeaaeea5e5bf338cb6cf6499cda16dd2
parent111ea82d7872a140c0d097ec1624c8954d6da5c5 (diff)
downloadzfs-bash-tools-f3df719ec0949a605d95cfa174f8ad581d25408f.tar.bz2
zfs-bash-tools-f3df719ec0949a605d95cfa174f8ad581d25408f.zip
Fixed sha256sum and the script to produce it
-rw-r--r--systemd-zfs-partition-backup/AUR/PKGBUILD2
-rwxr-xr-xsystemd-zfs-partition-backup/AUR/clean.sh2
-rwxr-xr-xsystemd-zfs-partition-backup/AUR/getsha256sum.sh11
3 files changed, 12 insertions, 3 deletions
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=(
13 'mkinitcpio' 13 'mkinitcpio'
14) 14)
15source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") 15source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz")
16sha256sums=('8e9fda1fb852eae1605f7f53c1f98b57953357fa9077b57e699c26fbde6bd436') 16sha256sums=('a8636f9fba3129feb07075daa802b47d6c338d35823a9bb8e3685efa799d1c3a')
17 17
18package() { 18package() {
19 install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh 19 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 @@
1rm -r src/ pkg/
2rm -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 @@
11 11
12 12
13ARCHIVE=$(mktemp --suffix=.tar.bz2) 13ARCHIVE=$(mktemp --suffix=.tar.bz2)
14echo $ARCHIVE
14 15
15cd $(git rev-parse --show-toplevel) 16cd $(git rev-parse --show-toplevel)
16git archive -o "$ARCHIVE" master 17git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" master
17cd - > /dev/null 18cd - > /dev/null
18 19
19cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }' 20echo "# Archive content"
21tar tvf $ARCHIVE | xargs -i printf "\t%s\n" "{}"
22echo
23echo
24echo "# sha256sum"
25cat $ARCHIVE | sha256sum | awk '/-$/{ print "\t" $1 "\n" }'
26
20rm $ARCHIVE 27rm $ARCHIVE
21 28
..