From 306651ae9d6199b706aea58cd8ed00da0432f5e4 Mon Sep 17 00:00:00 2001 From: Jeffrey Gardner Date: Sat, 14 Jun 2008 22:16:03 +0000 Subject: Latest x86_64 beta client (Portage version: 2.1.5.5) --- sci-biology/foldingathome/ChangeLog | 13 ++++- sci-biology/foldingathome/files/5.91_beta/fah-init | 36 ------------- .../foldingathome/files/5.91_beta/folding-conf.d | 18 ------- .../foldingathome/files/5.91_beta/initfolding | 6 --- .../foldingathome/files/6.02_beta1/fah-init | 36 +++++++++++++ .../foldingathome/files/6.02_beta1/folding-conf.d | 20 ++++++++ .../foldingathome/files/6.02_beta1/initfolding | 6 +++ .../foldingathome/foldingathome-5.0.2-r3.ebuild | 12 ++--- .../foldingathome/foldingathome-5.0.2-r5.ebuild | 12 ++--- .../foldingathome/foldingathome-5.91_beta.ebuild | 60 ---------------------- .../foldingathome/foldingathome-6.02_beta1.ebuild | 60 ++++++++++++++++++++++ 11 files changed, 145 insertions(+), 134 deletions(-) delete mode 100644 sci-biology/foldingathome/files/5.91_beta/fah-init delete mode 100644 sci-biology/foldingathome/files/5.91_beta/folding-conf.d delete mode 100644 sci-biology/foldingathome/files/5.91_beta/initfolding create mode 100644 sci-biology/foldingathome/files/6.02_beta1/fah-init create mode 100644 sci-biology/foldingathome/files/6.02_beta1/folding-conf.d create mode 100644 sci-biology/foldingathome/files/6.02_beta1/initfolding delete mode 100644 sci-biology/foldingathome/foldingathome-5.91_beta.ebuild create mode 100644 sci-biology/foldingathome/foldingathome-6.02_beta1.ebuild (limited to 'sci-biology/foldingathome') diff --git a/sci-biology/foldingathome/ChangeLog b/sci-biology/foldingathome/ChangeLog index b350f2ffa2d8..922546137ca0 100644 --- a/sci-biology/foldingathome/ChangeLog +++ b/sci-biology/foldingathome/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-biology/foldingathome -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.19 2007/07/12 17:19:05 angelos Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.20 2008/06/14 22:16:02 je_fro Exp $ + +*foldingathome-6.02_beta1 (14 Jun 2008) + + 14 Jun 2008; Jeff Gardner -files/5.91_beta/fah-init, + -files/5.91_beta/initfolding, -files/5.91_beta/folding-conf.d, + +files/6.02_beta1/fah-init, +files/6.02_beta1/folding-conf.d, + +files/6.02_beta1/initfolding, -foldingathome-5.91_beta.ebuild, + +foldingathome-6.02_beta1.ebuild: + Latest beta client 12 Jul 2007; Christoph Mende foldingathome-5.0.2-r5.ebuild: diff --git a/sci-biology/foldingathome/files/5.91_beta/fah-init b/sci-biology/foldingathome/files/5.91_beta/fah-init deleted file mode 100644 index 028025e9a612..000000000000 --- a/sci-biology/foldingathome/files/5.91_beta/fah-init +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 deleted file mode 100644 index bae73ef785e0..000000000000 --- a/sci-biology/foldingathome/files/5.91_beta/folding-conf.d +++ /dev/null @@ -1,18 +0,0 @@ -# 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 deleted file mode 100644 index 01e9041a5a5d..000000000000 --- a/sci-biology/foldingathome/files/5.91_beta/initfolding +++ /dev/null @@ -1,6 +0,0 @@ -#!/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/6.02_beta1/fah-init b/sci-biology/foldingathome/files/6.02_beta1/fah-init new file mode 100644 index 000000000000..68b764b1a2cd --- /dev/null +++ b/sci-biology/foldingathome/files/6.02_beta1/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_beta1/fah-init,v 1.1 2008/06/14 22:16:03 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_beta1/folding-conf.d b/sci-biology/foldingathome/files/6.02_beta1/folding-conf.d new file mode 100644 index 000000000000..3981cdcbe0aa --- /dev/null +++ b/sci-biology/foldingathome/files/6.02_beta1/folding-conf.d @@ -0,0 +1,20 @@ +# 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" +PIDFILE=/var/run/folding + diff --git a/sci-biology/foldingathome/files/6.02_beta1/initfolding b/sci-biology/foldingathome/files/6.02_beta1/initfolding new file mode 100644 index 000000000000..e3bead5dde25 --- /dev/null +++ b/sci-biology/foldingathome/files/6.02_beta1/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-5.0.2-r3.ebuild b/sci-biology/foldingathome/foldingathome-5.0.2-r3.ebuild index 88db61a6ab46..fa6398aac141 100644 --- a/sci-biology/foldingathome/foldingathome-5.0.2-r3.ebuild +++ b/sci-biology/foldingathome/foldingathome-5.0.2-r3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# 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-5.0.2-r3.ebuild,v 1.6 2007/07/02 15:23:09 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/foldingathome-5.0.2-r3.ebuild,v 1.7 2008/06/14 22:16:02 je_fro Exp $ # no version number on this install dir since upgrades will be using same dir # (data will be stored here too) @@ -30,8 +30,8 @@ src_unpack() { src_install() { exeinto ${I} - newexe ${FILESDIR}/initfolding-r2 initfolding - newexe ${FILESDIR}/copy_client_config-${PV}-r1 copy_client_config + newexe "${FILESDIR}"/initfolding-r2 initfolding + newexe "${FILESDIR}"/copy_client_config-${PV}-r1 copy_client_config # Clients exeinto ${I}/client1 @@ -50,8 +50,8 @@ src_install() { doexe foldingathome exeinto ${I}/client8 doexe foldingathome - newinitd ${FILESDIR}/init-${PVR} foldingathome - newconfd ${FILESDIR}/folding-conf.d-r1 foldingathome + newinitd "${FILESDIR}"/init-${PVR} foldingathome + newconfd "${FILESDIR}"/folding-conf.d-r1 foldingathome } pkg_preinst() { diff --git a/sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild b/sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild index 1f728f2af8e5..473dc016a82a 100644 --- a/sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild +++ b/sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# 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-5.0.2-r5.ebuild,v 1.6 2007/07/12 17:19:05 angelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild,v 1.7 2008/06/14 22:16:02 je_fro Exp $ # no version number on this install dir since upgrades will be using same dir # (data will be stored here too) @@ -30,8 +30,8 @@ src_unpack() { src_install() { exeinto ${I} - newexe ${FILESDIR}/initfolding-r2 initfolding - newexe ${FILESDIR}/copy_client_config-${PV}-r1 copy_client_config + newexe "${FILESDIR}"/initfolding-r2 initfolding + newexe "${FILESDIR}"/copy_client_config-${PV}-r1 copy_client_config # Clients exeinto ${I}/client1 @@ -50,8 +50,8 @@ src_install() { doexe foldingathome exeinto ${I}/client8 doexe foldingathome - newinitd ${FILESDIR}/init-${PVR} foldingathome - newconfd ${FILESDIR}/folding-conf.d-r1 foldingathome + newinitd "${FILESDIR}"/init-${PVR} foldingathome + newconfd "${FILESDIR}"/folding-conf.d-r1 foldingathome } pkg_preinst() { diff --git a/sci-biology/foldingathome/foldingathome-5.91_beta.ebuild b/sci-biology/foldingathome/foldingathome-5.91_beta.ebuild deleted file mode 100644 index 686b13ae2ae5..000000000000 --- a/sci-biology/foldingathome/foldingathome-5.91_beta.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# 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.3 2007/07/03 04:26:15 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" - -# This beta just died...we're waiting on the next revision. -KEYWORDS="" -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 - newconfd ${FILESDIR}/5.91_beta/folding-conf.d foldingathome - newinitd ${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 "" -} diff --git a/sci-biology/foldingathome/foldingathome-6.02_beta1.ebuild b/sci-biology/foldingathome/foldingathome-6.02_beta1.ebuild new file mode 100644 index 000000000000..1ae21de50272 --- /dev/null +++ b/sci-biology/foldingathome/foldingathome-6.02_beta1.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_beta1.ebuild,v 1.1 2008/06/14 22:16:02 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.02beta1-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 "" +} -- cgit v1.2.3-65-gdbad