Re: how to handle configuration that modifies files in /usr
martin f krafft <madduck@debian.org> wrote:
> also sprach Stephen Gran <steve@lobefin.net> [2003.01.17.0500 +0100]:
>> Can't you install mnav.cgi.in.dist to /usr/share/doc/mharc/examples/ and
>> use it as a template for postinst configuration? I'm not familiar with
>> the software, but this is how many other postinst-generated config files
>> are handled. Then, since dpkg doesn't know about this file, you remove
>> it on purge. Not the cleanest way to handle it - it would be better to
>> seperate out the configuration into a proper config file in /etc, but I
>> have no idea if that's feasible with this program.
> That's what I am doing now. I have put the files into
> doc/mharc/examples/ and symlinked them into the /var/lib/mharc tree.
> Since I get to specify the apache configuration, I can make sure to
> disable FollowSymlinks.
You cannot do that, see Policy 13.3: "Files in `/usr/share/doc'
should not be referenced by any program, and the system administrator
should be able to delete them without causing any programs to
break. [...]"
cu andreas
Reply to: