summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2012-05-04 16:02:40 +0000
committerThomas Kahle <tomka@gentoo.org>2012-05-04 16:02:40 +0000
commit8b6dc3ff27fac5108cb9ccd06236a83469e7d113 (patch)
tree455042caaac9815f6e772ec38056dc03929f446f /sci-mathematics
parentadd net-im herd to metadata.xml (diff)
downloadgentoo-2-8b6dc3ff27fac5108cb9ccd06236a83469e7d113.tar.gz
gentoo-2-8b6dc3ff27fac5108cb9ccd06236a83469e7d113.tar.bz2
gentoo-2-8b6dc3ff27fac5108cb9ccd06236a83469e7d113.zip
bump to 27.7 and clean-up. Thanks Paolo Pedroni (bug 414583)
(Portage version: 2.1.10.57/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/gimps/ChangeLog9
-rw-r--r--sci-mathematics/gimps/files/gimps-24.14-conf.d15
-rwxr-xr-xsci-mathematics/gimps/files/gimps-24.14-init.d31
-rwxr-xr-xsci-mathematics/gimps/files/gimps-25.6-init.d31
-rwxr-xr-xsci-mathematics/gimps/files/gimps-25.7-init.d37
-rw-r--r--sci-mathematics/gimps/gimps-27.7.ebuild62
6 files changed, 70 insertions, 115 deletions
diff --git a/sci-mathematics/gimps/ChangeLog b/sci-mathematics/gimps/ChangeLog
index 4ab4590cb1c1..1abfec2e2ac5 100644
--- a/sci-mathematics/gimps/ChangeLog
+++ b/sci-mathematics/gimps/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-mathematics/gimps
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gimps/ChangeLog,v 1.51 2012/05/02 10:37:34 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gimps/ChangeLog,v 1.52 2012/05/04 16:02:39 tomka Exp $
+
+*gimps-27.7 (04 May 2012)
+
+ 04 May 2012; Thomas Kahle <tomka@gentoo.org> +gimps-27.7.ebuild,
+ -files/gimps-24.14-conf.d, -files/gimps-24.14-init.d,
+ -files/gimps-25.6-init.d, -files/gimps-25.7-init.d:
+ bump to 27.7 and clean-up. Thanks Paolo Pedroni (bug 414583)
02 May 2012; Justin Lecher <jlec@gentoo.org> Manifest:
Fix checksums again, #414073
diff --git a/sci-mathematics/gimps/files/gimps-24.14-conf.d b/sci-mathematics/gimps/files/gimps-24.14-conf.d
deleted file mode 100644
index 6b1106d4e1fe..000000000000
--- a/sci-mathematics/gimps/files/gimps-24.14-conf.d
+++ /dev/null
@@ -1,15 +0,0 @@
-# Config file for /etc/init.d/gimps
-
-USER="nobody"
-GROUP="nobody"
-
-# 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 GIMPS run-time
-# data files will be stored
-GIMPS_DIR=/var/lib/gimps
diff --git a/sci-mathematics/gimps/files/gimps-24.14-init.d b/sci-mathematics/gimps/files/gimps-24.14-init.d
deleted file mode 100755
index b51aec0240f6..000000000000
--- a/sci-mathematics/gimps/files/gimps-24.14-init.d
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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}"
- /bin/mkdir "${GIMPS_DIR}"
- fi
-
- /bin/chown -R ${USER}:${GROUP} ${GIMPS_DIR}
-}
-
-start() {
- checkconfig
- ebegin "Starting GIMPS"
- start-stop-daemon --quiet --start --exec /opt/gimps/mprime \
- --chdir ${GIMPS_DIR} --chuid ${USER}:${GROUP} \
- -- -b${GIMPS_CPUS} -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-25.6-init.d b/sci-mathematics/gimps/files/gimps-25.6-init.d
deleted file mode 100755
index af1a05af8684..000000000000
--- a/sci-mathematics/gimps/files/gimps-25.6-init.d
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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}"
- /bin/mkdir "${GIMPS_DIR}"
- fi
-
- /bin/chown -R ${USER}:${GROUP} ${GIMPS_DIR}
-}
-
-start() {
- checkconfig
- ebegin "Starting GIMPS"
- start-stop-daemon --quiet --start -b --exec /opt/gimps/mprime \
- --chdir ${GIMPS_DIR} --chuid ${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-25.7-init.d b/sci-mathematics/gimps/files/gimps-25.7-init.d
deleted file mode 100755
index 5f6cb6f35c61..000000000000
--- a/sci-mathematics/gimps/files/gimps-25.7-init.d
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/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}"
- /bin/mkdir "${GIMPS_DIR}"
- fi
-
- /bin/chown -R ${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} --chuid ${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/gimps-27.7.ebuild b/sci-mathematics/gimps/gimps-27.7.ebuild
new file mode 100644
index 000000000000..fb1a6b7d1df8
--- /dev/null
+++ b/sci-mathematics/gimps/gimps-27.7.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gimps/gimps-27.7.ebuild,v 1.1 2012/05/04 16:02:39 tomka Exp $
+
+EAPI=4
+
+DESCRIPTION="The Great Internet Mersenne Prime Search"
+HOMEPAGE="http://mersenne.org/"
+SRC_URI="
+ amd64? ( ftp://mersenne.org/gimps/mprime${PV/./}-linux64.tar.gz )
+ x86? ( ftp://mersenne.org/gimps/mprime${PV/./}.tar.gz )"
+
+SLOT="0"
+LICENSE="as-is"
+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"
+
+RESTRICT="binchecks"
+
+S="${WORKDIR}"
+I="/opt/gimps"
+
+QA_PREBUILT="opt/gimps/mprime"
+
+src_install() {
+ dodir ${I} /var/lib/gimps
+ cp mprime "${D}/${I}"
+ fperms a-w "${I}/mprime"
+ fowners root:0 "${I}"
+ fowners root:0 "${I}/mprime"
+
+ dodoc license.txt readme.txt stress.txt whatsnew.txt undoc.txt
+
+ newinitd "${FILESDIR}/${PN}-26.6-r1-init.d" gimps
+ newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
+}
+
+pkg_postinst() {
+ echo
+ 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 to"
+ einfo "pass it an additional command line parameter specifying where the data"
+ einfo "files are to be stored, e.g.:"
+ einfo " ${I}/mprime -w/var/lib/gimps"
+ echo
+}
+
+pkg_postrm() {
+ echo
+ einfo "GIMPS data files were not removed."
+ einfo "Remove them manually from /var/lib/gimps/"
+ echo
+}