linamh/net-vpn/openvpn3/openvpn3-19_beta.ebuild

64 lines
1.3 KiB
Bash
Raw 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"
2022-11-19 21:49:12 +01:00
EGIT_COMMIT="v19_beta"
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
>=sys-devel/autoconf-2.69-r5
>=sys-devel/autoconf-archive-2021.02.19
>=sys-devel/automake-1.11.6-r3
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
}