summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-biology/foldingathome/foldingathome-7.5.1-r2.ebuild')
-rw-r--r--sci-biology/foldingathome/foldingathome-7.5.1-r2.ebuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/sci-biology/foldingathome/foldingathome-7.5.1-r2.ebuild b/sci-biology/foldingathome/foldingathome-7.5.1-r2.ebuild
index 502ff39266a9..cb7ce89a604b 100644
--- a/sci-biology/foldingathome/foldingathome-7.5.1-r2.ebuild
+++ b/sci-biology/foldingathome/foldingathome-7.5.1-r2.ebuild
@@ -25,7 +25,9 @@ RDEPEND="app-arch/bzip2
)
sys-devel/gcc
sys-libs/glibc
- sys-libs/zlib"
+ sys-libs/zlib
+ acct-group/video
+"
S="${WORKDIR}/fahclient_${PV}-64bit-release"
@@ -44,7 +46,7 @@ pkg_setup() {
elog ""
enewgroup foldingathome
- enewuser foldingathome -1 -1 "${EPREFIX}"/opt/foldingathome
+ enewuser foldingathome -1 -1 "${EPREFIX}"/opt/foldingathome video
}
src_install() {
@@ -83,12 +85,16 @@ Documentation=https://foldingathome.org
[Service]
Type=simple
User=foldingathome
+Group=foldingathome
+Nice=19
WorkingDirectory=${EPREFIX}/opt/foldingathome
-PIDFile=/run/fahclient.pid
-ExecStart=${EPREFIX}/opt/foldingathome/FAHClient -v
-#ExecReload=${EPREFIX}/opt/foldingathome/FAHClient -v restart
-#ExecStop=${EPREFIX}/opt/foldingathome/FAHClient -v stop
-KillMode=process
+ExecStart=${EPREFIX}/opt/foldingathome/FAHClient --fork=false --pid=false --respawn=false --service=false
+NoNewPrivileges=yes
+PrivateTmp=yes
+ProtectControlGroups=yes
+ProtectSystem=full
+RestrictRealtime=true
+ProtectControlGroups=yes
[Install]
WantedBy=multi-user.target