summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/php-filepro/Makefile5
-rw-r--r--lang/php5/Makefile3
-rw-r--r--lang/php5/Makefile.common4
-rw-r--r--lang/php5/distinfo15
-rw-r--r--lang/php5/patches/patch-aa21
-rw-r--r--lang/php5/patches/patch-ab17
-rw-r--r--lang/php5/patches/patch-ak14
-rw-r--r--lang/php5/patches/patch-as25
-rw-r--r--lang/php5/patches/patch-au14
-rw-r--r--lang/php5/patches/patch-av32
-rw-r--r--meta-pkgs/php5-extensions/Makefile109
11 files changed, 75 insertions, 184 deletions
diff --git a/databases/php-filepro/Makefile b/databases/php-filepro/Makefile
index 5ee25bfb56c..4771f2d88dd 100644
--- a/databases/php-filepro/Makefile
+++ b/databases/php-filepro/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/06/04 16:26:53 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2006/11/06 22:06:35 jdolecek Exp $
MODNAME= filepro
CATEGORIES+= databases
@@ -6,6 +6,9 @@ COMMENT= PHP extension for read-only filePro database access
CONFLICTS= php-filepro-[0-9]*
+# filepro extension removed in PHP 5.2.0, no replacement in PECL yet
+PHP_VERSIONS_ACCEPTED= 4
+
CONFIGURE_ARGS+= --with-${MODNAME}=shared
.include "../../lang/php/ext.mk"
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index e35a7dade9b..655a3d5a21d 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.46 2006/11/04 11:27:55 adrianp Exp $
+# $NetBSD: Makefile,v 1.47 2006/11/06 22:06:35 jdolecek Exp $
PKGNAME= php-${PHP_BASE_VERS}
-PKGREVISION= 3
CATEGORIES= lang
HOMEPAGE= http://www.php.net/
diff --git a/lang/php5/Makefile.common b/lang/php5/Makefile.common
index 5507ce0e4fb..b0d94ef0b34 100644
--- a/lang/php5/Makefile.common
+++ b/lang/php5/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.20 2006/08/28 12:17:10 taca Exp $
+# $NetBSD: Makefile.common,v 1.21 2006/11/06 22:06:35 jdolecek Exp $
.if !defined(DISTNAME)
DISTNAME= php-${PHP_BASE_VERS}
@@ -16,7 +16,7 @@ EXTRACT_SUFX?= .tar.bz2
MAINTAINER?= jdolecek@NetBSD.org
HOMEPAGE?= http://www.php.net/
-PHP_BASE_VERS= 5.1.6
+PHP_BASE_VERS= 5.2.0
PHP_EXTENSION_DIR= lib/php/20040412
PLIST_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR:Q}
diff --git a/lang/php5/distinfo b/lang/php5/distinfo
index 227e39fada7..4b6ae76e405 100644
--- a/lang/php5/distinfo
+++ b/lang/php5/distinfo
@@ -1,15 +1,10 @@
-$NetBSD: distinfo,v 1.32 2006/11/04 11:27:55 adrianp Exp $
+$NetBSD: distinfo,v 1.33 2006/11/06 22:06:35 jdolecek Exp $
-SHA1 (php-5.1.6/php-5.1.6.tar.bz2) = a20b946f1de0a8a35a8a6bf437adbba4e5448d27
-RMD160 (php-5.1.6/php-5.1.6.tar.bz2) = 7ac52f4674532397c982f6ced594b70dd17522af
-Size (php-5.1.6/php-5.1.6.tar.bz2) = 6454408 bytes
-SHA1 (patch-aa) = c1ba60ea1e8df9242b1f3c5078808c7968cf0de8
-SHA1 (patch-ab) = e91b34cd6cfadcc7f39e5832241ea711f1c0f827
+SHA1 (php-5.2.0/php-5.2.0.tar.bz2) = 6306829b1b252156ca3a936ec809aba89a71d9e1
+RMD160 (php-5.2.0/php-5.2.0.tar.bz2) = baabe854ac219935ed9f58d348ebf08fb84853de
+Size (php-5.2.0/php-5.2.0.tar.bz2) = 6789838 bytes
SHA1 (patch-ac) = 4f8714134977e6cef25df23b60ceea50c2aee6d0
SHA1 (patch-ag) = 4ccb67ba6f5370b1d16b087e3e714de3e5ae604e
SHA1 (patch-ah) = c7cbd4b9ea0796ea3b7491c2cffb6ddddc518587
SHA1 (patch-aj) = 54812097499c81e5cb0196ab949cc86a4f24a9cc
-SHA1 (patch-ak) = 2d5264d33ebef631d4a2d0cdf8a2ed365bdbeb7e
-SHA1 (patch-as) = 4fc74c8e8d0a7a152a7bbe1672ad0834021db16c
-SHA1 (patch-au) = 90264101db6c2f000c30d1f513392acec781202b
-SHA1 (patch-av) = b14aed514e801e58deec95ecdda107a1c6b5457d
+SHA1 (patch-ak) = 0a6445b5cf390cb63de8474d75c6e8a4c058afab
diff --git a/lang/php5/patches/patch-aa b/lang/php5/patches/patch-aa
deleted file mode 100644
index 050db59148a..00000000000
--- a/lang/php5/patches/patch-aa
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2006/10/22 13:19:19 adrianp Exp $
-
-# CVE-2006-4812
-
---- Zend/zend_alloc.c.orig 2006-08-10 18:16:24.000000000 +0100
-+++ Zend/zend_alloc.c
-@@ -331,12 +331,12 @@ ZEND_API void *_ecalloc(size_t nmemb, si
- int final_size = size*nmemb;
-
- HANDLE_BLOCK_INTERRUPTIONS();
-- p = _emalloc(final_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
-+ p = _safe_emalloc(nmemb, size, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
- if (!p) {
- HANDLE_UNBLOCK_INTERRUPTIONS();
- return (void *) p;
- }
-- memset(p, 0, final_size);
-+ memset(p, 0, size * nmemb);
- HANDLE_UNBLOCK_INTERRUPTIONS();
- return p;
- }
diff --git a/lang/php5/patches/patch-ab b/lang/php5/patches/patch-ab
deleted file mode 100644
index 4a10646122e..00000000000
--- a/lang/php5/patches/patch-ab
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2006/10/22 13:19:19 adrianp Exp $
-
-# CVE-2006-4625
-
---- Zend/zend_ini.c.orig 2006-01-04 23:53:04.000000000 +0000
-+++ Zend/zend_ini.c
-@@ -256,8 +256,8 @@ ZEND_API int zend_restore_ini_entry(char
- zend_ini_entry *ini_entry;
- TSRMLS_FETCH();
-
-- if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==FAILURE) {
-- return FAILURE;
-+ if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==FAILURE ||
-+ (stage == ZEND_INI_STAGE_RUNTIME && (ini_entry->modifiable & ZEND_INI_USER) == 0)) { return FAILURE;
- }
-
- zend_restore_ini_entry_cb(ini_entry, stage TSRMLS_CC);
diff --git a/lang/php5/patches/patch-ak b/lang/php5/patches/patch-ak
index 33684428a2c..246b8b4cfa5 100644
--- a/lang/php5/patches/patch-ak
+++ b/lang/php5/patches/patch-ak
@@ -1,10 +1,10 @@
-$NetBSD: patch-ak,v 1.2 2006/02/06 06:39:59 martti Exp $
+$NetBSD: patch-ak,v 1.3 2006/11/06 22:06:35 jdolecek Exp $
---- ext/imap/php_imap.c.orig 2006-01-05 02:47:16.000000000 +0200
-+++ ext/imap/php_imap.c 2006-02-05 15:37:19.000000000 +0200
-@@ -429,6 +429,11 @@
-
- ZEND_INIT_MODULE_GLOBALS(imap, php_imap_init_globals, NULL)
+--- ext/imap/php_imap.c.orig 2006-10-05 16:25:41.000000000 +0200
++++ ext/imap/php_imap.c
+@@ -441,6 +441,11 @@ PHP_MINIT_FUNCTION(imap)
+ {
+ unsigned long sa_all = SA_MESSAGES | SA_RECENT | SA_UNSEEN | SA_UIDNEXT | SA_UIDVALIDITY;
+/*
+ * Optionally use the installed c-client linkage.c to determine which drivers
@@ -14,7 +14,7 @@ $NetBSD: patch-ak,v 1.2 2006/02/06 06:39:59 martti Exp $
#ifndef PHP_WIN32
mail_link(&unixdriver); /* link in the unix driver */
mail_link(&mhdriver); /* link in the mh driver */
-@@ -444,6 +449,10 @@
+@@ -456,6 +461,10 @@ PHP_MINIT_FUNCTION(imap)
mail_link(&tenexdriver); /* link in the tenex driver */
mail_link(&mtxdriver); /* link in the mtx driver */
mail_link(&dummydriver); /* link in the dummy driver */
diff --git a/lang/php5/patches/patch-as b/lang/php5/patches/patch-as
deleted file mode 100644
index 2dd299ff4e2..00000000000
--- a/lang/php5/patches/patch-as
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-as,v 1.2 2006/08/19 16:44:15 taca Exp $
-
---- ext/date/lib/timelib_structs.h.orig 2006-04-12 03:03:52.000000000 +0900
-+++ ext/date/lib/timelib_structs.h
-@@ -21,7 +21,7 @@
- #ifndef __TIMELIB_STRUCTS_H__
- #define __TIMELIB_STRUCTS_H__
-
--#include <timelib_config.h>
-+#include "timelib_config.h"
-
- #ifdef HAVE_SYS_TYPES_H
- #include <sys/types.h>
-@@ -183,7 +183,11 @@ typedef struct _timelib_tzdb {
- #define TIMELIB_ZONETYPE_ABBR 2
- #define TIMELIB_ZONETYPE_ID 3
-
-+#if defined(SIZEOF_LONG_LONG_INT) && (SIZEOF_LONG_LONG_INT == 8)
-+#define SECS_PER_ERA 12622780800LL
-+#else
- #define SECS_PER_ERA 12622780800L
-+#endif
- #define SECS_PER_DAY 86400
- #define DAYS_PER_YEAR 365
- #define DAYS_PER_LYEAR 366
diff --git a/lang/php5/patches/patch-au b/lang/php5/patches/patch-au
deleted file mode 100644
index 682945a693c..00000000000
--- a/lang/php5/patches/patch-au
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-au,v 1.1 2006/05/23 22:55:23 jdolecek Exp $
-
---- ext/wddx/wddx.c.orig 2006-05-24 00:39:34.000000000 +0200
-+++ ext/wddx/wddx.c
-@@ -399,7 +399,8 @@ static void php_wddx_serialize_string(wd
- break;
-
- default:
-- if (iscntrl((int)*(unsigned char *)p)) {
-+ if (iscntrl((int)*(unsigned char *)p)
-+ && isascii((int)*(unsigned char *)p)) {
- FLUSH_BUF();
- sprintf(control_buf, WDDX_CHAR, *p);
- php_wddx_add_chunk(packet, control_buf);
diff --git a/lang/php5/patches/patch-av b/lang/php5/patches/patch-av
deleted file mode 100644
index 58397c04b98..00000000000
--- a/lang/php5/patches/patch-av
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-av,v 1.3 2006/11/04 11:27:55 adrianp Exp $
-
-# CVE-2006-5465
-
---- ext/standard/html.c.orig 2006-02-25 21:32:11.000000000 +0000
-+++ ext/standard/html.c
-@@ -1096,7 +1096,7 @@ PHPAPI char *php_escape_html_entities(un
-
- matches_map = 0;
-
-- if (len + 9 > maxlen)
-+ if (len + 16 > maxlen)
- replaced = erealloc (replaced, maxlen += 128);
-
- if (all) {
-@@ -1121,9 +1121,15 @@ PHPAPI char *php_escape_html_entities(un
- }
-
- if (matches_map) {
-+ int l = strlen(rep);
-+ /* increase the buffer size */
-+ if (len + 2 + l >= maxlen) {
-+ replaced = erealloc(replaced, maxlen += 128);
-+ }
-+
- replaced[len++] = '&';
- strcpy(replaced + len, rep);
-- len += strlen(rep);
-+ len += l;
- replaced[len++] = ';';
- }
- }
diff --git a/meta-pkgs/php5-extensions/Makefile b/meta-pkgs/php5-extensions/Makefile
index 4638adafea1..3929a1897ac 100644
--- a/meta-pkgs/php5-extensions/Makefile
+++ b/meta-pkgs/php5-extensions/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2006/10/20 21:56:38 jdolecek Exp $
+# $NetBSD: Makefile,v 1.20 2006/11/06 22:06:35 jdolecek Exp $
-DISTNAME= php-extensions-5.1
-PKGREVISION= 5
+DISTNAME= php-extensions-5.2
+#PKGREVISION= 1
CATEGORIES= meta-pkgs www php5
MASTER_SITES= # empty
DISTFILES= # empty
@@ -11,61 +11,64 @@ HOMEPAGE= http://www.php.net/
COMMENT= "meta-package" for the PHP5 HTML-embedded scripting language
# base PHP 5.x package
-DEPENDS+= php-5.1.*:../../lang/php5
-DEPENDS+= ${APACHE_PKG_PREFIX}-php5-5.1.*:../../www/ap-php
+DEPENDS+= php-5.2.*:../../lang/php5
+DEPENDS+= ${APACHE_PKG_PREFIX}-php5-5.2.*:../../www/ap-php
# extensions buildable with both PHP 4.x and PHP 5.x
-DEPENDS+= php5-bcmath-5.1.*:../../math/php-bcmath
-DEPENDS+= php5-bz2-5.1.*:../../archivers/php-bz2
-DEPENDS+= php5-calendar-5.1.*:../../misc/php-calendar
-DEPENDS+= php5-curl-5.1.*:../../www/php-curl
-DEPENDS+= php5-dba-5.1.*:../../databases/php-dba
-DEPENDS+= php5-dbase-5.1.*:../../databases/php-dbase
-DEPENDS+= php5-dbx-5.1.*:../../databases/php-dbx
-# eaccelerator doesn't compile/work with 5.1
-# DEPENDS+= php-eaccelerator-5.1.*:../../www/php-eaccelerator
-DEPENDS+= php5-exif-5.1.*:../../graphics/php-exif
-DEPENDS+= php5-filepro-5.1.*:../../databases/php-filepro
-DEPENDS+= php5-ftp-5.1.*:../../net/php-ftp
-DEPENDS+= php5-gd-5.1.*:../../graphics/php-gd
-DEPENDS+= php5-gettext-5.1.*:../../devel/php-gettext
-DEPENDS+= php5-gmp-5.1.*:../../devel/php-gmp
-DEPENDS+= php5-iconv-5.1.*:../../converters/php-iconv
-DEPENDS+= php5-imap-5.1.*:../../mail/php-imap
-DEPENDS+= php5-ldap-5.1.*:../../databases/php-ldap
-DEPENDS+= php5-mbstring-5.1.*:../../misc/php-mbstring
-DEPENDS+= php5-mcrypt-5.1.*:../../security/php-mcrypt
-DEPENDS+= php5-mhash-5.1.*:../../security/php-mhash
-DEPENDS+= php5-mssql-5.1.*:../../databases/php-mssql
-DEPENDS+= php5-mysql-5.1.*:../../databases/php-mysql
+DEPENDS+= php5-apc-5.2.*:../../www/php-apc
+DEPENDS+= php5-bcmath-5.2.*:../../math/php-bcmath
+DEPENDS+= php5-bz2-5.2.*:../../archivers/php-bz2
+DEPENDS+= php5-calendar-5.2.*:../../misc/php-calendar
+DEPENDS+= php5-curl-5.2.*:../../www/php-curl
+DEPENDS+= php5-dba-5.2.*:../../databases/php-dba
+DEPENDS+= php5-dbase-5.2.*:../../databases/php-dbase
+DEPENDS+= php5-dbx-5.2.*:../../databases/php-dbx
+DEPENDS+= php5-eaccelerator-5.2.*:../../www/php-eaccelerator
+DEPENDS+= php5-exif-5.2.*:../../graphics/php-exif
+# filepro extension removed in 5.2
+# DEPENDS+= php5-filepro-5.2.*:../../databases/php-filepro
+DEPENDS+= php5-ftp-5.2.*:../../net/php-ftp
+DEPENDS+= php5-gd-5.2.*:../../graphics/php-gd
+DEPENDS+= php5-gettext-5.2.*:../../devel/php-gettext
+DEPENDS+= php5-gmp-5.2.*:../../devel/php-gmp
+DEPENDS+= php5-iconv-5.2.*:../../converters/php-iconv
+DEPENDS+= php5-imap-5.2.*:../../mail/php-imap
+DEPENDS+= php5-json-5.2.*:../../textproc/php-json
+DEPENDS+= php5-ldap-5.2.*:../../databases/php-ldap
+DEPENDS+= php5-mbstring-5.2.*:../../misc/php-mbstring
+DEPENDS+= php5-mcrypt-5.2.*:../../security/php-mcrypt
+DEPENDS+= php5-mhash-5.2.*:../../security/php-mhash
+DEPENDS+= php5-mssql-5.2.*:../../databases/php-mssql
+DEPENDS+= php5-mysql-5.2.*:../../databases/php-mysql
# odbc kills Apache1 on startup due to threaded unixodbc
-# DEPENDS+= php5-odbc-5.1.*:../../databases/php-odbc
-DEPENDS+= php5-pcntl-5.1.*:../../devel/php-pcntl
-DEPENDS+= php5-pdflib-5.1.*:../../print/php-pdflib
-DEPENDS+= php5-pgsql-5.1.*:../../databases/php-pgsql
-DEPENDS+= php5-posix-5.1.*:../../devel/php-posix
-DEPENDS+= php5-shmop-5.1.*:../../devel/php-shmop
-DEPENDS+= php5-snmp-5.1.*:../../net/php-snmp
-DEPENDS+= php5-sockets-5.1.*:../../net/php-sockets
-DEPENDS+= php5-sqlite-5.1.*:../../databases/php-sqlite
-DEPENDS+= php5-sysvsem-5.1.*:../../devel/php-sysvsem
-DEPENDS+= php5-sysvshm-5.1.*:../../devel/php-sysvshm
-DEPENDS+= php5-wddx-5.1.*:../../textproc/php-wddx
-DEPENDS+= php5-xmlrpc-5.1.*:../../net/php-xmlrpc
-DEPENDS+= php5-zip-5.1.*:../../archivers/php-zip
-DEPENDS+= php5-zlib-5.1.*:../../archivers/php-zlib
+# DEPENDS+= php5-odbc-5.2.*:../../databases/php-odbc
+DEPENDS+= php5-pcntl-5.2.*:../../devel/php-pcntl
+DEPENDS+= php5-pdflib-5.2.*:../../print/php-pdflib
+DEPENDS+= php5-pgsql-5.2.*:../../databases/php-pgsql
+DEPENDS+= php5-posix-5.2.*:../../devel/php-posix
+DEPENDS+= php5-shmop-5.2.*:../../devel/php-shmop
+DEPENDS+= php5-snmp-5.2.*:../../net/php-snmp
+DEPENDS+= php5-sockets-5.2.*:../../net/php-sockets
+DEPENDS+= php5-sqlite-5.2.*:../../databases/php-sqlite
+DEPENDS+= php5-sysvsem-5.2.*:../../devel/php-sysvsem
+DEPENDS+= php5-sysvshm-5.2.*:../../devel/php-sysvshm
+DEPENDS+= php5-wddx-5.2.*:../../textproc/php-wddx
+DEPENDS+= php5-xmlrpc-5.2.*:../../net/php-xmlrpc
+DEPENDS+= php5-zip-5.2.*:../../archivers/php-zip
+DEPENDS+= php5-zlib-5.2.*:../../archivers/php-zlib
# PHP 5.x-only extensions
-DEPENDS+= php5-dom-5.1.*:../../textproc/php5-dom
-DEPENDS+= php5-mysqli-5.1.*:../../databases/php5-mysqli
-DEPENDS+= php5-soap-5.1.*:../../net/php5-soap
-DEPENDS+= php5-xsl-5.1.*:../../textproc/php5-xsl
-DEPENDS+= php5-pdo-5.1.*:../../databases/php-pdo
-DEPENDS+= php5-pdo_dblib-5.1.*:../../databases/php-pdo_dblib
-DEPENDS+= php5-pdo_mysql-5.1.*:../../databases/php-pdo_mysql
-DEPENDS+= php5-pdo_odbc-5.1.*:../../databases/php-pdo_odbc
-DEPENDS+= php5-pdo_pgsql-5.1.*:../../databases/php-pdo_pgsql
-DEPENDS+= php5-pdo_sqlite-5.1.*:../../databases/php-pdo_sqlite
+DEPENDS+= php5-dom-5.2.*:../../textproc/php5-dom
+DEPENDS+= php5-mysqli-5.2.*:../../databases/php5-mysqli
+DEPENDS+= php5-soap-5.2.*:../../net/php5-soap
+DEPENDS+= php5-xsl-5.2.*:../../textproc/php5-xsl
+DEPENDS+= php5-pdo-5.2.*:../../databases/php-pdo
+DEPENDS+= php5-pdo_dblib-5.2.*:../../databases/php-pdo_dblib
+DEPENDS+= php5-pdo_mysql-5.2.*:../../databases/php-pdo_mysql
+# odbc kills Apache1 on startup due to threaded unixodbc
+# DEPENDS+= php5-pdo_odbc-5.2.*:../../databases/php-pdo_odbc
+DEPENDS+= php5-pdo_pgsql-5.2.*:../../databases/php-pdo_pgsql
+DEPENDS+= php5-pdo_sqlite-5.2.*:../../databases/php-pdo_sqlite
EXTRACT_ONLY= # empty
NO_CHECKSUM= yes