summaryrefslogtreecommitdiff
path: root/mk/license.mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-01-16 13:13:14 +0000
committerwiz <wiz@pkgsrc.org>2011-01-16 13:13:14 +0000
commit387aab48fd92653c2c4f62189d7eca2b2a4ab33a (patch)
treeb763c057459166cdc8052da47c41f44638d6d35e /mk/license.mk
parentad366a44ee62db6a80f2688ec0d45a7e6ead9fc8 (diff)
downloadpkgsrc-387aab48fd92653c2c4f62189d7eca2b2a4ab33a.tar.gz
Improve output when license (combination) is not accepted by user.
Diffstat (limited to 'mk/license.mk')
-rw-r--r--mk/license.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/mk/license.mk b/mk/license.mk
index 9460bd9b06d..dc5dcc42e3f 100644
--- a/mk/license.mk
+++ b/mk/license.mk
@@ -1,4 +1,4 @@
-# $NetBSD: license.mk,v 1.36 2011/01/13 13:25:56 wiz Exp $
+# $NetBSD: license.mk,v 1.37 2011/01/16 13:13:14 wiz Exp $
#
# This file handles everything about the LICENSE variable. It is
# included automatically by bsd.pkg.mk.
@@ -169,7 +169,7 @@ _PKG_INSTALL_CONF?= ${PREFIX}/etc/pkg_install.conf
. if empty(LICENSE:MAND) && empty(LICENSE:MOR) && empty(LICENSE:M*[()]*)
PKG_FAIL_REASON+= "${PKGNAME} has an unacceptable license condition: " \
" "${LICENSE:Q} \
- "You can mark the license \`\`license'' as acceptable by adding" \
+ "You can mark the license \`\`${LICENSE}'' as acceptable by adding" \
" ACCEPTABLE_LICENSES+= ${LICENSE}" \
"to ${_MAKE_CONF} or by adding" \
" ACCEPTABLE_LICENSES= ${LICENSE}" \
@@ -179,10 +179,12 @@ PKG_FAIL_REASON+= "The following command will show you the license text:" \
. else
PKG_FAIL_REASON+= "${PKGNAME} has an unacceptable license condition: " \
" "${LICENSE:Q} \
- "You can mark the license \`\`license'' as acceptable by adding" \
- " ACCEPTABLE_LICENSES+= license" \
+ "" \
+ "Check that you have accepted all necessary licenses." \
+ "You can mark a particular license \`\`foo'' as acceptable by adding" \
+ " ACCEPTABLE_LICENSES+= foo" \
"to ${_MAKE_CONF} or by adding" \
- " ACCEPTABLE_LICENSES= license" \
+ " ACCEPTABLE_LICENSES= foo" \
"to ${_PKG_INSTALL_CONF}."
. endif