New /bin/sh based script to manage ports
Sam Lawrance
boris at brooknet.com.au
Sat Jan 7 00:55:42 PST 2006
On 07/01/2006, at 7:45 PM, Doug Barton wrote:
> Jeremy Messenger wrote:
>
>> I haven't play with your script yet, but I only read it so far.
>
> Thanks for taking a look, and for your feedback.
>
>> I think you should get your script to be able to read in the
>> make.conf (by include) for PKG_DBDIR, PORTSDIR, DISTDIR and etc in
>> case if someone tweak it. I think it's more friendly with ports
>> that way.
>
> This is a reasonable request, and I should point out that the
> script does handle DISTDIR properly now. However, the other two
> present a chicken and egg problem if I choose to use 'make -V' to
> get the values of these variables (where do I cd to?). There is an
> alternative, which is to use code similar to what I wrote for the
> current version of /etc/rc.d/devfs to parse /etc/make.conf
> manually, but even that is subject to error. For example, I
> separate my base stuff into /etc/make.conf and ports to /etc/make-
> ports.conf.
I thought about this the other day... it turns out you can 'make -V
SOMEVAR' whether there is a Makefile or not.
More information about the freebsd-ports
mailing list