[mythtv] Re: [PATCH] Stop make install from overwriting mysql.txt
Hamish Moffatt
hamish at cloud.net.au
Tue Oct 5 22:22:10 UTC 2004
On Tue, Oct 05, 2004 at 02:37:08PM -0400, Joseph A. Caputo wrote:
> According to the Filesystem Hierarchy Standard, "/usr/share" or ("/usr/
> local/share") should contain: "application-specific,
> architecture-independent directories". Basically, it means that Myth
> should place read-only application data in /usr/share/mythtv or /usr/
> local/share/mythtv.
>
[..]
>
> "/etc" is for 'system configuration'; there does not appear to be a
> formal rule distinguishing between types of configuration files that
> belong under /usr/share/<application> versus /etc ; however, it seems
> clear that Myth is conforming to accepted standards. The copy of
> mysql.txt in /usr/[local/]share/mythtv is *read-only*, as is all data
> in that directory, and should not be modified by the program or the
> user.
Oh? Why shouldn't the user modify /etc/mythtv/mysql.txt, if they
move their MySQL server or change their database password, etc?
mysql.txt is clearly a configuration file belonging in /etc or
in ~/.mythtv; there is no case for it to exist in /usr/share.
> user. The program distribution or package may alter the contents of
> its /usr/[local/]share directory when a new version is installed.
> User-modifiable configuration files are to be place under ${HOME}.
On Debian, files in /usr are generated at package compile time and
never changed, either at package install time or package runtime.
Hamish
--
Hamish Moffatt VK3SB <hamish at debian.org> <hamish at cloud.net.au>
More information about the mythtv-dev
mailing list