summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2011-06-15 18:00:53 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2011-06-15 18:00:53 +0000
commit38c06696cef7d7635e9f596108ce07fa8cc73b61 (patch)
tree5b72a71db5640e0367b4ceb66dc00c955e2b9bc5 /sci-biology/foldingathome
parentFix init script to stop service. (diff)
downloadgentoo-2-38c06696cef7d7635e9f596108ce07fa8cc73b61.tar.gz
gentoo-2-38c06696cef7d7635e9f596108ce07fa8cc73b61.tar.bz2
gentoo-2-38c06696cef7d7635e9f596108ce07fa8cc73b61.zip
Remove broken old versions.
(Portage version: 2.1.10.2/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology/foldingathome')
-rw-r--r--sci-biology/foldingathome/ChangeLog9
-rw-r--r--sci-biology/foldingathome/files/6.02/fah-init27
-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/files/6.29/fah-init27
-rw-r--r--sci-biology/foldingathome/files/6.29/folding-conf.d22
-rw-r--r--sci-biology/foldingathome/files/6.29/initfolding6
-rw-r--r--sci-biology/foldingathome/files/copy_client_config-5.0.2-r114
-rw-r--r--sci-biology/foldingathome/files/folding-conf.d-r129
-rw-r--r--sci-biology/foldingathome/files/init-5.0.2-r358
-rw-r--r--sci-biology/foldingathome/files/init-5.0.2-r559
-rw-r--r--sci-biology/foldingathome/files/initfolding-r26
-rw-r--r--sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild76
-rw-r--r--sci-biology/foldingathome/foldingathome-6.02-r1.ebuild56
-rw-r--r--sci-biology/foldingathome/foldingathome-6.29.ebuild59
15 files changed, 8 insertions, 467 deletions
diff --git a/sci-biology/foldingathome/ChangeLog b/sci-biology/foldingathome/ChangeLog
index ea689c7a018a..46a279fad231 100644
--- a/sci-biology/foldingathome/ChangeLog
+++ b/sci-biology/foldingathome/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-biology/foldingathome
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.31 2011/06/15 17:26:03 je_fro Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.32 2011/06/15 18:00:52 je_fro Exp $
+
+ 15 Jun 2011; Jeff Gardner <je_fro@gentoo.org>
+ -files/copy_client_config-5.0.2-r1, -files/init-5.0.2-r3,
+ -files/init-5.0.2-r5, -foldingathome-5.0.2-r5.ebuild,
+ -foldingathome-6.02-r1.ebuild, -foldingathome-6.29.ebuild,
+ -files/folding-conf.d-r1, -files/initfolding-r2:
+ Remove broken old versions.
*foldingathome-6.34 (15 Jun 2011)
diff --git a/sci-biology/foldingathome/files/6.02/fah-init b/sci-biology/foldingathome/files/6.02/fah-init
deleted file mode 100644
index 70424cac11f2..000000000000
--- a/sci-biology/foldingathome/files/6.02/fah-init
+++ /dev/null
@@ -1,27 +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/6.02/fah-init,v 1.3 2008/11/22 21:31:26 je_fro Exp $
-
-opts="${opts} unitinfo"
-
-unitinfo() {
- einfo "$(head -n1 /opt/foldingathome/unitinfo.txt):"
- sed -e '1,2d' /opt/foldingathome/unitinfo.txt
-}
-
-start() {
- ebegin "Starting Folding@Home"
- cd /opt/foldingathome
- start-stop-daemon --chdir ${PWD} --chuid foldingathome --nicelevel 19 \
- --make-pidfile --pidfile "${PIDFILE}" \
- --start --background --exec ./fah6 -- ${FOLD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping Folding@Home"
- start-stop-daemon --stop --user foldingathome --pidfile "${PIDFILE}"
- eend $?
- killall --user foldingathome --signal SIGKILL
-}
diff --git a/sci-biology/foldingathome/files/6.02/folding-conf.d b/sci-biology/foldingathome/files/6.02/folding-conf.d
deleted file mode 100644
index af99fc1d601b..000000000000
--- a/sci-biology/foldingathome/files/6.02/folding-conf.d
+++ /dev/null
@@ -1,21 +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.
-# -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=""
-PIDFILE=/var/run/folding
-
diff --git a/sci-biology/foldingathome/files/6.02/initfolding b/sci-biology/foldingathome/files/6.02/initfolding
deleted file mode 100644
index 3f760a1e6117..000000000000
--- a/sci-biology/foldingathome/files/6.02/initfolding
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-cd /opt/foldingathome
-/opt/foldingathome/fah6 -configonly
-/bin/chown -R foldingathome:nogroup /opt/foldingathome
-
diff --git a/sci-biology/foldingathome/files/6.29/fah-init b/sci-biology/foldingathome/files/6.29/fah-init
deleted file mode 100644
index 23543db3d35c..000000000000
--- a/sci-biology/foldingathome/files/6.29/fah-init
+++ /dev/null
@@ -1,27 +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/6.29/fah-init,v 1.1 2010/06/17 09:21:59 jlec Exp $
-
-opts="${opts} unitinfo"
-
-unitinfo() {
- einfo "$(head -n1 /opt/foldingathome/unitinfo.txt):"
- sed -e '1,2d' /opt/foldingathome/unitinfo.txt
-}
-
-start() {
- ebegin "Starting Folding@Home"
- cd /opt/foldingathome
- start-stop-daemon --chdir ${PWD} --chuid foldingathome --nicelevel 19 \
- --make-pidfile --pidfile "${PIDFILE}" \
- --start --background --exec ./fah6 -- ${FOLD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping Folding@Home"
- start-stop-daemon --stop --user foldingathome --pidfile "${PIDFILE}"
- eend $?
- [[ -f ${PIDFILE} ]] && killall --user foldingathome --signal SIGKILL
-}
diff --git a/sci-biology/foldingathome/files/6.29/folding-conf.d b/sci-biology/foldingathome/files/6.29/folding-conf.d
deleted file mode 100644
index d9d0225f7388..000000000000
--- a/sci-biology/foldingathome/files/6.29/folding-conf.d
+++ /dev/null
@@ -1,22 +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.
-# -smp x Set the client to run on x cores in SMP mode
-# -bigadv flag for maximum PPD
-#
-# 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=""
-PIDFILE=/var/run/folding
-
diff --git a/sci-biology/foldingathome/files/6.29/initfolding b/sci-biology/foldingathome/files/6.29/initfolding
deleted file mode 100644
index 3f760a1e6117..000000000000
--- a/sci-biology/foldingathome/files/6.29/initfolding
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-cd /opt/foldingathome
-/opt/foldingathome/fah6 -configonly
-/bin/chown -R foldingathome:nogroup /opt/foldingathome
-
diff --git a/sci-biology/foldingathome/files/copy_client_config-5.0.2-r1 b/sci-biology/foldingathome/files/copy_client_config-5.0.2-r1
deleted file mode 100644
index 3d60b8a32cef..000000000000
--- a/sci-biology/foldingathome/files/copy_client_config-5.0.2-r1
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-C="client"
-C1_CFG="${C}1/${C}.cfg"
-cd /opt/foldingathome/
-if [ ! -f ${C1_CFG} ]; then
- echo "Client not yet configured, exiting"
- exit 1;
-fi
-sed -i -e 's/^\(team=\)0/\111298/' ${C1_CFG}
-declare -i id=$(sed -e 's/^machineid=\([0-9]*\).*$/\1/p;d' ${C1_CFG})
-for (( i=2; ${i}<=8; i=${i}+1 )); do
- id=$id+1
- sed -e "s/^\(machineid=\)[0-9]*/\1${id}/" ${C1_CFG} > ${C}${i}/${C}.cfg
-done
diff --git a/sci-biology/foldingathome/files/folding-conf.d-r1 b/sci-biology/foldingathome/files/folding-conf.d-r1
deleted file mode 100644
index ad4839b9d2af..000000000000
--- a/sci-biology/foldingathome/files/folding-conf.d-r1
+++ /dev/null
@@ -1,29 +0,0 @@
-# Config file for /etc/init.d/foldingathome
-#
-# The f@h client configuration can be found in /opt/foldingathome/client1/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="-advmethods"
-
-# Number of clients to run
-#
-# Folding@Home isn't multithreaded, so if you're running multiple CPU's
-# you will need to run a client to run for each of your CPU's in order
-# to achieve the best performance for Folding@Home. Up to a maximum of 8.
-# Ex. A dual CPU system would use CPU=2. The init script has code to
-# determine how many CPUs you have if you set CPU=0.
-#
-CPU=0
-
diff --git a/sci-biology/foldingathome/files/init-5.0.2-r3 b/sci-biology/foldingathome/files/init-5.0.2-r3
deleted file mode 100644
index f4228702770b..000000000000
--- a/sci-biology/foldingathome/files/init-5.0.2-r3
+++ /dev/null
@@ -1,58 +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-r3,v 1.2 2005/03/03 14:40:55 lostlogic Exp $
-
-opts="${opts} unitinfo"
-
-do_config() {
- if [ -z "${CPU}" ] || [ "${CPU}" == "0" ]; then
- if [ -r /proc/cpuinfo ]; then
- CPU=`grep "^processor[[:space:]]*:" /proc/cpuinfo | wc -l`
- if (( $CPU > 8 )); then
- CPU=8
- fi
- else
- CPU=1
- fi
- fi
-}
-
-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
-}
-
-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 19 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-r5 b/sci-biology/foldingathome/files/init-5.0.2-r5
deleted file mode 100644
index 87fe45d8279e..000000000000
--- a/sci-biology/foldingathome/files/init-5.0.2-r5
+++ /dev/null
@@ -1,59 +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-r5,v 1.1 2006/06/16 08:44:04 phosphan Exp $
-
-opts="${opts} unitinfo"
-
-do_config() {
- if [ -z "${CPU}" ] || [ "${CPU}" == "0" ]; then
- if [ -r /proc/cpuinfo ]; then
- CPU=`grep "^processor[[:space:]]*:" /proc/cpuinfo | wc -l`
- if (( $CPU > 8 )); then
- CPU=8
- fi
- else
- CPU=1
- fi
- fi
-}
-
-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
-}
-
-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}/
- start-stop-daemon --chdir ${PWD} --chuid foldingathome --nicelevel 19 --start --background --exec ./foldingathome -- ${FOLD_OPTS}
- eend $?
- done
-}
-
-stop() {
- do_config
- for (($CPU; CPU > 0; CPU--)); do
- ebegin "Stopping Folding@Home on CPU ${CPU}"
- start-stop-daemon --stop --user foldingathome --exec /opt/foldingathome/client${CPU}/foldingathome
- 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/initfolding-r2 b/sci-biology/foldingathome/files/initfolding-r2
deleted file mode 100644
index 1e39fa32359d..000000000000
--- a/sci-biology/foldingathome/files/initfolding-r2
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-cd /opt/foldingathome/client1
-/opt/foldingathome/client1/foldingathome -configonly
-/bin/chown -R foldingathome:nogroup /opt/foldingathome
-
diff --git a/sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild b/sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild
deleted file mode 100644
index 473dc016a82a..000000000000
--- a/sci-biology/foldingathome/foldingathome-5.0.2-r5.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# 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.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)
-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="mirror strip"
-
-SLOT="0"
-IUSE=""
-LICENSE="folding-at-home"
-KEYWORDS="amd64 x86"
-
-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
- newinitd "${FILESDIR}"/init-${PVR} foldingathome
- newconfd "${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-6.02-r1.ebuild b/sci-biology/foldingathome/foldingathome-6.02-r1.ebuild
deleted file mode 100644
index bbe3f132f12f..000000000000
--- a/sci-biology/foldingathome/foldingathome-6.02-r1.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# 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-r1.ebuild,v 1.2 2008/11/22 22:04:33 je_fro Exp $
-
-I="/opt/foldingathome"
-
-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"
-
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=">=sys-libs/glibc-2.3.0
- amd64? ( 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 "I encourage you to acquire a username and join team 36480."
- einfo "http://folding.stanford.edu/English/Download#ntoc2"
- 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.29.ebuild b/sci-biology/foldingathome/foldingathome-6.29.ebuild
deleted file mode 100644
index 9c4c86a08619..000000000000
--- a/sci-biology/foldingathome/foldingathome-6.29.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/foldingathome-6.29.ebuild,v 1.2 2010/06/22 06:29:37 jlec Exp $
-
-EAPI="3"
-
-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/FAH${PV}-Linux.tgz"
-
-LICENSE="folding-at-home"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-S="${WORKDIR}"
-
-I="opt/foldingathome"
-
-QA_DT_HASH="${I}/.*"
-QA_PRESTRIPPED="${I}/fah6"
-
-pkg_setup() {
- I="${EPREFIX}/${I}"
-}
-
-src_install() {
- exeinto ${I}
- doexe "${FILESDIR}"/6.02/initfolding || die
- doexe fah6 mpiexec || die
- newconfd "${FILESDIR}"/6.02/folding-conf.d foldingathome || die
- newinitd "${FILESDIR}"/6.02/fah-init foldingathome || die
-}
-
-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 "${EPREFIX}"/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 ${EPREFIX}/etc/conf.d/foldingathome for options"
- einfo ""
- einfo "I encourage you to acquire a username and join team 36480."
- einfo "http://folding.stanford.edu/English/Download#ntoc2"
- einfo ""
-}
-
-pkg_postrm() {
- einfo "Folding@home data files were not removed."
- einfo " Remove them manually from ${I}"
- einfo ""
-}