summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2004-03-01 13:09:09 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2004-03-01 13:09:09 +0000
commitb3dd7dfdf77794a4af272cbd6d46e65b9f898073 (patch)
tree8bdbb51227adaeee7e30a1aca0852e22d3da14f4 /app-sci
parentChangeLog fixes (Manifest recommit) (diff)
downloadgentoo-2-b3dd7dfdf77794a4af272cbd6d46e65b9f898073.tar.gz
gentoo-2-b3dd7dfdf77794a4af272cbd6d46e65b9f898073.tar.bz2
gentoo-2-b3dd7dfdf77794a4af272cbd6d46e65b9f898073.zip
Running as seperate user now.
Diffstat (limited to 'app-sci')
-rw-r--r--app-sci/foldingathome/ChangeLog11
-rw-r--r--app-sci/foldingathome/Manifest10
-rw-r--r--app-sci/foldingathome/files/digest-foldingathome-3.24-r12
-rw-r--r--app-sci/foldingathome/files/folding-init.d-r129
-rw-r--r--app-sci/foldingathome/files/folding.sh3
-rw-r--r--app-sci/foldingathome/files/initfolding3
-rw-r--r--app-sci/foldingathome/foldingathome-3.24-r1.ebuild57
7 files changed, 110 insertions, 5 deletions
diff --git a/app-sci/foldingathome/ChangeLog b/app-sci/foldingathome/ChangeLog
index 3703a6db314f..4629785597d9 100644
--- a/app-sci/foldingathome/ChangeLog
+++ b/app-sci/foldingathome/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-sci/foldingathome
-# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/foldingathome/ChangeLog,v 1.6 2003/05/05 20:03:38 aliz Exp $
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/foldingathome/ChangeLog,v 1.7 2004/03/01 13:09:09 phosphan Exp $
+
+*foldingathome-3.24-r1 (01 Mar 2004)
+
+ 01 Mar 2004; Patrick Kursawe <phosphan@gentoo.org>
+ foldingathome-3.24-r1.ebuild, files/folding-init.d-r1, files/folding.sh,
+ files/initfolding:
+ Running as seperate user now.
05 May 2003; Daniel Ahlberg <aliz@gentoo.org> files/folding-init.d :
Fixed stop() in init script. Fix by
diff --git a/app-sci/foldingathome/Manifest b/app-sci/foldingathome/Manifest
index 6577b7b3a81d..52b3026b6328 100644
--- a/app-sci/foldingathome/Manifest
+++ b/app-sci/foldingathome/Manifest
@@ -1,7 +1,11 @@
-MD5 7536668701da7f7dcf6729a041c59d3c ChangeLog 1086
MD5 5c26c03a2b43eb175769a75e941badec foldingathome-3.14.ebuild 1117
-MD5 e95be0e5334a02a9e9d86940c433b1d4 foldingathome-3.24.ebuild 1310
+MD5 68924d17ee48436f36476529565d1d44 foldingathome-3.24-r1.ebuild 1485
+MD5 7536668701da7f7dcf6729a041c59d3c ChangeLog 1086
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 e95be0e5334a02a9e9d86940c433b1d4 foldingathome-3.24.ebuild 1310
+MD5 2ce9c3c1a96617c6caadff6e24ef32e9 files/folding-init.d 539
+MD5 ad7ecc18b7b0f523434d668ba40295f4 files/digest-foldingathome-3.24-r1 143
+MD5 d9e077626b4f8355b93525e6ffb0e2a4 files/folding-init.d-r1 692
+MD5 c5b7d95d8669cf998cc678e58692c122 files/folding.sh 86
MD5 507a00167f75ffe5044d132a477cdd8b files/digest-foldingathome-3.14 66
MD5 ad7ecc18b7b0f523434d668ba40295f4 files/digest-foldingathome-3.24 143
-MD5 2ce9c3c1a96617c6caadff6e24ef32e9 files/folding-init.d 539
diff --git a/app-sci/foldingathome/files/digest-foldingathome-3.24-r1 b/app-sci/foldingathome/files/digest-foldingathome-3.24-r1
new file mode 100644
index 000000000000..72b9d2b96eed
--- /dev/null
+++ b/app-sci/foldingathome/files/digest-foldingathome-3.24-r1
@@ -0,0 +1,2 @@
+MD5 a3f27b7c6403e9a81e424bd2b7c935dd FAH3Console-v324-LinuxB.exe 245612
+MD5 df9c2a68e5a2b808daee0128d78ecde3 FAH3Console-v324-Linux.exe 613632
diff --git a/app-sci/foldingathome/files/folding-init.d-r1 b/app-sci/foldingathome/files/folding-init.d-r1
new file mode 100644
index 000000000000..698228137ac8
--- /dev/null
+++ b/app-sci/foldingathome/files/folding-init.d-r1
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/foldingathome/files/folding-init.d-r1,v 1.1 2004/03/01 13:09:09 phosphan Exp $
+
+start() {
+ ebegin "Starting Folding@home"
+ if [ ! -f /opt/foldingathome/client.cfg ]; then
+ eerror "Can't start without initial configuration."
+ eerror "For first run configuration, please run"
+ eerror "/opt/foldingathome/initfolding"
+ return 1
+ fi
+ cd /opt/foldingathome
+ su foldingathome ./folding.sh
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Folding@Home"
+ cd /opt/foldingathome
+ for I in FahCore*.exe
+ do
+ killall -q $I >/dev/null
+ done
+ killall foldingathome >/dev/null
+ eend $?
+}
+
diff --git a/app-sci/foldingathome/files/folding.sh b/app-sci/foldingathome/files/folding.sh
new file mode 100644
index 000000000000..9a206fcfb1d6
--- /dev/null
+++ b/app-sci/foldingathome/files/folding.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd /opt/foldingathome
+nice -n 20 ./foldingathome &>/opt/foldingathome/log &
diff --git a/app-sci/foldingathome/files/initfolding b/app-sci/foldingathome/files/initfolding
new file mode 100644
index 000000000000..90d17068e9d0
--- /dev/null
+++ b/app-sci/foldingathome/files/initfolding
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd /opt/foldingathome
+su foldingathome -c "./foldingathome -config"
diff --git a/app-sci/foldingathome/foldingathome-3.24-r1.ebuild b/app-sci/foldingathome/foldingathome-3.24-r1.ebuild
new file mode 100644
index 000000000000..3f34a2fd45f8
--- /dev/null
+++ b/app-sci/foldingathome/foldingathome-3.24-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/foldingathome/foldingathome-3.24-r1.ebuild,v 1.1 2004/03/01 13:09:09 phosphan 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/FAH3Console-v${PV/.}-LinuxB.exe
+ http://www.stanford.edu/group/pandegroup/release/FAH3Console-v${PV/.}-Linux.exe"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="~x86"
+
+DEPEND=">=sys-apps/baselayout-1.8.0"
+S="${WORKDIR}/${P}"
+
+src_unpack() {
+ mkdir -p ${S} ; cd ${S}
+ if has_version \>=glibc-2.3.0; then
+ cp ${DISTDIR}/FAH3Console-v${PV/.}-LinuxB.exe ${PN}
+ else
+ cp ${DISTDIR}/FAH3Console-v${PV/.}-Linux.exe ${PN}
+ fi
+}
+
+pkg_preinst() {
+ enewuser foldingathome -1 /bin/bash /opt/foldingathome
+}
+
+src_install() {
+ exeinto ${I}
+ doexe foldingathome
+ doexe ${FILESDIR}/folding.sh
+ doexe ${FILESDIR}/initfolding
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/folding-init.d-r1 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 "For first run configuration, please run /opt/foldingathome/initfolding"
+}
+
+pkg_postrm() {
+ einfo "Folding@home data files were not removed."
+ einfo " Remove them manually from ${I}"
+ einfo ""
+}