Re: Re: How to find out which ports contains a specified command.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wesley Shields
Date: Sunday, April 5, 2009 - 6:19 pm

On Mon, Apr 06, 2009 at 01:45:43AM +0200, Alberto Villa wrote:

This makes two assumptions which are not always true:

- It assumes $yourcommand lives in ${PREFIX}/bin.
- It searches only pkg-plist.

Not all ports install into ${PREFIX}/bin and not all ports use
pkg-plist.  If you want a more accurate search you're better off
searching Makefile for the information in PLIST_FILES along with
pkg-plist.  It is worth noting that even this is not fool-proof since
some ports use dynamic plist generation so the information is never in
pkg-plist except for when the plist is built.

IMO this is a short-coming with ports, and only getting more and more
noticeable as we expand the number of ports.  I have some ideas on how
to address this if someone wants to ping me about it off list.

-- WXS
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Re: How to find out which ports contains a specified c ..., Wesley Shields, (Sun Apr 5, 6:19 pm)