From owner-freebsd-ports@FreeBSD.ORG Wed May 19 17:56:42 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CF58106566B; Wed, 19 May 2010 17:56:42 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id B65BE8FC08; Wed, 19 May 2010 17:56:41 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id l26so149076fgb.13 for ; Wed, 19 May 2010 10:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=A+7B9KZNpXxpnk03fZK37xyYXDGQ4lOc2y30vNQ7/e0=; b=XHyeTUQd52jSYrrs1dJ+69er2yn597jnRtUSRY7WdB1SjuXQSTQ0WIMzcp47So8drG 1fxMrltglDNAufNCXCjiE4fN8BPYHUd4WpGtUzEC/UpMf+hGDD+9lFzqAz6saw4UMm+1 Qq/qKtBydP1sHKNlmKYjKLva42U1D2razSShw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=uC9gTsB4y27TM0eY4iWCTaFbM3To62FTm49CVkeY7h3z01++6RAUzTbdSXOR/zWIVf LeKZSrt1apETiICIqowpceqpok0T2+F9OBlge4iIA9OwjOlGK26x5sOnEfq/EbFkLINC hvc/fJbf64G0CC0N/A0RQT/aAjI7ckN8WKld8= Received: by 10.87.49.36 with SMTP id b36mr164970fgk.57.1274291800524; Wed, 19 May 2010 10:56:40 -0700 (PDT) Received: from localhost (95-25-188-72.broadband.corbina.ru [95.25.188.72]) by mx.google.com with ESMTPS id d4sm632096fga.15.2010.05.19.10.56.38 (version=SSLv3 cipher=RC4-MD5); Wed, 19 May 2010 10:56:39 -0700 (PDT) From: Anonymous To: Matthew Seaman 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> Date: Wed, 19 May 2010 21:56:37 +0400 In-Reply-To: <4BF398D7.1040801@infracaninophile.co.uk> (Matthew Seaman's message of "Wed, 19 May 2010 08:52:55 +0100") Message-ID: <861vd7pyga.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Wesley Shields , Doug Barton , freebsd-ports@freebsd.org Subject: Re: preferred place for system-wide config files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2010 17:56:42 -0000 Matthew Seaman 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