summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2019-12-26 13:36:58 +0100
committerJason A. Donenfeld <zx2c4@gentoo.org>2019-12-26 13:50:15 +0100
commitc93c44fc621a2bf6690257c6556bec1fa7ec7e02 (patch)
treeb3ea2ed17ce0fdb50acc2ee5f927f66f664b27b5 /net-vpn
parentsys-libs/libcap: Bump to version 2.29 (diff)
downloadgentoo-c93c44fc621a2bf6690257c6556bec1fa7ec7e02.tar.gz
gentoo-c93c44fc621a2bf6690257c6556bec1fa7ec7e02.tar.bz2
gentoo-c93c44fc621a2bf6690257c6556bec1fa7ec7e02.zip
net-vpn/wireguard-tools: add split tools repo at 1.0.20191226
Package-Manager: Portage-2.3.83, Repoman-2.3.20 Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/wireguard-tools/Manifest1
-rw-r--r--net-vpn/wireguard-tools/metadata.xml8
-rw-r--r--net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild44
-rw-r--r--net-vpn/wireguard-tools/wireguard-tools-9999.ebuild44
4 files changed, 97 insertions, 0 deletions
diff --git a/net-vpn/wireguard-tools/Manifest b/net-vpn/wireguard-tools/Manifest
new file mode 100644
index 000000000000..f9796e684680
--- /dev/null
+++ b/net-vpn/wireguard-tools/Manifest
@@ -0,0 +1 @@
+DIST wireguard-tools-1.0.20191226.tar.xz 90720 BLAKE2B 303185e7ebf43f98825eaaa8c991be34c9f20a0dbe969306333f9979bfc9cd49b480b9d356560d031cba5f75f663d6cf4c4f6c788fd2b0e3b25b3c7090a1a5b9 SHA512 d0479a6e4c484af13dc90aeca6e7a649e3e83923952d32e0f0a1b1eca42a4bb4c292a1e2bbb4fe49035cebf425352be1e0561cf5ee052ab46596bcc54d6911c8
diff --git a/net-vpn/wireguard-tools/metadata.xml b/net-vpn/wireguard-tools/metadata.xml
new file mode 100644
index 000000000000..915f00227065
--- /dev/null
+++ b/net-vpn/wireguard-tools/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zx2c4@gentoo.org</email>
+ <name>Jason A. Donenfeld</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild b/net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild
new file mode 100644
index 000000000000..db33e8d6af8a
--- /dev/null
+++ b/net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1
+
+DESCRIPTION="Required tools for WireGuard, such as wg(8) and wg-quick(8)"
+HOMEPAGE="https://www.wireguard.com/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://git.zx2c4.com/wireguard-tools"
+ KEYWORDS=""
+else
+ SRC_URI="https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${PV}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND="net-libs/libmnl"
+RDEPEND="${DEPEND}
+ || ( net-firewall/nftables net-firewall/iptables )
+ !<=net-vpn/wireguard-0.0.20191219
+"
+
+src_compile() {
+ emake RUNSTATEDIR="${EPREFIX}/run" -C src CC="$(tc-getCC)" LD="$(tc-getLD)"
+}
+
+src_install() {
+ dodoc README.md
+ dodoc -r contrib
+ emake \
+ WITH_BASHCOMPLETION=yes \
+ WITH_SYSTEMDUNITS=yes \
+ WITH_WGQUICK=yes \
+ DESTDIR="${D}" \
+ BASHCOMPDIR="$(get_bashcompdir)" \
+ PREFIX="${EPREFIX}/usr" \
+ -C src install
+}
diff --git a/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild b/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild
new file mode 100644
index 000000000000..db33e8d6af8a
--- /dev/null
+++ b/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1
+
+DESCRIPTION="Required tools for WireGuard, such as wg(8) and wg-quick(8)"
+HOMEPAGE="https://www.wireguard.com/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://git.zx2c4.com/wireguard-tools"
+ KEYWORDS=""
+else
+ SRC_URI="https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${PV}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND="net-libs/libmnl"
+RDEPEND="${DEPEND}
+ || ( net-firewall/nftables net-firewall/iptables )
+ !<=net-vpn/wireguard-0.0.20191219
+"
+
+src_compile() {
+ emake RUNSTATEDIR="${EPREFIX}/run" -C src CC="$(tc-getCC)" LD="$(tc-getLD)"
+}
+
+src_install() {
+ dodoc README.md
+ dodoc -r contrib
+ emake \
+ WITH_BASHCOMPLETION=yes \
+ WITH_SYSTEMDUNITS=yes \
+ WITH_WGQUICK=yes \
+ DESTDIR="${D}" \
+ BASHCOMPDIR="$(get_bashcompdir)" \
+ PREFIX="${EPREFIX}/usr" \
+ -C src install
+}