summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant>2003-04-15 19:51:21 +0000
committergrant <grant>2003-04-15 19:51:21 +0000
commit99d3f117f08b8bea60346c1f7fad6423376f7edb (patch)
treeb01c0200d440d51349a40ad57da71f6130c791df /mk
parent5b5505d451999c92ca01b35474783298500e52b4 (diff)
downloadpkgsrc-99d3f117f08b8bea60346c1f7fad6423376f7edb.tar.gz
only add ${LOCALPATCHES}/${PKGPATH}/* to the list of patches to apply
if LOCALPATCHES is defined. fixes problem on Solaris w/ automounter handling /net, where any package from the 'net' category would cause a blocking read on /net/pkgname looking for 'pkgname' as a host exporting NFS file systems (saves a few useless stat() calls, too).
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index b0d052d48af..ffd379aeb11 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1167 2003/04/15 05:29:45 grant Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1168 2003/04/15 19:51:21 grant Exp $
#
# This file is in the public domain.
#
@@ -1749,8 +1749,10 @@ do-extract: ${WRKDIR}
# hierarchy as the pkgsrc tree, i.e. local patches for www/apache
# would be found as ${LOCALPATCHES}/www/apache/*.
#
+.if defined(LOCALPATCHES)
_DFLT_LOCALPATCHFILES= ${LOCALPATCHES}/${PKGPATH}/*
_LOCALPATCHFILES= ${_DFLT_LOCALPATCHFILES}
+.endif
.if !target(do-patch)
do-patch: uptodate-digest