working with port options from commandline

Baptiste Daroussin bapt at FreeBSD.org
Fri Apr 4 11:47:46 UTC 2014


On Fri, Apr 04, 2014 at 06:05:13AM -0500, Bryan Drewery wrote:
> On 4/3/2014 4:26 AM, Volodymyr Kostyrko wrote:
> > Hi all.
> > 
> > I'm all about automation. I'd like to automate most tasks so I can
> > schedule them or write a script with which everything would be done
> > automatically.
> > 
> > I have some difficulties with current port options framework:
> > 
> > 1. Is there a good way to set/unset any option from command line without
> > firing up dialog? Something like 'make -C port/dir -DSET=OPT1,OPT2
> > -DUNSET=OPT3 updateconfig'.
> 
> This should work:
>   make ... OPTIONS_SET="OPT OPT OPT" OPTIONS_UNSET="OPT OPT OPT" BATCH=1

The rigth way is
make WITH="OPT1 OPT2 OPT3" WITHOUT="OPT4 OPT5" BATCH=1

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140404/13944241/attachment.sig>


More information about the freebsd-ports mailing list