diff options
author | Sam James <sam@gentoo.org> | 2024-01-05 07:51:09 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-01-05 07:51:09 +0000 |
commit | 9930aae325d14b8a0c5aa5db52b78db0054be1f5 (patch) | |
tree | 6f599e19c081a1031f68401eba5f2edabc386baf /net-vpn/ovpn-dco | |
parent | net-vpn/openvpn: add 2.6.8 (diff) | |
download | gentoo-9930aae325d14b8a0c5aa5db52b78db0054be1f5.tar.gz gentoo-9930aae325d14b8a0c5aa5db52b78db0054be1f5.tar.bz2 gentoo-9930aae325d14b8a0c5aa5db52b78db0054be1f5.zip |
net-vpn/ovpn-dco: add 0.2.20231117
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-vpn/ovpn-dco')
-rw-r--r-- | net-vpn/ovpn-dco/Manifest | 1 | ||||
-rw-r--r-- | net-vpn/ovpn-dco/ovpn-dco-0.2.20231117.ebuild | 58 | ||||
-rw-r--r-- | net-vpn/ovpn-dco/ovpn-dco-9999.ebuild | 4 |
3 files changed, 61 insertions, 2 deletions
diff --git a/net-vpn/ovpn-dco/Manifest b/net-vpn/ovpn-dco/Manifest index 0bf39dfae04a..6d6a19d5429e 100644 --- a/net-vpn/ovpn-dco/Manifest +++ b/net-vpn/ovpn-dco/Manifest @@ -1 +1,2 @@ DIST ovpn-dco-0.2.20230426.tar.gz 70341 BLAKE2B 95d468212a161f13659185d7e96b11afac63a8dd40aaf42a41463927a7f75b1d1ab2388bab5749c0127a07a8bf5d4a5a97626c0d782595f3d0561be4063d931c SHA512 929333fd0668008be77b57b3a0955c260770d91402e02d93a460569b8b17763ebe23eb6159bfefe04fa16fad2672d6a6c76e2f3c2e6b864593bef59ef3cfa29f +DIST ovpn-dco-0.2.20231117.tar.gz 70818 BLAKE2B c9524bb2d05d661e4b1b49c63d9ee26d8d45a331da99d45151b7bf7147b4d9a699e157a93c0bd79a3ee58bd7916a672e756a6d4541603a056cef507a2bbb8924 SHA512 07ed4e2eefda8ab86ce72fd8c95370c89d5d40929e39425f622d2ec945dcc8f6c2f92dbe8a3ddb2868c3ca0a93bd21f077cad4788149a13dae2a0a3df43d2d85 diff --git a/net-vpn/ovpn-dco/ovpn-dco-0.2.20231117.ebuild b/net-vpn/ovpn-dco/ovpn-dco-0.2.20231117.ebuild new file mode 100644 index 000000000000..46cd7f9d9e26 --- /dev/null +++ b/net-vpn/ovpn-dco/ovpn-dco-0.2.20231117.ebuild @@ -0,0 +1,58 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic linux-mod-r1 + +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 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/OpenVPN/${PN}.git" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug" + +pkg_setup() { + CONFIG_CHECK=" + INET + NET + NET_UDP_TUNNEL + DST_CACHE + CRYPTO + CRYPTO_AES + CRYPTO_GCM + CRYPTO_CHACHA20POLY1305" + + linux-mod-r1_pkg_setup +} + +src_configure() { + # Causes build failures because it builds with -pg, + # bug #907744 + filter-flags -fomit-frame-pointer + default +} + +src_compile() { + local modlist=( "ovpn-dco-v2=updates:.:drivers/net/ovpn-dco" ) + local modargs=( KERNEL_SRC="${KERNEL_DIR}" ) + [[ ${PV} != 9999 ]] && modargs+=( REVISION="${PV}" ) + use debug && modargs+=( DEBUG=1 ) + + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_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 index 3d07f86aeabc..46cd7f9d9e26 100644 --- a/net-vpn/ovpn-dco/ovpn-dco-9999.ebuild +++ b/net-vpn/ovpn-dco/ovpn-dco-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2023 Gentoo Authors +# Copyright 2023-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -10,7 +10,7 @@ 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 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" else inherit git-r3 EGIT_REPO_URI="https://github.com/OpenVPN/${PN}.git" |