Bug 300304 - www/rt60: Update to 6.0.4
Summary: www/rt60: Update to 6.0.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mikael Urankar
URL: https://github.com/bestpractical/rt/r...
Keywords:
Depends on: 300300 300301 300305
Blocks:
  Show dependency tree / graph
 
Reported: 2026-10-30 09:50 UTC by Einar Bjarni Halldórsson
Modified: 2026-11-04 14:24 UTC (History)
2 users (show)

See Also:


Attachments
v0 (10.90 KB, patch)
2026-10-30 10:01 UTC, Einar Bjarni Halldórsson
no flags Details | Diff
v1 with updated pkg-plist (22.67 KB, patch)
2026-10-30 14:30 UTC, Einar Bjarni Halldórsson
einar: maintainer-approval+
Details | Diff
v2 using pkg-message and setting MFA default ON (22.79 KB, patch)
2026-11-03 12:14 UTC, Einar Bjarni Halldórsson
einar: maintainer-approval+
Details | Diff
v3 (22.85 KB, patch)
2026-11-04 13:09 UTC, Mikael Urankar
no flags Details | Diff
v4 moved pkg-message contents into files/pkg-message.in (22.87 KB, patch)
2026-11-04 13:38 UTC, Einar Bjarni Halldórsson
einar: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Einar Bjarni Halldórsson 2026-10-30 09:50:48 UTC

    
Comment 1 Einar Bjarni Halldórsson 2026-10-30 10:01:31 UTC
Created attachment 276750 [details]
v0

Initial patch, more testing ongoing
Comment 2 Einar Bjarni Halldórsson 2026-10-30 14:30:26 UTC
Created attachment 276753 [details]
v1 with updated pkg-plist
Comment 3 Einar Bjarni Halldórsson 2026-10-30 14:32:02 UTC
v1 builds in poudriere on 14.4-RELEASE and 15.1-RELEASE. Running now without problems
Comment 4 Mikael Urankar freebsd_committer freebsd_triage 2026-11-02 14:28:29 UTC
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
}
]
Comment 5 Einar Bjarni Halldórsson 2026-11-03 12:14:35 UTC
Created attachment 276943 [details]
v2 using pkg-message and setting MFA default ON
Comment 6 Einar Bjarni Halldórsson 2026-11-03 12:18:16 UTC
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...
Comment 7 Mikael Urankar freebsd_committer freebsd_triage 2026-11-04 13:09:56 UTC
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
Comment 8 Mikael Urankar freebsd_committer freebsd_triage 2026-11-04 13:22:29 UTC
(In reply to Mikael Urankar from comment #7)
forget the maximum_version part
Comment 9 Einar Bjarni Halldórsson 2026-11-04 13:38:31 UTC
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
Comment 10 commit-hook freebsd_committer freebsd_triage 2026-11-04 14:02:35 UTC
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(-)
Comment 11 commit-hook freebsd_committer freebsd_triage 2026-11-04 14:03:36 UTC
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(-)