diff options
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/wireguard/files/wireguard-openrc.sh | 45 | ||||
-rw-r--r-- | net-vpn/wireguard/wireguard-0.0.20180708.ebuild | 2 | ||||
-rw-r--r-- | net-vpn/wireguard/wireguard-9999.ebuild | 2 |
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 } |