pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk
Module Name: pkgsrc
Committed By: wiz
Date: Sat Feb 4 08:38:28 UTC 2023
Modified Files:
pkgsrc/mk: bsd.pkg.mk license.mk
Log Message:
mk: add show-license-status target
This shows the current license name and if it is in ACCEPTABLE_LICENSES
and/or DEFAULT_ACCEPTABLE_LICENSES
To generate a diff of this commit:
cvs rdiff -u -r1.2048 -r1.2049 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -u -r1.115 -r1.116 pkgsrc/mk/license.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/bsd.pkg.mk
diff -u pkgsrc/mk/bsd.pkg.mk:1.2048 pkgsrc/mk/bsd.pkg.mk:1.2049
--- pkgsrc/mk/bsd.pkg.mk:1.2048 Tue Jan 24 14:31:46 2023
+++ pkgsrc/mk/bsd.pkg.mk Sat Feb 4 08:38:28 2023
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.2048 2023/01/24 14:31:46 wiz Exp $
+# $NetBSD: bsd.pkg.mk,v 1.2049 2023/02/04 08:38:28 wiz Exp $
#
# This file is in the public domain.
#
@@ -759,6 +759,19 @@ show-license show-licence: .PHONY
fi
.endif
+.if !target(show-license-status)
+show-license-status show-licence-status: .PHONY
+ @${ECHO} "The license of this package is ${LICENSE}."
+.if ${DEFAULT_ACCEPTABLE_LICENSES:M${LICENSE}}
+ @${ECHO}; \
+ ${ECHO} "This license is in DEFAULT_ACCEPTABLE_LICENSES."
+.endif
+.if ${ACCEPTABLE_LICENSES:M${LICENSE}}
+ @${ECHO}; \
+ ${ECHO} "This license is in ACCEPTABLE_LICENSES."
+.endif
+.endif
+
# This target is defined in bsd.options.mk for packages that use
# the options framework.
.if !target(show-options)
Index: pkgsrc/mk/license.mk
diff -u pkgsrc/mk/license.mk:1.115 pkgsrc/mk/license.mk:1.116
--- pkgsrc/mk/license.mk:1.115 Fri Jul 15 00:51:13 2022
+++ pkgsrc/mk/license.mk Sat Feb 4 08:38:28 2023
@@ -1,4 +1,4 @@
-# $NetBSD: license.mk,v 1.115 2022/07/15 00:51:13 gutteridge Exp $
+# $NetBSD: license.mk,v 1.116 2023/02/04 08:38:28 wiz Exp $
#
# This file handles everything about the LICENSE variable. It is
# included automatically by bsd.pkg.mk.
@@ -10,6 +10,14 @@
# XXX: Some of this content arguably belongs in the pkgsrc guide
# instead.
#
+# The following targets are provided in connection with this file:
+#
+# show-license displaythe license for the current package
+#
+# show-license-status show license name and if it is part of
+# ACCEPTABLE_LICENSES and
+# DEFAULT_ACCEPTABLE_LICENSES
+#
# User-settable variables:
#
# ACCEPTABLE_LICENSES
Home |
Main Index |
Thread Index |
Old Index