diff --git a/acct-group/fah-client/Manifest b/acct-group/fah-client/Manifest
new file mode 100644
index 0000000..e69de29
diff --git a/acct-group/fah-client/fah-client-0.ebuild b/acct-group/fah-client/fah-client-0.ebuild
new file mode 100644
index 0000000..2b06c51
--- /dev/null
+++ b/acct-group/fah-client/fah-client-0.ebuild
@@ -0,0 +1,12 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit acct-group
+
+DESCRIPTION="A group for sci-biology/fah-client-bin"
+SLOT="0"
+KEYWORDS="~amd64"
+
+ACCT_GROUP_ID="139"
diff --git a/acct-group/fah-client/metadata.xml b/acct-group/fah-client/metadata.xml
new file mode 100644
index 0000000..26e2b6d
--- /dev/null
+++ b/acct-group/fah-client/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>administrator@josie-c.com</email>
+ <name>cjosie</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/acct-user/fah-client/Manifest b/acct-user/fah-client/Manifest
new file mode 100644
index 0000000..e69de29
diff --git a/acct-user/fah-client/fah-client-0.ebuild b/acct-user/fah-client/fah-client-0.ebuild
new file mode 100644
index 0000000..e6e5043
--- /dev/null
+++ b/acct-user/fah-client/fah-client-0.ebuild
@@ -0,0 +1,17 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit acct-user
+
+DESCRIPTION="A user for sci-biology/fah-client-bin"
+SLOT="0"
+KEYWORDS="~amd64"
+
+ACCT_USER_ID="139"
+ACCT_USER_GROUPS=( fah-client video render )
+ACCT_USER_HOME="/var/lib/fah-client"
+ACCT_USER_HOME_PERMS=0750
+
+acct-user_add_deps
diff --git a/acct-user/fah-client/metadata.xml b/acct-user/fah-client/metadata.xml
new file mode 100644
index 0000000..26e2b6d
--- /dev/null
+++ b/acct-user/fah-client/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>administrator@josie-c.com</email>
+ <name>cjosie</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-biology/fah-client-bin/Manifest b/sci-biology/fah-client-bin/Manifest
new file mode 100644
index 0000000..b15f8f7
--- /dev/null
+++ b/sci-biology/fah-client-bin/Manifest
@@ -0,0 +1 @@
+DIST fah-client_8.5.6_amd64.deb 3205180 BLAKE2B 248f7c71e5c13c95c2776ac9c784b86a46297a00cd347feafa866e3794d63c9191f9472308534fbd58df0838dc293e2297958123c40c38fd137a81f7efb10801 SHA512 058a9c38c9f435064c451cf991cea4b5999209a1cdbd7b7a5c8617cff85154e009c928ac78f1b854b843efb94fd4606c90d2bb55f670f55527755a893584a223
diff --git a/sci-biology/fah-client-bin/fah-client-bin-8.5.6.ebuild b/sci-biology/fah-client-bin/fah-client-bin-8.5.6.ebuild
new file mode 100644
index 0000000..754fe2c
--- /dev/null
+++ b/sci-biology/fah-client-bin/fah-client-bin-8.5.6.ebuild
@@ -0,0 +1,82 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop systemd unpacker optfeature
+
+DESCRIPTION="Folding@home v8 client (Bastet), a distributed protein-folding client"
+HOMEPAGE="https://foldingathome.org/"
+# Upstream publishes v8 only as .deb/.rpm/.pkg (plus a binary tarball). The source
+# (github.com/FoldingAtHome/fah-client-bastet) builds with SCons but needs cbang,
+# which is not packaged in Gentoo, so this repackages the Debian build.
+SRC_URI="https://download.foldingathome.org/releases/public/fah-client/debian-10-64bit/release/fah-client_${PV}_amd64.deb"
+S="${WORKDIR}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="systemd"
+RESTRICT="bindist mirror strip"
+QA_PREBUILT="usr/bin/fah-client"
+
+DEPEND="dev-util/patchelf"
+RDEPEND="
+ acct-group/fah-client
+ acct-user/fah-client
+ app-arch/lz4
+ app-misc/ca-certificates
+ virtual/zlib
+ systemd? ( sys-apps/systemd )
+ !systemd? ( sys-auth/elogind )
+"
+
+src_prepare() {
+ default
+
+ # The upstream binary is linked against systemd's libsystemd.so.0. That library
+ # is unavailable on OpenRC/elogind systems (sys-auth/elogind blocks
+ # sys-apps/systemd), but elogind is a systemd fork and exports the seven
+ # sd_bus_* symbols the client uses at the same LIBSYSTEMD_221/222 symbol
+ # versions, so point the dependency at it instead.
+ if ! use systemd; then
+ patchelf --replace-needed libsystemd.so.0 libelogind.so.0 \
+ usr/bin/fah-client || die
+ fi
+}
+
+src_install() {
+ dobin usr/bin/fah-client usr/bin/fahctl
+
+ if use systemd; then
+ systemd_dounit lib/systemd/system/fah-client.service
+ fi
+ newinitd "${FILESDIR}"/fah-client.initd fah-client
+
+ insinto /etc/fah-client
+ doins "${FILESDIR}"/config.xml
+
+ insinto /usr/share/polkit-1/rules.d
+ doins usr/share/polkit-1/rules.d/10-fah-client.rules
+
+ domenu usr/share/applications/fah-client.desktop
+
+ insinto /usr/share/pixmaps
+ doins usr/share/pixmaps/fahlogo.png
+
+ keepdir /var/lib/fah-client /var/log/fah-client
+ fowners fah-client:fah-client /var/lib/fah-client /var/log/fah-client
+ fperms 0750 /var/lib/fah-client
+
+ dodoc usr/share/doc/fah-client/README.md
+}
+
+pkg_postinst() {
+ optfeature "command-line control with fahctl" dev-python/websocket-client
+ optfeature "sleep inhibition through logind" sys-auth/polkit
+ elog "Control the client from your browser at https://v8-5.foldingathome.org/"
+ elog "or with fahctl. Start the service with:"
+ elog "(openrc)\trc-service fah-client start"
+ elog "(systemd)\tsystemctl start fah-client"
+ elog "GPU folding uses HIP/ROCm, OpenCL or CUDA, all detected at runtime."
+}
diff --git a/sci-biology/fah-client-bin/files/config.xml b/sci-biology/fah-client-bin/files/config.xml
new file mode 100644
index 0000000..d99062a
--- /dev/null
+++ b/sci-biology/fah-client-bin/files/config.xml
@@ -0,0 +1 @@
+<config/>
diff --git a/sci-biology/fah-client-bin/files/fah-client.initd b/sci-biology/fah-client-bin/files/fah-client.initd
new file mode 100644
index 0000000..45c9d5d
--- /dev/null
+++ b/sci-biology/fah-client-bin/files/fah-client.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Folding@home v8 Client"
+
+command="/usr/bin/fah-client"
+command_args="--config=/etc/fah-client/config.xml --log=/var/log/fah-client/log.txt --log-rotate-dir=/var/log/fah-client/"
+command_user="fah-client:fah-client"
+command_background="yes"
+pidfile="/run/${RC_SVCNAME}.pid"
+start_stop_daemon_args="--chdir /var/lib/fah-client"
+
+depend() {
+ need net
+ after firewall
+ use logger
+}
diff --git a/sci-biology/fah-client-bin/metadata.xml b/sci-biology/fah-client-bin/metadata.xml
new file mode 100644
index 0000000..d496af1
--- /dev/null
+++ b/sci-biology/fah-client-bin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>administrator@josie-c.com</email>
+ <name>cjosie</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">FoldingAtHome/fah-client-bastet</remote-id>
+ </upstream>
+</pkgmetadata>
sci-biology/fah-client-bin: add Folding@home v8 client (bin)
v8 "Bastet" is GPL-3+ and upstream's current release is 8.5.6 (there is no v9). It builds with SCons but needs cbang, which is unpackaged, so repackage the official Debian build via unpacker.eclass. The upstream binary is linked against systemd's libsystemd.so.0, which is unavailable on OpenRC/elogind systems (sys-auth/elogind blocks sys-apps/systemd). elogind exports the seven sd_bus_* symbols the client uses at the same LIBSYSTEMD_221/222 versions, so on non-systemd systems retarget the NEEDED entry to libelogind.so.0 with patchelf. Add an OpenRC init script (upstream ships only a systemd unit, installed under use=systemd) plus overlay acct-user/acct-group fah-client (ID 139, groups video,render).
78f6f13b14ae581e286269f6e9a53f32d8195f0f
cjosie <administrator@josie-c.com> · 2026-10-14T23:23 ·
browse files at this commit
parents:
b606445