Moved from app-sci/gimps to sci-mathematics/gimps.
authorOlivier Fisette <ribosome@gentoo.org>
Tue, 28 Dec 2004 05:30:36 +0000 (05:30 +0000)
committerOlivier Fisette <ribosome@gentoo.org>
Tue, 28 Dec 2004 05:30:36 +0000 (05:30 +0000)
sci-mathematics/gimps/ChangeLog [new file with mode: 0644]
sci-mathematics/gimps/Manifest [new file with mode: 0644]
sci-mathematics/gimps/files/digest-gimps-23.5 [new file with mode: 0644]
sci-mathematics/gimps/files/digest-gimps-23.9-r1 [new file with mode: 0644]
sci-mathematics/gimps/files/gimps-conf.d [new file with mode: 0644]
sci-mathematics/gimps/files/gimps-init.d [new file with mode: 0755]
sci-mathematics/gimps/gimps-23.5.ebuild [new file with mode: 0644]
sci-mathematics/gimps/gimps-23.9-r1.ebuild [new file with mode: 0644]
sci-mathematics/gimps/metadata.xml [new file with mode: 0644]

diff --git a/sci-mathematics/gimps/ChangeLog b/sci-mathematics/gimps/ChangeLog
new file mode 100644 (file)
index 0000000..926896b
--- /dev/null
@@ -0,0 +1,44 @@
+# ChangeLog for app-sci/gimps
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gimps/ChangeLog,v 1.1 2004/12/28 05:30:36 ribosome Exp $
+
+*gimps-23.5 (28 Dec 2004)
+
+  28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+  +files/gimps-conf.d, +files/gimps-init.d, +gimps-23.5.ebuild,
+  +gimps-23.9-r1.ebuild:
+  Moved from app-sci/gimps to sci-mathematics/gimps.
+
+  18 Nov 2004; Olivier Fisette <ribosome@gentoo.org> -gimps-23.9.ebuild:
+  Removed insecure version. (See GLSA 200411-26.)
+
+*gimps-23.9-r1 (04 Nov 2004)
+
+  04 Nov 2004; Michal Januszewski <spock@gentoo.org> gimps-23.5.ebuild,
+  +gimps-23.9-r1.ebuild:
+  Changed ownership of mprime to root:root. Marked 23.9-r1 stable.
+
+  04 Nov 2004; Michal Januszewski <spock@gentoo.org> gimps-23.5.ebuild,
+  gimps-23.9.ebuild:
+  Changed default permissions to fix bug #69868.
+
+  17 Oct 2004; David Holm <dholm@gentoo.org> gimps-23.9.ebuild:
+  Added binary-only keyword
+
+*gimps-23.9 (23 Sep 2004)
+
+  23 Sep 2004; Michal Januszewski <spock@gentoo.org> +gimps-23.9.ebuild:
+  Version bump.
+
+  29 Feb 2004; Michal Januszewski <spock@gentoo.org> files/gimps-init.d:
+  Init script clean-up, closes #43044.
+
+  18 Feb 2004; Michal Januszewski <spock@gentoo.org> gimps-23.5.ebuild:
+  Marked stable on x86.
+
+*gimps-23.5 (23 Jan 2004)
+
+  23 Jan 2004; Michal 'Spock' Januszewski <spock@gentoo.org>
+  gimps-23.5.ebuild, metadata.xml:
+  Initial commit, closes bug #38010.
+
diff --git a/sci-mathematics/gimps/Manifest b/sci-mathematics/gimps/Manifest
new file mode 100644 (file)
index 0000000..0bd1bb7
--- /dev/null
@@ -0,0 +1,8 @@
+MD5 559311cca11f35633fc61b65c698bf36 gimps-23.9-r1.ebuild 1423
+MD5 2c6ac7ba285dd90f0bbb91c1c0371a73 gimps-23.5.ebuild 1417
+MD5 d9950e24f04ad4e5b8aed06872270c74 ChangeLog 1244
+MD5 d94d306da3804e41296e1bf04c7c9cae metadata.xml 255
+MD5 1e5892c6e82e3ad26032af4e0637a493 files/gimps-conf.d 283
+MD5 f7593578a8d077eda7d23c5a894ff1d9 files/gimps-init.d 535
+MD5 c3bae23e497746877bbd06134c1edd8e files/digest-gimps-23.9-r1 61
+MD5 6b074ac7234f04005d756b656851a22b files/digest-gimps-23.5 61
diff --git a/sci-mathematics/gimps/files/digest-gimps-23.5 b/sci-mathematics/gimps/files/digest-gimps-23.5
new file mode 100644 (file)
index 0000000..f166123
--- /dev/null
@@ -0,0 +1 @@
+MD5 176aacee43b025d687df322149adb0ee mprime235.tar.gz 417531
diff --git a/sci-mathematics/gimps/files/digest-gimps-23.9-r1 b/sci-mathematics/gimps/files/digest-gimps-23.9-r1
new file mode 100644 (file)
index 0000000..95481b8
--- /dev/null
@@ -0,0 +1 @@
+MD5 822ffe35d732dfb184274e99c8f10a7c mprime239.tar.gz 422011
diff --git a/sci-mathematics/gimps/files/gimps-conf.d b/sci-mathematics/gimps/files/gimps-conf.d
new file mode 100644 (file)
index 0000000..7e285f6
--- /dev/null
@@ -0,0 +1,12 @@
+# Config file for /etc/init.d/gimps
+
+# the number of CPUs GIMPS will use
+GIMPS_CPUS="1"
+
+# set up any options you want for GIMPS
+# for more info, `mprime -h`
+# GIMPS_OPTIONS=""
+
+# this is the directory where setiathome's run-time
+# data files will be stored
+GIMPS_DIR=/var/lib/gimps
diff --git a/sci-mathematics/gimps/files/gimps-init.d b/sci-mathematics/gimps/files/gimps-init.d
new file mode 100755 (executable)
index 0000000..e5f2f38
--- /dev/null
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() { 
+       need net
+}
+
+checkconfig() {
+        if [ ! -e "${GIMPS_DIR}" ]
+        then
+                einfo "Creating ${GIMPS_DIR}"
+                mkdir "${GIMPS_DIR}"
+        fi
+}
+
+start() {
+        checkconfig
+       ebegin "Starting GIMPS"
+       /opt/gimps/mprime -b${GIMPS_CPUS} -w${GIMPS_DIR} ${GIMPS_OPTIONS}
+        eend $?
+}
+
+stop() {
+        ebegin "Stopping GIMPS"
+        killall mprime
+        eend $?
+}
diff --git a/sci-mathematics/gimps/gimps-23.5.ebuild b/sci-mathematics/gimps/gimps-23.5.ebuild
new file mode 100644 (file)
index 0000000..598f53a
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gimps/gimps-23.5.ebuild,v 1.1 2004/12/28 05:30:36 ribosome Exp $
+
+IUSE=""
+DESCRIPTION="GIMPS - The Great Internet Mersenne Prime Search"
+HOMEPAGE="http://mersenne.org/"
+SRC_URI="ftp://mersenne.org/gimps/mprime235.tar.gz"
+
+DEPEND=">=sys-apps/baselayout-1.8.0
+       >=sys-libs/glibc-2.1"
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="x86"
+
+S="${WORKDIR}"
+I="/opt/gimps"
+
+src_install () {
+
+       cd ${S}
+
+       dodir ${I} /var/lib/gimps
+       cp mprime ${D}/${I}
+       chmod a-w ${D}/${I}/mprime
+       chown root:root ${D}/${I}
+       chown root:root ${D}/${I}/mprime
+
+       dodoc license.txt readme.txt stress.txt whatsnew.txt undoc.txt
+
+       exeinto /etc/init.d ; newexe ${FILESDIR}/gimps-init.d gimps
+       insinto /etc/conf.d ; newins ${FILESDIR}/gimps-conf.d gimps
+}
+
+pkg_postinst () {
+
+       einfo
+       einfo "You can use \`/etc/init.d/gimps start\` to start a GIMPS client in the"
+       einfo "background at boot. Have a look at /etc/conf.d/gimps and check some"
+       einfo "configuration options."
+       einfo ""
+       einfo "If you don't want to use the init script to start gimps, remember"
+       einfo "to cd into the directory where it should the data files first, eg.:"
+       einfo "   cd /var/lib/gimps && ${I}/mprime"
+       einfo
+}
+
+pkg_postrm () {
+
+       einfo
+       einfo "GIMPS data files were not removed."
+       einfo "Remove them manually from /var/lib/gimps/."
+       einfo
+}
diff --git a/sci-mathematics/gimps/gimps-23.9-r1.ebuild b/sci-mathematics/gimps/gimps-23.9-r1.ebuild
new file mode 100644 (file)
index 0000000..e8b422e
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gimps/gimps-23.9-r1.ebuild,v 1.1 2004/12/28 05:30:36 ribosome Exp $
+
+IUSE=""
+DESCRIPTION="GIMPS - The Great Internet Mersenne Prime Search"
+HOMEPAGE="http://mersenne.org/"
+SRC_URI="ftp://mersenne.org/gimps/mprime239.tar.gz"
+
+DEPEND=">=sys-apps/baselayout-1.8.0
+       >=sys-libs/glibc-2.1"
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="-* x86"
+
+S="${WORKDIR}"
+I="/opt/gimps"
+
+src_install () {
+
+       cd ${S}
+
+       dodir ${I} /var/lib/gimps
+       cp mprime ${D}/${I}
+       chmod a-w ${D}/${I}/mprime
+       chown root:root ${D}/${I}
+       chown root:root ${D}/${I}/mprime
+
+       dodoc license.txt readme.txt stress.txt whatsnew.txt undoc.txt
+
+       exeinto /etc/init.d ; newexe ${FILESDIR}/gimps-init.d gimps
+       insinto /etc/conf.d ; newins ${FILESDIR}/gimps-conf.d gimps
+}
+
+pkg_postinst () {
+
+       einfo
+       einfo "You can use \`/etc/init.d/gimps start\` to start a GIMPS client in the"
+       einfo "background at boot. Have a look at /etc/conf.d/gimps and check some"
+       einfo "configuration options."
+       einfo ""
+       einfo "If you don't want to use the init script to start gimps, remember"
+       einfo "to cd into the directory where it should the data files first, eg.:"
+       einfo "   cd /var/lib/gimps && ${I}/mprime"
+       einfo
+}
+
+pkg_postrm () {
+
+       einfo
+       einfo "GIMPS data files were not removed."
+       einfo "Remove them manually from /var/lib/gimps/."
+       einfo
+}
diff --git a/sci-mathematics/gimps/metadata.xml b/sci-mathematics/gimps/metadata.xml
new file mode 100644 (file)
index 0000000..daa8053
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+  <email>spock@gentoo.org</email>
+  <name>Michal Januszewski</name>
+</maintainer>
+</pkgmetadata>