Skip to content

Commit

Permalink
net-vpn/openfortivpn: Substitute BINDIR and SYSCONFDIR in systemd uni…
Browse files Browse the repository at this point in the history
…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
Scantlight authored and thesamesam committed Oct 20, 2021
1 parent 3f1bd76 commit 17b9dab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
@@ -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]
4 changes: 4 additions & 0 deletions net-vpn/openfortivpn/openfortivpn-1.17.1.ebuild
Expand Up @@ -21,6 +21,10 @@ RDEPEND="${DEPEND}"

CONFIG_CHECK="~PPP ~PPP_ASYNC"

PATCHES=(
"${FILESDIR}/systemd_substitute_bin_and_sysconfig_dirs.patch"
)

src_prepare() {
default

Expand Down

0 comments on commit 17b9dab

Please sign in to comment.