Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-vpn/openfortivpn: Substitute BINDIR and SYSCONFDIR in systemd uni…
…t 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>
- Loading branch information
1 parent
3f1bd76
commit 17b9dab
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
net-vpn/openfortivpn/files/systemd_substitute_bin_and_sysconfig_dirs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters