From owner-freebsd-ports Mon Jun 24 12: 0:59 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 06A5D37B409 for ; Mon, 24 Jun 2002 12:00:12 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5OJ0Ce89460; Mon, 24 Jun 2002 12:00:12 -0700 (PDT) (envelope-from gnats) Received: from demeter.acadiau.ca (demeter.acadiau.ca [131.162.6.30]) by hub.freebsd.org (Postfix) with ESMTP id 52DFF37B401; Mon, 24 Jun 2002 11:55:46 -0700 (PDT) Received: from demeter.acadiau.ca (localhost [127.0.0.1]) by demeter.acadiau.ca (8.12.3/8.12.3) with ESMTP id g5OItj1t020936; Mon, 24 Jun 2002 15:55:45 -0300 (ADT) (envelope-from root@demeter.acadiau.ca) Received: (from root@localhost) by demeter.acadiau.ca (8.12.3/8.12.3/Submit) id g5OIXOcE020764; Mon, 24 Jun 2002 15:33:24 -0300 (ADT) Message-Id: <200206241833.g5OIXOcE020764@demeter.acadiau.ca> Date: Mon, 24 Jun 2002 15:33:24 -0300 (ADT) From: The Hermit Hackers Reply-To: The Hermit Hackers To: FreeBSD-gnats-submit@FreeBSD.org Cc: dirk@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/39799: mod_php4, among other ports, maintains no state between install/upgrades 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 >Number: 39799 >Category: ports >Synopsis: mod_php4, among other ports, maintains no state between install/upgrades >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 24 12:00:12 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Charlie & >Release: FreeBSD 4.6-PRERELEASE i386 >Organization: The Hermit Hackers >Environment: System: FreeBSD demeter.acadiau.ca 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #2: Tue May 14 11:03:14 ADT 2002 root@demeter.acadiau.ca:/usr/obj/usr/src/sys/demeter i386 >Description: Plain and simple ... there is no easy way of 'remembering' what options used the last time various ports were compiled, so when upgrading using the output of something like pkg_version -c involves a good chance of forgetting to enable a feature ... >How-To-Repeat: >Fix: The following patch moves the 'ON/OFF' values from configure.php to a php_options file, and modifies configure.php so that it first reads that file, and, if it exists, subsequently reads a ${HOME}/.php_options file that the admin can setup to override those set by default. The idea is that if I copy scripts/php_options to ${HOME}/.php_options, change those options I want (ie. disable MySQL and enable PgSQL), the next time I have to upgrade, configure will auto-pick those changes and setup dialog accordingly ... There are other ports that could use similar (cyrus-sasl, postgresql) functionality, and, if this 'fix' is considered acceptable, I'll submit appropriate patches for those too ... Thanks ... --- patch begins here --- diff -cNr mod_php4.orig/scripts/configure.php mod_php4/scripts/configure.php *** mod_php4.orig/scripts/configure.php Mon Jun 24 14:35:42 2002 --- mod_php4/scripts/configure.php Mon Jun 24 15:16:52 2002 *************** *** 14,64 **** set \"zlib\" \"MySQL\" fi else /usr/bin/dialog --title "configuration options" --clear \ --checklist "\n\ Please select desired options:" -1 -1 16 \ ! GD1 "GD 1.x library support" OFF \ ! GD2 "GD 2.x library support" OFF \ ! zlib "zlib library support" ON \ ! bzip2 "bzip2 library support" OFF \ ! 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 \ ! XMLRPC "XMLRPC-EPI support (implies XML and iconv)" OFF \ ! XSLT "Sablotron support (implies XML and iconv)" OFF \ ! WDDX "WDDX support (implies XML)" 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 \ ! mcve "MCVE Credit Card Verification 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 \ ! yaz "YAZ support (ANSI/NISO Z39.50)" OFF \ 2> $tempfile retval=$? --- 14,78 ---- set \"zlib\" \"MySQL\" fi else + if [ -f "${SCRIPTDIR}/php_options" ] + then + for i in `cat ${SCRIPTDIR}/php_options` + do + export $i + done + fi + if [ -f "${HOME}/.php_options" ] + then + for i in `cat ${HOME}/.php_options` + do + export $i + done + fi /usr/bin/dialog --title "configuration options" --clear \ --checklist "\n\ Please select desired options:" -1 -1 16 \ ! GD1 "GD 1.x library support" ${option_GD1} \ ! GD2 "GD 2.x library support" ${option_GD2} \ ! zlib "zlib library support" ${option_zlib} \ ! bzip2 "bzip2 library support" ${option_bzip2} \ ! mcrypt "Encryption support" ${option_mcrypt} \ ! mhash "Crypto-hashing support" ${option_mhash} \ ! pdflib "pdflib support" ${option_pdflib} \ ! IMAP "IMAP support" ${option_IMAP} \ ! IMAP-SSL "IMAP-SSL support (implies IMAP)" ${option_IMAP_SSL} \ ! MySQL "MySQL database support" ${option_MySQL} \ ! PostgreSQL "PostgreSQL database support" ${option_PostgreSQL} \ ! SybaseDB "Sybase/MS-SQL database support (DB-lib)" ${option_SybaseDB} \ ! SybaseCT "Sybase/MS-SQL database support (CT-lib)" ${option_SybaseCT} \ ! Interbase "Interbase 6 database support (Firebird)" ${option_Interbase} \ ! dBase "dBase database support" ${option_dBase} \ ! OpenLDAP1 "OpenLDAP 1.x support" ${option_OpenLDAP1} \ ! OpenLDAP2 "OpenLDAP 2.x support" ${option_OpenLDAP2} \ ! OpenSSL "OpenSSL support" ${option_OpenSSL} \ ! SNMP "SNMP support" ${option_SNMP} \ ! XML "XML support" ${option_XML} \ ! XMLRPC "XMLRPC-EPI support (implies XML and iconv)" ${option_XMLRPC} \ ! XSLT "Sablotron support (implies XML and iconv)" ${option_XSLT} \ ! WDDX "WDDX support (implies XML)" ${option_WDDX} \ ! DOMXML "DOM support" ${option_DOMXML} \ ! FTP "File Transfer Protocol support" ${option_FTP} \ ! CURL "CURL support" ${option_CURL} \ ! gettext "gettext library support" ${option_gettext} \ ! iconv "iconv support" ${option_iconv} \ ! pspell "pspell support" ${option_pspell} \ ! mbregex "multibyte regular expressions module" ${option_mbregex} \ ! mbstring "multibyte string module" ${option_mbstring} \ ! YP "YP/NIS support" ${option_YP} \ ! BCMath "BCMath support" ${option_BCMath} \ ! Hyperwave "Hyperwave support" ${option_Hyperwave} \ ! mcve "MCVE Credit Card Verification support" ${option_mcve} \ ! ming "ming library support" ${option_ming} \ ! MCAL "Modular Calendar Access Library support" ${option_MCAL} \ ! sockets "sockets support" ${option_sockets} \ ! sysvsem "System V semaphore support" ${option_sysvsem} \ ! sysvshm "System V shared memory support" ${option_sysvshm} \ ! transsid "Transparent session id" ${option_transsid} \ ! yaz "YAZ support (ANSI/NISO Z39.50)" ${option_yaz} \ 2> $tempfile retval=$? diff -cNr mod_php4.orig/scripts/php_options mod_php4/scripts/php_options *** mod_php4.orig/scripts/php_options Wed Dec 31 20:00:00 1969 --- mod_php4/scripts/php_options Mon Jun 24 15:17:05 2002 *************** *** 0 **** --- 1,42 ---- + option_GD1=OFF + option_GD2=OFF + option_zlib=ON + option_bzip2=OFF + option_mcrypt=OFF + option_mhash=OFF + option_pdflib=OFF + option_IMAP=OFF + option_IMAP_SSL=OFF + option_MySQL=ON + option_PostgreSQL=OFF + option_SybaseDB=OFF + option_SybaseCT=OFF + option_Interbase=OFF + option_dBase=OFF + option_OpenLDAP1=OFF + option_OpenLDAP2=OFF + option_OpenSSL=OFF + option_SNMP=OFF + option_XML=OFF + option_XMLRPC=OFF + option_XSLT=OFF + option_WDDX=OFF + option_DOMXML=OFF + option_FTP=OFF + option_CURL=OFF + option_gettext=OFF + option_iconv=OFF + option_pspell=OFF + option_mbregex=OFF + option_mbstring=OFF + option_YP=OFF + option_BCMath=OFF + option_Hyperwave=OFF + option_mcve=OFF + option_ming=OFF + option_MCAL=OFF + option_sockets=OFF + option_sysvsem=OFF + option_sysvshm=OFF + option_transsid=OFF + option_yaz=OFF --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message