Bug 290115 - security/ca_root_nss: Make the certctl command overridable
Summary: security/ca_root_nss: Make the certctl command overridable
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: Xavier Beaudouin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-09 19:39 UTC by Mark Johnston
Modified: 2025-11-12 02:52 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (ports-secteam)


Attachments
proposed patch (2.64 KB, patch)
2025-10-09 19:39 UTC, Mark Johnston
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Johnston freebsd_committer freebsd_triage 2025-10-09 19:39:58 UTC
Created attachment 264447 [details]
proposed patch

For some purposes it's useful to be able to build the ca_root_nss with a custom certctl command.  It may be desireable for instance to run certctl rehash at the end of a package upgrade rather than in the middle, in which case it's sufficient to substitute CERTCTL_CMD=:.

The attached patch implements this.
Comment 1 Michael Osipov freebsd_committer freebsd_triage 2025-10-10 08:31:48 UTC
(In reply to Mark Johnston from comment #0)

What is the usecase?
Comment 2 Mark Johnston freebsd_committer freebsd_triage 2025-10-10 18:44:00 UTC
(In reply to Michael Osipov from comment #1)
Wanting to use an alternate utility which can output the hashed dirs, and/or wanting to defer processing until after a package upgrade is completely finished.
Comment 3 Xavier Beaudouin freebsd_committer freebsd_triage 2025-11-12 02:14:30 UTC
Take.
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-11-12 02:50:52 UTC
A commit in branch main references this bug:

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

commit decf02f29df258d94fce0f57351fbe0ec9c645f5
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-11-12 02:45:45 +0000
Commit:     Xavier Beaudouin <kiwi@FreeBSD.org>
CommitDate: 2025-11-12 02:49:37 +0000

    security/ca_root_nss: Make the certctl command overridable

    For some purposes it's useful to be able to build the ca_root_nss with a
    custom certctl command.  It may be desireable for instance to run
    certctl rehash at the end of a package upgrade rather than in the
    middle, in which case it's sufficient to substitute CERTCTL_CMD=:.

    Make the certctl command name a variable so that one can override it at
    port build time.  No functional change intended.

    PR:     290115
    Approved by:    maintainer (timeout, 1 month)
    Sponsored by:   OPNsense
    Sponsored by:   Klara, Inc.

 security/ca_root_nss/Makefile               | 6 ++++--
 security/ca_root_nss/files/pkg-deinstall.in | 2 +-
 security/ca_root_nss/files/pkg-install.in   | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)