From owner-freebsd-questions@FreeBSD.ORG Thu Jan 25 16:04:37 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C4F216A404 for ; Thu, 25 Jan 2007 16:04:37 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id 49E9713C44C for ; Thu, 25 Jan 2007 16:04:37 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 14716 invoked from network); 25 Jan 2007 16:04:36 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 25 Jan 2007 16:04:36 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 9DC2428423; Thu, 25 Jan 2007 11:04:35 -0500 (EST) To: "Questions" References: <1619.192.168.1.2.1169644730.squirrel@mail.totaldiver.net> From: Lowell Gilbert Date: Thu, 25 Jan 2007 11:04:35 -0500 In-Reply-To: <1619.192.168.1.2.1169644730.squirrel@mail.totaldiver.net> (questions@totaldiver.net's message of "Wed, 24 Jan 2007 08:18:50 -0500 (EST)") Message-ID: <44sldzum7g.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: questions@freebsd.org Subject: Re: ports with -DBATCH X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 16:04:37 -0000 "Questions" writes: > I'm writing a script to install a series of ports, and would like to use > the following: > > > cd /usr/ports/foo/bar > make WITH_OPTION1=yes WITH_OPTION2=yes WITHOUT_ANOTHER=yes -DBATCH install > > That works as expected, but I would also like those settings written to > the /var/db/ports/foobar/options file, so that future upgrades also > include the choices I made during the batch install. > > I've scoured the /usr/ports/Mk/* files, and don't see anything useful for > both BATCH and writing to the options file. Suggestions would be much > appreciated. How about writing your settings into make.conf?