diff options
author | Vlad Glagolev | 2010-07-24 22:09:33 +0400 |
---|---|---|
committer | George Sherwood | 2010-07-25 11:53:23 -0500 |
commit | 0148142a3a04a2daa5c02c5b067a5329b1776d7a (patch) | |
tree | 20810e5f19f3a96ba027afdfd03a339b8422ff4a | |
parent | 1723107f059de7abb88b279b264a9a549451053c (diff) |
php: => 5.2.14, 5.3.3 (security); cleaned up
(cherry picked from commit bcf80644e1bad70be75545a29683e284d041dd74)
-rwxr-xr-x | php-pear/php/CONFIGURE | 87 | ||||
-rwxr-xr-x | php-pear/php/DEPENDS | 98 | ||||
-rwxr-xr-x | php-pear/php/DETAILS | 32 | ||||
-rw-r--r-- | php-pear/php/HISTORY | 6 | ||||
-rwxr-xr-x | php-pear/php/INSTALL | 4 |
5 files changed, 123 insertions, 104 deletions
diff --git a/php-pear/php/CONFIGURE b/php-pear/php/CONFIGURE index b74fa79521..847589f4c9 100755 --- a/php-pear/php/CONFIGURE +++ b/php-pear/php/CONFIGURE @@ -3,7 +3,7 @@ message "${MESSAGE_COLOR}PEAR support will enable the CLI version and force depe message "It will also enable some PCRE support (internal recommended)${DEFAULT_COLOR}" && # prior pear enabledness if list_find "$PHP5_OPTS" "--enable-pear" ; then - PHP5_PEAR="y" + PHP5_PEAR="y" fi && config_query PHP5_PEAR "Do you want PEAR support?" y && @@ -46,11 +46,12 @@ else fi && if [[ "${PHP5_PEAR}" == "y" ]] || list_find "$PHP5_OPTS" "--enable-cgi" || list_find "$PHP5_OPTS" "--enable-fastcgi" ; then - message "${MESSAGE_COLOR}Enabling CLI version for PEAR/CGI/FastCGI support${DEFAULT_COLOR}" && - PHP5_OPTS="$PHP5_OPTS --enable-cli" -else - config_query_option PHP5_OPTS "Enable CLI version?" y \ - "--enable-cli" "--disable-cli" + message "${MESSAGE_COLOR}Enabling CLI version for PEAR/CGI/FastCGI support${DEFAULT_COLOR}" && + PHP5_OPTS="$PHP5_OPTS --enable-cli" +else + config_query_option PHP5_OPTS "Enable CLI version?" y \ + "--enable-cli" \ + "--disable-cli" fi && config_query_option PHP5_OPTS "Enable multibyte support?" n \ @@ -62,51 +63,53 @@ message "${MESSAGE_COLOR}Not recommended: dbm, ndbm. NOTE: qdbm conflicts with d config_query_multi PHP5_DBA_DRIVERS "Select dbm-style database drivers (if any)" none gdbm db4 flatfile inifile qdbm && if ! list_find "${PHP5_DBA_DRIVERS}" "none"; then - if list_find "${PHP5_DBA_DRIVERS}" "flatfile"; then - PHP5_OPTS="$PHP5_OPTS --enable-inifile" - fi - if list_find "${PHP5_DBA_DRIVERS}" "flatfile"; then - PHP5_OPTS="$PHP5_OPTS --enable-flatfile" - fi + if list_find "${PHP5_DBA_DRIVERS}" "flatfile"; then + PHP5_OPTS="$PHP5_OPTS --enable-inifile" + fi + if list_find "${PHP5_DBA_DRIVERS}" "flatfile"; then + PHP5_OPTS="$PHP5_OPTS --enable-flatfile" + fi fi && # get the native simple drivers local DB_DRIVERS="mysql mysqli pgsql sqlite sqlite3 firebird unixODBC iODBC" config_query_multi PHP5_DATABASE_DRIVERS "Select vendor specific database drivers to install (if any)" \ - none all $DB_DRIVERS && + none all $DB_DRIVERS && if ! list_find "${PHP5_DATABASE_DRIVERS}" "none"; then - PHP5_OPTS="$PHP5_OPTS --enable-dba" && - for foo in $DB_DRIVERS; do - if list_find "${PHP5_DATABASE_DRIVERS}" "$foo" || list_find "${PHP5_DATABASE_DRIVERS}" "all"; then - PHP5_OPTS="$PHP5_OPTS --with-$foo" - else - PHP5_OPTS="$PHP5_OPTS --without-$foo" - fi - done + PHP5_OPTS="$PHP5_OPTS --enable-dba" && + + for foo in $DB_DRIVERS; do + if list_find "${PHP5_DATABASE_DRIVERS}" "$foo" || list_find "${PHP5_DATABASE_DRIVERS}" "all"; then + PHP5_OPTS="$PHP5_OPTS --with-$foo" + else + PHP5_OPTS="$PHP5_OPTS --without-$foo" + fi + done fi && -#ask if they want the PDO drivers for the drivers they selected +# ask if they want the PDO drivers for the drivers they selected config_query_option PHP5_OPTS "Enable PHP Data Objects?" y \ "--enable-pdo" "--disable-pdo" && if list_find "$PHP5_OPTS" "--enable-pdo"; then - local PDO_DRIVERS="mysql pgsql sqlite firebird unixODBC iODBC" && - for foo in $PDO_DRIVERS; do - if list_find "${PHP5_DATABASE_DRIVERS}" "$foo" || list_find "${PHP5_DATABASE_DRIVERS}" "all"; then - # odbc special case - if [[ "$foo" == "unixODBC" ]]; then - config_query_option PHP5_OPTS "Enable PDO driver for unixodbc?" n "--with-pdo-odbc=unixODBC,${INSTALL_ROOT}/usr" "" - elif [[ "$foo" == "iODBC" ]]; then - config_query_option PHP5_OPTS "Enable PDO driver for libiodbc?" n "--with-pdo-odbc=iODBC,${INSTALL_ROOT}/usr" "" - else - config_query_option PHP5_OPTS "Enable PDO driver for $foo?" n "--with-pdo-$foo=${INSTALL_ROOT}/usr" "--without-pdo-$foo" - fi - else - #be sure that the PDO driver is disabled - PHP5_OPTS="$PHP5_OPTS --without-pdo-$foo" - fi - done + local PDO_DRIVERS="mysql pgsql sqlite firebird unixODBC iODBC" && + + for foo in $PDO_DRIVERS; do + if list_find "${PHP5_DATABASE_DRIVERS}" "$foo" || list_find "${PHP5_DATABASE_DRIVERS}" "all"; then + # odbc special case + if [[ "$foo" == "unixODBC" ]]; then + config_query_option PHP5_OPTS "Enable PDO driver for unixodbc?" n "--with-pdo-odbc=unixODBC,${INSTALL_ROOT}/usr" "" + elif [[ "$foo" == "iODBC" ]]; then + config_query_option PHP5_OPTS "Enable PDO driver for libiodbc?" n "--with-pdo-odbc=iODBC,${INSTALL_ROOT}/usr" "" + else + config_query_option PHP5_OPTS "Enable PDO driver for $foo?" n "--with-pdo-$foo=${INSTALL_ROOT}/usr" "--without-pdo-$foo" + fi + else + # be sure that the PDO driver is disabled + PHP5_OPTS="$PHP5_OPTS --without-pdo-$foo" + fi + done fi && config_query_option PHP5_OPTS "Enable shmop support?" n \ @@ -128,9 +131,9 @@ config_query_list PHP5_GD "Which GD library to use?" \ none internal external && if [[ "$PHP5_PEAR" == "y" ]]; then - config_query_list PHP5_PCRE "Which PCRE library to use (internal reccomended)?" \ - internal external + config_query_list PHP5_PCRE "Which PCRE library to use (internal reccomended)?" \ + internal external else - config_query_list PHP5_PCRE "Which PCRE library to use (internal reccomended)?" \ - internal external none + config_query_list PHP5_PCRE "Which PCRE library to use (internal reccomended)?" \ + internal external none fi diff --git a/php-pear/php/DEPENDS b/php-pear/php/DEPENDS index f99ce18747..a5a98bbd1d 100755 --- a/php-pear/php/DEPENDS +++ b/php-pear/php/DEPENDS @@ -4,13 +4,14 @@ # $1 is the driver name # $2 is the spell name (for depending) function db_driver_depends() { - local db_driver="$1" - local db_spell="$2" - if list_find "$PHP5_DATABASE_DRIVERS" "$db_driver" || list_find "$PHP5_DATABASE_DRIVERS" "all"; then - depends $db_spell "--with-$db_driver" - else - OPTS="$OPTS --without-$db_driver" - fi + local db_driver="$1" + local db_spell="$2" + + if list_find "$PHP5_DATABASE_DRIVERS" "$db_driver" || list_find "$PHP5_DATABASE_DRIVERS" "all"; then + depends $db_spell "--with-$db_driver" + else + OPTS="$OPTS --without-$db_driver" + fi } depends flex && @@ -24,12 +25,12 @@ optional_depends bzip2 \ "for compression support" && if [[ "$PHP5_PEAR" == "y" ]]; then - depends libxml2 '--enable-xml --enable-dom --with-xmlrpc' + depends libxml2 '--enable-xml --enable-dom --with-xmlrpc' else - optional_depends libxml2 \ - '--enable-xml --enable-dom --with-xmlrpc' \ - '--disable-xml --disable-dom --without-xmlrpc --disable-xmlreader --disable-xmlwriter --disable-simplexml' \ - 'For XML support (required for SOAP)' + optional_depends libxml2 \ + "--enable-xml --enable-dom --with-xmlrpc" \ + "--disable-xml --disable-dom --without-xmlrpc --disable-xmlreader --disable-xmlwriter --disable-simplexml" \ + "For XML support (required for SOAP)" fi optional_depends libxslt \ @@ -55,9 +56,9 @@ if [[ $PHP5_SAPI == apache ]]; then fi && if [[ "$PHP5_PCRE" == "none" ]]; then - PHP5_OPTS="$PHP5_OPTS --without-pcre-regex --without-pcre" + PHP5_OPTS="$PHP5_OPTS --without-pcre-regex --without-pcre" elif [[ "$PHP5_PCRE" == "external" ]]; then - depends pcre "--with-pcre-regex=${INSTALL_ROOT}/usr --with-pcre=${INSTALL_ROOT}/usr" + depends pcre "--with-pcre-regex=${INSTALL_ROOT}/usr --with-pcre=${INSTALL_ROOT}/usr" fi && optional_depends C-CLIENT \ @@ -69,17 +70,17 @@ optional_depends openssl \ "for OpenSSL support" && if list_find "${OPTS}" "--with-imap"; then - if is_depends_enabled $SPELL openssl; then - OPTS="$OPTS --with-imap-ssl" - else - optional_depends openssl "--with-imap-ssl" "--without-imap-ssl" \ - "for SSL support with IMAP (but not elsewhere)" - fi + if is_depends_enabled $SPELL openssl; then + OPTS="$OPTS --with-imap-ssl" + else + optional_depends openssl \ + "--with-imap-ssl" \ + "--without-imap-ssl" \ + "for SSL support with IMAP (but not elsewhere)" + fi fi && -optional_depends MAIL-TRANSPORT-AGENT \ - "" "" \ - "for SMTP support" && +optional_depends MAIL-TRANSPORT-AGENT "" "" "for SMTP support" && optional_depends enchant \ "--with-enchant" "--without-enchant" \ @@ -136,17 +137,19 @@ optional_depends icu \ # DB_DRIVERS="mysql mysqli pgsql sqlite sqlite3 firebird unixODBC iODBC" # PDO_DRIVERS="mysql pgsql firebird unixODBC iODBC" if list_find "$PHP5_DATABASE_DRIVERS" "mysql" || list_find "$PHP5_DATABASE_DRIVERS" "all"; then - depends MYSQL "" && - if [[ "${VERSION:0:3}" == "5.3" ]]; then - config_query PHP5_MYSQLND "Do you want to use the MySQL Native Driver [mysqlnd]? (expiremental)" n && - if [[ "${PHP5_MYSQLND}" == "y" ]]; then - PHP5_OPTS="$PHP5_OPTS --with-mysql=mysqlnd" - else - PHP5_OPTS="$PHP5_OPTS --with-mysql" - fi - fi + depends MYSQL && + + if [[ "${VERSION:0:3}" == "5.3" ]]; then + config_query PHP5_MYSQLND "Do you want to use the MySQL Native Driver [mysqlnd]? (expiremental)" n && + + if [[ "${PHP5_MYSQLND}" == "y" ]]; then + PHP5_OPTS="$PHP5_OPTS --with-mysql=mysqlnd" + else + PHP5_OPTS="$PHP5_OPTS --with-mysql" + fi + fi else - OPTS="$OPTS --without-mysql" + OPTS="$OPTS --without-mysql" fi && db_driver_depends "mysqli" "mysql" && db_driver_depends "pgsql" "postgresql" && @@ -155,26 +158,25 @@ db_driver_depends "sqlite3" "sqlite" && db_driver_depends "firebird" "firebird" && # unixODBC and iODBC are mutually exclusive... first one in wins? if list_find "$PHP5_DATABASE_DRIVERS" "unixODBC" || list_find "$PHP5_DATABASE_DRIVERS" "all"; then - depends unixodbc "--with-unixODBC=${INSTALL_ROOT}/usr --without-iodbc" + depends unixodbc "--with-unixODBC=${INSTALL_ROOT}/usr --without-iodbc" elif list_find "$PHP5_DATABASE_DRIVERS" "iODBC"; then - depends unixodbc "--with-iodbc=${INSTALL_ROOT}/usr --without-unixODBC" + depends unixodbc "--with-iodbc=${INSTALL_ROOT}/usr --without-unixODBC" else - OPTS="$OPTS --without-iodbc --without-unixODBC" + OPTS="$OPTS --without-iodbc --without-unixODBC" fi && -#ND -#DBA drivers +# DBA drivers if list_find "${PHP5_OPTS}" "--enable-dba"; then - for foo in $PHP5_DBA_DRIVERS; do - if [[ $foo != none ]]; then - # handle the few special cases - if [[ "$foo" == "db4" ]]; then - depends db "--with-db4" - elif [[ "$foo" != "flatfile" ]] && [[ "$foo" != "inifile" ]]; then - depends $foo "--with-$foo" - fi - fi - done + for foo in $PHP5_DBA_DRIVERS; do + if [[ $foo != none ]]; then + # handle the few special cases + if [[ "$foo" == "db4" ]]; then + depends db "--with-db4" + elif [[ "$foo" != "flatfile" ]] && [[ "$foo" != "inifile" ]]; then + depends $foo "--with-$foo" + fi + fi + done fi && optional_depends openldap \ diff --git a/php-pear/php/DETAILS b/php-pear/php/DETAILS index c7baf078a2..019a921d8a 100755 --- a/php-pear/php/DETAILS +++ b/php-pear/php/DETAILS @@ -1,12 +1,12 @@ SPELL=php if [[ $PHP5_BRANCH == stable ]]; then - VERSION=5.3.2 - SOURCE_HASH=sha512:7d2b29e6cc652e78d0118dac43862aaaecf85b49f62fad83355639712b7e1bdcabfbd3ebea93759563da3a1f32ae556fb65094ce9d0642030f794867f2d0f6a4 + VERSION=5.3.3 + SECURITY_PATCH=10 + SOURCE_HASH=sha512:eeaf77befbea3a678f330766518836be87ee6fd53b50fbd9c75048a81b33ed87351327d1e7c103092029b17452d2cff5bca7376e107c662cf3ad30137d52479f SOURCE=$SPELL-$VERSION.tar.bz2 - SOURCE_URL[0]=http://downloads.php.net/johannes/$SOURCE - + SOURCE_URL[0]=http://static.php.net/www.php.net/distributions/$SOURCE if [[ $PHP5_SUHOSIN == y ]]; then - VERSION2=0.9.9.1 + VERSION2=0.9.10 SOURCE2=suhosin-patch-$VERSION-$VERSION2.patch.gz SOURCE2_URL="http://download.suhosin.org/$SOURCE2" SOURCE3=$SOURCE2.sig @@ -15,20 +15,28 @@ if [[ $PHP5_BRANCH == stable ]]; then SOURCE2_GPG="$SOURCE3:suhosin.gpg:UPSTREAM_KEY" fi elif [[ $PHP5_BRANCH == alpha ]]; then - VERSION=5.3.2 + VERSION=5.3.3 SOURCE_HASH=sha512:7d2b29e6cc652e78d0118dac43862aaaecf85b49f62fad83355639712b7e1bdcabfbd3ebea93759563da3a1f32ae556fb65094ce9d0642030f794867f2d0f6a4 SOURCE=$SPELL-$VERSION.tar.bz2 SOURCE_URL[0]=http://downloads.php.net/johannes/$SOURCE elif [[ $PHP5_BRANCH == legacy ]]; then - VERSION=5.2.13 - SECURITY_PATCH=11 - SOURCE_HASH=sha512:6b099c7854dff5047b96ddd52a901ce67cae735142f10dda0ab0808a0d592c957b499d76f4c21d0050f1f6ae1d66fb2fecbd9840af170a97971ad41fdd626191 + VERSION=5.2.14 + SECURITY_PATCH=12 + SOURCE_HASH=sha512:ffe6a6ae707e7a0a00db60bc6c28c286a7f326ca9011940dbd797227ae34ed8e18e026883e865b82f16f57bcadd9ebb2b6dd69eecbc6219d8ccf680fbd71b9c3 SOURCE=$SPELL-$VERSION.tar.bz2 SOURCE_URL[0]=http://static.php.net/www.php.net/distributions/$SOURCE + if [[ $PHP5_SUHOSIN == y ]]; then + VERSION2=0.9.7 + SOURCE2=suhosin-patch-$VERSION-$VERSION2.patch.gz + SOURCE2_URL="http://download.suhosin.org/$SOURCE2" + SOURCE3=$SOURCE2.sig + SOURCE3_URL="http://download.suhosin.org/$SOURCE3" + SOURCE2_GPG="$SOURCE3:suhosin.gpg:UPSTREAM_KEY" + fi else - VERSION=5.3.2 - SECURITY_PATCH=9 - SOURCE_HASH=sha512:7d2b29e6cc652e78d0118dac43862aaaecf85b49f62fad83355639712b7e1bdcabfbd3ebea93759563da3a1f32ae556fb65094ce9d0642030f794867f2d0f6a4 + VERSION=5.3.3 + SECURITY_PATCH=10 + SOURCE_HASH=sha512:eeaf77befbea3a678f330766518836be87ee6fd53b50fbd9c75048a81b33ed87351327d1e7c103092029b17452d2cff5bca7376e107c662cf3ad30137d52479f SOURCE=$SPELL-$VERSION.tar.bz2 SOURCE_URL[0]=http://downloads.php.net/johannes/$SOURCE fi diff --git a/php-pear/php/HISTORY b/php-pear/php/HISTORY index 8ba2848fb2..ebaace57f2 100644 --- a/php-pear/php/HISTORY +++ b/php-pear/php/HISTORY @@ -1,3 +1,9 @@ +2010-07-24 Vlad Glagolev <stealth@sourcemage.org> + * DETAILS: updated spell to 5.2.14 (legacy), 5.3.3 (stable, rc); + SECURITY_PATCH for both; updated source urls; returned suhosin support + for lehacy branch + * CONFIGURE, INSTALL, DEPENDS: replaced tabs with spaces + 2010-06-15 Bor Kraljič <pyrobor@ver.si> * DETAILS: added SOURCE3_IGNORE for signature diff --git a/php-pear/php/INSTALL b/php-pear/php/INSTALL index b0a19c9a84..83a6d6c2c7 100755 --- a/php-pear/php/INSTALL +++ b/php-pear/php/INSTALL @@ -1,7 +1,7 @@ default_install && if [[ "${VERSION:0:3}" == "5.3" ]]; then - install_config_file $SOURCE_DIRECTORY/php.ini-production /etc/php.ini + install_config_file $SOURCE_DIRECTORY/php.ini-production /etc/php.ini else - install_config_file $SOURCE_DIRECTORY/php.ini-recommended /etc/php.ini + install_config_file $SOURCE_DIRECTORY/php.ini-recommended /etc/php.ini fi |