Created attachment 276750 [details] v0 Initial patch, more testing ongoing
Created attachment 276753 [details] v1 with updated pkg-plist
v1 builds in poudriere on 14.4-RELEASE and 15.1-RELEASE. Running now without problems
Do you want to make MFA option ON by default? I'll do it for www/rt50 Can you use pkg-message instead of pre-fetch-MFA-on: https://docs.freebsd.org/en/books/porters-handbook/book/#porting-message something like that (untested) [ { type: upgrade maximum_version: "6.0.3" message: << EOM A new configuration option $SecretKey has been added. This key is used as keying material for cryptographic operations such as MFA-reset tokens and TOTP secret encryption. When empty (the default), RT falls back to $DatabasePassword. We recommend setting this to a long, random value in RT_SiteConfig.pm so that application-level crypto is not coupled to the database credential. Set it before any user enrolls in MFA: changing it later (or changing $DatabasePassword while it is empty) makes stored TOTP secrets undecryptable, so all enrolled users have to reset MFA and re-enroll. EOM } ]
Created attachment 276943 [details] v2 using pkg-message and setting MFA default ON
I set MFA default to ON and moved the messages from pre-fetch to pkg-message. I set maximum_mesage to 6.0.4 because https://docs.freebsd.org/en/books/porters-handbook/pkg-files/#porting-message-ucl says: Display if upgrading from a version strictly lower than the version specified But I tried both with 6.0.3 and 6.0.4 and I couldn't get the message to display...
Created attachment 276971 [details] v3 Try the attached patch: cat pkg-message >> files/pkg-messages.in maximum_version: "6.0.4" -> maximum_version "6.0.3" message: << EOM -> message: <<EOM
(In reply to Mikael Urankar from comment #7) forget the maximum_version part
Created attachment 276972 [details] v4 moved pkg-message contents into files/pkg-message.in Tested building and upgrading and pkg-message is correctly displayed now
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7ed40c46a44c05a709eefa58d6a82852a6d512c3 commit 7ed40c46a44c05a709eefa58d6a82852a6d512c3 Author: Einar Bjarni Halldórsson <einar@isnic.is> AuthorDate: 2026-10-30 00:53:23 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2026-11-04 14:01:30 +0000 www/rt60: Update to 6.0.4 Add new option, 'MFA', which enables TOTP multi-factor authentication support. Set MFA as default ON. PR: 300304 www/rt60/Makefile | 12 ++++++--- www/rt60/Makefile.cpan | 34 +++++++++++++++++-------- www/rt60/distinfo | 6 ++--- www/rt60/files/patch-Makefile.in | 18 ++++++------- www/rt60/files/pkg-message.in | 13 ++++++++++ www/rt60/pkg-plist | 55 +++++++++++++++++++++++++++++++++++++--- 6 files changed, 108 insertions(+), 30 deletions(-)
A commit in branch 2026Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=88d5dfcc9fcb88acd29760a4228853e12dcb1a60 commit 88d5dfcc9fcb88acd29760a4228853e12dcb1a60 Author: Einar Bjarni Halldórsson <einar@isnic.is> AuthorDate: 2026-10-30 00:53:23 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2026-11-04 14:01:48 +0000 www/rt60: Update to 6.0.4 Add new option, 'MFA', which enables TOTP multi-factor authentication support. Set MFA as default ON. PR: 300304 (cherry picked from commit 7ed40c46a44c05a709eefa58d6a82852a6d512c3) www/rt60/Makefile | 12 ++++++--- www/rt60/Makefile.cpan | 34 +++++++++++++++++-------- www/rt60/distinfo | 6 ++--- www/rt60/files/patch-Makefile.in | 18 ++++++------- www/rt60/files/pkg-message.in | 13 ++++++++++ www/rt60/pkg-plist | 55 +++++++++++++++++++++++++++++++++++++--- 6 files changed, 108 insertions(+), 30 deletions(-)