From 23aec4b8af42c438598342cb0847f3f542909ffd Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 9 Jun 2006 16:12:08 +0000 Subject: 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. --- pkgtools/pkg_install/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkgtools/pkg_install/Makefile') 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} -- cgit v1.2.3