summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2008-08-03 03:19:59 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2008-08-03 03:19:59 +0000
commitffdf24f45fd1a8a9cbbbfc5c1ecb1d90f6dc6645 (patch)
tree38e2732b45678366e3d2a08c44e07bfb2193b5e8 /sci-biology
parentVersion bump. add ~x86 kw. Remove old. (diff)
downloadhistorical-ffdf24f45fd1a8a9cbbbfc5c1ecb1d90f6dc6645.tar.gz
historical-ffdf24f45fd1a8a9cbbbfc5c1ecb1d90f6dc6645.tar.bz2
historical-ffdf24f45fd1a8a9cbbbfc5c1ecb1d90f6dc6645.zip
Latest, thanks to Nicolas Schlumberger, closing bug #233751
Package-Manager: portage-2.2_rc6/cvs/Linux 2.6.26-gentoo x86_64
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/foldingathome/ChangeLog9
-rw-r--r--sci-biology/foldingathome/Manifest7
-rw-r--r--sci-biology/foldingathome/files/6.02/fah-init36
-rw-r--r--sci-biology/foldingathome/files/6.02/folding-conf.d21
-rw-r--r--sci-biology/foldingathome/files/6.02/initfolding6
-rw-r--r--sci-biology/foldingathome/foldingathome-6.02.ebuild60
6 files changed, 137 insertions, 2 deletions
diff --git a/sci-biology/foldingathome/ChangeLog b/sci-biology/foldingathome/ChangeLog
index 083f65061794..21cb0ae93c99 100644
--- a/sci-biology/foldingathome/ChangeLog
+++ b/sci-biology/foldingathome/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-biology/foldingathome
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.21 2008/06/15 04:36:41 je_fro Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.22 2008/08/03 03:19:58 je_fro Exp $
+
+*foldingathome-6.02 (03 Aug 2008)
+
+ 03 Aug 2008; Jeff Gardner <je_fro@gentoo.org> +files/6.02/fah-init,
+ +files/6.02/folding-conf.d, +files/6.02/initfolding,
+ +foldingathome-6.02.ebuild:
+ Latest version, thanks to Nicolas Schlumberger, closes bug #233751
15 Jun 2008; Jeff Gardner <je_fro@gentoo.org>
files/6.02_beta1/folding-conf.d:
diff --git a/sci-biology/foldingathome/Manifest b/sci-biology/foldingathome/Manifest
index 553f6516f24a..3a94af0d11a2 100644
--- a/sci-biology/foldingathome/Manifest
+++ b/sci-biology/foldingathome/Manifest
@@ -1,3 +1,6 @@
+AUX 6.02/fah-init 1022 RMD160 4dd4b11d142ffabc6a6541affb502791dbc8459f SHA1 4eefb8b954c78fd30c21a991411474d530aebbf8 SHA256 4d680a90cac4a0f0f79fe6c398a4cef6a43c4a3ebe77dfe3336a5202eeaf2709
+AUX 6.02/folding-conf.d 860 RMD160 b9a48ad7a5baaaf098c874690158cdad8bc34f18 SHA1 a5e29236f9f5241c905d584d8297860ae4380505 SHA256 f3debbdf6423abcf159a99dfe2539975a7df2c1940008921c07253dbaa5083aa
+AUX 6.02/initfolding 155 RMD160 0055bd01f02b2b4bd4b270eba238207873146ed1 SHA1 b82e2fcd080a27c2792c8e390f5cdd7717e4b3dc SHA256 e315dcbb436967d357c8ca5e8f09fe9d4624343c73848c301fff989f6e901128
AUX 6.02_beta1/fah-init 1028 RMD160 d65999c84de0f470fb4536df170d33fe3804ba84 SHA1 5fb3e73fbafc76d8f0c0e589fcbe14cdb163a246 SHA256 cb0071e8155d7f8d95c4bbce1fae5753ebe81832dd74a03f82107d9cef763f84
AUX 6.02_beta1/folding-conf.d 860 RMD160 b9a48ad7a5baaaf098c874690158cdad8bc34f18 SHA1 a5e29236f9f5241c905d584d8297860ae4380505 SHA256 f3debbdf6423abcf159a99dfe2539975a7df2c1940008921c07253dbaa5083aa
AUX 6.02_beta1/initfolding 155 RMD160 0055bd01f02b2b4bd4b270eba238207873146ed1 SHA1 b82e2fcd080a27c2792c8e390f5cdd7717e4b3dc SHA256 e315dcbb436967d357c8ca5e8f09fe9d4624343c73848c301fff989f6e901128
@@ -7,9 +10,11 @@ AUX init-5.0.2-r3 1478 RMD160 06e256fa528abeb7378addbe795efb5d95c71852 SHA1 46fd
AUX init-5.0.2-r5 1602 RMD160 4680d24496b69512d6223fb420258ad5184241fa SHA1 db3112edc993c69cd285ac0fc1bee41107c7075b SHA256 99e3eae808935333432becf04095063872e3c9c4aeb834beb88e82f3e8627c9c
AUX initfolding-r2 150 RMD160 160f6f4c8e15b5e5694cdbe53f08adcfd51c4f20 SHA1 8a57653fe7ac194cdb72d2ed9058436408529e0b SHA256 52375ccd65d9f7cbf09e0b2915f54a882726bf7c377353747fa3ff8fc2cedacb
DIST FAH502-Linux.exe 249236 RMD160 e63be66c70447095eb7054d855316f42e0364971 SHA1 eb480011f3aaf1cea92b001ff15634670142674c SHA256 02e2d3665a6e8f8fc89c7751b8faadff6885d34860643bdd4107d92825754d33
+DIST FAH6.02-Linux.tgz 139883 RMD160 a543bdb0e385281c064880ca55a92388a22372a6 SHA1 40d1010bbf36e5a35ad8477fdbd66ce53124fde3 SHA256 20a401bec46fc5c0f763a54a70e8520f975ddc72221230c9eb606fb22888dc06
DIST FAH6.02beta1-Linux.tgz 139606 RMD160 eefbf91b5d5f918a67bbbcbdc1c66a1dfcba81a4 SHA1 13ba878570428114852ce4f1bc4b84a5729fcc54 SHA256 752def0a0f4627f046721a665429b80025be5ec75a52aae65026793ec3f11be9
EBUILD foldingathome-5.0.2-r3.ebuild 1982 RMD160 a3a8bbaf21d5d50dc50f58f7313ecfa05c619392 SHA1 de7f263dbdba60c4a94419cfbedd3b78265377f6 SHA256 a0a0a6eb97dd353fe0be39007a7c88e07d1cb52d6eaf724bc7d04a7761916de4
EBUILD foldingathome-5.0.2-r5.ebuild 1998 RMD160 3aef065261ff2671a3116ad064a81e82f2279fb6 SHA1 82a6f896a77a34c111de154922b144bc39781deb SHA256 6f23ec58995581abc800b08c5ce9744f5dd36de895795853db9d04257ebe03ec
+EBUILD foldingathome-6.02.ebuild 1786 RMD160 7d872bbe99140c144c670eb147206d25028e35a8 SHA1 7b52182bcd3fc477d377ad70433091dc4bdd2c17 SHA256 01d3b2d7fdb414ccfab91e8f02f59f7c066b3420a66d9de9a9d55f2cf47c935c
EBUILD foldingathome-6.02_beta1.ebuild 1797 RMD160 c2424e42d256674671633875bd1246668d7129f5 SHA1 5b2037dcedbae6e98b3cba516e5b40489ef567b6 SHA256 cacda1b49a1877d9b8c6a988b8176539709fb0bfeb79b273f6c7399e5955b92b
-MISC ChangeLog 7882 RMD160 297f4763369a0b4a3666a129164bdafa3189e278 SHA1 826a5f6cca8de3babf1858fb3bec57dd4b2ccb6e SHA256 002b6be365eecb9f8440dba6a2c7b9461bb10b9491d42fc6642a3c23da9338d6
+MISC ChangeLog 8142 RMD160 41302b0dc42739f789a41b756b1f3830a71c69d2 SHA1 09e33286dff0121cbe25d9eba9e88cfe5a8e98f4 SHA256 adc04b715c5ffcf847821208dadd0ecdcbf7349dbe8ce57049ff032f99a1badb
MISC metadata.xml 164 RMD160 2f441200f2672ab5f1efae7cbdb08b284603903c SHA1 61a50baedfd041e663d6c2a41a28b57e22dbb6de SHA256 f0897b09e661dc603041dab249d73253034659189becf1a34cca37a7d51ef72f
diff --git a/sci-biology/foldingathome/files/6.02/fah-init b/sci-biology/foldingathome/files/6.02/fah-init
new file mode 100644
index 000000000000..c728c592a937
--- /dev/null
+++ b/sci-biology/foldingathome/files/6.02/fah-init
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/6.02/fah-init,v 1.1 2008/08/03 03:19:59 je_fro Exp $
+
+opts="${opts} unitinfo"
+
+unitinfo() {
+ einfo "$(head -n1 /opt/foldingathome/amd64-smp/unitinfo.txt):"
+ sed -e '1,2d' /opt/foldingathome/amd64-smp/unitinfo.txt
+}
+
+start() {
+ ebegin "Starting Folding@Home"
+ cd /opt/foldingathome/amd64-smp
+ start-stop-daemon -v --chdir ${PWD} --chuid foldingathome --nicelevel 19 --start --background --exec ./fah6 -- ${FOLD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Folding@Home"
+ start-stop-daemon -vv --stop --user foldingathome --exec /opt/foldingathome/amd64-smp/fah6
+ cd /opt/foldingathome/amd64-smp
+ for I in FahCore*.exe; do
+ if ps ax|grep $I > /dev/null 2>&1; then
+ killall -q $I > /dev/null 2>&1
+ fi
+ done
+ sleep 1
+ if ps ax|grep '[/]opt[/]foldingathome[/]amd64-smp[/]fah6' > /dev/null 2>&1; then
+ eend 1
+ else
+ eend 0
+ fi
+}
+
diff --git a/sci-biology/foldingathome/files/6.02/folding-conf.d b/sci-biology/foldingathome/files/6.02/folding-conf.d
new file mode 100644
index 000000000000..114cd144a96c
--- /dev/null
+++ b/sci-biology/foldingathome/files/6.02/folding-conf.d
@@ -0,0 +1,21 @@
+# Config file for /etc/init.d/foldingathome
+#
+# The f@h client configuration can be found in /opt/foldingathome/client.cfg
+# Run /opt/foldingathome/initfolding to reconfigure that.
+#
+# Enter options here to be passed to the Folding client:
+#
+# -oneunit Instruct the client to quit following the completion of one work unit.
+# -verbosity x Sets the output level, from 1 to 9 (max). The default is 3
+# -forceasm Force core assembly optimizations to be used if available
+# -advmethods Request to be assigned any new Cores or work units.
+# -smp Set the client to run in SMP mode (multicore)
+#
+# A full listing of options can be found here:
+# http://www.stanford.edu/group/pandegroup/folding/console-userguide.html
+# But use of other options are not recommended when using the Folding client
+# as a service.
+#
+FOLD_OPTS="-local"
+PIDFILE=/var/run/folding
+
diff --git a/sci-biology/foldingathome/files/6.02/initfolding b/sci-biology/foldingathome/files/6.02/initfolding
new file mode 100644
index 000000000000..e3bead5dde25
--- /dev/null
+++ b/sci-biology/foldingathome/files/6.02/initfolding
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd /opt/foldingathome/amd64-smp
+/opt/foldingathome/amd64-smp/fah6 -configonly
+/bin/chown -R foldingathome:nogroup /opt/foldingathome/amd64-smp
+
diff --git a/sci-biology/foldingathome/foldingathome-6.02.ebuild b/sci-biology/foldingathome/foldingathome-6.02.ebuild
new file mode 100644
index 000000000000..40323bf65f2f
--- /dev/null
+++ b/sci-biology/foldingathome/foldingathome-6.02.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/foldingathome-6.02.ebuild,v 1.1 2008/08/03 03:19:58 je_fro Exp $
+
+# no version number on this install dir since upgrades will be using same dir
+# (data will be stored here too)
+# The clientX files from old foldingathome will remain untouched.
+I="/opt/foldingathome/amd64-smp"
+
+inherit eutils
+
+DESCRIPTION="Folding@Home is a distributed computing project for protein folding."
+HOMEPAGE="http://folding.stanford.edu/FAQ-SMP.html"
+SRC_URI="http://www.stanford.edu/group/pandegroup/folding/release/FAH6.02-Linux.tgz"
+
+LICENSE="folding-at-home"
+SLOT="0"
+
+# This is for x86_64 only.
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=">=sys-apps/baselayout-1.8.0
+ >=sys-libs/glibc-2.3.0
+ app-emulation/emul-linux-x86-baselibs"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_install() {
+ exeinto ${I}
+ newexe "${FILESDIR}"/${PV}/initfolding initfolding
+ doexe fah6 mpiexec
+ newconfd "${FILESDIR}"/${PV}/folding-conf.d foldingathome
+ newinitd "${FILESDIR}"/${PV}/fah-init foldingathome
+}
+
+pkg_preinst() {
+ # the bash shell is important for "su -c" in init script
+ enewuser foldingathome -1 /bin/bash /opt/foldingathome
+}
+
+pkg_postinst() {
+ chown -R foldingathome:nogroup /opt/foldingathome
+ einfo "To run Folding@home in the background at boot:"
+ einfo " rc-update add foldingathome default"
+ einfo ""
+ einfo "Please run ${I}/initfolding to configure your client"
+ einfo "and edit /etc/conf.d/foldingathome for options"
+ einfo ""
+ einfo "This experimental F@H package exists alongside your old data files"
+ einfo "in ${I}."
+ einfo ""
+}
+
+pkg_postrm() {
+ einfo "Folding@home data files were not removed."
+ einfo " Remove them manually from ${I}"
+ einfo ""
+}