Created attachment 332692 [details] Draft ebuild for sys-apps/reapply_default_acl-0.0.2 I personally think this belongs in `setfacl`, but upstream has been unresponsive. In any case: sometimes you need to reapply the default ACL to a (set of) files or directories. For example, wordpress plugins come zipped. When I unzip them, neither unzip not 7z (which I actually use) respects the ACLs in the parent directory[1]. So the permissions are wrong and the website breaks. Our developers shouldn't have to worry about who gets permissions to what -- that's my job and it should be automatic. This is their "just fix it" button. [1] Tar and cp also have this problem, but I've patched them.
Created attachment 333340 [details] Ebuild for sys-apps/apply-default-acl-0.0.3 By populat demand, I've dropped the name "reapply" in favor of "apply", and switched from underscores to hyphens.
Created attachment 334942 [details] apply-default-acl-0.0.3.ebuld
@proxy-maintainers, i will take care of it.
(In reply to comment #2) > Created attachment 334942 [details] > apply-default-acl-0.0.3.ebuld I left the tests out of my ebuild because they rely on the existence of a few system users. I've settled on 'mail' and 'news' -- are these guaranteed to exist on all Gentoo systems? If not, I'm happy to change the test suite.
(In reply to comment #4) > (In reply to comment #2) > > Created attachment 334942 [details] > > apply-default-acl-0.0.3.ebuld > > I left the tests out of my ebuild because they rely on the existence of a > few system users. I've settled on 'mail' and 'news' -- are these guaranteed > to exist on all Gentoo systems? > > If not, I'm happy to change the test suite. I suppose that 'bin' and 'daemon' would exist in everybody's configuration. I will look into tests more carefully later...
+ 13 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> + +apply-default-acl-0.0.3.ebuild, +metadata.xml: + Initial commit, ebuild by Michael Orlitzky and Mikle Kolyada. The latter will + maintain this package through proxy maintainers
Thank you both. I will release a new version in a week or so using the bin/daemon users for the tests. There's one other feature I'd like to sneak in first though. I will also make the tests fail with a decent error message if for some reason those users don't exist.