summaryrefslogtreecommitdiff
path: root/sci-mathematics/gimps
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/gimps
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/gimps')
-rw-r--r--sci-mathematics/gimps/Manifest11
-rw-r--r--sci-mathematics/gimps/files/README.gentoo25
-rw-r--r--sci-mathematics/gimps/files/gimps-25.6-conf.d12
-rw-r--r--sci-mathematics/gimps/files/gimps-28.9-init.d32
-rw-r--r--sci-mathematics/gimps/files/gimps.service14
-rw-r--r--sci-mathematics/gimps/files/gimps.tmpfiles1
-rw-r--r--sci-mathematics/gimps/gimps-28.10-r1.ebuild60
-rw-r--r--sci-mathematics/gimps/metadata.xml16
8 files changed, 171 insertions, 0 deletions
diff --git a/sci-mathematics/gimps/Manifest b/sci-mathematics/gimps/Manifest
new file mode 100644
index 000000000000..583ad63416d3
--- /dev/null
+++ b/sci-mathematics/gimps/Manifest
@@ -0,0 +1,11 @@
+AUX README.gentoo 1049 SHA256 1e4625ba0d1be2babf9594b031d0c4eed881be3ba3d4b6e1ee3d0dc537ed8a84 SHA512 c3fc1873bf1ed4ccb1412814b0feca17ea36804fe98b1c93601d579f21b0bccfa45ece7efcd2f34c3825d786f5126bd8a7e48e2f6739a7f2a321fe52ec148be6 WHIRLPOOL db020217affb0f533b97e774864d08d93d9de64105cedb5548d7d7ef28d88564d158b4ed6263157235b72d7de85f70a9c65803f06298c295280558426af2d2a6
+AUX gimps-25.6-conf.d 254 SHA256 1eae64e8172c1be714f856bb71df00d35a2f42568b37adfd59fd799e09ad3b3e SHA512 619f8c385d3c721868d5458f46967d936408db43398326414ad40b66be4092c87c0d8a5018540f949a25c56cc1a0c27ab5a493b77c3095c5870d1facae557bc5 WHIRLPOOL 39610d1ac60dab3b054dde280bc69cba621b0f4381a414abb3225e06fe022336fb30349864b771eb92652b4685bfef3453a3a7af83c1e6aa89a1bd10121b8132
+AUX gimps-28.9-init.d 722 SHA256 faa2b81ac40382dca87ed75e678fe05cc4593772ddae4f23516bb77f60d50a29 SHA512 8a7501d8347aa0974268c910890550a2ce5a3d11606670dd69d5e5ccb1046e2994bc5b1f04f9e9dae89174a5a69f9158757079b835fbff50fd25f983190521e9 WHIRLPOOL 2e8d0a773ab79ef0606b713b0f01bbb34655f4a3761f88cbfe49ee24725e551ed852a150dbbc0652f005f7691668dc59489444f3c7090ed662b89cefcbba254f
+AUX gimps.service 283 SHA256 4a55637b7ef6fd039f0c457fbd360a102049da9c4881145fca4b54a318f27ca8 SHA512 710c7d075d5542364746b837f2b62257011abb8f45862bf0a1fabd53adb182b5fd969256c7f3221506fef38e81ab1b0f4698efafc1ca7908d9e2d42dee386d8b WHIRLPOOL 2a73110c93952129eaeddf7bb639155836f5ea552bd879c84d0239cb812573a21b0b0c17983b0ec3f48ce43eaa79cc370c67dc0834127339206021cd259dddaa
+AUX gimps.tmpfiles 38 SHA256 0c8ed02b8ab1fc91cc07562da331599ed19523db827c2700510c783823fd0f07 SHA512 61c5eda13289175cdf55704442ceab4d5391d24cfa49f04155799fc2798e5ad5f1e624802e1c04b99685b1560f9898d1b0fc0c15c82251d1a765dd5de93024d8 WHIRLPOOL c63dec16c7feddf6f5594627dfd24a12b1b4e929d0689e26382e328d96cbcbde7a30f4f39d36ea389ad58efa1645db443ebed7e724d40fcb28ea542729d8eb3c
+DIST p95v2810.linux32.tar.gz 4610763 SHA256 ef9b90e9b82c6710af53471eb18328b80cc46f0a41f137bc224efca0ed570d95 SHA512 ac2e0f2e1b557b71084027a5bd7cafeb350df3ee9edf347766d34d4a607034827494eb15dae30404da33f8c9f279a85e033cf845800868f4c51087a35b49c521 WHIRLPOOL f3609de0845308811e09f4a2159709ea69b070f20fe3cc9e71d0bd9d98fff579e0763b8f52cfcc65339dfa3723f622bd97334ae3daf975ad0a9898f803d6c70a
+DIST p95v2810.linux64.tar.gz 5707219 SHA256 ed5a8b94fdd65436e98e57ea0838035fd44c62492009d00f5fba508cb85481c7 SHA512 c4fd692df3018e5e73ba6095de5ed394f36d5c89dd81c2c7f2c74a4ce3184b22176dc13b8b59e4f42c1781e911107dc12224cfcddef882535931319ec93120f1 WHIRLPOOL 91c1f657df196b8eb27b88727e35cee831a98cbe99d3a88834ba868c4b491144fc4efb66d389f76203481f252b3ef9cc0c2241aa3d153abc1857f09cf3971ac7
+EBUILD gimps-28.10-r1.ebuild 1427 SHA256 a572bf83acd804b68b0d9312680b1c03e109619aaab18377f39ad28f5f7043be SHA512 8ea450a833c7b7085cdd1065460a5d53f4e96c236c85bfca1439954898f426b7384dbedda750bb1a0a7806f815d253febfcc31168a3a1d0fd1b3a64098b6b26d WHIRLPOOL d56ceec01b04bc5a769e79bbdd2c3daefbcce735d0dfbc88977df6e053f1c5828d6e23224db00ed0e3fc6096f5b287b0365b68a2c447c5198bb922141734431e
+MISC ChangeLog 4474 SHA256 98f801512530b18553e32f11990664bf311104c06395a5fc249ab99c746eb476 SHA512 b0ca00967ab4958c9c43fdb541e2d98d000674e697e9a331b0da7fb536772b3bcd38965340bcffba3a81c4a120c6af80e8d5003994b4b99bbcc6c9994a75637c WHIRLPOOL 2dcc25c51cf9d6dce7dd04b9cd4b19aaa6143c1972079826c5fdbb862ad47d087ce547df9384bb8a5d9fff048948b4a1203163bfcb0ec480bd4e1b98dcde2ba4
+MISC ChangeLog-2015 12000 SHA256 a91c6afd35d223e01208443e3e7feca56914e803c2bc7ceed39cdf3aac410ad6 SHA512 e8decab8060cd770ebe550ede6596940c5fdfcaaf7e357a40c79f728fd8e86c3b7b45fe93c2ce9c53c3ca244c0d049792fcd4383eac09ad3245b45d060714280 WHIRLPOOL aab8ac4123d830545e3822208a340795d4dfc2b06839e5022ce9acc0611cd767d752c067b175ae64566d7385162ee3c088dedc91ed95a1434ed50302307e8e06
+MISC metadata.xml 529 SHA256 401aa5cfcc911c3a7708c125acb5b64ca9ea5481f45300b1f507ff8b02af146c SHA512 a7fb9bd05f987e1d48a04b70e78cbb3906927197793870435fee8b68dd9da623a68fc30ca96d0173952414d9741674ba2cc2c3f821dfd7b302f91f09e887a362 WHIRLPOOL 25448438ad9cf8fa8abfdc6fad1f0ca6cde394d58770be1f96ea53c1fa05ca3663128336dd66745f88f300451ab8cac2c5f5f606a1b6a4417a9ba3187cc1f6aa
diff --git a/sci-mathematics/gimps/files/README.gentoo b/sci-mathematics/gimps/files/README.gentoo
new file mode 100644
index 000000000000..f034cd1293d8
--- /dev/null
+++ b/sci-mathematics/gimps/files/README.gentoo
@@ -0,0 +1,25 @@
+Useful documentation for running the GIMPS daemon can be found at:
+http://www.mersenne.org/gettingstarted/
+http://www.mersenneforum.org/forumdisplay.php?f=10
+
+To run the GIMPS daemon as an unprivileged user some steps are required.
+
+1. Before starting the GIMPS service run (as root) the following command:
+ # /opt/gimps/mprime -m -w/var/lib/gimps
+2. Answer 'Y' to the "Join Gimps?" question
+3. Accept default values for the following question (or tweak them as you
+deem necessary)
+4. Stop the running tests with ^C
+5. Exit the client, pressing '5'
+6. Change the owner and group of all the files in /var/lib/gimps to
+nobody:nobody:
+ # chown nobody:nobody /var/lib/gimps/*
+
+Then you can use `/etc/init.d/gimps start` to start a GIMPS client in the
+background at boot. Have a look at /etc/conf.d/gimps and check some
+configuration options.
+
+If you don't want to use the init script to start gimps, remember to
+pass it an additional command line parameter specifying where the data
+files are to be stored, e.g.:
+# /opt/gimps/mprime -w/var/lib/gimps"
diff --git a/sci-mathematics/gimps/files/gimps-25.6-conf.d b/sci-mathematics/gimps/files/gimps-25.6-conf.d
new file mode 100644
index 000000000000..4b98e1dbc28b
--- /dev/null
+++ b/sci-mathematics/gimps/files/gimps-25.6-conf.d
@@ -0,0 +1,12 @@
+# Config file for /etc/init.d/gimps
+
+USER="nobody"
+GROUP="nobody"
+
+# set up any options you want for GIMPS
+# for more info, `mprime -h`
+# GIMPS_OPTIONS=""
+
+# this is the directory where GIMPS run-time
+# data files will be stored
+GIMPS_DIR=/var/lib/gimps
diff --git a/sci-mathematics/gimps/files/gimps-28.9-init.d b/sci-mathematics/gimps/files/gimps-28.9-init.d
new file mode 100644
index 000000000000..00eca8268055
--- /dev/null
+++ b/sci-mathematics/gimps/files/gimps-28.9-init.d
@@ -0,0 +1,32 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ checkpath -d -o ${USER}:${GROUP} ${GIMPS_DIR}
+
+ if [ ! -e "${GIMPS_DIR}/local.txt" ]; then
+ eerror "GIMPS has not been configured. Please configure it manually before"
+ eerror "starting this initscript."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting GIMPS"
+ start-stop-daemon --quiet --start -b --exec /opt/gimps/mprime \
+ --chdir ${GIMPS_DIR} --user ${USER}:${GROUP} \
+ -- -w${GIMPS_DIR} ${GIMPS_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping GIMPS"
+ start-stop-daemon --quiet --stop --exec /opt/gimps/mprime
+ eend $?
+}
diff --git a/sci-mathematics/gimps/files/gimps.service b/sci-mathematics/gimps/files/gimps.service
new file mode 100644
index 000000000000..d3436717b175
--- /dev/null
+++ b/sci-mathematics/gimps/files/gimps.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Great Internet Mersenne Prime Search client
+After=network.target local-fs.target
+Wants=local-fs.target
+
+[Service]
+User=nobody
+Group=nobody
+ExecStart=/opt/gimps/mprime -w/var/lib/gimps
+StandardOutput=null
+StandardError=journal
+
+[Install]
+WantedBy=multi-user.target
diff --git a/sci-mathematics/gimps/files/gimps.tmpfiles b/sci-mathematics/gimps/files/gimps.tmpfiles
new file mode 100644
index 000000000000..c965e7de5352
--- /dev/null
+++ b/sci-mathematics/gimps/files/gimps.tmpfiles
@@ -0,0 +1 @@
+d /var/lib/gimps 0755 nobody nobody -
diff --git a/sci-mathematics/gimps/gimps-28.10-r1.ebuild b/sci-mathematics/gimps/gimps-28.10-r1.ebuild
new file mode 100644
index 000000000000..975d1aea937a
--- /dev/null
+++ b/sci-mathematics/gimps/gimps-28.10-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit pax-utils systemd readme.gentoo-r1
+
+DESCRIPTION="The Great Internet Mersenne Prime Search"
+HOMEPAGE="http://mersenne.org/"
+SRC_URI="
+ amd64? ( ftp://mersenne.org/gimps/p95v${PV/./}.linux64.tar.gz )
+ x86? ( ftp://mersenne.org/gimps/p95v${PV/./}.linux32.tar.gz )"
+
+SLOT="0"
+LICENSE="GIMPS"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+
+# Since there are no statically linked binaries for this version of mprime,
+# and no static binaries for amd64 in general, we use the dynamically linked
+# ones and try to cover the .so deps with the packages listed in RDEPEND.
+DEPEND=""
+RDEPEND="net-misc/curl"
+
+S="${WORKDIR}"
+I="/opt/gimps"
+
+QA_PREBUILT="opt/gimps/mprime"
+
+DOCS="license.txt readme.txt stress.txt whatsnew.txt undoc.txt"
+
+src_install() {
+ dodir ${I} /var/lib/gimps
+ pax-mark m mprime
+ cp mprime "${D}/${I}" || die
+ fperms a-w "${I}/mprime"
+ fowners root:0 "${I}"
+ fowners root:0 "${I}/mprime"
+
+ einstalldocs
+
+ readme.gentoo_create_doc
+
+ newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
+ newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
+
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ echo
+ einfo "GIMPS data files were not removed."
+ einfo "Remove them manually from /var/lib/gimps/"
+ echo
+}
diff --git a/sci-mathematics/gimps/metadata.xml b/sci-mathematics/gimps/metadata.xml
new file mode 100644
index 000000000000..8b56e92728c6
--- /dev/null
+++ b/sci-mathematics/gimps/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>paolo.pedroni@iol.it</email>
+ <name>Paolo Pedroni</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+</pkgmetadata>