wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* wireguard-tools: hard coded config paths in wg-quick
@ 2018-06-24 15:51 Calvin Ardi
  2018-06-25 23:49 ` Jason A. Donenfeld
  0 siblings, 1 reply; 3+ messages in thread
From: Calvin Ardi @ 2018-06-24 15:51 UTC (permalink / raw)
  To: wireguard

Hi,

The wg-quick bash scripts have their CONFIG_SEARCH_PATHS hard coded to
two locations [1]:

  CONFIG_SEARCH_PATHS=( /etc/wireguard /usr/local/etc/wireguard )

In my use case with MacPorts (and perhaps with Homebrew, if customized
differently), mostly everything lives in /opt/local by default, so users
would initially add their configs to /opt/local/etc/wireguard.

Since the Makefile supports setting and using SYSCONFDIR [2, 3], I
suggest that the CONFIG_SEARCH_PATHS have the value of SYSCONFDIR added
to it--I don't know of a "clean" way to do this besides patching the
scripts in the Makefile during the `make install'

More than happy to help with a patch (creating, testing, or otherwise).

Thanks,
--calvin

[1] https://git.zx2c4.com/WireGuard/tree/src/tools/wg-quick/darwin.bash#n43
[2] https://git.zx2c4.com/WireGuard/tree/src/tools/Makefile#n8
[3] https://git.zx2c4.com/WireGuard/tree/src/tools/Makefile#n81

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-21  2:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-24 15:51 wireguard-tools: hard coded config paths in wg-quick Calvin Ardi
2018-06-25 23:49 ` Jason A. Donenfeld
2018-07-21  2:34   ` [PATCH] tools: Makefile modifies scripts to look in SYSCONFDIR if set (was Re: wireguard-tools: hard coded config paths in wg-quick) Calvin Ardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).