Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 603408 | Differences between
and this patch

Collapse All | Expand All

(-)a/sci-mathematics/gimps/files/README.gentoo (+25 lines)
Line 0 Link Here
1
Useful documentation for running the GIMPS daemon can be found at:
2
http://www.mersenne.org/gettingstarted/
3
http://www.mersenneforum.org/forumdisplay.php?f=10
4
5
To run the GIMPS daemon as an unprivileged user some steps are required.
6
7
1. Before starting the GIMPS service run (as root) the following command:
8
  # /opt/gimps/mprime -m -w/var/lib/gimps
9
2. Answer 'Y' to the "Join Gimps?" question
10
3. Accept default values for the following question (or tweak them as you
11
deem necessary)
12
4. Stop the running tests with ^C
13
5. Exit the client, pressing '5'
14
6. Change the owner and group of all the files in /var/lib/gimps to
15
nobody:nobody:
16
  # chown nobody:nobody /var/lib/gimps/*
17
18
Then you can use `/etc/init.d/gimps start` to start a GIMPS client in the
19
background at boot. Have a look at /etc/conf.d/gimps and check some
20
configuration options.
21
			        
22
If you don't want to use the init script to start gimps, remember to
23
pass it an additional command line parameter specifying where the data
24
files are to be stored, e.g.:
25
# /opt/gimps/mprime -w/var/lib/gimps"
(-)a/sci-mathematics/gimps/gimps-28.10-r1.ebuild (-12 / +4 lines)
Lines 4-10 Link Here
4
4
5
EAPI=6
5
EAPI=6
6
6
7
inherit pax-utils systemd
7
inherit pax-utils systemd readme.gentoo-r1
8
8
9
DESCRIPTION="The Great Internet Mersenne Prime Search"
9
DESCRIPTION="The Great Internet Mersenne Prime Search"
10
HOMEPAGE="http://mersenne.org/"
10
HOMEPAGE="http://mersenne.org/"
Lines 40-45 src_install() { Link Here
40
40
41
	einstalldocs
41
	einstalldocs
42
42
43
	readme.gentoo_create_doc
44
43
	newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
45
	newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
44
	newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
46
	newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
45
47
Lines 48-63 src_install() { Link Here
48
}
50
}
49
51
50
pkg_postinst() {
52
pkg_postinst() {
51
	echo
53
	readme.gentoo_print_elog
52
	einfo "You can use \`/etc/init.d/gimps start\` to start a GIMPS client in the"
53
	einfo "background at boot. Have a look at /etc/conf.d/gimps and check some"
54
	einfo "configuration options."
55
	einfo
56
	einfo "If you don't want to use the init script to start gimps, remember to"
57
	einfo "pass it an additional command line parameter specifying where the data"
58
	einfo "files are to be stored, e.g.:"
59
	einfo "   ${I}/mprime -w/var/lib/gimps"
60
	echo
61
}
54
}
62
55
63
pkg_postrm() {
56
pkg_postrm() {
64
- 

Return to bug 603408