summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-biology/foldingathome
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-biology/foldingathome')
-rw-r--r--sci-biology/foldingathome/Manifest4
-rw-r--r--sci-biology/foldingathome/files/7.3/fah-init30
-rw-r--r--sci-biology/foldingathome/files/7.3/folding-conf.d10
-rw-r--r--sci-biology/foldingathome/files/7.3/initfolding5
-rw-r--r--sci-biology/foldingathome/foldingathome-7.3.6-r2.ebuild82
-rw-r--r--sci-biology/foldingathome/foldingathome-7.4.4.ebuild82
-rw-r--r--sci-biology/foldingathome/metadata.xml9
7 files changed, 222 insertions, 0 deletions
diff --git a/sci-biology/foldingathome/Manifest b/sci-biology/foldingathome/Manifest
new file mode 100644
index 000000000000..46799da48482
--- /dev/null
+++ b/sci-biology/foldingathome/Manifest
@@ -0,0 +1,4 @@
+DIST fahclient_7.3.6-32bit-release.tar.bz2 4014455 SHA256 c8415aa5a64d6b26e7684327d51f9133d524777d4123ea47138ba86595c37f12 SHA512 0a49e9cb26659357b4855f5aaf7ef5c078f172af16777d74fb566e7faa61ac0e41185dcd6f06841bf4efe047017e8dc783eae7682a40b921acb436e4d81e6639 WHIRLPOOL 0cd8f0b6dcfce297cb70b307887f1d44278c07435f5a067d9f1e83399b3913710d481982033023faf1b9056b63f14eca3b53babe698633de24544c6cdbce5f82
+DIST fahclient_7.3.6-64bit-release.tar.bz2 4349503 SHA256 e3d48b0d1b64da96601f741e0b9164ea633f1be3fe4407086679bc7c72742079 SHA512 9995a72549e38724830c403eef188786b137c8669b6121c0ec6c3d29539db9b0f67876adf5c3af64c818ada05f57a0f2ea88a58b73bdfd852c1ed8f09a327583 WHIRLPOOL 4e5bccb175dc042a1380c06b96a5d803f36ede50e429d3b1f13b33c872f753bda5acd7f5a3d60a522cb82c7da47313ef95e0c55778cbe94d579a9ecaa22c49cc
+DIST fahclient_7.4.4-32bit-release.tar.bz2 4313096 SHA256 81f1a1d161d1302a08638f23ebcfd7a163046a5427c49c70651fc8e2f6d8d60e SHA512 6a660b99c97c83518863ef671ae760b15e3ca33cacfde6485c11b29e98fab15a9d27833ba307c95b39e6ffb7f271cd0c7a47060ec5b8614961e9a5ee46494b3f WHIRLPOOL 6c6c25446e8e118b7931c58643827739691bcb9f1ae67461e6dd72cfc8556f86d49c533669897f6711537ce920680c23d0d496ba75a21047a88708cc93fec314
+DIST fahclient_7.4.4-64bit-release.tar.bz2 4451080 SHA256 4642ed9b5a06c8ab63106293f6a5ce547f6a96efe85fcd3b8c19d9065ab582df SHA512 40fc93c4ec682342040a4c7a9fd92dc9d1727ef60af6d3fa3191575719c7e595868f289727561f6902f8374061f7b51dfcf565ac047706336ef4ae9a589ff9a8 WHIRLPOOL 4feea83f1e826430943dec0495ce7658408cdaa4671bf1e4d1ec338991dbeb1599f25a4835f3960bea135fe4af7c4e415be6767ea5a0a13f63201c64e6ce6f6e
diff --git a/sci-biology/foldingathome/files/7.3/fah-init b/sci-biology/foldingathome/files/7.3/fah-init
new file mode 100644
index 000000000000..1c1a232fb697
--- /dev/null
+++ b/sci-biology/foldingathome/files/7.3/fah-init
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $
+
+extra_commands="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} --user foldingathome --nicelevel 19 \
+ --make-pidfile --pidfile "${PIDFILE}" \
+ --start --background --exec ./FAHClient -- ${FOLD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Folding@Home"
+ start-stop-daemon --stop --user foldingathome --pidfile "${PIDFILE}"
+ if [ $? -ne 0 ]; then
+ killall --user foldingathome --signal SIGKILL
+ ewarn "killing all processes running as user 'foldingathome' ..."
+ fi
+ eend $?
+}
diff --git a/sci-biology/foldingathome/files/7.3/folding-conf.d b/sci-biology/foldingathome/files/7.3/folding-conf.d
new file mode 100644
index 000000000000..b4e0448226a6
--- /dev/null
+++ b/sci-biology/foldingathome/files/7.3/folding-conf.d
@@ -0,0 +1,10 @@
+# Config file for /etc/init.d/foldingathome
+#
+# The f@h client configuration can be found in /opt/foldingathome/config.xml
+# Run /opt/foldingathome/initfolding to reconfigure that.
+#
+# The options that may be passed to the Folding client can be obtained
+# by running /opt/foldingathome/FAHClient --help
+#
+FOLD_OPTS=""
+PIDFILE=/run/folding
diff --git a/sci-biology/foldingathome/files/7.3/initfolding b/sci-biology/foldingathome/files/7.3/initfolding
new file mode 100644
index 000000000000..240b7fa2f17b
--- /dev/null
+++ b/sci-biology/foldingathome/files/7.3/initfolding
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd /opt/foldingathome
+/opt/foldingathome/FAHClient --configure
+/bin/chown -R foldingathome:nogroup /opt/foldingathome
diff --git a/sci-biology/foldingathome/foldingathome-7.3.6-r2.ebuild b/sci-biology/foldingathome/foldingathome-7.3.6-r2.ebuild
new file mode 100644
index 000000000000..d55a4d1c9140
--- /dev/null
+++ b/sci-biology/foldingathome/foldingathome-7.3.6-r2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit versionator user
+
+MY_BASEURI="https://fah.stanford.edu/file-releases/public/release/fahclient"
+MY_64B_URI="${MY_BASEURI}/centos-5.3-64bit/v$(get_version_component_range 1-2)/fahclient_${PV}-64bit-release.tar.bz2"
+MY_32B_URI="${MY_BASEURI}/centos-5.5-32bit/v$(get_version_component_range 1-2)/fahclient_${PV}-32bit-release.tar.bz2"
+
+DESCRIPTION="Folding@Home is a distributed computing project for protein folding"
+HOMEPAGE="http://folding.stanford.edu/FAQ-SMP.html"
+SRC_URI="x86? ( ${MY_32B_URI} )
+ amd64? ( ${MY_64B_URI} )"
+
+RESTRICT="mirror bindist strip"
+
+LICENSE="FAH-EULA-2009 FAH-special-permission"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+# Expressly listing all deps, as this is a binpkg and it is doubtful whether
+# i.e. uclibc or clang can provide what is necessary at runtime
+RDEPEND="app-arch/bzip2
+ sys-devel/gcc
+ sys-libs/glibc
+ sys-libs/zlib"
+
+S="${WORKDIR}"
+
+I="opt/foldingathome"
+
+QA_PREBUILT="${I}/*"
+
+pkg_setup() {
+ I="${EROOT}/${I}"
+ einfo ""
+ cat "${PORTDIR}"/licenses/FAH-special-permission
+ einfo ""
+}
+
+src_install() {
+ local myS="fahclient_${PV}-64bit-release"
+ use x86 && myS="${myS//64bit/32bit}"
+ exeinto "${I}"
+ doexe "${FILESDIR}"/$(get_version_component_range 1-2)/initfolding
+ doexe "${myS}"/{FAHClient,FAHCoreWrapper}
+ newconfd "${FILESDIR}"/$(get_version_component_range 1-2)/folding-conf.d foldingathome
+ newinitd "${FILESDIR}"/$(get_version_component_range 1-2)/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 "${I}"
+ einfo "To run Folding@home in the background at boot:"
+ einfo "\trc-update add foldingathome default"
+ einfo ""
+ if [ ! -e "${I}"/config.xml ]; then
+ elog "No configuration found -- please run ${I}/initfolding or"
+ elog "emerge --config ${P} to configure your client and edit"
+ elog "${EROOT}/etc/conf.d/foldingathome for options"
+ fi
+ einfo ""
+ einfo "The original author encourages you to acquire a username and join team 36480."
+ einfo "http://folding.stanford.edu/English/Download#ntoc2"
+ einfo ""
+}
+
+pkg_postrm() {
+ elog "Folding@home data files were not removed."
+ elog "Remove them manually from ${I}"
+}
+
+pkg_config() {
+ "${I}"/initfolding
+}
diff --git a/sci-biology/foldingathome/foldingathome-7.4.4.ebuild b/sci-biology/foldingathome/foldingathome-7.4.4.ebuild
new file mode 100644
index 000000000000..2a48c1b03554
--- /dev/null
+++ b/sci-biology/foldingathome/foldingathome-7.4.4.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit versionator user
+
+MY_BASEURI="https://fah.stanford.edu/file-releases/public/release/fahclient"
+MY_64B_URI="${MY_BASEURI}/centos-5.3-64bit/v$(get_version_component_range 1-2)/fahclient_${PV}-64bit-release.tar.bz2"
+MY_32B_URI="${MY_BASEURI}/centos-5.5-32bit/v$(get_version_component_range 1-2)/fahclient_${PV}-32bit-release.tar.bz2"
+
+DESCRIPTION="Folding@Home is a distributed computing project for protein folding"
+HOMEPAGE="http://folding.stanford.edu/FAQ-SMP.html"
+SRC_URI="x86? ( ${MY_32B_URI} )
+ amd64? ( ${MY_64B_URI} )"
+
+RESTRICT="mirror bindist strip"
+
+LICENSE="FAH-EULA-2014 FAH-special-permission"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+# Expressly listing all deps, as this is a binpkg and it is doubtful whether
+# i.e. uclibc or clang can provide what is necessary at runtime
+RDEPEND="app-arch/bzip2
+ sys-devel/gcc
+ sys-libs/glibc
+ sys-libs/zlib"
+
+S="${WORKDIR}"
+
+I="opt/foldingathome"
+
+QA_PREBUILT="${I}/*"
+
+pkg_setup() {
+ I="${EROOT}/${I}"
+ einfo ""
+ cat "${PORTDIR}"/licenses/FAH-special-permission
+ einfo ""
+}
+
+src_install() {
+ local myS="fahclient_${PV}-64bit-release"
+ use x86 && myS="${myS//64bit/32bit}"
+ exeinto "${I}"
+ doexe "${FILESDIR}"/7.3/initfolding
+ doexe "${myS}"/{FAHClient,FAHCoreWrapper}
+ newconfd "${FILESDIR}"/7.3/folding-conf.d foldingathome
+ newinitd "${FILESDIR}"/7.3/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 "${I}"
+ einfo "To run Folding@home in the background at boot (with openrc):"
+ einfo "\trc-update add foldingathome default"
+ einfo ""
+ if [ ! -e "${I}"/config.xml ]; then
+ elog "No configuration found -- please run ${I}/initfolding or"
+ elog "emerge --config ${P} to configure your client and edit"
+ elog "${EROOT}/etc/conf.d/foldingathome for options"
+ fi
+ einfo ""
+ einfo "The original author encourages you to acquire a username and join team 36480."
+ einfo "http://folding.stanford.edu/English/Download#ntoc2"
+ einfo ""
+}
+
+pkg_postrm() {
+ elog "Folding@home data files were not removed."
+ elog "Remove them manually from ${I}"
+}
+
+pkg_config() {
+ "${I}"/initfolding
+}
diff --git a/sci-biology/foldingathome/metadata.xml b/sci-biology/foldingathome/metadata.xml
new file mode 100644
index 000000000000..63d767b84f60
--- /dev/null
+++ b/sci-biology/foldingathome/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-biology</herd>
+<maintainer>
+ <email>axs@gentoo.org</email>
+ <name>Ian Stakenvicius</name>
+</maintainer>
+</pkgmetadata>