From: Jeffrey Gardner Date: Tue, 10 Apr 2007 10:37:24 +0000 (+0000) Subject: Adding experimental amd64-smp client. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ad8151cd15e915a50eaed36ef516c526ef099849;p=gentoo.git Adding experimental amd64-smp client. Package-Manager: portage-2.1.2.2 --- diff --git a/sci-biology/foldingathome/ChangeLog b/sci-biology/foldingathome/ChangeLog index 067552b4bde2..67f48573c9e6 100644 --- a/sci-biology/foldingathome/ChangeLog +++ b/sci-biology/foldingathome/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-biology/foldingathome -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.12 2006/11/03 02:48:57 ribosome Exp $ +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.13 2007/04/10 10:37:24 je_fro Exp $ + +*foldingathome-5.91_beta (10 Apr 2007) + + 10 Apr 2007; Jeff Gardner +files/5.91_beta/fah-init, + +files/5.91_beta/folding-conf.d, +files/5.91_beta/initfolding, + +foldingathome-5.91_beta.ebuild: + Adding the amd64-smp client for testing. Thanks to John Gibson. 03 Nov 2006; Olivier Fisette -files/init-5.0.2-r4, -foldingathome-5.0.2-r4.ebuild: diff --git a/sci-biology/foldingathome/Manifest b/sci-biology/foldingathome/Manifest index ba036059cada..1b5f8992d296 100644 --- a/sci-biology/foldingathome/Manifest +++ b/sci-biology/foldingathome/Manifest @@ -1,3 +1,15 @@ +AUX 5.91_beta/fah-init 1027 RMD160 2599f16edf444125f75f56b0c3b8e4b54a746257 SHA1 610e7debaa2aeac944feef3a7d785a51e77f74e1 SHA256 2979b13324806322c737a7738748eb6108c3b60ac7545307febada4eb8ecf55c +MD5 339af8f5766c897b40117953d2d6d1b7 files/5.91_beta/fah-init 1027 +RMD160 2599f16edf444125f75f56b0c3b8e4b54a746257 files/5.91_beta/fah-init 1027 +SHA256 2979b13324806322c737a7738748eb6108c3b60ac7545307febada4eb8ecf55c files/5.91_beta/fah-init 1027 +AUX 5.91_beta/folding-conf.d 779 RMD160 292c987801c5e144bf0743d10ab855d0ce2c7788 SHA1 fe49a81e3e56d9ad6522f2a2956e09a34af7e3ac SHA256 7adbe7c3604390617a12ec18fd9469ce036d34f38d37e395a539f52c7a075235 +MD5 d78210d2ed469938e001e6dc0fe6a5eb files/5.91_beta/folding-conf.d 779 +RMD160 292c987801c5e144bf0743d10ab855d0ce2c7788 files/5.91_beta/folding-conf.d 779 +SHA256 7adbe7c3604390617a12ec18fd9469ce036d34f38d37e395a539f52c7a075235 files/5.91_beta/folding-conf.d 779 +AUX 5.91_beta/initfolding 155 RMD160 c0d81691f5081778672904758769ec305f68c1b1 SHA1 df47a4c6798737f1c6493e8572b0c15b733b254f SHA256 3e291a24a2aea147ce6d609dfa14d178aed907c05ce45636a7983a7f398eee04 +MD5 b88fe554ac14eaeba8b97cb9c1a629d2 files/5.91_beta/initfolding 155 +RMD160 c0d81691f5081778672904758769ec305f68c1b1 files/5.91_beta/initfolding 155 +SHA256 3e291a24a2aea147ce6d609dfa14d178aed907c05ce45636a7983a7f398eee04 files/5.91_beta/initfolding 155 AUX copy_client_config-5.0.2-r1 393 RMD160 530642f45d1d83612aa6a8048f6ed5fbab67176b SHA1 5a3951b4fe98f62ae3e20269dabd5cfbf3554d77 SHA256 ddfe7ace77006273d1ac64aec4280fdecf52ea0f435dacf2d1bba3de3da42abe MD5 71ad6348b9f8b367f2417eddf75417c7 files/copy_client_config-5.0.2-r1 393 RMD160 530642f45d1d83612aa6a8048f6ed5fbab67176b files/copy_client_config-5.0.2-r1 393 @@ -19,6 +31,7 @@ MD5 f3a9e0a439c14bd3d328cea6e3af1540 files/initfolding-r2 150 RMD160 160f6f4c8e15b5e5694cdbe53f08adcfd51c4f20 files/initfolding-r2 150 SHA256 52375ccd65d9f7cbf09e0b2915f54a882726bf7c377353747fa3ff8fc2cedacb files/initfolding-r2 150 DIST FAH502-Linux.exe 249236 RMD160 e63be66c70447095eb7054d855316f42e0364971 SHA1 eb480011f3aaf1cea92b001ff15634670142674c SHA256 02e2d3665a6e8f8fc89c7751b8faadff6885d34860643bdd4107d92825754d33 +DIST FAH_SMP_Linux.tgz 138220 RMD160 019bc3511a70a31bc0c67780c75be78ca2dc29b8 SHA1 b7f556b76798aefe186527b1e27c106af20ba1e6 SHA256 af4cb6f88009378788c055112a2612f0a7bf8a93b22af68888eee660fa668040 EBUILD foldingathome-5.0.2-r3.ebuild 2018 RMD160 f9984900da57e3141de1081d4c6da06fe139657b SHA1 01a83ee2cc3006b0fb80932219b8622d6386be0b SHA256 19e5f7577a111ff36668855004675f732a83569fa4b2ae01c0badc3f094d88b9 MD5 f2bac6b14a4b471449216800a9bedbe4 foldingathome-5.0.2-r3.ebuild 2018 RMD160 f9984900da57e3141de1081d4c6da06fe139657b foldingathome-5.0.2-r3.ebuild 2018 @@ -27,10 +40,14 @@ EBUILD foldingathome-5.0.2-r5.ebuild 2037 RMD160 bdb8e2bd742007837efaaf2927b2030 MD5 d15b1b10ed58b74abc86b5d38162bc77 foldingathome-5.0.2-r5.ebuild 2037 RMD160 bdb8e2bd742007837efaaf2927b2030aa675b953 foldingathome-5.0.2-r5.ebuild 2037 SHA256 76f8966c91f2ec1457147b4cfb94bf3197380db88a92f6d7a66cbc9fe0a731c5 foldingathome-5.0.2-r5.ebuild 2037 -MISC ChangeLog 6264 RMD160 80179107db90ebbe387952e75f5c2e955a970381 SHA1 228b333b8879f5906234402307ee3b33f4c86847 SHA256 54cd310e9b6f85c2b079113d6e313c0f6ae7dc8928b8620163bbdd64dbf8fe24 -MD5 2070b6d3bed60f3e61ea809d1d3ffdb8 ChangeLog 6264 -RMD160 80179107db90ebbe387952e75f5c2e955a970381 ChangeLog 6264 -SHA256 54cd310e9b6f85c2b079113d6e313c0f6ae7dc8928b8620163bbdd64dbf8fe24 ChangeLog 6264 +EBUILD foldingathome-5.91_beta.ebuild 1824 RMD160 a353bd89977f5dc66e778785aa7263cbd913b567 SHA1 2bff5e76191a8b75218bc86f3a12c52ab7d9fd5a SHA256 140be9be282b210db47744168537d881b3ebadffd294485f28a3a6b83a94b39e +MD5 f16402cb65472254066f7f274158e837 foldingathome-5.91_beta.ebuild 1824 +RMD160 a353bd89977f5dc66e778785aa7263cbd913b567 foldingathome-5.91_beta.ebuild 1824 +SHA256 140be9be282b210db47744168537d881b3ebadffd294485f28a3a6b83a94b39e foldingathome-5.91_beta.ebuild 1824 +MISC ChangeLog 6544 RMD160 80c759ae6778b4ef6a0e261911cae9684a34b665 SHA1 d45dba912a216999d5f6dbeeb1b3f8bc0f8d7975 SHA256 2a0e8ba279b96ec97f2af6b813950b2bdcfa616cc1a101d45eec35da5cbd2042 +MD5 fcd25763e697f3f6ac6eea8bbfea3914 ChangeLog 6544 +RMD160 80c759ae6778b4ef6a0e261911cae9684a34b665 ChangeLog 6544 +SHA256 2a0e8ba279b96ec97f2af6b813950b2bdcfa616cc1a101d45eec35da5cbd2042 ChangeLog 6544 MISC metadata.xml 164 RMD160 2f441200f2672ab5f1efae7cbdb08b284603903c SHA1 61a50baedfd041e663d6c2a41a28b57e22dbb6de SHA256 f0897b09e661dc603041dab249d73253034659189becf1a34cca37a7d51ef72f MD5 86813ca8050bc98ba326cb74e88150a5 metadata.xml 164 RMD160 2f441200f2672ab5f1efae7cbdb08b284603903c metadata.xml 164 @@ -41,3 +58,6 @@ SHA256 bb8544c52290ebf517fbd3ebd292bb4108f89bb4b667420fad3e9ae4e3b019c9 files/di MD5 d39886a997a5021a1cb3be852aa0d2de files/digest-foldingathome-5.0.2-r5 229 RMD160 a1ba0061fa5cf60fc4d9e4e4762025e8ec481d25 files/digest-foldingathome-5.0.2-r5 229 SHA256 bb8544c52290ebf517fbd3ebd292bb4108f89bb4b667420fad3e9ae4e3b019c9 files/digest-foldingathome-5.0.2-r5 229 +MD5 bfe6f4f82fa3db539d4f3eb7aae8b371 files/digest-foldingathome-5.91_beta 232 +RMD160 665754efabcff1f5ae87b3e20b16e7ac155cb2dd files/digest-foldingathome-5.91_beta 232 +SHA256 e92f4b126fe97f71f6f3501fea2a4468b17692333132288c27fec7f21f3c2353 files/digest-foldingathome-5.91_beta 232 diff --git a/sci-biology/foldingathome/files/5.91_beta/fah-init b/sci-biology/foldingathome/files/5.91_beta/fah-init new file mode 100644 index 000000000000..028025e9a612 --- /dev/null +++ b/sci-biology/foldingathome/files/5.91_beta/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/5.91_beta/fah-init,v 1.1 2007/04/10 10:37:24 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 ./fah5 -- ${FOLD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping Folding@Home" + start-stop-daemon -vv --stop --user foldingathome --exec /opt/foldingathome/amd64-smp/fah5 + 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[/]fah5' > /dev/null 2>&1; then + eend 1 + else + eend 0 + fi +} + diff --git a/sci-biology/foldingathome/files/5.91_beta/folding-conf.d b/sci-biology/foldingathome/files/5.91_beta/folding-conf.d new file mode 100644 index 000000000000..bae73ef785e0 --- /dev/null +++ b/sci-biology/foldingathome/files/5.91_beta/folding-conf.d @@ -0,0 +1,18 @@ +# 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. +# +# 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" diff --git a/sci-biology/foldingathome/files/5.91_beta/initfolding b/sci-biology/foldingathome/files/5.91_beta/initfolding new file mode 100644 index 000000000000..01e9041a5a5d --- /dev/null +++ b/sci-biology/foldingathome/files/5.91_beta/initfolding @@ -0,0 +1,6 @@ +#!/bin/sh + +cd /opt/foldingathome/amd64-smp +/opt/foldingathome/amd64-smp/fah5 -configonly +/bin/chown -R foldingathome:nogroup /opt/foldingathome/amd64-smp + diff --git a/sci-biology/foldingathome/files/digest-foldingathome-5.91_beta b/sci-biology/foldingathome/files/digest-foldingathome-5.91_beta new file mode 100644 index 000000000000..e53ca6e33b3f --- /dev/null +++ b/sci-biology/foldingathome/files/digest-foldingathome-5.91_beta @@ -0,0 +1,3 @@ +MD5 aef7cfdb6f4462f74b8f79d41acc29fa FAH_SMP_Linux.tgz 138220 +RMD160 019bc3511a70a31bc0c67780c75be78ca2dc29b8 FAH_SMP_Linux.tgz 138220 +SHA256 af4cb6f88009378788c055112a2612f0a7bf8a93b22af68888eee660fa668040 FAH_SMP_Linux.tgz 138220 diff --git a/sci-biology/foldingathome/foldingathome-5.91_beta.ebuild b/sci-biology/foldingathome/foldingathome-5.91_beta.ebuild new file mode 100644 index 000000000000..30ad6280315b --- /dev/null +++ b/sci-biology/foldingathome/foldingathome-5.91_beta.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/foldingathome-5.91_beta.ebuild,v 1.1 2007/04/10 10:37:24 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://folding.stanford.edu/release/FAH_SMP_Linux.tgz" + +LICENSE="folding-at-home" +SLOT="0" + +# Currently only amd64 is supported. +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}/5.91_beta/initfolding initfolding + doexe fah5 mpiexec + insinto /etc/conf.d + newins ${FILESDIR}/5.91_beta/folding-conf.d foldingathome + exeinto /etc/init.d + newexe ${FILESDIR}/5.91_beta/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 "" +}