On Sat, 2006-07-15 at 02:17 +0400, Anton wrote:
Hi all,
This patch adds -i (--ignore-perms) option to pkgadd, which makes possible to not bother user with permissions conflicts.
To be really useful, prt-get must be modified. Say, /etc/prt-get.conf will look like: trusted-prtdir /usr/ports/core trusted-prtdir /usr/ports/opt prtdir /usr/ports/contrib
Which means, that prt-get will pass -i option to all packages built from core and opt. And will not pass -i to packages from contrib.
Cons: - No annoying conflicts from trusted packages; - User can choose to which repos he trust.
Pros: - prt-get must be modified, which is not trivial as I can see.
If you have better approach, please speak up.
Personally I'm more afraid of directories having unsafe (or too strict) permissions by accident. The solutions I see is to either detect a conflict or reject the directory and update rejmerge to handle it. Johannes and I already discussed the usefulness of something like the "trusted" feature, only with post-install scripts in mind :)