public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jason Donenfeld" <zx2c4@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wireguard/
Date: Wed, 29 Jun 2016 02:43:56 +0000 (UTC)	[thread overview]
Message-ID: <1467168227.4c7d6484b9c99e26ff95316fbb3369cc32c82d55.zx2c4@gentoo> (raw)

commit:     4c7d6484b9c99e26ff95316fbb3369cc32c82d55
Author:     Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 29 02:43:39 2016 +0000
Commit:     Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Wed Jun 29 02:43:47 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c7d6484

net-misc/wireguard: new ebuild

Package-Manager: portage-2.3.0

 net-misc/wireguard/metadata.xml          |  8 +++++
 net-misc/wireguard/wireguard-9999.ebuild | 50 ++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/net-misc/wireguard/metadata.xml b/net-misc/wireguard/metadata.xml
new file mode 100644
index 0000000..915f002
--- /dev/null
+++ b/net-misc/wireguard/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-misc/wireguard/wireguard-9999.ebuild b/net-misc/wireguard/wireguard-9999.ebuild
new file mode 100644
index 0000000..675c751
--- /dev/null
+++ b/net-misc/wireguard/wireguard-9999.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit linux-mod linux-info
+
+DESCRIPTION="Simple yet fast and modern VPN that utilizes state-of-the-art cryptography."
+HOMEPAGE="https://www.wireguard.io/"
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://git.zx2c4.com/WireGuard"
+	KEYWORDS=""
+else
+	SRC_URI="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${PV}.tar.xz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+DEPEND="net-libs/libmnl"
+RDEPEND="${DEPEND}"
+
+MODULE_NAMES="wireguard(net:src)"
+BUILD_PARAMS="KERNELDIR=${KERNEL_DIR} V=1"
+CONFIG_CHECK="NET_UDP_TUNNEL IPV6 NETFILTER_XT_MATCH_HASHLIMIT ~PADATA"
+ERROR_NET_UDP_TUNNEL="WireGuard requires NET_UDP_TUNNEL."
+ERROR_IPV6="WireGuard requires IPV6 support in the kernel."
+ERROR_NETFILTER_XT_MATCH_HASHLIMIT="WireGuard requires NETFILTER_XT_MATCH_HASHLIMIT."
+ERROR_PADATA="If you're running a multicore system you likely should enable CONFIG_PADATA for improved performance and parallel crypto."
+
+pkg_setup() {
+	linux-mod_pkg_setup
+	kernel_is -lt 4 1 0 && die "This version of ${PN} requires Linux >= 4.1"
+}
+
+src_compile() {
+	 linux-mod_src_compile
+	 emake -C src/tools
+}
+
+src_install() {
+	dodoc README.md
+	linux-mod_src_install
+	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" -C src/tools install
+}


             reply	other threads:[~2016-06-29  2:44 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29  2:43 Jason Donenfeld [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-06-29 14:59 [gentoo-commits] repo/gentoo:master commit in: net-misc/wireguard/ Jason Donenfeld
2016-06-30  2:19 Jason Donenfeld
2016-06-30 18:41 Jason Donenfeld
2016-07-01  2:48 Jason Donenfeld
2016-07-08 11:35 Jason Donenfeld
2016-07-08 11:45 Jason Donenfeld
2016-07-08 14:38 Jason Donenfeld
2016-07-11 10:21 Jason Donenfeld
2016-07-15 14:44 Jason Donenfeld
2016-07-21  9:46 Jason Donenfeld
2016-07-22 19:20 Jason Donenfeld
2016-07-25 23:16 Jason Donenfeld
2016-07-26 15:15 Jason Donenfeld
2016-08-08 16:01 Jason Donenfeld
2016-09-30 23:36 Jason Donenfeld
2016-10-14 16:07 Jason Donenfeld
2016-10-25 13:13 Aaron Bauman
2016-11-02 10:57 Jason Donenfeld
2016-11-02 11:32 Jason Donenfeld
2016-11-02 11:36 Jason Donenfeld
2016-11-03 10:51 Jason Donenfeld
2016-11-04 16:03 Jason Donenfeld
2016-11-06  1:59 Jason Donenfeld
2016-11-07 13:42 Jason Donenfeld
2016-11-10 20:37 Jason Donenfeld
2016-11-16 15:58 Jason Donenfeld
2016-11-16 20:50 Jason Donenfeld
2016-11-29 22:19 Jason Donenfeld
2016-12-06 18:55 Jason Donenfeld
2016-12-09 21:00 Jason Donenfeld
2016-12-16 16:16 Jason Donenfeld
2016-12-18 17:40 Jason Donenfeld
2016-12-23 20:17 Jason Donenfeld
2016-12-30 17:06 Jason Donenfeld
2017-01-04 19:54 Jason Donenfeld
2017-01-05  3:03 Jason Donenfeld
2017-01-15 12:20 Jason Donenfeld
2017-02-13 21:09 Jason Donenfeld
2017-02-14 11:01 Jason Donenfeld
2017-02-23 15:31 Jason Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467168227.4c7d6484b9c99e26ff95316fbb3369cc32c82d55.zx2c4@gentoo \
    --to=zx2c4@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox