From 2d78d2b61d9c17ff5cca9a80dcebe003ec613393 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Sun, 30 Mar 2008 11:36:47 +0000 Subject: [PATCH] - remove OPENSSL_OVERWRITE_BASE Suggestet by: tmclaugh - ignore returncode from grep to be kind to portmaster --- Mk/bsd.openssl.mk | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk index e0fa3f6bb7b7..2527f4c3db9c 100644 --- a/Mk/bsd.openssl.mk +++ b/Mk/bsd.openssl.mk @@ -2,7 +2,7 @@ # Date created: 31 May 2002 # Whom: dinoex # -# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.36 2007-08-06 10:39:24 dinoex Exp $ +# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.37 2008-03-30 11:36:47 dinoex Exp $ # # Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk # @@ -52,9 +52,8 @@ WITH_OPENSSL_STABLE=yes !defined(WITH_OPENSSL_BETA) && \ !defined(WITH_OPENSSL_PORT) && \ !defined(WITH_OPENSSL_STABLE) && \ - !defined(OPENSSL_OVERWRITE_BASE) && \ - !exists(${LOCALBASE}/lib/libcrypto.so) && \ - exists(/usr/include/openssl/opensslv.h) + !exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \ + exists(${DESTDIR}/usr/include/openssl/opensslv.h) WITH_OPENSSL_BASE=yes .endif @@ -119,10 +118,10 @@ OPENSSL_SHLIBVER?= 3 .endif .else .if !defined(OPENSSL_PORT) && \ - exists(${LOCALBASE}/lib/libcrypto.so) + exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) # find installed port and use it for dependency PKG_DBDIR?= ${DESTDIR}/var/db/pkg -OPENSSL_INSTALLED!= grep -l -r "^lib/libssl.so." "${PKG_DBDIR}" | \ +OPENSSL_INSTALLED!= -grep -l -r "^lib/libssl.so." "${PKG_DBDIR}" | \ while read contents; do \ sslprefix=`grep "^@cwd " "$${contents}" | ${HEAD} -n 1`; \ if test "$${sslprefix}" = "@cwd ${LOCALBASE}" ; then \