From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 17 01:10:19 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D93B16A47D for ; Sat, 17 Jun 2006 01:10:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CF0F43D48 for ; Sat, 17 Jun 2006 01:10:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k5H1AIaL042778 for ; Sat, 17 Jun 2006 01:10:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k5H1AIJX042773; Sat, 17 Jun 2006 01:10:18 GMT (envelope-from gnats) Resent-Date: Sat, 17 Jun 2006 01:10:18 GMT Resent-Message-Id: <200606170110.k5H1AIJX042773@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexandr Kovalenko Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E08516A474 for ; Sat, 17 Jun 2006 01:00:35 +0000 (UTC) (envelope-from never@kurush.osdn.org.ua) Received: from kurush.osdn.org.ua (external.osdn.org.ua [212.40.34.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CE4D43D45 for ; Sat, 17 Jun 2006 01:00:34 +0000 (GMT) (envelope-from never@kurush.osdn.org.ua) Received: from kurush.osdn.org.ua (never@localhost [127.0.0.1]) by kurush.osdn.org.ua (8.12.11/8.12.11) with ESMTP id k5H10Vda065769 for ; Sat, 17 Jun 2006 04:00:33 +0300 (EEST) (envelope-from never@kurush.osdn.org.ua) Received: (from never@localhost) by kurush.osdn.org.ua (8.12.11/8.12.11/Submit) id k5H10V6q065763; Sat, 17 Jun 2006 04:00:31 +0300 (EEST) (envelope-from never) Message-Id: <200606170100.k5H10V6q065763@kurush.osdn.org.ua> Date: Sat, 17 Jun 2006 04:00:31 +0300 (EEST) From: Alexandr Kovalenko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/99067: [PATCH] finance/php4-pfpro: fix default certificate path X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexandr Kovalenko List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 01:10:19 -0000 >Number: 99067 >Category: ports >Synopsis: [PATCH] finance/php4-pfpro: fix default certificate path >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Jun 17 01:10:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Alexandr Kovalenko >Release: FreeBSD 6.1-RELEASE-p1 i386 >Organization: PortaOne, Inc., http://portaone.com/ >Environment: System: FreeBSD mile.zukabuka.com 6.1-RELEASE-p1 FreeBSD 6.1-RELEASE-p1 #0: Mon Jun 12 19:58:45 EEST 2006 root@mile.zukabuka.com:/usr/obj/usr/src/sys/mile i386 >Description: Fix default certificates path to be in sync with PR/98996. >How-To-Repeat: N/A >Fix: Apply following patch in /usr/ports --- /dev/null Wed Dec 31 16:00:00 1969 +++ finance/php4-pfpro/files/patch-pfpro.c Fri Jun 16 17:19:35 2006 @@ -0,0 +1,35 @@ +--- pfpro.c.orig Sun Jan 1 05:46:56 2006 ++++ pfpro.c Fri Jun 16 17:18:05 2006 +@@ -80,6 +80,7 @@ + STD_PHP_INI_ENTRY("pfpro.proxyport", "", PHP_INI_ALL, OnUpdateInt, proxyport, zend_pfpro_globals, pfpro_globals) + STD_PHP_INI_ENTRY("pfpro.proxylogon", "", PHP_INI_ALL, OnUpdateString, proxylogon, zend_pfpro_globals, pfpro_globals) + STD_PHP_INI_ENTRY("pfpro.proxypassword", "", PHP_INI_ALL, OnUpdateString, proxypassword, zend_pfpro_globals, pfpro_globals) ++ STD_PHP_INI_ENTRY("pfpro.certpath", "%%PREFIX%%/etc/pfpro/certs", PHP_INI_ALL, OnUpdateString, certpath, zend_pfpro_globals, pfpro_globals) + PHP_INI_END() + + /* {{{ php_extname_init_globals +@@ -94,6 +95,7 @@ + pfpro_globals->proxyport = 0; + pfpro_globals->proxylogon = NULL; + pfpro_globals->proxypassword = NULL; ++ pfpro_globals->certpath = NULL; + } + /* }}} */ + +@@ -133,6 +135,7 @@ + php_info_print_table_start(); + php_info_print_table_row(2, "Verisign Payflow Pro support", "enabled"); + php_info_print_table_row(2, "libpfpro version", pfproVersion()); ++ php_info_print_table_row(2, "pfpro.certpath", PFPROG(certpath)); + php_info_print_table_end(); + + DISPLAY_INI_ENTRIES(); +@@ -158,6 +161,8 @@ + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } ++ ++ setenv("PFPRO_CERT_PATH", PFPROG(certpath), 0); + + pfproInit(); + --- lang/php4/Makefile.ext Fri Jun 16 17:26:40 2006 +++ lang/php4/Makefile.ext Fri Jun 16 17:43:28 2006 @@ -267,6 +267,8 @@ .if ${PHP_MODNAME} == "pfpro" BUILD_DEPENDS+= ${LOCALBASE}/lib/libpfpro.so:${PORTSDIR}/finance/pfpro CONFIGURE_ARGS+=--with-pfpro=${LOCALBASE} +post-patch: + @${REINPLACE_CMD} "s|%%PREFIX%%|${LOCALBASE}|" ${WRKSRC}/pfpro.c .endif .if ${PHP_MODNAME} == "pgsql" >Release-Note: >Audit-Trail: >Unformatted: