Bug 259948 - security/vuls port does not see default config file on /usr/local/etc/vuls/config.toml
Summary: security/vuls port does not see default config file on /usr/local/etc/vuls/co...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Palle Girgensohn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 14:27 UTC by Ulas SAYGIN
Modified: 2024-02-25 12:57 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (iscandr)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulas SAYGIN 2021-11-20 14:27:44 UTC
Hi,

I installed Vuls port without problem.
but to run vuls scan, it does not see default config file on
/usr/local/etc/vuls/config.toml

when i want to run command: vuls configtest

it give error below

 ERROR [localhost] Error loading %%ETCDIR%%/config.toml
If you update Vuls and get this error, there may be incompatible changes in config.toml
Please check config.toml template : https://vuls.io/docs/en/usage-settings.html
open %%ETCDIR%%/config.toml: no such file or directory


In addition this, config.toml template url is broken. they need to update this too.
Comment 1 kaltheat 2022-02-08 16:19:38 UTC
Can confirm this on FreeBSD 13.0-RELEASE and with vuls-0.13.7 from pkg latest repo.
Comment 2 kaltheat 2022-02-08 16:20:43 UTC
(In reply to kaltheat from comment #1)
by the way: current version is 0.19.2[1]

[1] https://github.com/future-architect/vuls/releases/tag/v0.19.2
Comment 3 Ulas SAYGIN 2022-02-23 22:45:03 UTC
hi,

now vuls current version is v0.19.4

can someone update this port to latest version? and see same error is happening?
Comment 4 Ed Maste freebsd_committer freebsd_triage 2022-05-10 13:07:48 UTC
I see dmgk@ did the last update (added on CC now), perhaps they are willing to do another?
Comment 5 Dmitri Goutnik freebsd_committer freebsd_triage 2022-05-10 16:27:14 UTC
Sorry, if the current maintainer is MIA then someone actually using the port needs to take over. There's just too many changes and I'm not familiar with this software.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-02-24 23:38:03 UTC
A commit in branch main references this bug:

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

commit d166de2cfd8f63b4641cb0ae9fcbdb4797f4e239
Author:     Palle Girgensohn <girgen@FreeBSD.org>
AuthorDate: 2024-01-27 09:04:26 +0000
Commit:     Palle Girgensohn <girgen@FreeBSD.org>
CommitDate: 2024-02-24 23:37:44 +0000

    security/vuls: Upgrade to 0.24.3

    Update and take maintainership due to maintainer timeout. [1]

    Add an optional service rc.d script to run a server that collects
    results sent from multiple vuls client nodes.

    A periodic script is also provided to create fresh daily reports.

    PR:     259948 [1] Maintainer timeout

 security/vuls/Makefile                             | 181 +++------------
 security/vuls/distinfo                             | 258 +--------------------
 security/vuls/files/config.toml (new)              | 191 +++++++++++++++
 security/vuls/files/config.toml.sample (gone)      |  29 ---
 security/vuls/files/newsyslog-vuls.conf (new)      |   6 +
 security/vuls/files/patch-subcmds_configtest.go    |  11 +-
 security/vuls/files/patch-subcmds_report.go        |  23 +-
 .../files/patch-subcmds_report__windows.go (new)   |  11 +
 security/vuls/files/patch-subcmds_saas.go (new)    |  11 +
 security/vuls/files/patch-subcmds_scan.go          |  21 +-
 security/vuls/files/patch-subcmds_server.go (new)  |  11 +
 security/vuls/files/patch-subcmds_tui.go           |  16 +-
 security/vuls/files/periodic-vuls.in (new)         |  42 ++++
 security/vuls/files/pkg-message.in (new)           |  30 +++
 security/vuls/files/vuls.in (new)                  |  56 +++++
 security/vuls/pkg-descr                            |   4 +
 security/vuls/pkg-plist (new)                      |   9 +
 17 files changed, 431 insertions(+), 479 deletions(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2024-02-24 23:38:05 UTC
A commit in branch main references this bug:

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

commit 6e1d089e3b04f21ebb453622bbc7a09b9bab8c70
Author:     Palle Girgensohn <girgen@FreeBSD.org>
AuthorDate: 2024-01-26 16:14:04 +0000
Commit:     Palle Girgensohn <girgen@FreeBSD.org>
CommitDate: 2024-02-24 23:37:44 +0000

    security/go-cve-dictionary: Upgrade to 0.10.1.

    This port is mainly here as a dependency of security/vuls. Update and
    take maintainership due to maintainer timeout. [1]

    Adding a default config file that should work more or less out the box
    for a simple local setup. It has examples for a larger deployment.

    PR:     259948 [1] Maintainer timeout

 security/go-cve-dictionary/Makefile                | 67 +++++-------------
 security/go-cve-dictionary/distinfo                | 82 ++--------------------
 .../go-cve-dictionary/files/go-cve-dictionary.in   | 44 +++++-------
 .../files/go-cve-dictionary.yaml (new)             | 23 ++++++
 .../files/newsyslog-go-cve-dictionary.conf (new)   |  7 ++
 .../files/patch-commands_fetchjvn.go (gone)        | 29 --------
 .../files/patch-commands_fetchnvd.go (gone)        | 29 --------
 .../files/patch-commands_root.go (new)             | 29 ++++++++
 .../files/patch-commands_server.go (gone)          | 29 --------
 .../files/periodic-go-cve-dictionary.in (new)      | 36 ++++++++++
 security/go-cve-dictionary/files/pkg-message.in    | 23 +++---
 security/go-cve-dictionary/pkg-descr               |  8 ++-
 security/go-cve-dictionary/pkg-plist               |  5 ++
 13 files changed, 164 insertions(+), 247 deletions(-)
Comment 8 Palle Girgensohn freebsd_committer freebsd_triage 2024-02-25 12:57:23 UTC
I updated both security/vuls and security/go-cve-dictionary, and ported latest version of the GUI, security/vulsrepo.

Please report any issues or experiences.

Cheers,
Palle