diff options
author | Max Christian Pohle | 2020-07-11 21:10:32 +0200 |
---|---|---|
committer | Max Christian Pohle | 2020-07-11 21:10:32 +0200 |
commit | f3df719ec0949a605d95cfa174f8ad581d25408f (patch) | |
tree | 46c70a7eeeaaeea5e5bf338cb6cf6499cda16dd2 | |
parent | 111ea82d7872a140c0d097ec1624c8954d6da5c5 (diff) | |
download | zfs-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/PKGBUILD | 2 | ||||
-rwxr-xr-x | systemd-zfs-partition-backup/AUR/clean.sh | 2 | ||||
-rwxr-xr-x | systemd-zfs-partition-backup/AUR/getsha256sum.sh | 11 |
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 | ) |
15 | source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") | 15 | source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") |
16 | sha256sums=('8e9fda1fb852eae1605f7f53c1f98b57953357fa9077b57e699c26fbde6bd436') | 16 | sha256sums=('a8636f9fba3129feb07075daa802b47d6c338d35823a9bb8e3685efa799d1c3a') |
17 | 17 | ||
18 | package() { | 18 | package() { |
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 @@ | |||
1 | rm -r src/ pkg/ | ||
2 | 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 @@ | |||
11 | 11 | ||
12 | 12 | ||
13 | ARCHIVE=$(mktemp --suffix=.tar.bz2) | 13 | ARCHIVE=$(mktemp --suffix=.tar.bz2) |
14 | echo $ARCHIVE | ||
14 | 15 | ||
15 | cd $(git rev-parse --show-toplevel) | 16 | cd $(git rev-parse --show-toplevel) |
16 | git archive -o "$ARCHIVE" master | 17 | git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" master |
17 | cd - > /dev/null | 18 | cd - > /dev/null |
18 | 19 | ||
19 | cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }' | 20 | echo "# Archive content" |
21 | tar tvf $ARCHIVE | xargs -i printf "\t%s\n" "{}" | ||
22 | echo | ||
23 | echo | ||
24 | echo "# sha256sum" | ||
25 | cat $ARCHIVE | sha256sum | awk '/-$/{ print "\t" $1 "\n" }' | ||
26 | |||
20 | rm $ARCHIVE | 27 | rm $ARCHIVE |
21 | 28 | ||