From owner-freebsd-ports Sun Nov 10 23:10: 5 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADCCE37B401 for ; Sun, 10 Nov 2002 23:10:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2ADA43E6E for ; Sun, 10 Nov 2002 23:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAB7A1x3006210 for ; Sun, 10 Nov 2002 23:10:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAB7A1Zu006209; Sun, 10 Nov 2002 23:10:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D52D137B401 for ; Sun, 10 Nov 2002 23:08:43 -0800 (PST) Received: from postoffice.aims.com.au (eth0.lnk.aims.com.au [203.31.73.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id E31FC43E42 for ; Sun, 10 Nov 2002 23:08:41 -0800 (PST) (envelope-from chris@aims.com.au) Received: from ait0fd01.aims.private (ait0fd01.aims.private [192.168.10.254]) by postoffice.aims.com.au with ESMTP id gAB78ZgN017905; Mon, 11 Nov 2002 18:08:35 +1100 (EST) (envelope-from chris@aims.com.au) Received: from ait0fd01.aims.private (localhost [127.0.0.1]) by ait0fd01.aims.private (8.12.6/8.12.6) with ESMTP id gAB78ZVa086413; Mon, 11 Nov 2002 18:08:35 +1100 (EST) (envelope-from chris@aims.com.au) Received: (from root@localhost) by ait0fd01.aims.private (8.12.6/8.12.6/Submit) id gAB78YbC086412; Mon, 11 Nov 2002 18:08:34 +1100 (EST) Message-Id: <200211110708.gAB78YbC086412@ait0fd01.aims.private> Date: Mon, 11 Nov 2002 18:08:34 +1100 (EST) From: Chris Knight Reply-To: Chris Knight To: FreeBSD-gnats-submit@FreeBSD.org Cc: chris@aims.com.au X-Send-Pr-Version: 3.113 Subject: ports/45205: [PATCH] www/mod_php4: Fix OpenSSL use for older systems 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: 45205 >Category: ports >Synopsis: [PATCH] www/mod_php4: Fix OpenSSL use for older systems >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 10 23:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Chris Knight >Release: FreeBSD 4.7-RELEASE i386 >Organization: AIMS Independent Computer Professionals >Environment: System: FreeBSD ait0fd01.aims.private 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Sun Oct 13 19:17:31 EST 2002 root@ait0fd01.aims.private:/var/obj/usr/src/sys/THINKPAD i386 >Description: Allow mod_php4 to use the newer OpenSSL port on older systems where replacing the base OpenSSL is not an option. >How-To-Repeat: N/A >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/mod_php4/Makefile,v retrieving revision 1.178 diff -u -r1.178 Makefile --- Makefile 10 Sep 2002 11:26:49 -0000 1.178 +++ Makefile 11 Nov 2002 06:28:43 -0000 @@ -83,6 +83,13 @@ PHP4_OPTIONS="${PHP4_OPTIONS}" \ REALCURDIR="${.CURDIR}" +.include + +.if ${OSVERSION} < 430000 || exists(${LOCALBASE}/lib/libcrypto.so.3) +OPENSSLBASE= ${LOCALBASE} +LIB_DEPENDS+= crypto.3:${PORTSDIR}/security/openssl +.endif + pre-fetch: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php .if !defined(STANDALONE) && !defined(WITH_APACHE2) @@ -120,4 +127,4 @@ .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif -.include +.include >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message