From owner-freebsd-ports Thu Feb 28 11:48:54 2002 Delivered-To: freebsd-ports@freebsd.org Received: from earth.hub.org (earth.hub.org [64.49.215.11]) by hub.freebsd.org (Postfix) with ESMTP id 96DF337B638 for ; Thu, 28 Feb 2002 11:48:11 -0800 (PST) Received: from localhost.localdomain (earth.hub.org [64.49.215.11]) by localhost (Postfix) with ESMTP id 40FB1103368 for ; Thu, 28 Feb 2002 15:48:10 -0400 (AST) Received: from earth.hub.org (earth.hub.org [64.49.215.11]) by earth.hub.org (Postfix) with ESMTP id A83D6103366 for ; Thu, 28 Feb 2002 15:48:09 -0400 (AST) Date: Thu, 28 Feb 2002 15:48:09 -0400 (AST) From: "Marc G. Fournier" To: freebsd-ports@freebsd.org Subject: +OPTIONS ... saving configuration options Message-ID: <20020228153557.R49236-100000@mail1.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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