{ "name": "attr", "version": "2.6.0", "summary": "attr: extended attributes library (libattr) with getfattr and setfattr", "category": "library", "license": "LGPL-2.1-or-later AND GPL-2.0-or-later", "homepage": "https://savannah.nongnu.org/projects/attr", "source": { "url": "https://download.savannah.nongnu.org/releases/attr/attr-2.6.0.tar.xz", "sha256": "6c8a2148a7b85043b68492bce43316b0e2e214fc4e628c7ede078e76e216330b" }, "watch": {"kind": "index", "url": "https://download.savannah.nongnu.org/releases/attr/", "regex": "attr-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.xz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/getfattr --version | first && t=$(mktemp -d) && echo bvs > \"$t/f\" && bin/setfattr -n user.bvs -v 42 \"$t/f\" && bin/getfattr -d \"$t/f\" | has -x 'user.bvs=\"42\"' && check_lib libattr 'sys/xattr.h attr/libattr.h' 'char d[] = \"/tmp/bvs-attr-XXXXXX\", a[64], b[64], v[8] = {0}; FILE *f; if (!mkdtemp(d)) return 1; snprintf(a, sizeof a, \"%s/a\", d); snprintf(b, sizeof b, \"%s/b\", d); f = fopen(a, \"w\"); fclose(f); f = fopen(b, \"w\"); fclose(f); if (setxattr(a, \"user.bvs\", \"42\", 2, 0)) return 1; if (attr_copy_file(a, b, NULL, NULL)) return 1; if (getxattr(b, \"user.bvs\", v, sizeof v - 1) != 2) return 1; remove(a); remove(b); remove(d); printf(\"libattr: user.bvs copied by attr_copy_file: %s\\n\", v); return strcmp(v, \"42\") != 0' && echo 'attr: a user attribute set, read, and copied by libattr'" }