From owner-dev-commits-ports-main@freebsd.org Fri Jun 25 17:13:26 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D6A6666723F; Fri, 25 Jun 2021 17:13:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GBNr63YdBz4pnc; Fri, 25 Jun 2021 17:13:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4C5C27485; Fri, 25 Jun 2021 17:13:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15PHDQwi070052; Fri, 25 Jun 2021 17:13:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15PHDQ1L070051; Fri, 25 Jun 2021 17:13:26 GMT (envelope-from git) Date: Fri, 25 Jun 2021 17:13:26 GMT Message-Id: <202106251713.15PHDQ1L070051@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 3716d1981fdd - main - biology/linux-foldingathome: Update to 7.6.21 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3716d1981fdda9fc12b323079093d0b6aaa6fcf2 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2021 17:13:27 -0000 The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=3716d1981fdda9fc12b323079093d0b6aaa6fcf2 commit 3716d1981fdda9fc12b323079093d0b6aaa6fcf2 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-06-25 17:08:02 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-06-25 17:13:19 +0000 biology/linux-foldingathome: Update to 7.6.21 Unfortunately, this version of FAHClient is not able to daemonize successfully anymore. Even though the --daemon flag is passed, FAHClient does not detach from the controlling terminal. In addition to that it does not go into background. The --log seems to be broken as well as since all the logs are printed to the terminal instead of the log file. In order to alleviate those problems, use daemon(8). PR: 250463 Changes: https://foldingforum.org/viewtopic.php?t=36307 --- biology/linux-foldingathome/Makefile | 2 +- biology/linux-foldingathome/distinfo | 6 +++--- biology/linux-foldingathome/files/fahclient.in | 26 +++++++++++--------------- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/biology/linux-foldingathome/Makefile b/biology/linux-foldingathome/Makefile index 09a06fabcccb..2c019027e65a 100644 --- a/biology/linux-foldingathome/Makefile +++ b/biology/linux-foldingathome/Makefile @@ -1,7 +1,7 @@ # Created by: Yonatan PORTNAME= foldingathome -DISTVERSION= 7.6.13 +DISTVERSION= 7.6.21 CATEGORIES= biology linux MASTER_SITES= https://download.foldingathome.org/releases/public/release/fahclient/centos-6.7-64bit/v${DISTVERSION:R}/ PKGNAMEPREFIX= linux- diff --git a/biology/linux-foldingathome/distinfo b/biology/linux-foldingathome/distinfo index 98804e70cb9a..33d4bcc5607a 100644 --- a/biology/linux-foldingathome/distinfo +++ b/biology/linux-foldingathome/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1589030361 -SHA256 (fahclient-7.6.13-1.x86_64.rpm) = 5abb3288a052890555c5b823f4a283593e122aadffbb0790879f58e266fcc28f -SIZE (fahclient-7.6.13-1.x86_64.rpm) = 3679564 +TIMESTAMP = 1624640434 +SHA256 (fahclient-7.6.21-1.x86_64.rpm) = a9f8b5073cd800cc63e32c623a8b4d7487c4e19a1e84760202e451b997d95073 +SIZE (fahclient-7.6.21-1.x86_64.rpm) = 3779272 diff --git a/biology/linux-foldingathome/files/fahclient.in b/biology/linux-foldingathome/files/fahclient.in index 7d8e72bfcbdb..6b42171980fe 100644 --- a/biology/linux-foldingathome/files/fahclient.in +++ b/biology/linux-foldingathome/files/fahclient.in @@ -76,7 +76,9 @@ load_rc_config 'fahclient' : "${fahclient_logfile:=%%FAHCLIENT_WORK_DIR%%/log.txt}" pidfile="${fahclient_pidfile}" -command='%%FAHCLIENT_PROGRAM%%' +procname="%%FAHCLIENT_PROGRAM%%" +command="/usr/sbin/daemon" +command_args="-o ${fahclient_logfile} -p ${pidfile} -- ${procname}" # Some notes on the specified options: # - fahclient_flags are passed in before other options by the rc # framework. @@ -86,26 +88,20 @@ command='%%FAHCLIENT_PROGRAM%%' # precedence). # - --config is necessary to point the program to the correct configuration # file. -# - --log sets the log file location (takes precedence over config file), -# log is special in this respect. # - --chdir is used to switch to a desired work directory. The program is going # to create a lot of files in its current working directory so should not be # just any directory on the system. -# - --pid-file specifies the location for the PID file. -# - --daemon is to detach the program from the terminal and run it -# in the background. # - fahclient_extra_flags are passed in after all other options. - -command_args="${command_args} --user=${fahclient_donor}" -command_args="${command_args} --team=${fahclient_team}" -command_args="${command_args} --config=${fahclient_config}" -command_args="${command_args} --log=${fahclient_logfile}" -command_args="${command_args} --chdir=${fahclient_chdir}" -command_args="${command_args} --pid-file=${pidfile} --daemon" -command_args="${command_args} ${fahclient_extra_flags}" +_fahclient_command_args= +_fahclient_command_args="${_fahclient_command_args} --user=${fahclient_donor}" +_fahclient_command_args="${_fahclient_command_args} --team=${fahclient_team}" +_fahclient_command_args="${_fahclient_command_args} --config=${fahclient_config}" +_fahclient_command_args="${_fahclient_command_args} --chdir=${fahclient_chdir}" +_fahclient_command_args="${_fahclient_command_args} ${fahclient_extra_flags}" +command_args="${command_args} ${_fahclient_command_args}" extra_commands="log showconfig" log_cmd="tail -F -- ${fahclient_logfile}" -showconfig_cmd="${command} ${fahclient_flags} ${command_args} --print" +showconfig_cmd="${procname} ${fahclient_flags} ${_fahclient_command_args} --print" if [ -n "$fahclient_user" ]; then showconfig_cmd="su -m $fahclient_user -c 'sh -c \"$showconfig_cmd\"'" fi