linamh/net-vpn/openvpn3/openvpn3-21.ebuild

64 lines
1.3 KiB
Bash
Raw Permalink Normal View History

# Copyright 1999-2022 Gentoo Authors
2022-02-23 19:17:30 +01:00
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
DESCRIPTION="Next generation OpenVPN client"
HOMEPAGE="https://openvpn.net"
LICENSE="GNU Affero General Public License v3.0"
EGIT_REPO_URI="https://github.com/OpenVPN/openvpn3-linux.git"
2023-12-25 09:20:55 +01:00
EGIT_COMMIT="v21"
2022-02-23 19:17:30 +01:00
EGIT_SUBMODULES=( '*' )
SLOT="0"
KEYWORDS="~amd64"
IUSE="+openssl mbedtls"
CDEPEND="mbedtls? ( net-libs/mbedtls:= )
openssl? ( >=dev-libs/openssl-1.0.2 )
"
RDEPEND="${CDEPEND}
acct-group/openvpn
acct-user/openvpn
2024-01-24 22:46:12 +01:00
>=dev-build/autoconf-2.69-r5
>=dev-build/autoconf-archive-2021.02.19
>=dev-build/automake-1.11.6-r3
2022-02-23 19:17:30 +01:00
dev-libs/jsoncpp
>=sys-libs/libcap-ng-0.8.2-r1
>=app-arch/lz4-1.9.3-r1
>=dev-libs/glib-2.68.2-r1
>=dev-libs/tinyxml2-8.0.0
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_configure() {
cat <<EOF >./version.m4
define([PRODUCT_NAME], [OpenVPN 3/Linux])
define([PRODUCT_VERSION], [${PRODVERSION}])
define([PRODUCT_GUIVERSION], [${GUIVERSION}])
define([PRODUCT_TARNAME], [openvpn3-linux])
define([PRODUCT_BUGREPORT], [openvpn-devel@lists.sourceforge.net])
EOF
autoreconf -vi
./configure \
host=${CHOST} \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
}
src_compile() {
emake
}
src_install() {
default
}