<email>zx2c4@gentoo.org</email>
<name>Jason A. Donenfeld</name>
</maintainer>
+ <use>
+ <flag name="wg-quick">Install the wg-quick(8) helper tool. Most users want to use this.</flag>
+ </use>
</pkgmetadata>
LICENSE="GPL-2"
SLOT="0"
+IUSE="+wg-quick"
BDEPEND="virtual/pkgconfig"
DEPEND="net-libs/libmnl"
RDEPEND="${DEPEND}
- || ( net-firewall/nftables net-firewall/iptables )
+ wg-quick? (
+ || ( net-firewall/nftables net-firewall/iptables )
+ virtual/resolvconf
+ )
!<=net-vpn/wireguard-0.0.20191219
"
}
pkg_setup() {
+ use wg-quick || return 0
wg_quick_optional_config_nob IP_ADVANCED_ROUTER
wg_quick_optional_config_nob IP_MULTIPLE_TABLES
wg_quick_optional_config_nob IPV6_MULTIPLE_TABLES
emake \
WITH_BASHCOMPLETION=yes \
WITH_SYSTEMDUNITS=yes \
- WITH_WGQUICK=yes \
+ WITH_WGQUICK=$(usex wg-quick) \
DESTDIR="${D}" \
BASHCOMPDIR="$(get_bashcompdir)" \
SYSTEMDUNITDIR="$(systemd_get_systemunitdir)" \
LICENSE="GPL-2"
SLOT="0"
+IUSE="+wg-quick"
BDEPEND="virtual/pkgconfig"
DEPEND="net-libs/libmnl"
RDEPEND="${DEPEND}
- || ( net-firewall/nftables net-firewall/iptables )
+ wg-quick? (
+ || ( net-firewall/nftables net-firewall/iptables )
+ virtual/resolvconf
+ )
!<=net-vpn/wireguard-0.0.20191219
"
}
pkg_setup() {
+ use wg-quick || return 0
wg_quick_optional_config_nob IP_ADVANCED_ROUTER
wg_quick_optional_config_nob IP_MULTIPLE_TABLES
wg_quick_optional_config_nob IPV6_MULTIPLE_TABLES
emake \
WITH_BASHCOMPLETION=yes \
WITH_SYSTEMDUNITS=yes \
- WITH_WGQUICK=yes \
+ WITH_WGQUICK=$(usex wg-quick) \
DESTDIR="${D}" \
BASHCOMPDIR="$(get_bashcompdir)" \
SYSTEMDUNITDIR="$(systemd_get_systemunitdir)" \