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:
Jürgen Buchmüller 2016-04-19 05:00:39 +02:00
parent a77881c405
commit f85f39455a
3 changed files with 19 additions and 17 deletions

View 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}

View File

@ -1,17 +1,8 @@
#!/bin/sh
[ -r conf ] && . ./conf
# 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}
[ ! -d ${BOINCDIR} ] && mkdir -m 755 -p ${BOINCDIR} && chown ${BOINCUSER} ${BOINCDIR}
[ ! -f ${LOGFILE} ] && touch ${LOGFILE} && chown ${BOINCUSER} ${LOGFILE}
[ ! -f ${ERRORLOG} ] && touch ${ERRORLOG} && chown ${BOINCUSER} ${ERRORLOG}
[ -d ${BOINCDIR} ] || mkdir -m 755 -p ${BOINCDIR}
[ -f ${LOGFILE} ] || touch ${LOGFILE}
[ -f ${ERRORLOG} ] || touch ${ERRORLOG}
chown --recursive ${BOINCUSER}:${BOINCUSER} ${BOINCDIR} ${LOGFILE} ${ERRORLOG}
exec 2>&1
exec chpst -u ${BOINCUSER} ${BOINCEXE_NAME} ${BOINCOPTS}
exec chpst -u ${BOINCUSER} ${BOINCEXE_NAME} ${OPTS}

View File

@ -1,7 +1,7 @@
# Template file for 'boinc'
pkgname=boinc
version=7.6.22
revision=3
version=7.6.31
revision=1
wrksrc=boinc-client_release-${version%.*}-${version}
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config python"
@ -17,7 +17,7 @@ maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="LGPL-3.0"
homepage="https://boinc.berkeley.edu/"
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"
CXXFLAGS="-Wno-redundant-decls"