commit: d4d0fe63765f499fce0d5a837eb24fbf83329f1c
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 2 16:12:41 2017 +0000
Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Mon Jan 2 16:12:58 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4d0fe63
net-misc/wireguard: fix netifrc
Package-Manager: Portage-2.3.3, Repoman-2.3.1
net-misc/wireguard/files/wireguard-openrc.sh | 2 ++
.../{wireguard-0.0.20161230.ebuild => wireguard-0.0.20161230-r1.ebuild} | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/net-misc/wireguard/files/wireguard-openrc.sh
b/net-misc/wireguard/files/wireguard-openrc.sh
index 9c3df6a..9c53ef0 100644
--- a/net-misc/wireguard/files/wireguard-openrc.sh
+++ b/net-misc/wireguard/files/wireguard-openrc.sh
@@ -10,6 +10,7 @@ wireguard_depend()
wireguard_pre_start()
{
+ [[ $IFACE == wg* ]] || return 0
ip link delete dev "$IFACE" type wireguard 2>/dev/null
ebegin "Creating WireGuard interface $IFACE"
if ! ip link add dev "$IFACE" type wireguard; then
@@ -37,6 +38,7 @@ wireguard_pre_start()
wireguard_post_stop()
{
+ [[ $IFACE == wg* ]] || return 0
ebegin "Removing WireGuard interface $IFACE"
ip link delete dev "$IFACE" type wireguard
eend $?
diff --git a/net-misc/wireguard/wireguard-0.0.20161230.ebuild
b/net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild
similarity index 98%
rename from net-misc/wireguard/wireguard-0.0.20161230.ebuild
rename to net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild
index 0aa291d..06402df 100644
--- a/net-misc/wireguard/wireguard-0.0.20161230.ebuild
+++ b/net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$