/var/db/ports/*/options auto-generation
Garrett Cooper
youshi10 at u.washington.edu
Tue Jul 17 02:22:42 UTC 2007
Dmitry Morozovsky wrote:
> On Mon, 16 Jul 2007, Pav Lucistnik wrote:
>
> PL> > It's not exactly what I want as I need to repeat Tab-Enter pairs for each of
> PL> > OPTIONS contained port. What I want is generation options file for all the
> PL> > ports including defaults (possibly overrided in /etc/make.conf) WITH/WITHOUT
> PL> > lines...
> PL>
> PL> Ok, so what about make -V OPTIONS in the port directory, and some
> PL> creative awkery on the output?
>
> It's definitely possible, but it constructs single line of output which is
> rather hard to parse (though possible, surely).
>
'for i in {WITH/WITHOUT file}' or read(1) solves that little problem.
The only catch is that there's a bit of added overhead, but I doubt it's
much..
> What about creating special target such as 'create-options-file' or
> 'update-options-file' acting depending of existance of /var/db/ports/*/options
> and then acting accordingly?
>
That might be a good idea, as I think it'd allow more tools to benefit
from the added functionality.
> Well, after a little bit of thought I suppose it should be presented to
> ports-mgr@ to decide...
>
>
> Sincerely,
> D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
>
-Garrett
More information about the freebsd-ports
mailing list