diff options
author | Brandon Low <lostlogic@gentoo.org> | 2005-02-06 01:06:53 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2005-02-06 01:06:53 +0000 |
commit | d4b0a0fecb6fc7dcd8eb7b6facc806a6ba25be94 (patch) | |
tree | 88bf4efe86f8b2e1ac785e0cc7c074ed6373f0b5 /sci-biology | |
parent | latest revision stable on x86 and amd64, removed old version. (diff) | |
download | gentoo-2-d4b0a0fecb6fc7dcd8eb7b6facc806a6ba25be94.tar.gz gentoo-2-d4b0a0fecb6fc7dcd8eb7b6facc806a6ba25be94.tar.bz2 gentoo-2-d4b0a0fecb6fc7dcd8eb7b6facc806a6ba25be94.zip |
Cleanup
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sci-biology')
12 files changed, 7 insertions, 434 deletions
diff --git a/sci-biology/foldingathome/ChangeLog b/sci-biology/foldingathome/ChangeLog index 2877537959f5..e503ff2752dd 100644 --- a/sci-biology/foldingathome/ChangeLog +++ b/sci-biology/foldingathome/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-biology/foldingathome # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.5 2005/02/06 01:02:39 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.6 2005/02/06 01:06:53 lostlogic Exp $ + + 05 Feb 2005; Brandon Low <lostlogic@gentoo.org> -files/copy_client_config, + -files/folding-init.d-r2, -files/folding-init.d-r4, -files/init-5.0.2-r1, + -files/init-5.0.2-r2, -foldingathome-5.0.2-r1.ebuild, + -foldingathome-5.0.2-r2.ebuild, -foldingathome-5.0.2.ebuild: + Clean up some cruft *foldingathome-5.0.2-r3 (05 Feb 2005) diff --git a/sci-biology/foldingathome/files/copy_client_config b/sci-biology/foldingathome/files/copy_client_config deleted file mode 100644 index f12d1258a1b4..000000000000 --- a/sci-biology/foldingathome/files/copy_client_config +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -import shutil, sys, os -from ConfigParser import ConfigParser - -GENTOO_TEAM = 11298 - -if not os.path.isfile("/opt/foldingathome/client1/client.cfg"): - print "Folding@Home installation hasn't been configured yet" - sys.exit(1) - -clientnum = (1, 2, 3, 4, 5, 6, 7, 8) - -cfg = ConfigParser() -cfg.read("/opt/foldingathome/client1/client.cfg") - -# if the user didn't chose a team at setup time put them on the gentoo team -if cfg.get("settings", 'team') == '0': - cfg.set("settings", 'team', GENTOO_TEAM) - -for i in clientnum: - cfgName = "/opt/foldingathome/client%d/client.cfg" % (i) - shutil.copyfile("/opt/foldingathome/client1/client.cfg", cfgName) - - cfg.set("settings", 'machineid', i) - - cfgFile = open(cfgName, "w") - cfg.write(cfgFile) - diff --git a/sci-biology/foldingathome/files/digest-foldingathome-5.0.2 b/sci-biology/foldingathome/files/digest-foldingathome-5.0.2 deleted file mode 100644 index 44de62a3f7fd..000000000000 --- a/sci-biology/foldingathome/files/digest-foldingathome-5.0.2 +++ /dev/null @@ -1 +0,0 @@ -MD5 4855e808fb94e6d2c5fde345aea0cdc3 FAH502-Linux.exe 249236 diff --git a/sci-biology/foldingathome/files/digest-foldingathome-5.0.2-r1 b/sci-biology/foldingathome/files/digest-foldingathome-5.0.2-r1 deleted file mode 100644 index 44de62a3f7fd..000000000000 --- a/sci-biology/foldingathome/files/digest-foldingathome-5.0.2-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 4855e808fb94e6d2c5fde345aea0cdc3 FAH502-Linux.exe 249236 diff --git a/sci-biology/foldingathome/files/digest-foldingathome-5.0.2-r2 b/sci-biology/foldingathome/files/digest-foldingathome-5.0.2-r2 deleted file mode 100644 index 44de62a3f7fd..000000000000 --- a/sci-biology/foldingathome/files/digest-foldingathome-5.0.2-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 4855e808fb94e6d2c5fde345aea0cdc3 FAH502-Linux.exe 249236 diff --git a/sci-biology/foldingathome/files/folding-init.d-r2 b/sci-biology/foldingathome/files/folding-init.d-r2 deleted file mode 100644 index 3438d79ffea3..000000000000 --- a/sci-biology/foldingathome/files/folding-init.d-r2 +++ /dev/null @@ -1,26 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2003 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/folding-init.d-r2,v 1.1 2004/12/23 18:37:10 ribosome Exp $ - -start() { - ebegin "Starting Folding@Home" - for (($CPU; CPU != 0; CPU--)) - do - cd /opt/foldingathome/client${CPU}/ - rm -f /opt/foldingathome/log-${CPU} - nice -n 20 su foldingathome -c "/opt/foldingathome/client${CPU}/foldingathome ${FOLD_OPTS}" 2>&1 >/opt/foldingathome/log-${CPU} & - done - eend $? -} - -stop() { - ebegin "Stopping Folding@Home" - for I in FahCore*.exe - do - killall -q $I >/dev/null - done - killall foldingathome >/dev/null - eend $? -} - diff --git a/sci-biology/foldingathome/files/folding-init.d-r4 b/sci-biology/foldingathome/files/folding-init.d-r4 deleted file mode 100644 index e31d0ef09ae5..000000000000 --- a/sci-biology/foldingathome/files/folding-init.d-r4 +++ /dev/null @@ -1,38 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/folding-init.d-r4,v 1.1 2004/12/23 18:37:10 ribosome Exp $ - -start() { - ebegin "Starting Folding@Home" - if [ $CPU = 0 -a -r /proc/cpuinfo ]; then - CPU=`grep processor </proc/cpuinfo | wc -l` - fi - su foldingathome -c /opt/foldingathome/copy_client_config - for (($CPU; CPU != 0; CPU--)) - do - cd /opt/foldingathome/client${CPU}/ - nice -n 20 su foldingathome -c "/opt/foldingathome/client${CPU}/foldingathome ${FOLD_OPTS}" &>/dev/null & - done - eend $? -} - -stop() { - ebegin "Stopping Folding@Home" - if [ $CPU = 0 -a -r /proc/cpuinfo ]; then - CPU=`grep processor </proc/cpuinfo | wc -l` - fi - for (($CPU; CPU != 0; CPU--)) - do - cd /opt/foldingathome/client${CPU}/ - for I in FahCore*.exe - do - killall -q $I >/dev/null - done - done - # killing the Core(s) above shuts the top level foldingathome process - # down for us; don't kill it here. - #killall foldingathome >/dev/null - eend $? -} - diff --git a/sci-biology/foldingathome/files/init-5.0.2-r1 b/sci-biology/foldingathome/files/init-5.0.2-r1 deleted file mode 100644 index ef2f816bf691..000000000000 --- a/sci-biology/foldingathome/files/init-5.0.2-r1 +++ /dev/null @@ -1,45 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/init-5.0.2-r1,v 1.1 2005/02/03 17:14:46 lostlogic Exp $ - -do_config() { - if [ -z "${CPU}" ] || [ "${CPU}" == "0" ]; then - if [ -r /proc/cpuinfo ]; then - CPU=`grep processor </proc/cpuinfo | wc -l` - else - CPU=1 - fi - fi -} - -start() { - do_config - su foldingathome -c /opt/foldingathome/copy_client_config - for (($CPU; CPU > 0; CPU--)); do - ebegin "Starting Folding@Home on CPU ${CPU}" - cd /opt/foldingathome/client${CPU}/ - nice -n 20 su foldingathome -c "/opt/foldingathome/client${CPU}/foldingathome ${FOLD_OPTS}" &>/dev/null & - eend $? - done -} - -stop() { - do_config - for (($CPU; CPU > 0; CPU--)); do - ebegin "Stopping Folding@Home on CPU ${CPU}" - cd /opt/foldingathome/client${CPU}/ - 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/client${CPU}/' > /dev/null 2>&1; then - eend 1 - else - eend 0 - fi - done -} - diff --git a/sci-biology/foldingathome/files/init-5.0.2-r2 b/sci-biology/foldingathome/files/init-5.0.2-r2 deleted file mode 100644 index a3bcf284448e..000000000000 --- a/sci-biology/foldingathome/files/init-5.0.2-r2 +++ /dev/null @@ -1,55 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/init-5.0.2-r2,v 1.1 2005/02/04 20:57:01 lostlogic Exp $ - -opts="${opts} unitinfo" - -unitinfo() { - do_config - for (($CPU; CPU > 0; CPU--)); do - einfo "CPU ${CPU} $(head -n1 /opt/foldingathome/client${CPU}/unitinfo.txt):" - sed -e '1,2d' /opt/foldingathome/client${CPU}/unitinfo.txt - done -} - -do_config() { - if [ -z "${CPU}" ] || [ "${CPU}" == "0" ]; then - if [ -r /proc/cpuinfo ]; then - CPU=`grep processor </proc/cpuinfo | wc -l` - else - CPU=1 - fi - fi -} - -start() { - do_config - su foldingathome -c /opt/foldingathome/copy_client_config - for (($CPU; CPU > 0; CPU--)); do - ebegin "Starting Folding@Home on CPU ${CPU}" - cd /opt/foldingathome/client${CPU}/ - nice -n 20 su foldingathome -c "/opt/foldingathome/client${CPU}/foldingathome ${FOLD_OPTS}" &>/dev/null & - eend $? - done -} - -stop() { - do_config - for (($CPU; CPU > 0; CPU--)); do - ebegin "Stopping Folding@Home on CPU ${CPU}" - cd /opt/foldingathome/client${CPU}/ - 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/client${CPU}/' > /dev/null 2>&1; then - eend 1 - else - eend 0 - fi - done -} - diff --git a/sci-biology/foldingathome/foldingathome-5.0.2-r1.ebuild b/sci-biology/foldingathome/foldingathome-5.0.2-r1.ebuild deleted file mode 100644 index bb20624ecf55..000000000000 --- a/sci-biology/foldingathome/foldingathome-5.0.2-r1.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2005 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-r1.ebuild,v 1.1 2005/02/03 17:14:46 lostlogic Exp $ - -# no version number on this install dir since upgrades will be using same dir -# (data will be stored here too) -I="/opt/foldingathome" - -inherit eutils - -DESCRIPTION="Help simulate protein folding at home" -HOMEPAGE="http://folding.stanford.edu/" -SRC_URI="http://www.stanford.edu/group/pandegroup/release/FAH502-Linux.exe" -RESTRICT="nomirror" - -SLOT="0" -IUSE="" -LICENSE="as-is" -KEYWORDS="~x86 ~amd64" - -DEPEND=">=sys-apps/baselayout-1.8.0 - >=sys-libs/glibc-2.3.0 - amd64? ( app-emulation/emul-linux-x86-baselibs )" - -S="${WORKDIR}" - -src_unpack() { - cp "${DISTDIR}/${A}" ${PN} -} - -src_install() { - exeinto ${I} - newexe ${FILESDIR}/initfolding-r2 initfolding - newexe ${FILESDIR}/copy_client_config-${PVR} copy_client_config - - # Clients - exeinto ${I}/client1 - doexe foldingathome - exeinto ${I}/client2 - doexe foldingathome - exeinto ${I}/client3 - doexe foldingathome - exeinto ${I}/client4 - doexe foldingathome - exeinto ${I}/client5 - doexe foldingathome - exeinto ${I}/client6 - doexe foldingathome - exeinto ${I}/client7 - doexe foldingathome - exeinto ${I}/client8 - doexe foldingathome - exeinto /etc/init.d - newexe ${FILESDIR}/init-${PVR} foldingathome - - insinto /etc/conf.d - newins ${FILESDIR}/folding-conf.d-r1 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 "" -} - -pkg_postrm() { - einfo "Folding@home data files were not removed." - einfo " Remove them manually from ${I}" - einfo "" -} diff --git a/sci-biology/foldingathome/foldingathome-5.0.2-r2.ebuild b/sci-biology/foldingathome/foldingathome-5.0.2-r2.ebuild deleted file mode 100644 index 37d4ca8d0e95..000000000000 --- a/sci-biology/foldingathome/foldingathome-5.0.2-r2.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2005 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-r2.ebuild,v 1.1 2005/02/04 20:57:01 lostlogic Exp $ - -# no version number on this install dir since upgrades will be using same dir -# (data will be stored here too) -I="/opt/foldingathome" - -inherit eutils - -DESCRIPTION="Help simulate protein folding at home" -HOMEPAGE="http://folding.stanford.edu/" -SRC_URI="http://www.stanford.edu/group/pandegroup/release/FAH502-Linux.exe" -RESTRICT="nomirror" - -SLOT="0" -IUSE="" -LICENSE="as-is" -KEYWORDS="~x86 ~amd64" - -DEPEND=">=sys-apps/baselayout-1.8.0 - >=sys-libs/glibc-2.3.0 - amd64? ( app-emulation/emul-linux-x86-baselibs )" - -S="${WORKDIR}" - -src_unpack() { - cp "${DISTDIR}/${A}" ${PN} -} - -src_install() { - exeinto ${I} - newexe ${FILESDIR}/initfolding-r2 initfolding - newexe ${FILESDIR}/copy_client_config-${PV}-r1 copy_client_config - - # Clients - exeinto ${I}/client1 - doexe foldingathome - exeinto ${I}/client2 - doexe foldingathome - exeinto ${I}/client3 - doexe foldingathome - exeinto ${I}/client4 - doexe foldingathome - exeinto ${I}/client5 - doexe foldingathome - exeinto ${I}/client6 - doexe foldingathome - exeinto ${I}/client7 - doexe foldingathome - exeinto ${I}/client8 - doexe foldingathome - exeinto /etc/init.d - newexe ${FILESDIR}/init-${PVR} foldingathome - - insinto /etc/conf.d - newins ${FILESDIR}/folding-conf.d-r1 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 "" -} - -pkg_postrm() { - einfo "Folding@home data files were not removed." - einfo " Remove them manually from ${I}" - einfo "" -} diff --git a/sci-biology/foldingathome/foldingathome-5.0.2.ebuild b/sci-biology/foldingathome/foldingathome-5.0.2.ebuild deleted file mode 100644 index 209fcc921484..000000000000 --- a/sci-biology/foldingathome/foldingathome-5.0.2.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2005 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.ebuild,v 1.2 2005/02/03 17:14:46 lostlogic Exp $ - -# no version number on this install dir since upgrades will be using same dir -# (data will be stored here too) -I="/opt/foldingathome" - -inherit eutils - -DESCRIPTION="Help simulate protein folding at home" -HOMEPAGE="http://folding.stanford.edu/" -SRC_URI="http://www.stanford.edu/group/pandegroup/release/FAH502-Linux.exe" -RESTRICT="nomirror" - -SLOT="0" -IUSE="" -LICENSE="as-is" -KEYWORDS="~x86 ~amd64" - -DEPEND=">=sys-apps/baselayout-1.8.0 - >=sys-libs/glibc-2.3.0 - amd64? ( app-emulation/emul-linux-x86-baselibs )" - -S="${WORKDIR}" - -src_unpack() { - cp "${DISTDIR}/${A}" ${PN} -} - -src_install() { - exeinto ${I} - newexe ${FILESDIR}/initfolding-r2 initfolding - newexe ${FILESDIR}/copy_client_config copy_client_config - - # Clients - exeinto ${I}/client1 - doexe foldingathome - exeinto ${I}/client2 - doexe foldingathome - exeinto ${I}/client3 - doexe foldingathome - exeinto ${I}/client4 - doexe foldingathome - exeinto ${I}/client5 - doexe foldingathome - exeinto ${I}/client6 - doexe foldingathome - exeinto ${I}/client7 - doexe foldingathome - exeinto ${I}/client8 - doexe foldingathome - exeinto /etc/init.d - newexe ${FILESDIR}/folding-init.d-r4 foldingathome - - insinto /etc/conf.d - newins ${FILESDIR}/folding-conf.d-r1 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 "" -} - -pkg_postrm() { - einfo "Folding@home data files were not removed." - einfo " Remove them manually from ${I}" - einfo "" -} |