diff options
author | jlam <jlam> | 2006-06-09 16:12:08 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-06-09 16:12:08 +0000 |
commit | ed8d883dfa46cc6b8af15fd2be523cc5d1aa0533 (patch) | |
tree | af95f72bd6e0f55ae53e0ac5ad2b64683832ca7d /pkgtools/pkg_install | |
parent | 393f54efda0c79fe369ff4983e220cea99f2b000 (diff) | |
download | pkgsrc-ed8d883dfa46cc6b8af15fd2be523cc5d1aa0533.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')
-rw-r--r-- | pkgtools/pkg_install/Makefile | 10 |
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} |