Date: Fri, 12 Oct 2007 14:03:51 -0500 From: Joshua Isom <jrisom@gmail.com> To: jamesh@lanl.gov Cc: freebsd-questions Questions <freebsd-questions@freebsd.org> Subject: Re: I performed an rm -r on /var/lib/pkg Message-ID: <9dae1159ed55c70742430b79b0f1da52@gmail.com> In-Reply-To: <1192208279.33933.84.camel@secretariat.lanl.gov> References: <1192134379.33933.9.camel@secretariat.lanl.gov> <470E8D3A.8010508@daleco.biz> <1192136857.33933.18.camel@secretariat.lanl.gov> <20071011211317.GA24658@owl.midgard.homeip.net> <1192138145.33933.21.camel@secretariat.lanl.gov> <18190.41045.40653.528498@jerusalem.litteratus.org> <1192142367.33933.32.camel@secretariat.lanl.gov> <1192208279.33933.84.camel@secretariat.lanl.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 12, 2007, at 11:57 AM, James wrote: > > This isn't quite as simple as I'd hoped it'd be to fix. Here's my > findings thus far (I haven't started writing my script yet, but I will > later today): > > 1. /usr/ports/distfiles contains everything I need > 2. distfiles contains several versions of some packages, but that's > pretty trivial to resolve. > 3. distfiles contains some packages whose source tarballs are named > *differently* to the packages themselves, such as unrar. > > It's number 3 that's getting me. It looks like the simplest thing > might > be an if statement: > > if (make search name=$PACKAGE) > score! > else > grep -r $PACKAGE /usr/ports > > But before I go that far, I wanted to see if anyone had an alternate > idea for what might work. > > > James > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Try something more akin to this. find /usr/ports/devel -name distinfo -exec grep -l ddd-3.3.11.tar.gz '{}' \; | cut -d / -f 1-5 You'd have to change ddd-3.3.11.tar.gz(I used it because I had it), but you can then output a list of all the directories you need to build the port in. You can then probably use xargs to automatically make that port.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9dae1159ed55c70742430b79b0f1da52>