Date: Fri, 04 Apr 2014 06:05:13 -0500 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Volodymyr Kostyrko <c.kworr@gmail.com>, FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: working with port options from commandline Message-ID: <533E91E9.3080305@FreeBSD.org> In-Reply-To: <533D293D.1050902@b1t.name> References: <533D293D.1050902@b1t.name>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --TbuE6BOxA14mkE8dSMWnehj6RPq6JhFLI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 4/3/2014 4:26 AM, Volodymyr Kostyrko wrote: > Hi all. >=20 > 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. >=20 > I have some difficulties with current port options framework: >=20 > 1. Is there a good way to set/unset any option from command line withou= t > firing up dialog? Something like 'make -C port/dir -DSET=3DOPT1,OPT2 > -DUNSET=3DOPT3 updateconfig'. This should work: make ... OPTIONS_SET=3D"OPT OPT OPT" OPTIONS_UNSET=3D"OPT OPT OPT" BATC= H=3D1 >=20 > 2. Is there a good way to query for option updates? You know when you > are building a port the option dialog will still be shown if there are > new options not present in current config. Can I get those options > somehow like 'make -C port/dir changedconfig'? The current handling uses: make -V NEWOPTIONS You can also use 'make pretty-print-config' for a parseable output. >=20 > I think I need to write some scripts to handle this situations myself > but I just want to ask whether someone had done that before or maybe > such functionality is pending? >=20 --=20 Regards, Bryan Drewery --TbuE6BOxA14mkE8dSMWnehj6RPq6JhFLI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTPpHqAAoJEDXXcbtuRpfP/L0IANb7qZJRf32IV+ycHHBBjgnP A0lrOGQLgwe1d8Qh7Hr6glh09sKlxXbWGqgqHTIAQcih3eoB9FitemqL3kv5l2T+ zwpAihbjhBLapECOPia0PtzLGlmdYydXth4iG7AXDbSjHkSXGIzVKsAWU0enoTee pzg0+UvY4Pv7wvGytz4kczZbjUdGyfI2NynrbqXYZ6oyVQypppMmnl/v6I4bNKWh lcjPQ6MZNEmNutAMskyFCE3tUDeowGMa8kmazlcLUMkCsQM6oXkToCHoY7TUMufy bW4Y5ckZik8Can2+mmCEva/f3uAczbTkntzBgPA751v1zfL2qJ1Ys4e2kwQaXJY= =ljdf -----END PGP SIGNATURE----- --TbuE6BOxA14mkE8dSMWnehj6RPq6JhFLI--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?533E91E9.3080305>