From owner-freebsd-ports@FreeBSD.ORG  Wed Oct 17 15:06:29 2007
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
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 D6FB416A419
	for <freebsd-ports@freebsd.org>; Wed, 17 Oct 2007 15:06:29 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from cp65.agava.net (cp65.agava.net [89.108.66.215])
	by mx1.freebsd.org (Postfix) with ESMTP id 8641A13C4CA
	for <freebsd-ports@freebsd.org>; Wed, 17 Oct 2007 15:06:29 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from [213.148.20.85] (helo=nexii.panopticon)
	by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.44 (FreeBSD))
	id 1IiATb-00085d-Ew; Wed, 17 Oct 2007 19:06:27 +0400
Received: from hades.panopticon (hades.panopticon [192.168.0.2])
	by nexii.panopticon (Postfix) with ESMTP id 5295817058;
	Wed, 17 Oct 2007 19:07:36 +0400 (MSD)
Received: by hades.panopticon (Postfix, from userid 1000)
	id BFEE74131; Wed, 17 Oct 2007 19:07:57 +0400 (MSD)
Date: Wed, 17 Oct 2007 19:07:57 +0400
From: Dmitry Marakasov <amdmi3@amdmi3.ru>
To: Tijl Coosemans <tijl@ulyssis.org>
Message-ID: <20071017150757.GA533@hades.panopticon>
Mail-Followup-To: Tijl Coosemans <tijl@ulyssis.org>, freebsd-ports@freebsd.org
References: <20071015163024.GA55552@hades.panopticon>
	<200710171436.09021.tijl@ulyssis.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
In-Reply-To: <200710171436.09021.tijl@ulyssis.org>
User-Agent: Mutt/1.5.16 (2007-06-09)
X-AntiAbuse: This header was added to track abuse,
	please include it with any abuse report
X-AntiAbuse: Primary Hostname - cp65.agava.net
X-AntiAbuse: Original Domain - freebsd.org
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6]
X-AntiAbuse: Sender Address Domain - amdmi3.ru
X-Source: 
X-Source-Args: 
X-Source-Dir: 
Cc: freebsd-ports@freebsd.org
Subject: Re: DATADIR question
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Oct 2007 15:06:29 -0000

* Tijl Coosemans (tijl@ulyssis.org) wrote:
> Actually I'd like to see this clarified as well, because none of the
> port maintainers I've ever spoken to knows this. Is DATADIR supposed
> to be user changeable or not? Does it need to be passed to configure
> or not?
Seems like it's not user-changeable.
- it's not passed to configure by default
- it's changed by many ports

As far as I understand, it (along with DOCSDIR and some more) is
just convenient variable that gets substituded into plist by default,
so it's good practice to change it in your port if it uses non
share/$PORTNAME datadir, and use in both Makefile and plist.

I can't come out with any idea why user would need to change it
(there's $PREFIX for that purpose).

-- 
Dmitry A. Marakasov    | jabber: amdmi3@jabber.ru
amdmi3@amdmi3.ru       | http://www.amdmi3.ru