diff options
author | 2008-12-11 16:56:08 +0000 | |
---|---|---|
committer | 2008-12-11 16:56:08 +0000 | |
commit | 6dea8ac30f3d18366af57173ccb417c9285d24c1 (patch) | |
tree | b8980eb989598c857bf05b190a5b78e0f8482f86 /sci-mathematics/gimps/files | |
parent | Stable on alpha, bug #249727 (diff) | |
download | gentoo-2-6dea8ac30f3d18366af57173ccb417c9285d24c1.tar.gz gentoo-2-6dea8ac30f3d18366af57173ccb417c9285d24c1.tar.bz2 gentoo-2-6dea8ac30f3d18366af57173ccb417c9285d24c1.zip |
Version bump (bug #245489).
(Portage version: 2.1.6/cvs/Linux 2.6.27 x86_64)
Diffstat (limited to 'sci-mathematics/gimps/files')
-rwxr-xr-x | sci-mathematics/gimps/files/gimps-25.7-init.d | 37 | ||||
-rw-r--r-- | sci-mathematics/gimps/files/mprime-25.7.bpatch | bin | 0 -> 159 bytes |
2 files changed, 37 insertions, 0 deletions
diff --git a/sci-mathematics/gimps/files/gimps-25.7-init.d b/sci-mathematics/gimps/files/gimps-25.7-init.d new file mode 100755 index 000000000000..5f6cb6f35c61 --- /dev/null +++ b/sci-mathematics/gimps/files/gimps-25.7-init.d @@ -0,0 +1,37 @@ +#!/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/files/mprime-25.7.bpatch b/sci-mathematics/gimps/files/mprime-25.7.bpatch Binary files differnew file mode 100644 index 000000000000..4ddd15628473 --- /dev/null +++ b/sci-mathematics/gimps/files/mprime-25.7.bpatch |