From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76FDF1382DE for ; Wed, 29 Jun 2016 02:44:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA535E0BE4; Wed, 29 Jun 2016 02:44:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6F662E0BE4 for ; Wed, 29 Jun 2016 02:44:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C6C3D340DEF for ; Wed, 29 Jun 2016 02:43:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA36F2424 for ; Wed, 29 Jun 2016 02:43:56 +0000 (UTC) From: "Jason Donenfeld" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Donenfeld" Message-ID: <1467168227.4c7d6484b9c99e26ff95316fbb3369cc32c82d55.zx2c4@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wireguard/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/wireguard/metadata.xml net-misc/wireguard/wireguard-9999.ebuild X-VCS-Directories: net-misc/wireguard/ X-VCS-Committer: zx2c4 X-VCS-Committer-Name: Jason Donenfeld X-VCS-Revision: 4c7d6484b9c99e26ff95316fbb3369cc32c82d55 X-VCS-Branch: master Date: Wed, 29 Jun 2016 02:43:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3705d0f9-0e02-4119-ba01-4f10fa67e469 X-Archives-Hash: 8cb248a8b9979b6cd3a400dd06414655 commit: 4c7d6484b9c99e26ff95316fbb3369cc32c82d55 Author: Jason A. Donenfeld gentoo org> AuthorDate: Wed Jun 29 02:43:39 2016 +0000 Commit: Jason Donenfeld gentoo 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 @@ + + + + + zx2c4@gentoo.org + Jason A. Donenfeld + + 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 +}