summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-03-02 08:54:41 +0000
committerobache <obache@pkgsrc.org>2014-03-02 08:54:41 +0000
commit5216d6f569cbd1dcc29e6111caa3c4c5f23cd21d (patch)
tree0b0372c7e8e3e0f69cbb825eda8ac8914759deba /mk/bsd.pkg.mk
parentab8c34862d06d5fec6a8509dc40eec1c51266039 (diff)
downloadpkgsrc-5216d6f569cbd1dcc29e6111caa3c4c5f23cd21d.tar.gz
loose mandantory DISTNAME.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index ae9ddb9fcde..9ace88d234e 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1993 2013/07/15 20:22:15 christos Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1994 2014/03/02 08:54:41 obache Exp $
#
# This file is in the public domain.
#
@@ -133,8 +133,12 @@ PKG_FAIL_REASON+= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite
PKG_FAIL_REASON+= "This package doesn't support PKG_INSTALLATION_TYPE=${PKG_INSTALLATION_TYPE}."
.endif
-.if !defined(CATEGORIES) || !defined(DISTNAME)
-PKG_FAIL_REASON+='CATEGORIES and DISTNAME are mandatory.'
+.if !defined(CATEGORIES)
+PKG_FAIL_REASON+='CATEGORIES are mandatory.'
+.endif
+
+.if !defined(PKGNAME) && !defined(DISTNAME)
+PKG_FAIL_REASON+='PKGNAME and/or DISTNAME are mandatory.'
.endif
.if defined(PKG_PATH)