summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2018-07-10 23:18:03 +0200
committerJason A. Donenfeld <zx2c4@gentoo.org>2018-07-10 23:20:30 +0200
commit84747f9cd8674344adc0215795e994899ed2ff3f (patch)
tree58b579db589f323207e16f392a51ac0cc2e55833 /net-vpn
parentdev-python/slimit: revbump to silence warning on module import (diff)
downloadgentoo-84747f9cd8674344adc0215795e994899ed2ff3f.tar.gz
gentoo-84747f9cd8674344adc0215795e994899ed2ff3f.tar.bz2
gentoo-84747f9cd8674344adc0215795e994899ed2ff3f.zip
net-vpn/wireguard: these have moved to netifrc
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/wireguard/files/wireguard-openrc.sh45
-rw-r--r--net-vpn/wireguard/wireguard-0.0.20180708.ebuild2
-rw-r--r--net-vpn/wireguard/wireguard-9999.ebuild2
3 files changed, 0 insertions, 49 deletions
diff --git a/net-vpn/wireguard/files/wireguard-openrc.sh b/net-vpn/wireguard/files/wireguard-openrc.sh
deleted file mode 100644
index 9c53ef0ffa72..000000000000
--- a/net-vpn/wireguard/files/wireguard-openrc.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright (c) 2016 Gentoo Foundation
-# All rights reserved. Released under the 2-clause BSD license.
-
-wireguard_depend()
-{
- program /usr/bin/wg
- after interface
- before dhcp
-}
-
-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
- eend $?
- return $?
- fi
- eend 0
-
- ebegin "Configuring WireGuard interface $IFACE"
- set -- $(_get_array "wireguard_$IFVAR")
- if [[ -f $1 && $# -eq 1 ]]; then
- /usr/bin/wg setconf "$IFACE" "$1"
- else
- eval /usr/bin/wg set "$IFACE" "$@"
- fi
- if [ $? -eq 0 ]; then
- _up
- eend 0
- return
- fi
- e=$?
- ip link delete dev "$IFACE" type wireguard 2>/dev/null
- eend $e
-}
-
-wireguard_post_stop()
-{
- [[ $IFACE == wg* ]] || return 0
- ebegin "Removing WireGuard interface $IFACE"
- ip link delete dev "$IFACE" type wireguard
- eend $?
-}
diff --git a/net-vpn/wireguard/wireguard-0.0.20180708.ebuild b/net-vpn/wireguard/wireguard-0.0.20180708.ebuild
index 3a4681c656a9..e7bf51b60e9c 100644
--- a/net-vpn/wireguard/wireguard-0.0.20180708.ebuild
+++ b/net-vpn/wireguard/wireguard-0.0.20180708.ebuild
@@ -57,8 +57,6 @@ src_install() {
BASHCOMPDIR="$(get_bashcompdir)" \
PREFIX="${EPREFIX}/usr" \
-C src/tools install
- insinto /$(get_libdir)/netifrc/net
- newins "${FILESDIR}"/wireguard-openrc.sh wireguard.sh
fi
use module-src && emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" -C src dkms-install
}
diff --git a/net-vpn/wireguard/wireguard-9999.ebuild b/net-vpn/wireguard/wireguard-9999.ebuild
index 3a4681c656a9..e7bf51b60e9c 100644
--- a/net-vpn/wireguard/wireguard-9999.ebuild
+++ b/net-vpn/wireguard/wireguard-9999.ebuild
@@ -57,8 +57,6 @@ src_install() {
BASHCOMPDIR="$(get_bashcompdir)" \
PREFIX="${EPREFIX}/usr" \
-C src/tools install
- insinto /$(get_libdir)/netifrc/net
- newins "${FILESDIR}"/wireguard-openrc.sh wireguard.sh
fi
use module-src && emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" -C src dkms-install
}