add net-vpn/openvpn3-cli
This commit is contained in:
parent
e0fb92fbfb
commit
57969a596a
2
net-vpn/openvpn3-cli/Manifest
Normal file
2
net-vpn/openvpn3-cli/Manifest
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
DIST openvpn3-3.10.4.tar.gz 2249462 BLAKE2B 0359bf8374343f33b2747e4a0f81a81b8232018cd0bacff13fa63d5c412473612fc2043e3a9569b561938da78a1a61e92691c8774d0b9c0ed774a72139643cb2 SHA512 3309c7f7581fabc93615d118cb4dc7a4fd163bfd23910b021b2c3f350996f2d92c8745fb7de213a25277f165ac8b0dafd6aaf5104039ff76394e4c65b376de38
|
||||||
|
EBUILD openvpn3-cli-3.10.4.ebuild 908 BLAKE2B 773162f6ba8bec3051fd5c620835bbdb8e2cdbcef35f395a5830f20ba132635bcc7b85e79a4423fd7efc3758718a329d95be30dd9444568239e1c623299f4497 SHA512 67361889a500fa3bdc61215f0525068d977284a73a2f7f257066c235ee9d63fb6945c6c2dd5b4b389565082b0addfa0a97e0f525d1e12eb2c91281b5910d74c2
|
50
net-vpn/openvpn3-cli/openvpn3-cli-3.10.4.ebuild
Normal file
50
net-vpn/openvpn3-cli/openvpn3-cli-3.10.4.ebuild
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# Copyright 2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
DESCRIPTION="Next generation minimal OpenVPN client"
|
||||||
|
HOMEPAGE="https://openvpn.net"
|
||||||
|
SRC_URI="https://github.com/OpenVPN/openvpn3/archive/refs/tags/release/$PV/openvpn3-$PV.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3+"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="dco"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/jsoncpp
|
||||||
|
sys-libs/libcap
|
||||||
|
app-arch/lz4
|
||||||
|
dev-cpp/asio
|
||||||
|
dev-libs/xxhash
|
||||||
|
dco? (
|
||||||
|
net-vpn/ovpn-dco:=
|
||||||
|
>=dev-libs/protobuf-2.4.0:=
|
||||||
|
>=dev-libs/libnl-3.2.29:=
|
||||||
|
)"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
S="$WORKDIR/openvpn3-release-$PV"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
sed -i -e 's,add_subdirectory(test/unittests),,' CMakeLists.txt
|
||||||
|
|
||||||
|
cmake -G Ninja -B build \
|
||||||
|
-DBUILD_SHARED_LIBS=False
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cmake --build build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
install -Dm755 build/test/ovpncli/ovpncli -t "$D"/usr/bin
|
||||||
|
mkdir "$D"/usr/include
|
||||||
|
mv openvpn "$D"/usr/include
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user