diff options
author | Petru Ciobanu <scantlight@gmail.com> | 2021-10-16 17:16:52 -0700 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-20 03:26:11 +0000 |
commit | 17b9dab6d7d190b40a4cd0b6f01c190d6a84a698 (patch) | |
tree | eb86a8c5d1f91738d450d0e731ecbe6465a5795c /net-vpn | |
parent | net-vpn/openfortivpn: Version bump 1.17.1 (diff) | |
download | gentoo-17b9dab6d7d190b40a4cd0b6f01c190d6a84a698.tar.gz gentoo-17b9dab6d7d190b40a4cd0b6f01c190d6a84a698.tar.bz2 gentoo-17b9dab6d7d190b40a4cd0b6f01c190d6a84a698.zip |
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>
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/openfortivpn/files/systemd_substitute_bin_and_sysconfig_dirs.patch | 13 | ||||
-rw-r--r-- | net-vpn/openfortivpn/openfortivpn-1.17.1.ebuild | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/net-vpn/openfortivpn/files/systemd_substitute_bin_and_sysconfig_dirs.patch b/net-vpn/openfortivpn/files/systemd_substitute_bin_and_sysconfig_dirs.patch new file mode 100644 index 000000000000..4cfe57c46545 --- /dev/null +++ b/net-vpn/openfortivpn/files/systemd_substitute_bin_and_sysconfig_dirs.patch @@ -0,0 +1,13 @@ +diff --git a/lib/systemd/system/openfortivpn@.service.in b/lib/systemd/system/openfortivpn@.service.in +index 6c30230..3ff3d7c 100644 +--- a/lib/systemd/system/openfortivpn@.service.in ++++ b/lib/systemd/system/openfortivpn@.service.in +@@ -6,7 +6,7 @@ Documentation=man:openfortivpn(1) + [Service] + Type=simple + PrivateTmp=true +-ExecStart=@BINDIR@/openfortivpn -c @SYSCONFDIR@/openfortivpn/%I.conf ++ExecStart=/usr/bin/openfortivpn -c /etc/openfortivpn/%I.conf + OOMScoreAdjust=-100 + + [Install] diff --git a/net-vpn/openfortivpn/openfortivpn-1.17.1.ebuild b/net-vpn/openfortivpn/openfortivpn-1.17.1.ebuild index 0c64cdfd137f..634f0884bc80 100644 --- a/net-vpn/openfortivpn/openfortivpn-1.17.1.ebuild +++ b/net-vpn/openfortivpn/openfortivpn-1.17.1.ebuild @@ -21,6 +21,10 @@ RDEPEND="${DEPEND}" CONFIG_CHECK="~PPP ~PPP_ASYNC" +PATCHES=( + "${FILESDIR}/systemd_substitute_bin_and_sysconfig_dirs.patch" +) + src_prepare() { default |