# Maintainer: Erich Eckner, crux at eckner dot net # Description: The BOINC client and core software for distributed computing # URL: http://boinc.berkeley.edu/ # Depends on: openssl curl name=boinc-client version=7.14.1 main_version=${version%.*} release=1 source=(https://github.com/BOINC/boinc/archive/client_release/${main_version}/${version}.tar.gz pre-install disable-install-exec-hook.patch boinc.rc) build() { cd ${name}_release-${main_version}-${version} boincHome=$(getent passwd boinc | cut -d : -f 6) install -d $PKG/usr/bin install -d $PKG/etc/rc.d/ install -d $PKG/$boincHome ./_autosetup patch -p1 < $SRC/disable-install-exec-hook.patch ./configure \ --prefix=$PKG/$boincHome \ --enable-optimize \ --disable-fcgi \ --disable-server \ --disable-manager \ --exec-prefix=$PKG/usr make make install chown -R boinc:boinc $PKG/$boincHome sed -i "s/###BOINC_HOME###/$(echo $boincHome | sed "s/\//\\\\\//g")/" $SRC/boinc.rc install -m 0755 -D $SRC/boinc.rc $PKG/etc/rc.d/boinc }