Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 37327
Collapse All | Expand All

(-)foldingathome-3.24.ebuild.orig (-1 / +5 lines)
Lines 15-21 Link Here
15
LICENSE="as-is"
15
LICENSE="as-is"
16
KEYWORDS="x86"
16
KEYWORDS="x86"
17
17
18
DEPEND=">=sys-apps/baselayout-1.8.0"
18
DEPEND=">=sys-apps/baselayout-1.8.0
19
	app-admin/sudo"
19
S="${WORKDIR}/${P}"
20
S="${WORKDIR}/${P}"
20
21
21
src_unpack() {
22
src_unpack() {
Lines 33-44 Link Here
33
}
34
}
34
35
35
pkg_postinst() {
36
pkg_postinst() {
37
	useradd -d /opt/foldingathome -g nogroup foldingathome
38
	chown -R foldingathome:nogroup /opt/foldingathome
36
	einfo "To run Folding@home in the background at boot:"
39
	einfo "To run Folding@home in the background at boot:"
37
	einfo " rc-update add foldingathome default"
40
	einfo " rc-update add foldingathome default"
38
	einfo ""
41
	einfo ""
39
}
42
}
40
43
41
pkg_postrm() {
44
pkg_postrm() {
45
	userdel foldingathome
42
	einfo "Folding@home data files were not removed."
46
	einfo "Folding@home data files were not removed."
43
	einfo " Remove them manually from ${I}"
47
	einfo " Remove them manually from ${I}"
44
	einfo ""
48
	einfo ""
(-)files/folding-init.d.orig (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
	ebegin "Starting Folding@home"
8
	ebegin "Starting Folding@home"
9
	cd /opt/foldingathome
9
	cd /opt/foldingathome
10
	nice -n 19 ./foldingathome >&/dev/null&
10
	nice -n 19 sudo -u foldingathome ./foldingathome >&/dev/null&
11
	eend $?
11
	eend $?
12
}
12
}
13
13

Return to bug 37327