Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 09:09:10 -0500
From:      Michael Lucas <mwlucas@blackhelicopters.org>
To:        Jochem Kossen <j.kossen@home.nl>
Cc:        doc@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: porters handbook chapter 17 - Automated package list creation
Message-ID:  <20020312090910.A91593@blackhelicopters.org>
In-Reply-To: <20020312130202.GA87740@jochem.dyndns.org>; from j.kossen@home.nl on Tue, Mar 12, 2002 at 02:02:02PM %2B0100
References:  <20020312130202.GA87740@jochem.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

That's a good question.  I've cc'd ports on this.  Ports crew, could
you read Jochem's message below and comment?  If this is correct,
we'll update the Porter's Handbook.

Thanks,
Michael

On Tue, Mar 12, 2002 at 02:02:02PM +0100, Jochem Kossen wrote:
> Hello,
> 
> I found the method described to create the pkg-plist not working for
> most ports. For example, the "make depends PREFIX=/var/tmp/port-name"
> causes the port for which the pkg-plist is to be generated to be unable
> to find the required files from the dependencies.
> 
> Also, the "find -d * -type d ..."-commands puts directories like "share"
> (which refers to $PREFIX/share) in the pkg-plist while it shouldn't 
> 
> Here is a method which works for every port i've tried:
> 
> ---------------------------------------------------------------------
> # touch pkg-plist
> 
> # mtree -U -f /etc/mtree/BSD.local.dist -d -e -p /var/tmp/port-name
> 
> # make depends
> 
> # (cd /var/tmp/port-name && find * -type d) > OLD-DIRS
> 
> # make install PREFIX=/var/tmp/port-name
> 
> # (cd /var/tmp/port-name && find * \! -type d) > pkg-plist
> 
> # (cd /var/tmp/port-name && find * -type d) | comm -13 OLD-DIRS - | sed -e 's#^#\@dirrm #' >> pkg-plist
> 
> # sort -r pkg-plist -o pkg-plist
> ---------------------------------------------------------------------
> 
> Of course the pkg-plist still needs the same hand-editing after this...
> 
> Is this a better suggestion than what the porter's handbook offers, or
> am I wrong here?
> 
> Jochem
> 
> I'm not subscribed to the doc@ list, so please cc: me...Thanks!
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-doc" in the body of the message

-- 
Michael Lucas		mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org
my FreeBSD column: http://www.oreillynet.com/pub/q/Big_Scary_Daemons

http://www.blackhelicopters.org/~mwlucas/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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