summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-09 16:12:08 +0000
committerjlam <jlam>2006-06-09 16:12:08 +0000
commit23aec4b8af42c438598342cb0847f3f542909ffd (patch)
treeaf95f72bd6e0f55ae53e0ac5ad2b64683832ca7d /pkgtools/pkg_install/Makefile
parent5a926de9606f93e6f1b697097701ee2a672e2ce8 (diff)
downloadpkgsrc-23aec4b8af42c438598342cb0847f3f542909ffd.tar.gz
Add a new variable CHECK_FILES_SUPPORTED which is a package-settable
variable to show whether the package supports running the check-files target. Set CHECK_FILES_SUPPORTED to "no" in pkgtools/pkg_install in the case where the PREFIX does not match ${LOCALBASE} it's likely the tools are being installed in some place that's completely outside pkgsrc control, and check-files fails horribly in that case.
Diffstat (limited to 'pkgtools/pkg_install/Makefile')
-rw-r--r--pkgtools/pkg_install/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index dc6b8ee596e..05e803122ed 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.125 2006/03/14 01:14:32 jlam Exp $
+# $NetBSD: Makefile,v 1.126 2006/06/09 16:12:08 jlam Exp $
# Notes to package maintainers:
#
@@ -79,6 +79,14 @@ VERSION!= ${AWK} -F '"' '/PKGTOOLS_VERSION/ {print $$2}' \
PKGMANDIR= share/man
.endif
+# If ${PKG_TOOLS_PREFIX} doesn't match ${LOCALBASE}, then don't run
+# check-files since it's likely ${PKG_TOOLS_PREFIX} contains directories
+# that shouldn't be checked.
+#
+.if ${PKG_TOOLS_PREFIX} != ${LOCALBASE}
+CHECK_FILES_SUPPORTED= no
+.endif
+
do-extract:
@${CP} -R ${FILESDIR} ${WRKSRC}