From owner-freebsd-ports@FreeBSD.ORG Sun Jun 17 07:05:58 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 A705016A46F for ; Sun, 17 Jun 2007 07:05:58 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id F2D2913C46E for ; Sun, 17 Jun 2007 07:05:57 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 17 Jun 2007 07:05:56 -0000 Received: from nat-wh-1.rz.uni-karlsruhe.de (EHLO mobileKamikaze.norad) [129.13.72.169] by mail.gmx.net (mp010) with SMTP; 17 Jun 2007 09:05:56 +0200 X-Authenticated: #5465401 X-Provags-ID: V01U2FsdGVkX18yXKhiQ1QyXHW2BSg9KFfi+aPnIT+KAWuKwbO53u OnvGlEYAaXo1RS Message-ID: <4674DD53.9080505@gmx.de> Date: Sun, 17 Jun 2007 09:05:55 +0200 From: "[LoN]Kamikaze" User-Agent: Thunderbird 2.0.0.4 (X11/20070616) MIME-Version: 1.0 To: "M. Warner Losh" References: <4674CE41.7000103@gmx.de> <20070617.001516.-1615142562.imp@bsdimp.com> <4674D5B2.4000104@gmx.de> <20070617.004201.-1804635381.imp@bsdimp.com> In-Reply-To: <20070617.004201.-1804635381.imp@bsdimp.com> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: ports@FreeBSD.org Subject: Re: How to get a list of all kernel modules 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: Sun, 17 Jun 2007 07:05:58 -0000 M. Warner Losh wrote: > In message: <4674D5B2.4000104@gmx.de> > "[LoN]Kamikaze" writes: > : I see I misunderstood, sorry about that. So how about that one: > : > : # find /usr/ports/ -type f -name pkg-plist -exec grep -El > : '^@cwd[[:space:]]+/boot' \{} \; | sed -E 's|^/usr/ports/||1' | sed -E > : 's|/pkg-plist$||1' > : > : It only works with ports that have a pkg-plist file, though. > > This won't quite work because there are things like: > > % cat multimedia/pvr250/pkg-plist > @unexec rm %%MODULESDIR%%/cxm.ko > @unexec rm %%MODULESDIR%%/cxm_iic.ko > bin/pvr250-setchannel > > I'd kinda hoped there was a pseudo category that I could key off of. > pvr250 is also kinda a mess too, since I can't build it w/o a CD I > don't have... > > Warner The only completely reliable way I see is to install all ports, because the TMPPLIST only reaches its final state in the post-install target. Then you could use my first solution, to grep through the output of pkg_info -qaL