Date: Wed, 18 Jul 2018 11:13:03 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474849 - head/Mk Message-ID: <201807181113.w6IBD3PN017487@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Wed Jul 18 11:13:02 2018 New Revision: 474849 URL: https://svnweb.freebsd.org/changeset/ports/474849 Log: Start a debug-license target. Modified: head/Mk/bsd.licenses.mk (contents, props changed) Modified: head/Mk/bsd.licenses.mk ============================================================================== --- head/Mk/bsd.licenses.mk Wed Jul 18 10:22:00 2018 (r474848) +++ head/Mk/bsd.licenses.mk Wed Jul 18 11:13:02 2018 (r474849) @@ -575,6 +575,36 @@ clean-for-cdrom-list: IGNORE= License ${_LICENSE} needs confirmation, but BATCH is defined .endif +# This should probably be incrementally done while parsing all the license +# possibilities. +debug-license: check-license +.if ${_LICENSE_PERMS:Mdist-mirror} + @${ECHO_MSG} "===> License allows mirroring distribution files" +.else + @${ECHO_MSG} "===> License does not allows mirroring distribution files" +.endif +.if ${_LICENSE_PERMS:Mdist-sell} + @${ECHO_MSG} "===> License allows selling distribution files" +.else + @${ECHO_MSG} "===> License does not allows selling distribution files" +.endif +.if ${_LICENSE_PERMS:Mpkg-mirror} + @${ECHO_MSG} "===> License allows mirroring pre-built packages" +.else + @${ECHO_MSG} "===> License does not allows selling pre-build packages" +.endif +.if ${_LICENSE_PERMS:Mpkg-sell} + @${ECHO_MSG} "===> License allows selling pre-build packages" +.else + @${ECHO_MSG} "===> License does not allows selling pre-build packages" +.endif +.if ${_LICENSE_PERMS:Mauto-accept} + @${ECHO_MSG} "===> License allows being auto-accepted" +.else + @${ECHO_MSG} "===> License does not allows being auto-accepted" +.endif + + check-license: .if defined(_LICENSE_ERROR) @${ECHO_MSG} "===> License not correctly defined: ${_LICENSE_ERROR}" @@ -771,6 +801,11 @@ install-license: .endif .else # !LICENSE + +debug-license: +. if defined(LICENSE_VERBOSE) + @${ECHO_MSG} "===> License debug empty, port has not defined LICENSE" +. endif check-license: . if defined(LICENSE_VERBOSE)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807181113.w6IBD3PN017487>