Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2002 20:27:37 +0000
From:      Tom Hukins <tom@FreeBSD.org>
To:        Jochem Kossen <j.kossen@home.nl>, Michael Lucas <mwlucas@blackhelicopters.org>, Simon 'corecode' Schubert <corecode@corecode.ath.cx>
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>
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> <20020312090910.A91593@blackhelicopters.org> <20020312153323.7a438346.corecode@corecode.ath.cx> <20020312130202.GA87740@jochem.dyndns.org> <20020312090910.A91593@blackhelicopters.org> <20020312130202.GA87740@jochem.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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-ports" in the body of the message




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