From owner-freebsd-doc Tue Mar 12 6: 9:25 2002 Delivered-To: freebsd-doc@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id 3FB5637B405; Tue, 12 Mar 2002 06:09:14 -0800 (PST) Received: (from mwlucas@localhost) by blackhelicopters.org (8.11.6/8.11.6) id g2CE9BF91628; Tue, 12 Mar 2002 09:09:11 -0500 (EST) (envelope-from mwlucas) Date: Tue, 12 Mar 2002 09:09:10 -0500 From: Michael Lucas To: Jochem Kossen Cc: doc@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: porters handbook chapter 17 - Automated package list creation Message-ID: <20020312090910.A91593@blackhelicopters.org> References: <20020312130202.GA87740@jochem.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020312130202.GA87740@jochem.dyndns.org>; from j.kossen@home.nl on Tue, Mar 12, 2002 at 02:02:02PM +0100 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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-doc" in the body of the message