diff options
author | Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> | 2023-10-26 11:46:52 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-11-23 11:08:45 +0100 |
commit | b4973264cdac53a188f5f2def739eb54bd87c768 (patch) | |
tree | 3fb7baceb87bae8f96fb42a1986af99bb5a0cf43 /net-vpn/eduvpn-common | |
parent | net-vpn/eduvpn-client: new package, add 4.1.3 (diff) | |
download | gentoo-b4973264cdac53a188f5f2def739eb54bd87c768.tar.gz gentoo-b4973264cdac53a188f5f2def739eb54bd87c768.tar.bz2 gentoo-b4973264cdac53a188f5f2def739eb54bd87c768.zip |
net-vpn/eduvpn-common: add 1.1.99.0
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Acked-by: Sam James <sam@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'net-vpn/eduvpn-common')
-rw-r--r-- | net-vpn/eduvpn-common/Manifest | 2 | ||||
-rw-r--r-- | net-vpn/eduvpn-common/eduvpn-common-1.1.99.0.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/net-vpn/eduvpn-common/Manifest b/net-vpn/eduvpn-common/Manifest index eee90b353fe8..8cdaa49d13e2 100644 --- a/net-vpn/eduvpn-common/Manifest +++ b/net-vpn/eduvpn-common/Manifest @@ -1,2 +1,4 @@ DIST eduvpn-common-1.1.2-deps.tar.xz 7517364 BLAKE2B a6bd2c11d5056170d88ca8c35d054cd6d529462af6595fe31c535640cdf59a25ae4811c04bc738832fa4c28d2d3308ca5615170547b0c93edf7c4dd3f475978b SHA512 ce167298a76df4e22b23e3cfb7640f0272ea546dc5767f66baab900029c2a4850b383521d2f74ae0d77c53f47ba6eb51d80ab122362e4a7470e69a1fc3ac423f DIST eduvpn-common-1.1.2.gh.tar.gz 208300 BLAKE2B 8cb7e96d4a6a5032a1696aa57a6322f6a861aebba8b1f653d8be98e0044eacb3f23dc400ac9a8598dd83f30ca2140394ee2aa5733a27547f2a0378ad03ab422d SHA512 dbc290e48bc045456ad83e58e63c223cef5a7e1c7178537a44ed306a423276e644fb0f5607a7d8ddc5014b48ae11b57e365068d72887062277f8ab4f6f1ae660 +DIST eduvpn-common-1.1.99.0-deps.tar.xz 7581560 BLAKE2B faa8a91a3eaff9a49e2c39059687d3e2264dd2f0dfcd711b301776a90df34e5f85aa1f5b724771a7b0e6c5f2ee3ec62fe72ddfdb6c35cb4cd664069fe189f26c SHA512 05d8f9785d0b967f7e2d64ec735b8e1dbf251b895ea7b860471128cb13d66ae6ffbb8507d831d7e2a7a4d0cf585bdd3f4514f74ff14202fa604d7a36a2d7d540 +DIST eduvpn-common-1.1.99.0.gh.tar.gz 209972 BLAKE2B 3547be10495bed8dd7ac185bf711d32cfdedee44b4acd7e1ef3ac7d56a7d4ca335deea34d8c9744738ef104d2f1ffe30b4623b0abb3589d7d3380ba00d6cf09d SHA512 f4e2ef80a1c4736bbfc30d0c8d439f993ccde87c93daa5d1f7179494938513123afeb44f23bbc4287d0309da10d5a0aeddfb77eae51933bbe6e5c57d461b1d5f diff --git a/net-vpn/eduvpn-common/eduvpn-common-1.1.99.0.ebuild b/net-vpn/eduvpn-common/eduvpn-common-1.1.99.0.ebuild new file mode 100644 index 000000000000..3545e366925a --- /dev/null +++ b/net-vpn/eduvpn-common/eduvpn-common-1.1.99.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 +inherit distutils-r1 go-module linux-info + +DESCRIPTION="Linux client and Python client API for eduVPN" +HOMEPAGE="https://www.eduvpn.org/" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/eduvpn/eduvpn-common.git" +else + SRC_URI=" + https://github.com/eduvpn/eduvpn-common/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz + https://www-user.tu-chemnitz.de/~hamari/eduvpn/${P}-deps.tar.xz + " +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="openvpn wireguard" +RESTRICT="test" + +RDEPEND=" + openvpn? ( net-vpn/openvpn ) +" + +wrap_python() { + local phase=$1 + shift + + pushd wrappers/python >/dev/null || die + distutils-r1_${phase} "$@" + popd >/dev/null || die +} + +pkg_pretend() { + if use wireguard; then + CONFIG_CHECK="~WIREGUARD" + WARNING_WIREGUARD="You must enable WIREGUARD to use wireguard." + check_extra_config + fi +} + +src_prepare() { + default + + mkdir -p wrappers/python/eduvpn_common/lib || die + + wrap_python ${FUNCNAME} +} + +src_compile() { + default + wrap_python ${FUNCNAME} +} + +src_test() { + default + wrap_python ${FUNCNAME} +} + +src_install() { + # The shared library is installed within the python package. There is no + # need to call the default routine. + wrap_python ${FUNCNAME} +} |