Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 21:16:36 +0100
From:      "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To:        "Marc G. Fournier" <scrappy@hub.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--=.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" <scrappy@hub.org> 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 \
> <Etc, Etc>
> 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/<packagename>/+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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020228211636.29bd4057.corecode>