{ "name": "testdisk", "version": "7.2", "summary": "TestDisk and PhotoRec: find lost partitions, repair boot sectors, recover deleted files", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "https://www.cgsecurity.org/wiki/TestDisk", "source": { "url": "https://www.cgsecurity.org/testdisk-7.2.tar.bz2", "sha256": "f8343be20cb4001c5d91a2e3bcd918398f00ae6d8310894a5a9f2feb813c283f" }, "watch": {"kind": "index", "url": "https://www.cgsecurity.org/wiki/TestDisk_Download", "regex": "testdisk-([0-9]+\\.[0-9]+(?:\\.[0-9]+)?)\\.tar\\.bz2"}, "deps": [ "ncurses", "zlib", "libjpeg-turbo", "libuuid" ], "env_packages": [], "static": true, "nss": true, "check": "bin/testdisk /version | has 'TestDisk 7.2' && t=$(mktemp -d) && head -c 8388608 /dev/zero > \"$t/img\" && printf '\\x00\\x20\\x21\\x00\\x83\\xfe\\xff\\xff\\x00\\x08\\x00\\x00\\x00\\x38\\x00\\x00' | dd of=\"$t/img\" bs=1 seek=446 conv=notrunc status=none && printf '\\x55\\xaa' | dd of=\"$t/img\" bs=1 seek=510 conv=notrunc status=none && bin/testdisk /list \"$t/img\" > \"$t/list\" && has -E '^ *1 P Linux .* 14336$' < \"$t/list\" && printf 'P5 16 16 255\\n' > \"$t/p.pgm\" && head -c 256 /dev/urandom >> \"$t/p.pgm\" && bin/cjpeg -outfile \"$t/p.jpg\" \"$t/p.pgm\" && bin/fidentify \"$t/p.jpg\" | has jpg && echo 'testdisk found the Linux partition of an MBR, fidentify recognised a JPEG'" }