From: Calvin Ardi <calvin@isi.edu>
To: wireguard@lists.zx2c4.com
Subject: wireguard-tools: hard coded config paths in wg-quick
Date: Sun, 24 Jun 2018 08:51:24 -0700 [thread overview]
Message-ID: <20180624155124.GP30528@isi.edu> (raw)
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
next reply other threads:[~2018-06-24 15:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-24 15:51 Calvin Ardi [this message]
2018-06-25 23:49 ` wireguard-tools: hard coded config paths in wg-quick 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180624155124.GP30528@isi.edu \
--to=calvin@isi.edu \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).