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 "" |