From owner-freebsd-ports@FreeBSD.ORG Thu Apr 3 09:26:25 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 BF63DBC5 for ; Thu, 3 Apr 2014 09:26:25 +0000 (UTC) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 587E229 for ; Thu, 3 Apr 2014 09:26:25 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id t61so1527375wes.17 for ; Thu, 03 Apr 2014 02:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=5rz9R0iw8xY9t4BTuF8w7lIP6xPECIMwc0u9Bt0Cd8A=; b=bB7MsjX4tXC/5HTm5M8UUcDQeUezH88JQPFEQsNeOFxC4yqN/qCHs9JGDh2siGO+Or 3Tyer8XQQJNR8djOZNvEddkl4oim4qyc94WxJeWVcWK6rHX+xw4lUSZyHk2OgB4qjO2a FheeAuUCJmxXqOGAXVG7/9T2JmXT4paLYER6cL2DLxnelsjWiQ3KDXhsvIKGgZXSbSFh NGGMPPFvtEUZDWLDJRp4d5e6x36igDiC+NUgaAsqmO3R+WGrSPILWtVRst/7X7DrDxya K/7O7rv/aUO/vyjsnePMzXMWJgL31YRI7plbjjiOc5wfsbZNW6csHaCEKxLcjeTKJb+q nCIg== X-Received: by 10.194.241.132 with SMTP id wi4mr8546405wjc.14.1396517183710; Thu, 03 Apr 2014 02:26:23 -0700 (PDT) Received: from ar1l0u.maxima.local ([91.196.229.122]) by mx.google.com with ESMTPSA id q49sm10688546eem.34.2014.04.03.02.26.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 02:26:22 -0700 (PDT) Message-ID: <533D293D.1050902@b1t.name> Date: Thu, 03 Apr 2014 12:26:21 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: FreeBSD Ports Subject: working with port options from commandline Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 03 Apr 2014 09:26:25 -0000 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'. 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'? 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? -- Sphinx of black quartz, judge my vow.