Re: git: 2622703703e6 - main - license: Add a non applicable (NA) license only for metaports

From: Po-Chuan Hsieh <sunpoet_at_freebsd.org>
Date: Sat, 27 Aug 2022 04:42:22 UTC
On Fri, Aug 26, 2022 at 8:00 PM Baptiste Daroussin <bapt@freebsd.org> wrote:

> The branch main has been updated by bapt:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=2622703703e68725c5b753ada8f1d0f9837f0403
>
> commit 2622703703e68725c5b753ada8f1d0f9837f0403
> Author:     Baptiste Daroussin <bapt@FreeBSD.org>
> AuthorDate: 2022-08-26 09:36:43 +0000
> Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
> CommitDate: 2022-08-26 12:00:32 +0000
>
>     license: Add a non applicable (NA) license only for metaports


>     PR:     223932
>     Reviewed by:    mat
>     Differential Revision:  https://reviews.freebsd.org/D36358


Hi Bapt,

Line 112 and 114 of Mk/bsd.sanity.mk can be removed after adding NA license
for metaports.

from Mk/bsd.sanity.mk:
107 .if defined(LICENSE)
108 .  if ${LICENSE:MBSD}
109 DEV_WARNING+=   "LICENSE must not contain BSD, instead use
BSD[234]CLAUSE"
110 .  endif
111 .elif !defined(DISABLE_LICENSES)
112 .  if empty(USES:Mmetaport)
113 DEV_WARNING+=   "Please set LICENSE for this port"
114 .  endif
115 .endif


>
> ---
>  Mk/Uses/metaport.mk | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/Mk/Uses/metaport.mk b/Mk/Uses/metaport.mk
> index 29794872bdbb..a85c348db85a 100644
> --- a/Mk/Uses/metaport.mk
> +++ b/Mk/Uses/metaport.mk
> @@ -8,6 +8,10 @@
>  .if !defined(_INCLUDE_USES_METAPORT_MK)
>  _INCLUDE_USES_METAPORT_MK=     yes
>
> +LICENSE=       NA
> +LICENSE_NAME=  Non applicable
> +LICENSE_TEXT=  No license are applicable to metaports
> +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
>  MASTER_SITES=  #
>  DISTFILES=     #
>  EXTRACT_ONLY=  #
>
>