git: e8b5d0d153ba - main - security/arti: Add "full" flavor, improve description

From: Carlo Strub <cs_at_FreeBSD.org>
Date: Sat, 01 Mar 2025 13:59:28 UTC
The branch main has been updated by cs:

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

commit e8b5d0d153ba90af7a9c73143d529448f078862a
Author:     Carlo Strub <cs@FreeBSD.org>
AuthorDate: 2025-03-01 13:29:19 +0000
Commit:     Carlo Strub <cs@FreeBSD.org>
CommitDate: 2025-03-01 13:58:49 +0000

    security/arti: Add "full" flavor, improve description
    
    Arti crate offers the default or a full feature set. The main difference
    is that the full feature set compiles with all stable additive features
    from other arti crates, e.g. running onion services.
---
 security/arti/Makefile       | 13 +++++++++++--
 security/arti/pkg-descr      |  5 +++--
 security/arti/pkg-descr-full |  7 +++++++
 3 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/security/arti/Makefile b/security/arti/Makefile
index 24d45d1c0abe..5236b9756622 100644
--- a/security/arti/Makefile
+++ b/security/arti/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	arti
 DISTVERSION=	1.4.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 
 MAINTAINER=	cs@FreeBSD.org
@@ -13,6 +13,8 @@ NOT_FOR_ARCHS=	i386
 NOT_FOR_ARCHS_REASON=Zeroize crate does not support i386
 LIB_DEPENDS=	libzstd.so:archivers/zstd
 
+FLAVORS=	default full
+full_PKGNAMESUFFIX=	-full
 USES=		cargo sqlite ssl
 USE_RC_SUBR=	arti
 GROUPS=		_arti
@@ -23,8 +25,15 @@ USE_GITLAB=	yes
 GL_SITE=	https://gitlab.torproject.org
 GL_ACCOUNT=	tpo/core
 GL_TAGNAME=	6598a0a01c578451917f167d352278052107f0fb
-CARGO_FEATURES=	tokio rustls
 CARGO_INSTALL=	no
+default_DESCR=	${.CURDIR}/pkg-descr
+full_DESCR=	${.CURDIR}/pkg-descr-full
+.if ${FLAVOR:U} != full
+CARGO_FEATURES=	default
+.endif
+.if ${FLAVOR:U} == full
+CARGO_FEATURES=	full
+.endif
 
 do-install:
 	${INSTALL_SCRIPT} ${CARGO_TARGET_DIR}/*/arti ${STAGEDIR}${PREFIX}/bin/arti
diff --git a/security/arti/pkg-descr b/security/arti/pkg-descr
index 2f378c6f8a57..6ca77ada8c0b 100644
--- a/security/arti/pkg-descr
+++ b/security/arti/pkg-descr
@@ -1,2 +1,3 @@
-Arti is a project to produce an embeddable, production-quality implementation
-of the Tor anonymity protocols in the Rust programming language.
+Arti is a complete rewrite of the C Tor codebase, and it is currently under
+active development. It is written in Rust, and it is designed to be modular,
+reusable, and easy to audit.
diff --git a/security/arti/pkg-descr-full b/security/arti/pkg-descr-full
new file mode 100644
index 000000000000..6d9128daaa77
--- /dev/null
+++ b/security/arti/pkg-descr-full
@@ -0,0 +1,7 @@
+Arti is a complete rewrite of the C Tor codebase, and it is currently under
+active development. It is written in Rust, and it is designed to be modular,
+reusable, and easy to audit.
+
+This is the full version of the port, offering additional features and
+binaries, for example to run onion services. For regular client mode, the
+default version is just fine.