Bug 255149 - security/doas: @DOAS_CONF@ not substituted in vidoas
Summary: security/doas: @DOAS_CONF@ not substituted in vidoas
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2021-04-17 11:51 UTC by Jethro Nederhof
Modified: 2021-04-17 12:55 UTC (History)
1 user (show)

See Also:
jsmith: maintainer-feedback+

patch to install vidoas.final as vidoas (734 bytes, patch)
2021-04-17 11:51 UTC, Jethro Nederhof
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jethro Nederhof 2021-04-17 11:51:30 UTC
Created attachment 224185 [details]
patch to install vidoas.final as vidoas

The vidoas utility tries to edit a "./@DOAS_CONF@" file unless a specific config file is specified; this should instead try to edit the default config file /usr/local/etc/doas.conf

@DOAS_CONF@ is supposed to be replaced with $(DESTDIR)$(PREFIX)/etc/doas.conf as part of the all/install targets per: https://github.com/slicer69/doas/blob/be85cdabda861f63bd478d4113a238554d6512ef/Makefile#L100

In the port/pkg this only happens to the other *.final files, and the port installs vidoas instead of vidoas.final
Comment 1 jsmith 2021-04-17 12:55:58 UTC
Patch looks good to me. Let's do it.