mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
biology/linux-foldingathome: Update to 8.4.9.
The sample config is from the old version, the new one doesn't come with a sample config. While I'm here, add svcj options to the start script. Reviewed by: 0mp Approved by: 0mp
This commit is contained in:
parent
953aa9fd35
commit
353e24e275
6 changed files with 92 additions and 20 deletions
|
@ -1,10 +1,10 @@
|
||||||
PORTNAME= foldingathome
|
PORTNAME= foldingathome
|
||||||
DISTVERSION= 7.6.21
|
DISTVERSION= 8.4.9
|
||||||
CATEGORIES= biology linux
|
CATEGORIES= biology linux
|
||||||
MASTER_SITES= https://download.foldingathome.org/releases/v7/public/fahclient/centos-6.7-64bit/release/
|
MASTER_SITES= https://download.foldingathome.org/releases/public/fah-client/debian-10-64bit/release/
|
||||||
PKGNAMEPREFIX= linux-
|
PKGNAMEPREFIX= linux-
|
||||||
DISTNAME= fahclient-${DISTVERSION}-1
|
DISTNAME= fah-client_${DISTVERSION}-64bit-release
|
||||||
EXTRACT_SUFX= .x86_64.rpm
|
EXTRACT_SUFX= .tar.bz2
|
||||||
|
|
||||||
MAINTAINER= 0mp@FreeBSD.org
|
MAINTAINER= 0mp@FreeBSD.org
|
||||||
COMMENT= Folding@home Client
|
COMMENT= Folding@home Client
|
||||||
|
@ -13,15 +13,15 @@ WWW= https://foldingathome.org/
|
||||||
# Distribution without permission is prohibited
|
# Distribution without permission is prohibited
|
||||||
LICENSE= FAHSL
|
LICENSE= FAHSL
|
||||||
LICENSE_NAME= Folding@home Software License
|
LICENSE_NAME= Folding@home Software License
|
||||||
LICENSE_FILE= ${WRKSRC}/usr/share/doc/fahclient/copyright
|
LICENSE_FILE= ${WRKSRC}/${DISTNAME}/LICENSE
|
||||||
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell \
|
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell \
|
||||||
auto-accept
|
auto-accept
|
||||||
|
|
||||||
ONLY_FOR_ARCHS= amd64
|
ONLY_FOR_ARCHS= amd64
|
||||||
ONLY_FOR_ARCHS_REASON= has not been ported to this architecture
|
ONLY_FOR_ARCHS_REASON= has not been ported to this architecture
|
||||||
|
|
||||||
USES= dos2unix linux
|
USES= linux:rl9
|
||||||
DOS2UNIX_FILES= usr/share/doc/fahclient/*
|
USE_LINUX= systemd-libs
|
||||||
USE_RC_SUBR= fahclient
|
USE_RC_SUBR= fahclient
|
||||||
|
|
||||||
ETCDIR= ${PREFIX}/etc/fahclient
|
ETCDIR= ${PREFIX}/etc/fahclient
|
||||||
|
@ -45,19 +45,18 @@ OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
_FAHCLIENT_CONFIG_XML= ${ETCDIR}/config.xml
|
_FAHCLIENT_CONFIG_XML= ${ETCDIR}/config.xml
|
||||||
_FAHCLIENT_WORK_DIR= /var/db/fahclient
|
_FAHCLIENT_WORK_DIR= /var/db/fahclient
|
||||||
_FAHCLIENT_PROGRAM= ${PREFIX}/bin/FAHClient
|
_FAHCLIENT_PROGRAM= ${PREFIX}/bin/fah-client
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/usr/bin/FAHClient ${STAGEDIR}${PREFIX}/bin/
|
${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME}/fah-client ${STAGEDIR}${PREFIX}/bin/
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/usr/bin/FAHCoreWrapper ${STAGEDIR}${PREFIX}/bin/
|
|
||||||
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/usr/share/doc/fahclient/sample-config.xml \
|
${INSTALL_DATA} ${FILESDIR}/config.xml.sample \
|
||||||
${STAGEDIR}${_FAHCLIENT_CONFIG_XML}.sample
|
${STAGEDIR}${_FAHCLIENT_CONFIG_XML}.sample
|
||||||
@${MKDIR} ${STAGEDIR}${_FAHCLIENT_WORK_DIR}
|
@${MKDIR} ${STAGEDIR}${_FAHCLIENT_WORK_DIR}
|
||||||
|
|
||||||
post-install-DOCS-on:
|
post-install-DOCS-on:
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/usr/share/doc/fahclient/|} \
|
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/${DISTNAME}/|} \
|
||||||
${STAGEDIR}${DOCSDIR}
|
${STAGEDIR}${DOCSDIR}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1624640434
|
TIMESTAMP = 1739437601
|
||||||
SHA256 (fahclient-7.6.21-1.x86_64.rpm) = a9f8b5073cd800cc63e32c623a8b4d7487c4e19a1e84760202e451b997d95073
|
SHA256 (fah-client_8.4.9-64bit-release.tar.bz2) = 2acccbeda05649f6f913d29f91a22308e88ec3e117499f636a18dc56244d6cf1
|
||||||
SIZE (fahclient-7.6.21-1.x86_64.rpm) = 3779272
|
SIZE (fah-client_8.4.9-64bit-release.tar.bz2) = 3649371
|
||||||
|
|
64
biology/linux-foldingathome/files/config.xml.sample
Normal file
64
biology/linux-foldingathome/files/config.xml.sample
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
<config>
|
||||||
|
<!--
|
||||||
|
This is a sample XML configuration file for the Folding@home
|
||||||
|
console client. This configuration file format is explained
|
||||||
|
in detail in the Client User's Guide.
|
||||||
|
|
||||||
|
Copy this file to 'config.xml' and edit.
|
||||||
|
|
||||||
|
To set your user name, team and passkey just edit the text
|
||||||
|
in quotes below.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- User Information -->
|
||||||
|
<user value="anonymous"/> <!-- Enter your user name here -->
|
||||||
|
<team value="0"/> <!-- Your team number -->
|
||||||
|
<passkey value=""/> <!-- 32 hexadecimal characters if provided -->
|
||||||
|
|
||||||
|
<power value="light"/>
|
||||||
|
<gpu value="false"/> <!-- If true, attempt to autoconfigure GPUs -->
|
||||||
|
<fold-anon value="false"/>
|
||||||
|
|
||||||
|
<!-- Folding Slots
|
||||||
|
No folding slot configuration is necessary. The client will
|
||||||
|
automaticlaly choose a good configuration for you. However, here
|
||||||
|
are some examples:
|
||||||
|
|
||||||
|
<slot id="0" type="CPU"/>
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
<slot id="0" type="CPU"/>
|
||||||
|
<slot id="1" type="GPU"/>
|
||||||
|
|
||||||
|
All slots in a configuration MUST have unique ids.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Granting Remote FAHControl Access
|
||||||
|
To grant remote access to FAHControl and the remote command server add
|
||||||
|
the following:
|
||||||
|
|
||||||
|
<allow>127.0.0.1 x.x.x.x</allow>
|
||||||
|
<password>PASS</password>
|
||||||
|
|
||||||
|
Where x.x.x.x is the IP address of the computer which should be granted
|
||||||
|
remote access and PASS is you choose to further secure the connection.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Granting Remote Web Access
|
||||||
|
If you would like to grant remote Web access then you need these two
|
||||||
|
configuration lines:
|
||||||
|
|
||||||
|
<allow>127.0.0.1 x.x.x.x</allow>
|
||||||
|
<web-allow>127.0.0.1 x.x.x.x</web-allow>
|
||||||
|
|
||||||
|
Where x.x.x.x is the IP address of the computer which should be granted
|
||||||
|
remote access. You may also need to open port 7396 on your firewall.
|
||||||
|
|
||||||
|
You can then access the Web interface remotely by going to this address:
|
||||||
|
|
||||||
|
http://y.y.y.y:7396/
|
||||||
|
|
||||||
|
Where y.y.y.y is the IP address of this computer.
|
||||||
|
-->
|
||||||
|
</config>
|
|
@ -67,6 +67,7 @@ load_rc_config 'fahclient'
|
||||||
: "${fahclient_enable:=NO}"
|
: "${fahclient_enable:=NO}"
|
||||||
: "${fahclient_user:=fahclient}"
|
: "${fahclient_user:=fahclient}"
|
||||||
: "${fahclient_chdir:=%%FAHCLIENT_WORK_DIR%%}"
|
: "${fahclient_chdir:=%%FAHCLIENT_WORK_DIR%%}"
|
||||||
|
: "${fahclient_svcj_options:=net_basic}"
|
||||||
|
|
||||||
: "${fahclient_donor:=Anonymous}"
|
: "${fahclient_donor:=Anonymous}"
|
||||||
: "${fahclient_team:=11743}"
|
: "${fahclient_team:=11743}"
|
||||||
|
@ -78,7 +79,7 @@ load_rc_config 'fahclient'
|
||||||
pidfile="${fahclient_pidfile}"
|
pidfile="${fahclient_pidfile}"
|
||||||
procname="%%FAHCLIENT_PROGRAM%%"
|
procname="%%FAHCLIENT_PROGRAM%%"
|
||||||
command="/usr/sbin/daemon"
|
command="/usr/sbin/daemon"
|
||||||
command_args="-o ${fahclient_logfile} -p ${pidfile} -- ${procname}"
|
command_args="-p ${pidfile} -- ${procname}"
|
||||||
# Some notes on the specified options:
|
# Some notes on the specified options:
|
||||||
# - fahclient_flags are passed in before other options by the rc
|
# - fahclient_flags are passed in before other options by the rc
|
||||||
# framework.
|
# framework.
|
||||||
|
@ -96,7 +97,10 @@ _fahclient_command_args=
|
||||||
_fahclient_command_args="${_fahclient_command_args} --user=${fahclient_donor}"
|
_fahclient_command_args="${_fahclient_command_args} --user=${fahclient_donor}"
|
||||||
_fahclient_command_args="${_fahclient_command_args} --team=${fahclient_team}"
|
_fahclient_command_args="${_fahclient_command_args} --team=${fahclient_team}"
|
||||||
_fahclient_command_args="${_fahclient_command_args} --config=${fahclient_config}"
|
_fahclient_command_args="${_fahclient_command_args} --config=${fahclient_config}"
|
||||||
_fahclient_command_args="${_fahclient_command_args} --chdir=${fahclient_chdir}"
|
#_fahclient_command_args="${_fahclient_command_args} --chdir=${fahclient_chdir}"
|
||||||
|
_fahclient_command_args="${_fahclient_command_args} --log=${fahclient_logfile}"
|
||||||
|
_fahclient_command_args="${_fahclient_command_args} --log-rotate-dir=$(dirname ${fahclient_logfile})"
|
||||||
|
_fahclient_command_args="${_fahclient_command_args} --log-to-screen=false"
|
||||||
_fahclient_command_args="${_fahclient_command_args} ${fahclient_extra_flags}"
|
_fahclient_command_args="${_fahclient_command_args} ${fahclient_extra_flags}"
|
||||||
command_args="${command_args} ${_fahclient_command_args}"
|
command_args="${command_args} ${_fahclient_command_args}"
|
||||||
extra_commands="log showconfig"
|
extra_commands="log showconfig"
|
||||||
|
@ -107,4 +111,5 @@ if [ -n "$fahclient_user" ]; then
|
||||||
fi
|
fi
|
||||||
required_modules='linprocfs linsysfs linux64:linux64elf'
|
required_modules='linprocfs linsysfs linux64:linux64elf'
|
||||||
|
|
||||||
|
cd ${fahclient_chdir}
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
|
|
@ -26,7 +26,12 @@ Here is a list of steps to quickly get started with Folding@home on FreeBSD:
|
||||||
|
|
||||||
service fahclient start
|
service fahclient start
|
||||||
|
|
||||||
At this point, the daemon should be up and folding.
|
At this point, the daemon should be up. By default it listens on http://localhost:7396
|
||||||
|
for incoming HTTP connections. There you can login and configure and/or
|
||||||
|
register/connect with your F@H account. If you have already an existing account you
|
||||||
|
can join by getting the account-token from there and adding it either to a config
|
||||||
|
file or by running
|
||||||
|
sysrc fahclient_extra_flags+=" --account-token=<your-token>"
|
||||||
|
|
||||||
Additional notes
|
Additional notes
|
||||||
================
|
================
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
bin/FAHClient
|
bin/fah-client
|
||||||
bin/FAHCoreWrapper
|
|
||||||
@dir(fahclient,fahclient,) %%ETCDIR%%
|
@dir(fahclient,fahclient,) %%ETCDIR%%
|
||||||
@sample(fahclient,fahclient,) %%ETCDIR%%/config.xml.sample
|
@sample(fahclient,fahclient,) %%ETCDIR%%/config.xml.sample
|
||||||
@dir(fahclient,fahclient,) %%FAHCLIENT_WORK_DIR%%
|
@dir(fahclient,fahclient,) %%FAHCLIENT_WORK_DIR%%
|
||||||
|
|
Loading…
Add table
Reference in a new issue