From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4173A139085 for ; Mon, 2 Jan 2017 16:13:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F4A5E083A; Mon, 2 Jan 2017 16:13:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57416E083A for ; Mon, 2 Jan 2017 16:13:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0945D340DC7 for ; Mon, 2 Jan 2017 16:13:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0F1612521 for ; Mon, 2 Jan 2017 16:13:08 +0000 (UTC) From: "Jason Donenfeld" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Donenfeld" Message-ID: <1483373578.d4d0fe63765f499fce0d5a837eb24fbf83329f1c.zx2c4@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wireguard/files/, net-misc/wireguard/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/wireguard/files/wireguard-openrc.sh net-misc/wireguard/wireguard-0.0.20161230-r1.ebuild net-misc/wireguard/wireguard-0.0.20161230.ebuild X-VCS-Directories: net-misc/wireguard/files/ net-misc/wireguard/ X-VCS-Committer: zx2c4 X-VCS-Committer-Name: Jason Donenfeld X-VCS-Revision: d4d0fe63765f499fce0d5a837eb24fbf83329f1c X-VCS-Branch: master Date: Mon, 2 Jan 2017 16:13:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d9afbdcf-be0f-4518-affe-e3bf35aac44f X-Archives-Hash: ce5eae4ff715087f88718bb2518a17b2 commit: d4d0fe63765f499fce0d5a837eb24fbf83329f1c Author: Jason A. Donenfeld gentoo org> AuthorDate: Mon Jan 2 16:12:41 2017 +0000 Commit: Jason Donenfeld gentoo 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$