From owner-freebsd-doc Mon Mar 18 12:28:38 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by hub.freebsd.org (Postfix) with ESMTP id 5F5F937B405 for ; Mon, 18 Mar 2002 12:28:29 -0800 (PST) Received: from hukins.hn.org ([62.255.56.217]) by mta05-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20020318202826.YGZJ7206.mta05-svc.ntlworld.com@hukins.hn.org> for ; Mon, 18 Mar 2002 20:28:26 +0000 Received: (qmail 50402 invoked by uid 1001); 18 Mar 2002 20:27:37 -0000 Date: Mon, 18 Mar 2002 20:27:37 +0000 From: Tom Hukins To: Jochem Kossen , Michael Lucas , Simon 'corecode' Schubert Cc: doc@FreeBSD.org, ports@FreeBSD.ORG, green@FreeBSD.org Subject: Re: porters handbook chapter 17 - Automated package list creation Message-ID: <20020318202737.A50008@eborcom.com> Mail-Followup-To: Tom Hukins , Jochem Kossen , Michael Lucas , Simon 'corecode' Schubert , doc@FreeBSD.org, ports@FreeBSD.ORG, green@FreeBSD.org References: <20020312130202.GA87740@jochem.dyndns.org> <20020312090910.A91593@blackhelicopters.org> <20020312153323.7a438346.corecode@corecode.ath.cx> <20020312130202.GA87740@jochem.dyndns.org> <20020312090910.A91593@blackhelicopters.org> <20020312130202.GA87740@jochem.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 I'm the original author of the "Automated package list creation" document, although I'm more of a -doc person than a -ports person. On Tue, Mar 12, 2002 at 02:02:02PM +0100, Jochem Kossen wrote: > > 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 Well spotted. If we want to keep the documentation as it is, I'll look into sorting this out. On Tue, Mar 12, 2002 at 03:33:23PM +0100, Simon 'corecode' Schubert wrote: > > #!/bin/sh > (find . ; tar tzf ../mtree.x11-4.tgz) | sed -e 's,/$,,;s,^\./,,' | sort|uniq -u | while read d; do [ -d "$d" ] && echo -n "@dirrm "; echo $d; done | sed -e '/^@/{G;h;d;};${G;}' That's quite a complicated script to follow, but it has the advantage of doing everything at once. You also raised a good point that /etc/mtree/BSD.local.dist isn't always the right file to use in another post that I've deleted by accident. I'm ccing green@FreeBSD.org on this because /usr/ports/Tools/plist looks like the best way to improve the docs. Is there any reason why the Porter's Handbook shouldn't reference this script? It requires ruby, but I'd assume most porters wouldn't be greatly inconvenienced by this requirement. Any further thoughts on this? Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message