Mk/bsd.openssl.mk optimization

V.Chukharev chukharev at mail.ru
Tue Jul 29 19:50:41 UTC 2008


Another patch, just one line. It can be applied independently from the patch
for bsd.port.subdir.mk.

=============
--- /usr/ports/Mk/bsd.openssl.mk.orig	2008-07-23 09:14:29.000000000 +0300
+++ /usr/ports/Mk/bsd.openssl.mk	2008-07-29 20:35:05.000000000 +0300
@@ -121,7 +121,7 @@
 	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!=	find "${PKG_DBDIR}" -type f -name "+CONTENTS" -print0 | xargs -0 grep -l "^lib/libssl.so." | \
 			while read contents; do \
 				sslprefix=`grep "^@cwd " "$${contents}" | ${HEAD} -n 1`; \
 				if test "$${sslprefix}" = "@cwd ${LOCALBASE}" ; then \
=============

Best regards,
Vladimir

-- 
V. Chukharev


More information about the freebsd-ports mailing list