From owner-svn-ports-all@freebsd.org Wed Jul 18 11:13:03 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6DF61044F5E; Wed, 18 Jul 2018 11:13:03 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 545B7752B9; Wed, 18 Jul 2018 11:13:03 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 342A519723; Wed, 18 Jul 2018 11:13:03 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6IBD3AA017488; Wed, 18 Jul 2018 11:13:03 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6IBD3PN017487; Wed, 18 Jul 2018 11:13:03 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201807181113.w6IBD3PN017487@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Wed, 18 Jul 2018 11:13:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474849 - head/Mk X-SVN-Group: ports-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: head/Mk X-SVN-Commit-Revision: 474849 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2018 11:13:03 -0000 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)