net-vpn/openfortivpn: add 1.24.1

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert
2026-03-16 21:55:37 -04:00
parent 4a535cc40d
commit f9cd2f956c
2 changed files with 72 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST openfortivpn-1.23.1.tar.gz 175670 BLAKE2B f1fb1d0a93bb1f123bc1198bb3940a2527e6bfa90e9993238de71c9348a3e4d534cbe5bcd40007befaead0c0537d9b5c1ba3809f1738dc98a294f287cd3bb7b2 SHA512 68870ccf9922e0d53df26aad3510066de32edc25089067e5e5deb928518f64eba22f49c870212c0abbd6e0d80cd7516c43c8829ec56a72470f95b75296641c70
DIST openfortivpn-1.24.1.tar.gz 177124 BLAKE2B 9f7f2c8c7fa80503cd1a05ddc0057560a6e79aa6e2516f63ad269ac290b9b22be90b5951c68c0f61a70330406dd4b64d2f3fe9d58964d76ec0f5b9ae9280fa24 SHA512 a51cdcc93dea3009be28c0dd964ef019d9f9adc47d6f85119ac074db386ae7a0edf9ffbed0341bab11855727764335686437afe6e2cae659159408c0039cd17a

View File

@@ -0,0 +1,71 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools linux-info systemd
DESCRIPTION="Fortinet compatible VPN client"
HOMEPAGE="https://github.com/adrienverge/openfortivpn"
SRC_URI="https://github.com/adrienverge/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3-with-openssl-exception openssl"
SLOT="0"
KEYWORDS="~amd64"
IUSE="resolvconf systemd"
DEPEND="
dev-libs/openssl:=
net-dialup/ppp
resolvconf? ( virtual/resolvconf )
systemd? ( sys-apps/systemd )
"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
"
CONFIG_CHECK="~PPP ~PPP_ASYNC"
PATCHES=(
"${FILESDIR}"/openfortivpn-1.23.1-automagic.patch
)
src_prepare() {
default
sed -i 's/-Werror//g' Makefile.am || die "Failed to remove -Werror from Makefile.am"
eautoreconf
}
src_configure() {
local myconf=(
$(use_enable systemd)
)
use systemd && myconf+=(
--with-systemdsystemunitdir=$(systemd_get_systemunitdir)
)
use resolvconf || myconf+=(
--with-resolvconf=DISABLED
)
econf "${myconf[@]}"
}
src_install() {
default
keepdir /etc/openfortivpn
}
pkg_postinst() {
if has_version "net-misc/networkmanager"; then
ewarn "It is known that openfortivpn does not work in NetworkManager, but only"
ewarn "as a terminal application. You can install net-vpn/networkmanager-openconnect"
ewarn "to establish a connection to a Forti VPN in NetworkManager."
fi
}