summaryrefslogtreecommitdiff
path: root/manualPorts/boinc-client/Pkgfile
blob: 10f623ababc917c5432729d5872436e7170ca782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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.18.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

}