Initial import.
authorDaniel Ahlberg <aliz@gentoo.org>
Mon, 4 Nov 2002 13:25:18 +0000 (13:25 +0000)
committerDaniel Ahlberg <aliz@gentoo.org>
Mon, 4 Nov 2002 13:25:18 +0000 (13:25 +0000)
app-sci/foldingathome/ChangeLog [new file with mode: 0644]
app-sci/foldingathome/files/digest-foldingathome-3.14 [new file with mode: 0644]
app-sci/foldingathome/files/folding-init.d [new file with mode: 0644]
app-sci/foldingathome/foldingathome-3.14.ebuild [new file with mode: 0644]

diff --git a/app-sci/foldingathome/ChangeLog b/app-sci/foldingathome/ChangeLog
new file mode 100644 (file)
index 0000000..741e4de
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for app-sci/foldingathome
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/foldingathome/ChangeLog,v 1.1 2002/11/04 13:25:17 aliz Exp $
+
+*foldingathome-3.14 (04 Nov 2002)
+
+  04 Nov 2002; Daniel Ahlberg <aliz@gentoo.org> :
+  Initial import. Ebuild contributed by Ryan Shaw <ryan.shaw@stanfordalumni.org> in #9535.
diff --git a/app-sci/foldingathome/files/digest-foldingathome-3.14 b/app-sci/foldingathome/files/digest-foldingathome-3.14
new file mode 100644 (file)
index 0000000..df8b62e
--- /dev/null
@@ -0,0 +1 @@
+MD5 3d72bb1276a9eab637cc54b87bbc1615 FAH3Console-Linux.exe 608912
diff --git a/app-sci/foldingathome/files/folding-init.d b/app-sci/foldingathome/files/folding-init.d
new file mode 100644 (file)
index 0000000..2a6dc5b
--- /dev/null
@@ -0,0 +1,16 @@
+#!/sbin/runscript
+
+start() {
+
+       ebegin "Starting Folding@home"
+       cd /opt/foldingathome
+       ./foldingathome >&/dev/null&
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping Folding@home"
+       killall foldingathome
+       eend $?
+}
+
diff --git a/app-sci/foldingathome/foldingathome-3.14.ebuild b/app-sci/foldingathome/foldingathome-3.14.ebuild
new file mode 100644 (file)
index 0000000..8f01925
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/foldingathome/foldingathome-3.14.ebuild,v 1.1 2002/11/04 13:25:17 aliz Exp $
+
+S=${WORKDIR}/${P}
+
+# no version number on this install dir since upgrades will be using same dir
+# (data will be stored here too)
+I="/opt/foldingathome"
+
+DESCRIPTION="Help simulate protein folding at home"
+HOMEPAGE="http://folding.stanford.edu/"
+SRC_URI="http://www.stanford.edu/group/pandegroup/release/FAH3Console-Linux.exe"
+
+DEPEND=">=sys-apps/baselayout-1.8.0"
+RDEPEND="${DEPEND}"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="~x86"
+
+src_unpack () {
+       mkdir ${P}
+       cp ${DISTDIR}/FAH3Console-Linux.exe ${P}
+}
+
+src_install () {
+       exeinto ${I} ; newexe FAH3Console-Linux.exe foldingathome
+       exeinto /etc/init.d ; newexe ${FILESDIR}/folding-init.d foldingathome
+}
+
+pkg_postinst () {
+       einfo "To run Folding@home in the background at boot:"
+       einfo " rc-update add foldingathome default"
+       einfo ""
+}
+
+pkg_postrm () {
+       einfo "Folding@home data files were not removed."
+       einfo " Remove them manually from ${I}"
+       einfo ""
+}
+