package attr {
	description = "Commands for Manipulating Filesystem Extended Attributes";
	website = "https://savannah.nongnu.org/projects/attr";
	anitya = 137;

	version* = "2.5.2";
	source = remoteTar {
		url = "https://download.savannah.nongnu.org/releases/attr/"+
			"attr-"+version+".tar.gz";
		checksum = "YWEphrz6vg1sUMmHHVr1CRo53pFXRhq_pjN-AlG8UgwZK1y6m7zuDhxqJhD0SV0l";
		compress = gzip;
	};
	patches = [
		"libgen-basename.patch",
		"musl-errno.patch",
	];

	early = `
ln -s ../../system/bin/perl /usr/bin
`;

	exec = make {};

	inputs = [ perl ];
}

package acl {
	description = "Commands for Manipulating POSIX Access Control Lists";
	website = "https://savannah.nongnu.org/projects/acl";
	anitya = 16;

	version* = "2.3.2";
	source = remoteTar {
		url = "https://download.savannah.nongnu.org/releases/acl/"+
			"acl-"+version+".tar.gz";
		checksum = "-fY5nwH4K8ZHBCRXrzLdguPkqjKI6WIiGu4dBtrZ1o0t6AIU73w8wwJz_UyjIS0P";
		compress = gzip;
	};

	exec = make {
		// makes assumptions about uid_map/gid_map
		skipCheck = true;
	};

	inputs = [ attr ];
	runtime = [ attr ];
}
