Date: Sun, 17 Jun 2007 09:05:55 +0200 From: "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> To: "M. Warner Losh" <imp@bsdimp.com> Cc: ports@FreeBSD.org Subject: Re: How to get a list of all kernel modules Message-ID: <4674DD53.9080505@gmx.de> In-Reply-To: <20070617.004201.-1804635381.imp@bsdimp.com> References: <4674CE41.7000103@gmx.de> <20070617.001516.-1615142562.imp@bsdimp.com> <4674D5B2.4000104@gmx.de> <20070617.004201.-1804635381.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
M. Warner Losh wrote: > In message: <4674D5B2.4000104@gmx.de> > "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4674DD53.9080505>