From owner-freebsd-ports@FreeBSD.ORG Tue Jan 2 21:34:18 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8A62316A407 for ; Tue, 2 Jan 2007 21:34:18 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id 6749513C459 for ; Tue, 2 Jan 2007 21:34:18 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id E709C5C57; Tue, 2 Jan 2007 16:34:27 -0500 (EST) Date: Tue, 2 Jan 2007 16:34:27 -0500 From: Wesley Shields To: Dmitry Morozovsky Message-ID: <20070102213427.GA97476@atarininja.org> References: <20070102215813.Y12293@woozle.rinet.ru> <20070102194013.GB95902@atarininja.org> <20070103000824.Y28172@woozle.rinet.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070103000824.Y28172@woozle.rinet.ru> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: ports@freebsd.org Subject: Re: files to be checked on meta-ports 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: Tue, 02 Jan 2007 21:34:18 -0000 On Wed, Jan 03, 2007 at 12:12:00AM +0300, Dmitry Morozovsky wrote: > On Tue, 2 Jan 2007, Wesley Shields wrote: > > WS> > For some time I use local meta-ports referring different sets of useful ports. > WS> > Most of the time, this works well; the only exception is meta-ports which do > WS> > not install own files. > WS> > > WS> > I thought about refering /var/db/pkg/pkgname/ files, but this seems > WS> > unscalable due to constant path changes. > WS> > > WS> > Your thoughts? > WS> > WS> I don't know if it's acceptable to look there but you can always use > WS> ${PKG_DBDIR}/${PORTNAME} to get /var/db/pkg/portname (by default). I'm > WS> not sure I understand the "constant path changes" you mention. > > Errm, this refers to current port, not to the dependency (say, my > misc/ws-preferred wants to install x11/xorg) You're right. In the example you give above I would use ${PKG_DBDIR}/ws-preferred which is what you mentioned in your original post (and now makes sense to me, my apologies for the initial misunderstanding). Though if your metaport name ever changes you will have to chase it in other ports. I suppose one way to do it would be to have your metaport install a "dummy" file that you can use for checking purposes in other ports. This is easily done in a custom do-install: target. -- WXS