From owner-freebsd-ports@FreeBSD.ORG Fri Apr 4 11:05:22 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0EE1AA7D for ; Fri, 4 Apr 2014 11:05:22 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA6FDDCA for ; Fri, 4 Apr 2014 11:05:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s34B5LQu069651 for ; Fri, 4 Apr 2014 11:05:21 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s34B5Lc8069650 for freebsd-ports@freebsd.org; Fri, 4 Apr 2014 11:05:21 GMT (envelope-from bdrewery) Received: (qmail 67727 invoked from network); 4 Apr 2014 06:05:20 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 4 Apr 2014 06:05:20 -0500 Message-ID: <533E91E9.3080305@FreeBSD.org> Date: Fri, 04 Apr 2014 06:05:13 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Volodymyr Kostyrko , FreeBSD Ports Subject: Re: working with port options from commandline References: <533D293D.1050902@b1t.name> In-Reply-To: <533D293D.1050902@b1t.name> X-Enigmail-Version: 1.6 OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TbuE6BOxA14mkE8dSMWnehj6RPq6JhFLI" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 11:05:22 -0000 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--