git: 6e8f1c2531e2 - main - archivers/7-zip: add license and cpe info

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Sat, 11 Dec 2021 12:15:12 UTC
The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6e8f1c2531e29a797cb716248b6472c3a125bcec

commit 6e8f1c2531e29a797cb716248b6472c3a125bcec
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2021-12-10 22:13:02 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2021-12-11 12:14:40 +0000

    archivers/7-zip: add license and cpe info
---
 archivers/7-zip/Makefile | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/archivers/7-zip/Makefile b/archivers/7-zip/Makefile
index 1be9bc4e5268..d40fb1080e21 100644
--- a/archivers/7-zip/Makefile
+++ b/archivers/7-zip/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	7-zip
 DISTVERSION=	21.06
+PORTREVISION=	1
 CATEGORIES=	archivers
 MASTER_SITES=	https://www.7-zip.org/a/
 DISTNAME=	7z${DISTVERSION:S/.//}-src
@@ -7,9 +8,19 @@ DISTNAME=	7z${DISTVERSION:S/.//}-src
 MAINTAINER=	makc@FreeBSD.org
 COMMENT=	Console version of the 7-Zip file archiver
 
+LICENSE=	BSD3CLAUSE LGPL21+ UNRAR
+LICENSE_COMB=	multi
+LICENSE_NAME_UNRAR=	unRAR license
+LICENSE_FILE_BSD3CLAUSE=	${WRKSRC}/DOC/License.txt
+LICENSE_FILE_LGPL21+ =	${WRKSRC}/DOC/copying.txt
+LICENSE_FILE_UNRAR=	${WRKSRC}/DOC/unRarLicense.txt
+LICENSE_PERMS_UNRAR=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
 LIB_DEPENDS=	libsysinfo.so:devel/libsysinfo
 
-USES=		7z dos2unix gmake localbase
+USES=		7z cpe dos2unix gmake localbase
+
+CPE_VENDOR=	7-zip
 
 MAKEFILE=	../../cmpl_clang.mak
 MAKE_ARGS=	LOCAL_FLAGS="${CFLAGS}" \
@@ -22,8 +33,8 @@ DOS2UNIX_FILES=	CPP/7zip/7zip_gcc.mak \
 		CPP/Windows/SystemInfo.cpp
 
 PLIST_FILES=	bin/7zz
-PORTDOCS=	7zC.txt 7zFormat.txt Methods.txt lzma.txt readme.txt \
-		src-history.txt
+PORTDOCS=	7zC.txt 7zFormat.txt License.txt Methods.txt \
+		lzma.txt readme.txt src-history.txt
 
 OPTIONS_DEFINE=	DOCS