# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit toolchain-funcs DESCRIPTION="Multi-protocol VPN software" HOMEPAGE="https://www.softether.org" SRC_URI="https://github.com/SoftEtherVPN/SoftEtherVPN/releases/download/${PV}/SoftEtherVPN-${PV}.tar.xz" S="${WORKDIR}/SoftEtherVPN-${PV}" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ~x86" IUSE="debug systemd" RDEPEND="dev-libs/libsodium:0= dev-libs/openssl:0= sys-libs/ncurses:0= sys-libs/readline:0= sys-libs/zlib:0=" DEPEND="${RDEPEND}" DOCS=( AUTHORS.TXT README.md SECURITY.md ) src_configure(){ default sed -i "s!/usr\/local!${D}/opt/softether!" build/cmake_install.cmake find -name cmake_install.cmake | xargs sed -i "s!/lib/systemd!${D}/lib/systemd!" } src_compile(){ emake -C build } src_install() { einstalldocs emake -C build install if ! use systemd; then rm -r "${D}/lib/systemd" fi }