From f9cd2f956caad2c3735e0a77aeb354f9518f2e59 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 16 Mar 2026 21:55:37 -0400 Subject: [PATCH] net-vpn/openfortivpn: add 1.24.1 Signed-off-by: Mike Gilbert --- net-vpn/openfortivpn/Manifest | 1 + .../openfortivpn/openfortivpn-1.24.1.ebuild | 71 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 net-vpn/openfortivpn/openfortivpn-1.24.1.ebuild diff --git a/net-vpn/openfortivpn/Manifest b/net-vpn/openfortivpn/Manifest index 5d4b25de2e738..c8dfb30eadda3 100644 --- a/net-vpn/openfortivpn/Manifest +++ b/net-vpn/openfortivpn/Manifest @@ -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 diff --git a/net-vpn/openfortivpn/openfortivpn-1.24.1.ebuild b/net-vpn/openfortivpn/openfortivpn-1.24.1.ebuild new file mode 100644 index 0000000000000..e3b6ef73d18f9 --- /dev/null +++ b/net-vpn/openfortivpn/openfortivpn-1.24.1.ebuild @@ -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 +}