From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/ovpn-dco/
Date: Mon, 29 May 2023 23:32:05 +0000 (UTC) [thread overview]
Message-ID: <1685400790.3534ca2e4051f76986b81a757195f956ea0548dc.williamh@gentoo> (raw)
commit: 3534ca2e4051f76986b81a757195f956ea0548dc
Author: Timo Rothenpieler <timo <AT> rothenpieler <DOT> org>
AuthorDate: Mon May 1 16:57:32 2023 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon May 29 22:53:10 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3534ca2e
net-vpn/ovpn-dco: add openvpn dco kernel module
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
net-vpn/ovpn-dco/Manifest | 1 +
net-vpn/ovpn-dco/metadata.xml | 17 +++++++++
net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild | 52 +++++++++++++++++++++++++++
net-vpn/ovpn-dco/ovpn-dco-9999.ebuild | 52 +++++++++++++++++++++++++++
4 files changed, 122 insertions(+)
diff --git a/net-vpn/ovpn-dco/Manifest b/net-vpn/ovpn-dco/Manifest
new file mode 100644
index 000000000000..0bf39dfae04a
--- /dev/null
+++ b/net-vpn/ovpn-dco/Manifest
@@ -0,0 +1 @@
+DIST ovpn-dco-0.2.20230426.tar.gz 70341 BLAKE2B 95d468212a161f13659185d7e96b11afac63a8dd40aaf42a41463927a7f75b1d1ab2388bab5749c0127a07a8bf5d4a5a97626c0d782595f3d0561be4063d931c SHA512 929333fd0668008be77b57b3a0955c260770d91402e02d93a460569b8b17763ebe23eb6159bfefe04fa16fad2672d6a6c76e2f3c2e6b864593bef59ef3cfa29f
diff --git a/net-vpn/ovpn-dco/metadata.xml b/net-vpn/ovpn-dco/metadata.xml
new file mode 100644
index 000000000000..747c7bc21234
--- /dev/null
+++ b/net-vpn/ovpn-dco/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+ <longdescription>This kernel module allows OpenVPN to offload any data plane management to the
+linux kernel, thus allowing it to exploit any Linux low level API, while avoiding
+expensive and slow payload transfer between kernel space and user space.</longdescription>
+ <use>
+ <flag name="debug">Enable debug output in dmesg</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">OpenVPN/ovpn-dco</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild b/net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild
new file mode 100644
index 000000000000..2bbfd8a0560a
--- /dev/null
+++ b/net-vpn/ovpn-dco/ovpn-dco-0.2.20230426.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod
+
+DESCRIPTION="OpenVPN Data Channel Offload in the linux kernel"
+HOMEPAGE="https://github.com/OpenVPN/ovpn-dco"
+
+if [[ ${PV} != 9999 ]]; then
+ SRC_URI="https://github.com/OpenVPN/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+else
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/OpenVPN/${PN}.git"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug"
+
+MODULE_NAMES="ovpn-dco-v2(updates:.:drivers/net/ovpn-dco)"
+BUILD_TARGETS="all"
+
+pkg_setup() {
+ CONFIG_CHECK="
+ INET
+ NET
+ NET_UDP_TUNNEL
+ DST_CACHE
+ CRYPTO
+ CRYPTO_AES
+ CRYPTO_GCM
+ CRYPTO_CHACHA20POLY1305"
+
+ linux-mod_pkg_setup
+}
+
+src_compile() {
+ BUILD_PARAMS+=" KERNEL_SRC='${KERNEL_DIR}'"
+ [[ ${PV} != 9999 ]] && BUILD_PARAMS+=" REVISION='${PV}'"
+ use debug && BUILD_PARAMS+=" DEBUG=1"
+ linux-mod_src_compile
+}
+
+src_install() {
+ linux-mod_src_install
+
+ insinto /usr/share/${PN}
+ doins -r include
+}
diff --git a/net-vpn/ovpn-dco/ovpn-dco-9999.ebuild b/net-vpn/ovpn-dco/ovpn-dco-9999.ebuild
new file mode 100644
index 000000000000..e2affd832c1c
--- /dev/null
+++ b/net-vpn/ovpn-dco/ovpn-dco-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod
+
+DESCRIPTION="OpenVPN Data Channel Offload in the linux kernel"
+HOMEPAGE="https://github.com/OpenVPN/ovpn-dco"
+
+if [[ ${PV} != 9999 ]]; then
+ SRC_URI="https://github.com/OpenVPN/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+else
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/OpenVPN/${PN}.git"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug"
+
+MODULE_NAMES="ovpn-dco-v2(updates:.:drivers/net/ovpn-dco)"
+BUILD_TARGETS="all"
+
+pkg_setup() {
+ CONFIG_CHECK="
+ INET
+ NET
+ NET_UDP_TUNNEL
+ DST_CACHE
+ CRYPTO
+ CRYPTO_AES
+ CRYPTO_GCM
+ CRYPTO_CHACHA20POLY1305"
+
+ linux-mod_pkg_setup
+}
+
+src_compile() {
+ BUILD_PARAMS+=" KERNEL_SRC='${KERNEL_DIR}'"
+ [[ ${PV} != 9999 ]] && BUILD_PARAMS+=" REVISION='${PV}'"
+ use debug && BUILD_PARAMS+=" DEBUG=1"
+ linux-mod_src_compile
+}
+
+src_install() {
+ linux-mod_src_install
+
+ insinto /usr/share/${PN}
+ doins -r include
+}
next reply other threads:[~2023-05-29 23:32 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-29 23:32 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-30 12:17 [gentoo-commits] repo/gentoo:master commit in: net-vpn/ovpn-dco/ Yixun Lan
2023-06-03 7:41 WANG Xuerui
2023-06-03 7:41 WANG Xuerui
2023-06-10 20:51 William Hubbs
2023-06-10 20:57 William Hubbs
2023-06-13 17:58 Arthur Zamarin
2023-06-13 18:12 Arthur Zamarin
2023-06-13 18:25 Arthur Zamarin
2023-06-29 11:27 Sam James
2023-06-29 11:27 Sam James
2023-06-30 2:38 Sam James
2023-06-30 6:35 Arthur Zamarin
2023-06-30 6:35 Arthur Zamarin
2023-08-16 22:06 William Hubbs
2023-12-10 1:38 Ionen Wolkens
2023-12-11 4:33 Arthur Zamarin
2023-12-14 4:15 Sam James
2023-12-19 5:19 Sam James
2023-12-22 5:14 Ionen Wolkens
2024-01-05 8:13 Sam James
2024-01-12 8:35 Arthur Zamarin
2024-01-20 20:16 Arthur Zamarin
2024-12-28 15:20 Conrad Kostecki
2025-02-06 14:37 Arthur Zamarin
2025-04-21 15:26 Viorel Munteanu
2025-05-08 10:26 Viorel Munteanu
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=1685400790.3534ca2e4051f76986b81a757195f956ea0548dc.williamh@gentoo \
--to=williamh@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