boinc: update to 7.6.31
Try to fix reading of configuration(s) and set ownership of $BOINCDIR and logfiles.
This commit is contained in:
parent
a77881c405
commit
f85f39455a
3 changed files with 19 additions and 17 deletions
11
srcpkgs/boinc/files/boinc/conf
Normal file
11
srcpkgs/boinc/files/boinc/conf
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Read default configuration
|
||||||
|
[ -f /etc/default/boinc-client ] && . /etc/default/boinc-client
|
||||||
|
# Override with global configuration
|
||||||
|
[ -f /etc/boinc-client.conf ] && . /etc/boinc-client.conf
|
||||||
|
BOINCEXE_NAME=${BOINCEXE_NAME:-boinc_client}
|
||||||
|
BOINCCMD_NAME=${BOINCCMD_NAME:-boinccmd}
|
||||||
|
BOINCUSER=${BOINCUSER:-boinc}
|
||||||
|
BOINCDIR=${BOINCDIR:-/var/lib/boinc}
|
||||||
|
LOGFILE=${LOGFILE:-/var/log/${BOINCEXE_NAME}.log}
|
||||||
|
ERRORLOG=${ERRORLOG:-/var/log/${BOINCEXE_NAME}_err.log}
|
||||||
|
OPTS=${BOINCOPTS} --dir ${BOINCDIR}
|
|
@ -1,17 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -r conf ] && . ./conf
|
[ -r conf ] && . ./conf
|
||||||
# Read default configuration
|
[ -d ${BOINCDIR} ] || mkdir -m 755 -p ${BOINCDIR}
|
||||||
[ -f /etc/default/boinc-client ] && . /etc/default/boinc-client
|
[ -f ${LOGFILE} ] || touch ${LOGFILE}
|
||||||
# Override with global configuration
|
[ -f ${ERRORLOG} ] || touch ${ERRORLOG}
|
||||||
[ -f /etc/boinc-client.conf ] && . /etc/boinc-client.conf
|
chown --recursive ${BOINCUSER}:${BOINCUSER} ${BOINCDIR} ${LOGFILE} ${ERRORLOG}
|
||||||
BOINCEXE_NAME=${BOINCEXE_NAME:-boinc_client}
|
|
||||||
BOINCCMD_NAME=${BOINCCMD_NAME:-boinccmd}
|
|
||||||
BOINCUSER=${BOINCUSER:-boinc}
|
|
||||||
BOINCDIR=${BOINCDIR:-/var/lib/boinc}
|
|
||||||
LOGFILE=${LOGFILE:-/var/log/${BOINCEXE_NAME}.log}
|
|
||||||
ERRORLOG=${ERRORLOG:-/var/log/${BOINCEXE_NAME}_err.log}
|
|
||||||
[ ! -d ${BOINCDIR} ] && mkdir -m 755 -p ${BOINCDIR} && chown ${BOINCUSER} ${BOINCDIR}
|
|
||||||
[ ! -f ${LOGFILE} ] && touch ${LOGFILE} && chown ${BOINCUSER} ${LOGFILE}
|
|
||||||
[ ! -f ${ERRORLOG} ] && touch ${ERRORLOG} && chown ${BOINCUSER} ${ERRORLOG}
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec chpst -u ${BOINCUSER} ${BOINCEXE_NAME} ${BOINCOPTS}
|
exec chpst -u ${BOINCUSER} ${BOINCEXE_NAME} ${OPTS}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'boinc'
|
# Template file for 'boinc'
|
||||||
pkgname=boinc
|
pkgname=boinc
|
||||||
version=7.6.22
|
version=7.6.31
|
||||||
revision=3
|
revision=1
|
||||||
wrksrc=boinc-client_release-${version%.*}-${version}
|
wrksrc=boinc-client_release-${version%.*}-${version}
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="automake libtool pkg-config python"
|
hostmakedepends="automake libtool pkg-config python"
|
||||||
|
@ -17,7 +17,7 @@ maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
license="LGPL-3.0"
|
license="LGPL-3.0"
|
||||||
homepage="https://boinc.berkeley.edu/"
|
homepage="https://boinc.berkeley.edu/"
|
||||||
distfiles="https://github.com/BOINC/boinc/archive/client_release/${version%.*}/${version}.tar.gz>boinc-${version}.tar.gz"
|
distfiles="https://github.com/BOINC/boinc/archive/client_release/${version%.*}/${version}.tar.gz>boinc-${version}.tar.gz"
|
||||||
checksum=b5b2b211725bc46399d3504bd6b0b60a9f9506d9f6b5a04d524991f239c16585
|
checksum=133490409d4a8513024253dd22ccf6ab26f210226db97f2021fd75eb79a27f08
|
||||||
conflicts="boinc-nox>=0"
|
conflicts="boinc-nox>=0"
|
||||||
|
|
||||||
CXXFLAGS="-Wno-redundant-decls"
|
CXXFLAGS="-Wno-redundant-decls"
|
||||||
|
|
Loading…
Add table
Reference in a new issue