diff --git a/security/arti/Makefile b/security/arti/Makefile index 24d45d1c0abe..5236b9756622 100644 --- a/security/arti/Makefile +++ b/security/arti/Makefile @@ -1,36 +1,45 @@ PORTNAME= arti DISTVERSION= 1.4.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MAINTAINER= cs@FreeBSD.org COMMENT= Implementation of Tor, in Rust WWW= https://arti.torproject.org/ LICENSE= MIT 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 USERS= _arti SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}" PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}" 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 post-install: @${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/log/arti ${STAGEDIR}/var/run/arti ${STAGEDIR}/var/db/arti ${INSTALL_DATA} ${WRKSRC}/crates/arti/src/arti-example-config.toml ${STAGEDIR}${ETCDIR}/arti.toml.sample .include 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.