From c93c44fc621a2bf6690257c6556bec1fa7ec7e02 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 26 Dec 2019 13:36:58 +0100 Subject: [PATCH] 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 --- net-vpn/wireguard-tools/Manifest | 1 + net-vpn/wireguard-tools/metadata.xml | 8 ++++ .../wireguard-tools-1.0.20191226.ebuild | 44 +++++++++++++++++++ .../wireguard-tools-9999.ebuild | 44 +++++++++++++++++++ 4 files changed, 97 insertions(+) create mode 100644 net-vpn/wireguard-tools/Manifest create mode 100644 net-vpn/wireguard-tools/metadata.xml create mode 100644 net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild create mode 100644 net-vpn/wireguard-tools/wireguard-tools-9999.ebuild 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 @@ + + + + + zx2c4@gentoo.org + Jason A. Donenfeld + + 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 +} -- 2.26.2