{ "name": "hashdeep", "version": "4.4+git20170824", "summary": "hashdeep and md5deep: recursive MD5, SHA-1, SHA-256, Tiger and Whirlpool sums, and audits of a tree against a list of known hashes", "category": "tool", "license": "LicenseRef-public-domain AND GPL-2.0-or-later", "homepage": "https://github.com/jessek/hashdeep", "source": { "url": "https://deb.debian.org/debian/pool/main/h/hashdeep/hashdeep_4.4+git20170824+ds.orig.tar.xz", "sha256": "a048b45f5edab99a87773d314e1b7658bbb6ce935d330472ca0bd201963b8aec" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/h/hashdeep/", "regex": "hashdeep_([0-9]+(?:\\.[0-9]+)+\\+git[0-9]+)\\+ds\\.orig\\.tar\\.xz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/hashdeep -V | has -x 4.4 && t=$(mktemp -d) && mkdir -p \"$t/d/sub\" && printf 'bvs hashdeep one\\n' > \"$t/d/a.txt\" && head -c 300000 /dev/urandom > \"$t/d/sub/b.bin\" && [ \"$(bin/md5deep -q \"$t/d/a.txt\" | awk \"{print \\$1}\")\" = \"$(md5sum < \"$t/d/a.txt\" | cut -d' ' -f1)\" ] && [ \"$(bin/sha256deep -q \"$t/d/sub/b.bin\" | awk \"{print \\$1}\")\" = \"$(sha256sum < \"$t/d/sub/b.bin\" | cut -d' ' -f1)\" ] && bin/sha1deep -r \"$t/d\" | wc -l | has -x 2 && (cd \"$t\" && \"$PREFIX/bin/hashdeep\" -c md5,sha256 -r d > known.txt) && (cd \"$t\" && \"$PREFIX/bin/hashdeep\" -a -k known.txt -r d) | has 'Audit passed' && printf 'changed\\n' >> \"$t/d/a.txt\" && ! (cd \"$t\" && \"$PREFIX/bin/hashdeep\" -a -k known.txt -r d > out.txt) && has 'Audit failed' < \"$t/out.txt\" && echo 'hashdeep 4.4: MD5 and SHA-256 equal to md5sum and sha256sum; a recursive list; an audit passed, then failed after a change'" }