Date: Fri, 18 Nov 2005 10:15:36 -0800 From: "Michael C. Shultz" <ringworm01@gmail.com> To: freebsd-ports@freebsd.org, vd@datamax.bg Subject: Re: which port would install bin/foo Message-ID: <200511181015.37315.ringworm01@gmail.com> In-Reply-To: <20051118162020.GA1187@qlovarnika.bg.datamax> References: <20051118162020.GA1187@qlovarnika.bg.datamax>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 18 November 2005 08:20, Vasil Dimov wrote: > Hello, > > Is there any way to tell which port(s) would install some file, say > bin/resize? > > ``grep bin/resize /usr/ports/*/*/pkg-plist'' is hell slow (well, it > gives "Argument list too long", but if it didn't it would be hell slow :) Not fast yet works: find /usr/ports/*/. | grep pkg-plist | xargs grep bin/resize /usr/ports/emulators/./linux_base-debian/pkg-plist:sbin/resize2fs /usr/ports/emulators/./linux_base-debian/pkg-plist:usr/bin/resizecons /usr/ports/science/./x11iraf/pkg-plist:bin/resize /usr/ports/sysutils/./e2fsprogs/pkg-plist:sbin/resize2fs /usr/ports/sysutils/./progsreiserfs/pkg-plist:sbin/resizefs.reiserfs /usr/ports/x11/./XFree86/pkg-plist:bin/resize /usr/ports/x11/./XFree86/pkg-plist.alpha:bin/resize /usr/ports/x11/./XFree86/pkg-plist.pc98:bin/resize /usr/ports/x11/./XFree86/pkg-plist.stripped:bin/resize /usr/ports/x11/./XFree86-4-clients/pkg-plist:@exec [ ! -e %D/bin/resize ] && ln -sf %D/bin/resize-static %D/bin/resize /usr/ports/x11/./XFree86-4-clients/pkg-plist:@unexec [ -L %D/bin/resize ] && rm %D/bin/resize /usr/ports/x11/./xorg-clients/pkg-plist:@exec [ ! -e %D/bin/resize ] && ln -sf %D/bin/resize-static %D/bin/resize /usr/ports/x11/./xorg-clients/pkg-plist:@unexec [ -L %D/bin/resize ] && rm %D/bin/resize -Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511181015.37315.ringworm01>