{ "name": "dar", "version": "2.8.6", "summary": "dar (Disk ARchive): full, differential and incremental backups in sliced, compressed and encrypted archives, with a catalogue", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "http://dar.linux.free.fr/", "source": { "url": "https://downloads.sourceforge.net/project/dar/dar/2.8.6/dar-2.8.6.tar.gz", "sha256": "d56caeb6c86f751cb454d8fef45f3daecc508f208290d9f51e8c75bba5dc46c5" }, "watch": {"kind": "index", "url": "https://sourceforge.net/projects/dar/rss?path=/dar", "regex": "dar-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz"}, "deps": [ "zlib", "bzip2", "xz", "lzo", "zstd", "lz4", "libcap", "libgcrypt", "libgpg-error" ], "env_packages": [], "static": true, "nss": true, "check": "t=$(mktemp -d) && bin/dar -Q -V > \"$t/v\" && has 'dar version 2.8.6' < \"$t/v\" && has -E 'Strong encryption \\(libgcrypt\\) *: YES' < \"$t/v\" && has -E 'zstd compression \\(libzstd\\) *: YES' < \"$t/v\" && has -E 'xz compression \\(liblzma\\) *: YES' < \"$t/v\" && mkdir -p \"$t/src/sub\" && printf 'bvs dar one\\n' > \"$t/src/a.txt\" && head -c 500000 /dev/urandom > \"$t/src/sub/b.bin\" && ln -s a.txt \"$t/src/link\" && bin/dar -Q -c \"$t/full\" -R \"$t/src\" -zzstd > /dev/null && bin/dar -Q -t \"$t/full\" > /dev/null && mkdir \"$t/out\" && bin/dar -Q -x \"$t/full\" -R \"$t/out\" > /dev/null && diff -r --no-dereference \"$t/src\" \"$t/out\" && printf 'changed\\n' >> \"$t/src/a.txt\" && bin/dar -Q -c \"$t/diff\" -A \"$t/full\" -R \"$t/src\" -zxz > /dev/null && bin/dar -Q -l \"$t/diff\" > \"$t/list\" && has 'a.txt' < \"$t/list\" && bin/dar -Q -c \"$t/enc\" -R \"$t/src\" -K aes:bvs-secret-key > /dev/null && bin/dar -Q -t \"$t/enc\" -K aes:bvs-secret-key > /dev/null && ! bin/dar -Q -t \"$t/enc\" -K aes:wrong-key > /dev/null 2>&1 && echo 'dar 2.8.6: a zstd archive tested and restored equal to the tree, a differential xz archive with the changed file, an AES archive refused with a wrong key'" }