Re: dpkg-statoverride by the postinst?
On Mon, Jun 09, 2003 at 08:35:00AM +0300, Shaul Karl wrote:
> On Sun, Jun 08, 2003 at 09:01:07PM -0400, Matt Zimmerman wrote:
> > If the files need
> > certain ownership on the installed system, set the permissions in postinst
> > (allowing for the user to dpkg-statoverride them if they want).
> Assuming that the package will work with only a specific set of
> ownership and permissions, are there reasons for not letting the
> postinst do the statoverride?
You can do it either way. I find that if there are many files which need to
be changed, I don't want to add a large number of statoverrides, and force
the admin to --force them in order to change the ownership or permissions,
so I do a simple if ! dpkg-statoverride --list; then chmod (and
dpkg-statoverride --remove in postrm).
But having the postinst add the overrides is fine; see 11.9.1 in the policy