Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2010 21:56:37 +0400
From:      Anonymous <swell.k@gmail.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        Wesley Shields <wxs@freebsd.org>, Doug Barton <dougb@freebsd.org>, freebsd-ports@freebsd.org
Subject:   Re: preferred place for system-wide config files
Message-ID:  <861vd7pyga.fsf@gmail.com>
In-Reply-To: <4BF398D7.1040801@infracaninophile.co.uk> (Matthew Seaman's message of "Wed, 19 May 2010 08:52:55 %2B0100")
References:  <86hbm5yjjh.fsf@gmail.com> <20100518115611.GA45921@atarininja.org> <4BF28470.2050903@infracaninophile.co.uk> <86hbm5vycg.fsf@gmail.com> <20100518195725.GB48168@atarininja.org> <4BF2F6AD.3020709@FreeBSD.org> <20100518203610.GA50328@atarininja.org> <86d3wsub3u.fsf@gmail.com> <4BF31322.60208@FreeBSD.org> <86632kol3e.fsf@gmail.com> <4BF398D7.1040801@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Seaman <m.seaman@infracaninophile.co.uk> writes:

> On 19/05/2010 24:18:13, Anonymous wrote:
>> This doesn't concern only portmaster. As I've mentioned previously
>> xorg-server, subversion and git don't install any config file (not even
>> in share/examples) but still look for it inside PREFIX not LOCALBASE.
>> In other words almost any GNU_CONFIGURE port that doesn't install config
>> files. I've yet to see someone modify SYSCONFDIR for such ports.
>
> Err... xorg-server looks in about half a dozen different likely places
> for a config file.  Traditionally I've put it in /etc/X11 (which is
> wrong according to ports rules, but it works).  You could put it in
> /usr/local/etc/X11 or /usr/local/lib/X11/ to be more hier(7) compliant,
> and it would work there too.

However, it doesn't look under LOCALBASE/etc/X11 and LOCALBASE/lib/X11.

>
> svn is even less predictable: the config files for each repo -- and
> there may be many repos -- live within the directory structure of the
> repo itself.  Repos can be put just about anywhere within the filesystem.
>

We're talking about system-wide configuration

    PREFIX/etc/subversion/config

It allows you to define site-specific defaults that affect all users and
all repos.

> No idea about git -- I guess it behaves much the same as svn.

    PREFIX/etc/gitconfig

I'd add PREFIX/etc/mercurial/hgrc here, but its port uses PYDISTUTILS to
build itself. I'm not sure if it has smth similar to SYSCONFDIR, i.e.

    AC_SUBST([sysconfdir],     ['${prefix}/etc'])

that becomes default value for --sysconfdir for GNU_CONFIGURE scripts.

>
> Sometimes you just aren't going to be able to apply a simple heuristic
> to find a port's config files.  It's all part of life's rich tapestry.
>
> 	Cheers,
>
> 	Matthew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861vd7pyga.fsf>