360cdee9e4
Package-Manager: Portage-3.0.30, Repoman-3.0.3 RepoMan-Options: --force
64 lines
1.3 KiB
Bash
64 lines
1.3 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# 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"
|
|
EGIT_COMMIT="v17_beta"
|
|
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
|
|
}
|