Gentoo Archives: gentoo-commits

From: Jason Donenfeld <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wireguard/files/, net-misc/wireguard/
Date: Mon, 02 Jan 2017 16:13:13
Message-Id: 1483373578.d4d0fe63765f499fce0d5a837eb24fbf83329f1c.zx2c4@gentoo
1 commit: d4d0fe63765f499fce0d5a837eb24fbf83329f1c
2 Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 16:12:41 2017 +0000
4 Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 16:12:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4d0fe63
7
8 net-misc/wireguard: fix netifrc
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-misc/wireguard/files/wireguard-openrc.sh | 2 ++
13 .../{wireguard-0.0.20161230.ebuild => wireguard-0.0.20161230-r1.ebuild} | 2 +-
14 2 files changed, 3 insertions(+), 1 deletion(-)
15
16 diff --git a/net-misc/wireguard/files/wireguard-openrc.sh b/net-misc/wireguard/files/wireguard-openrc.sh
17 index 9c3df6a..9c53ef0 100644
18 --- a/net-misc/wireguard/files/wireguard-openrc.sh
19 +++ b/net-misc/wireguard/files/wireguard-openrc.sh
20 @@ -10,6 +10,7 @@ wireguard_depend()
21
22 wireguard_pre_start()
23 {
24 + [[ $IFACE == wg* ]] || return 0
25 ip link delete dev "$IFACE" type wireguard 2>/dev/null
26 ebegin "Creating WireGuard interface $IFACE"
27 if ! ip link add dev "$IFACE" type wireguard; then
28 @@ -37,6 +38,7 @@ wireguard_pre_start()
29
30 wireguard_post_stop()
31 {
32 + [[ $IFACE == wg* ]] || return 0
33 ebegin "Removing WireGuard interface $IFACE"
34 ip link delete dev "$IFACE" type wireguard
35 eend $?
36
37 diff --git a/net-misc/wireguard/wireguard-0.0.20161230.ebuild b/net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild
38 similarity index 98%
39 rename from net-misc/wireguard/wireguard-0.0.20161230.ebuild
40 rename to net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild
41 index 0aa291d..06402df 100644
42 --- a/net-misc/wireguard/wireguard-0.0.20161230.ebuild
43 +++ b/net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild
44 @@ -1,4 +1,4 @@
45 -# Copyright 1999-2016 Gentoo Foundation
46 +# Copyright 1999-2017 Gentoo Foundation
47 # Distributed under the terms of the GNU General Public License v2
48 # $Id$