summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2008-07-16 20:24:00 +0000
committerMichael Januszewski <spock@gentoo.org>2008-07-16 20:24:00 +0000
commite686e192d139d7c6eea93d6e5ea1e5ed6b5ec607 (patch)
tree3944ff4f7ae87b15fced243223c3fcf6d189aa6b /sci-mathematics/gimps/files
parentCorrect qmpdclient's qt deps and reword description (diff)
downloadgentoo-2-e686e192d139d7c6eea93d6e5ea1e5ed6b5ec607.tar.gz
gentoo-2-e686e192d139d7c6eea93d6e5ea1e5ed6b5ec607.tar.bz2
gentoo-2-e686e192d139d7c6eea93d6e5ea1e5ed6b5ec607.zip
Version bump. Make 24.14-r1 fail if the kernel doesn't support 32-bit ELF binaries.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc9 x86_64)
Diffstat (limited to 'sci-mathematics/gimps/files')
-rw-r--r--sci-mathematics/gimps/files/gimps-25.6-conf.d12
-rwxr-xr-xsci-mathematics/gimps/files/gimps-25.6-init.d31
2 files changed, 43 insertions, 0 deletions
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-25.6-init.d b/sci-mathematics/gimps/files/gimps-25.6-init.d
new file mode 100755
index 000000000000..af1a05af8684
--- /dev/null
+++ b/sci-mathematics/gimps/files/gimps-25.6-init.d
@@ -0,0 +1,31 @@
+#!/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 $?
+}