aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.sanity.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-04-09 17:34:02 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-04-09 17:34:02 +0000
commit4c651a67d359ca0d9b38d87cfcd87361a92d8150 (patch)
tree7bfbbbc7c74644bbecb0dffac51fcbb9a6214b2f /Mk/bsd.sanity.mk
parentd996228059c73b3242d3e4c5001dc1c51a1ebb73 (diff)
downloadports-4c651a67d359ca0d9b38d87cfcd87361a92d8150.tar.gz
ports-4c651a67d359ca0d9b38d87cfcd87361a92d8150.zip
Follow-up the check added in r383191 for validating the first CATEGORY so it
does not error when using ports outside of PORTSDIR and the general ports directory structure. With hat: portmgr Tested by: amdmi3, danfe Reported by: amdmi3
Notes
Notes: svn path=/head/; revision=383665
Diffstat (limited to 'Mk/bsd.sanity.mk')
-rw-r--r--Mk/bsd.sanity.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.sanity.mk b/Mk/bsd.sanity.mk
index a6dff4db423f..f182bb70e6d8 100644
--- a/Mk/bsd.sanity.mk
+++ b/Mk/bsd.sanity.mk
@@ -15,9 +15,13 @@ WARNING+= "WITH_NEW_XORG and WITHOUT_NEW_XORG knobs were removed and have no eff
WARNING+= "WITH_KMS was removed and has no effect"
.endif
+.if ${.CURDIR:M${PORTSDIR}*}
.if ${.CURDIR:H:T} != ${PKGCATEGORY}
DEV_ERROR+= "The first entry in CATEGORIES should be the directory where the port lives"
.endif
+.else
+WARNING+= "Not validating first entry in CATEGORIES due to being outside of PORTSDIR. Please ensure this is proper when committing."
+.endif
#.if defined(WITHOUT_X11)
#WARNING+= "WITHOUT_X11 is deprecated use X11 option instead"