From owner-freebsd-ports Thu Feb 28 12:17:19 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by hub.freebsd.org (Postfix) with ESMTP id C441D37B417 for ; Thu, 28 Feb 2002 12:17:03 -0800 (PST) Received: from fwd06.sul.t-online.de by mailout02.sul.t-online.com with smtp id 16gWz6-0002Sh-01; Thu, 28 Feb 2002 21:17:00 +0100 Received: from spirit.corecode.ath.cx (320050403952-0001@[80.128.116.172]) by fmrl06.sul.t-online.com with esmtp id 16gWyq-1GyKqOC; Thu, 28 Feb 2002 21:16:44 +0100 Received: from elevation.zuhause.stoert.net (elevation.zuhause.stoert.net [192.168.66.46]) by spirit.corecode.ath.cx (8.11.6/8.11.6) with ESMTP id g1SKGh303950; Thu, 28 Feb 2002 21:16:43 +0100 (CET) (envelope-from corecode@corecode.ath.cx) Received: (from corecode@localhost) by elevation.zuhause.stoert.net (8.11.6/8.11.6) id g1SKGh996295; Thu, 28 Feb 2002 21:16:43 +0100 (CET) (envelope-from corecode) Date: Thu, 28 Feb 2002 21:16:36 +0100 From: "Simon 'corecode' Schubert" To: "Marc G. Fournier" Cc: freebsd-ports@FreeBSD.ORG Subject: Re: +OPTIONS ... saving configuration options Message-Id: <20020228211636.29bd4057.corecode@corecode.ath.cx> In-Reply-To: <20020228153557.R49236-100000@mail1.hub.org> References: <20020228153557.R49236-100000@mail1.hub.org> X-Mailer: Sylpheed version 0.7.2claws (GTK+ 1.2.10; i386--freebsd4.5) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=.vhT++wY3OWnWgn" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=.vhT++wY3OWnWgn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit actually i have been working on something like this last month, yet had to suspend it in favour of learning for my tests. next week i'll look into this once more. cheerz corecode On Thu, 28 Feb 2002 15:48:09 -0400 (AST) "Marc G. Fournier" wrote: > > Just looking at how the 'dialog' appears to work before building mod_php4 > yet again, and am curious as to whether anyone has looked at saving the > dialog answers to a file for the next build? > > Basically, looking at scripts/configure.php, the top have has the > 'options' and the default answer ... for example: > > ================================= > /usr/bin/dialog --title "configuration options" --clear \ > --checklist "\n\ > Please select desired options:" -1 -1 16 \ > GD "GD library support" OFF \ > zlib "zlib library support" ON \ > mcrypt "Encryption support" OFF \ > mhash "Crypto-hashing support" OFF \ > pdflib "pdflib support" OFF \ > IMAP "IMAP support" OFF \ > IMAP-SSL "IMAP-SSL support (implies IMAP)" OFF \ > MySQL "MySQL database support" ON \ > PostgreSQL "PostgreSQL database support" OFF \ > SybaseDB "Sybase/MS-SQL database support (DB-lib)" OFF \ > SybaseCT "Sybase/MS-SQL database support (CT-lib)" OFF \ > Interbase "Interbase 6 database support (Firebird)" OFF \ > dBase "dBase database support" OFF \ > OpenLDAP1 "OpenLDAP 1.x support" OFF \ > OpenLDAP2 "OpenLDAP 2.x support" OFF \ > OpenSSL "OpenSSL support" OFF \ > SNMP "SNMP support" OFF \ > XML "XML support" OFF \ > XSLT "Sablotron support (implies XML and iconv)" OFF \ > DOMXML "DOM support" OFF \ > FTP "File Transfer Protocol support" OFF \ > CURL "CURL support" OFF \ > gettext "gettext library support" OFF \ > iconv "iconv support" OFF \ > pspell "pspell support" OFF \ > mbregex "multibyte regular expressions module" OFF \ > mbstring "multibyte string module" OFF \ > YP "YP/NIS support" OFF \ > BCMath "BCMath support" OFF \ > Hyperwave "Hyperwave support" OFF \ > ming "ming library support" OFF \ > MCAL "Modular Calendar Access Library support" OFF \ > sockets "sockets support" OFF \ > sysvsem "System V semaphore support" OFF \ > sysvshm "System V shared memory support" OFF \ > transsid "Transparent session id" OFF \ > 2> $tempfile > ================================== > > Why not change that to something like (the code is psuedo/bad) > > ================================= > $GD_OPT="OFF" > $ZLIB_OPT="ON" > $MCRYPT_OPT="OFF" > $MHASH_OPT="OFF" > if [ $1 is set ] > then > if [ -f $1 ] > then > source $1 > fi > fi > /usr/bin/dialog --title "configuration options" --clear \ > --checklist "\n\ > Please select desired options:" -1 -1 16 \ > GD "GD library support" $GD_OPT \ > zlib "zlib library support" $ZLIB_OPT \ > mcrypt "Encryption support" $MCRYPT_OPT \ > mhash "Crypto-hashing support" MHASH_OPT \ > > 2> $tempfile > ================================== > > Where $1 would be a file that contains a save of the last install, and > would override those defaults ... > > You would still then go through and choose your options, but at least > you'd have in front of you what your *first* install had in int ... > > pkg_version -c could be changed to detect a: > > /var/db/pkg//+OPTIONS > > file and use that for $1 if not provided on the command line ... > > There are more and more ports using the dialog to pick options, it would > be nice to have them saved across upgrades so tha tyou don't have to > remember what you configured on that machine the last time ... > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message > -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.vhT++wY3OWnWgn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8fpAqr5S+dk6z85oRAoNnAKDIcyBv2oGWTI6wze43D/Jh6f4LXwCgkIjV Is910FJLSZ4xSwQQdkpoDFs= =ECJh -----END PGP SIGNATURE----- --=.vhT++wY3OWnWgn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message