Upstream sources include a systemd service [1] which would be nice to add to the ebuild in order to support always-on VPN's. [1] https://raw.githubusercontent.com/adrienverge/openfortivpn/master/lib/systemd/system/openfortivpn%40.service.in
The systemd service file needs to be modified: sed -i 's/@BINDIR@/\/usr\/bin/g' openfortivpn@.service sed -i 's/@SYSCONFDIR@/\/etc/g' openfortivpn@.service
I've updated this pull request to include these changes. Let me know if it looks good to you. https://github.com/gentoo/gentoo/pull/22560
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17b9dab6d7d190b40a4cd0b6f01c190d6a84a698 commit 17b9dab6d7d190b40a4cd0b6f01c190d6a84a698 Author: Petru Ciobanu <scantlight@gmail.com> AuthorDate: 2021-10-17 00:16:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-10-20 03:26:11 +0000 net-vpn/openfortivpn: Substitute BINDIR and SYSCONFDIR in systemd unit file Those variables needs to be replaced with real location that contains the expected executable and configuration. Bug: https://bugs.gentoo.org/766357 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Petru Ciobanu <scantlight@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> .../files/systemd_substitute_bin_and_sysconfig_dirs.patch | 13 +++++++++++++ net-vpn/openfortivpn/openfortivpn-1.17.1.ebuild | 4 ++++ 2 files changed, 17 insertions(+)
We should close this bug once the new versions are stabled.