pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php5 Update php5 to 5.0.4nb1 to address XML_RPC s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47f12e63627c
branches:  trunk
changeset: 498790:47f12e63627c
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sat Sep 03 13:37:36 2005 +0000

description:
Update php5 to 5.0.4nb1 to address XML_RPC security issue(s)
Fix based on work done by tron@ for the PHP 4.x branch fix
PLIST fixup to correctly remove @PREFIX@/lib/php

diffstat:

 lang/php5/Makefile |  16 +++++++++++++---
 lang/php5/PLIST    |   4 +++-
 lang/php5/distinfo |   5 ++++-
 3 files changed, 20 insertions(+), 5 deletions(-)

diffs (80 lines):

diff -r ad7130e09e21 -r 47f12e63627c lang/php5/Makefile
--- a/lang/php5/Makefile        Sat Sep 03 12:51:10 2005 +0000
+++ b/lang/php5/Makefile        Sat Sep 03 13:37:36 2005 +0000
@@ -1,15 +1,15 @@
-# $NetBSD: Makefile,v 1.13 2005/05/22 20:08:10 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2005/09/03 13:37:36 adrianp Exp $
 #
 
 PKGNAME=               php-${PHP_BASE_VERS}
-PKGREVISION=           # empty
+PKGREVISION=           1
 CATEGORIES=            lang
 
 HOMEPAGE=              http://www.php.net/
 COMMENT=               PHP Hypertext Preprocessor version 5
 
 USE_PKGINSTALL=                YES
-USE_TOOLS+=            gmake
+USE_TOOLS+=            gmake gzcat
 LIBTOOL_OVERRIDE=      # empty
 
 .include "Makefile.php"
@@ -17,9 +17,19 @@
 CGIDIR=                        ${PREFIX}/libexec/cgi-bin
 EGDIR=                 ${PREFIX}/share/examples/php
 
+EXTRACT_ONLY=                  ${DISTNAME}${EXTRACT_SUFX}
+XMLRPC_DISTFILE=               XML_RPC-1.4.0.tgz
+SITES_${XMLRPC_DISTFILE}=      http://pear.php.net/get/
+DISTFILES=                     ${EXTRACT_ONLY} ${XMLRPC_DISTFILE}
+
 CONF_FILES=            ${EGDIR}/php.ini-recommended ${PKG_SYSCONFDIR}/php.ini
 OWN_DIRS=              ${PREFIX}/${PHP_EXTENSION_DIR}
 
+post-extract:
+       ${RM} -f ${WRKSRC}/pear/packages/XML_RPC-1.2.2.tar
+       ${GZCAT} ${DISTDIR}/${XMLRPC_DISTFILE} \
+               >${WRKSRC}/pear/packages/${XMLRPC_DISTFILE:S/.tgz/.tar/}
+
 post-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${PREFIX}/bin/php
        ${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 ${PREFIX}/man/man1/php.1
diff -r ad7130e09e21 -r 47f12e63627c lang/php5/PLIST
--- a/lang/php5/PLIST   Sat Sep 03 12:51:10 2005 +0000
+++ b/lang/php5/PLIST   Sat Sep 03 13:37:36 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2005/04/11 20:16:02 jdolecek Exp $
+@comment $NetBSD: PLIST,v 1.6 2005/09/03 13:37:36 adrianp Exp $
 bin/pear
 bin/php
 bin/php-config
@@ -293,6 +293,7 @@
 @dirrm lib/php/test/HTML_Template_IT/tests/templates
 @dirrm lib/php/test/HTML_Template_IT/tests
 @dirrm lib/php/test/HTML_Template_IT
+@dirrm lib/php/test
 @dirrm lib/php/doc/HTML_Template_IT/examples/templates
 @dirrm lib/php/doc/HTML_Template_IT/examples
 @dirrm lib/php/doc/HTML_Template_IT
@@ -336,3 +337,4 @@
 @dirrm include/php/Zend
 @dirrm include/php/TSRM
 @dirrm include/php
+@unexec ${RMDIR} %D/lib/php 2>/dev/null || ${TRUE}
diff -r ad7130e09e21 -r 47f12e63627c lang/php5/distinfo
--- a/lang/php5/distinfo        Sat Sep 03 12:51:10 2005 +0000
+++ b/lang/php5/distinfo        Sat Sep 03 13:37:36 2005 +0000
@@ -1,8 +1,11 @@
-$NetBSD: distinfo,v 1.6 2005/04/11 20:16:02 jdolecek Exp $
+$NetBSD: distinfo,v 1.7 2005/09/03 13:37:36 adrianp Exp $
 
 SHA1 (php-5.0.4.tar.bz2) = 37780b89acbc492e0e5c0ace956d1dc1e93bf779
 RMD160 (php-5.0.4.tar.bz2) = c0e0126637527d2e7352b123e102a4231349784e
 Size (php-5.0.4.tar.bz2) = 4731383 bytes
+SHA1 (XML_RPC-1.4.0.tgz) = 461f0b70675a37f524043d19078e9c0502dd13ac
+RMD160 (XML_RPC-1.4.0.tgz) = 8647565c7fa973ac800683d91c32d781fce9437c
+Size (XML_RPC-1.4.0.tgz) = 26776 bytes
 SHA1 (patch-aj) = cc68ce876dc5998becbe2f1f74288b5da5bbaca3
 SHA1 (patch-ak) = 0faa523103e0a9a3c01c78c2fe9a64c0a9b2fc43
 SHA1 (patch-al) = 28ad9006b387e2b9984ad49beea21c9d46e63b46



Home | Main Index | Thread Index | Old Index