diff options
Diffstat (limited to 'sci-biology/foldingathome')
-rw-r--r-- | sci-biology/foldingathome/Manifest | 7 | ||||
-rw-r--r-- | sci-biology/foldingathome/files/7.3/folding-conf.d | 10 | ||||
-rw-r--r-- | sci-biology/foldingathome/foldingathome-7.4.4-r2.ebuild | 126 | ||||
-rw-r--r-- | sci-biology/foldingathome/metadata.xml | 12 |
4 files changed, 155 insertions, 0 deletions
diff --git a/sci-biology/foldingathome/Manifest b/sci-biology/foldingathome/Manifest new file mode 100644 index 000000000000..b6e219b93684 --- /dev/null +++ b/sci-biology/foldingathome/Manifest @@ -0,0 +1,7 @@ +AUX 7.3/folding-conf.d 339 SHA256 016af8d64434d3a13d336055347dcae8e486dedbcfe66d288c3b961e662175a0 SHA512 6fd10dc938262c05831e68176e93a24869bb6991508bcc48ece487b701788026561d073025bd347cd77ede13ca26f6b284861f30b07becf72ea77e4db22867b3 WHIRLPOOL 1c9c7acd3ea0c9d78bbf73563ccbf1bb014148ce44d788363b94e94f4cdb20b32643cac472378610e61b2ad879df0eb488f7596642d0ebecfcb536e2d4c4a906 +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 +EBUILD foldingathome-7.4.4-r2.ebuild 4130 SHA256 f99525186722a9bc768c8e426c4e7501854639330ee173eb61112fda0822aa4d SHA512 3bd334277c1ffac0e26f4e773208441817c45aa9f40bd0cd169fc7cb782e8cc30058ee34173e60bbc0c5c18015df9b0714735044ac37c36131e8cb9ccf8e9608 WHIRLPOOL 787cefc90939ae55ff78dde4df59cd474453a3070fc6c62cacd9341452a239f4955bd1b6364d57ece93e40f8d9f9375c04f30c452d8bbcaec1abb9e256f157e2 +MISC ChangeLog 2721 SHA256 2cf6a61222242249e580efab7a81640eb14fafd2461e1861e9c132ffc416add8 SHA512 9df329673c65ef19aae34c4a47a3324a8e83020ad7d137306617a37a094c405f8b5499b6d516c35a02899a98651f528b280d7ddb69936de425ff54aaf8369c64 WHIRLPOOL d4e06db9323f600c6ea0519f638a02adc2006e2718c1532e64ca36e17ac329a1434135f34207a71b11ff5d2875d99c05f437615885834f450cf68b80d5a4cae3 +MISC ChangeLog-2015 12604 SHA256 23253cc951a6ff4145e9d31d315dbcfd8d4c39ad75eb937acab9cc8ca0158e92 SHA512 91c63723b0aedbe1fbb13dcaf742c17787049d9c1cdde8fa42546ab25f7cdb218763d59af711e2b9a17e373a855f01f758b70fb5815aaf3fc81a18860b79d5db WHIRLPOOL b9173736017ef0c0cb24067bd71a9dd4d6392505819906501a79454e974d567fa13caf0ffc53d706b3152079f5add78424e580783d97082eaf2c7b8e1e5e4dd3 +MISC metadata.xml 360 SHA256 06c506cebc3bde217739669360c8a10d9dcd462fa083cb296f8940afa5bc72a2 SHA512 687f1516a8ec80270fa173b0a7d7c259f3f02ffefa69d3175b72e170bd11aeb786563edb43214390a83b6b61b1231e2734124e50bb2a523d1a564bc3b143f00b WHIRLPOOL fe6f9a67c761ac9fa0bf84d40bc349d57dd2c8aba1ae0cd1ea26078298db9408e2157093158cb5503a33c4fe2614aac1430a9279f852ef162a3949a2183f372e 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/foldingathome-7.4.4-r2.ebuild b/sci-biology/foldingathome/foldingathome-7.4.4-r2.ebuild new file mode 100644 index 000000000000..92d3b277ea7a --- /dev/null +++ b/sci-biology/foldingathome/foldingathome-7.4.4-r2.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit versionator user systemd + +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}" + +QA_PREBUILT="opt/foldingathome/*" + +pkg_setup() { + elog "" + elog "Special permission is hereby granted to the Gentoo project to provide an" + elog "automated installer package which downloads and installs the Folding@home client" + elog "software. Permission is also granted for future Gentoo installer packages on the" + elog "condition that they continue to adhere to all of the terms of the accompanying" + elog "Folding@home license agreements and display this notice." + elog "-- Vijay S. Pande, Stanford University, 07 May 2013" + elog "" + elog "(ref: http://foldingforum.org/viewtopic.php?f=16&t=22524&p=241992#p241992 )" + elog "" + + enewuser foldingathome -1 -1 "${EPREFIX}"/opt/foldingathome +} + +src_install() { + local myS="fahclient_${PV}-64bit-release" + use x86 && myS="${myS//64bit/32bit}" + exeinto /opt/foldingathome + doexe "${myS}"/{FAHClient,FAHCoreWrapper} + + newconfd "${FILESDIR}"/7.3/folding-conf.d foldingathome + cat <<EOF >"${T}"/fah-init +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +start_stop_daemon_args="--chdir \"${EPREFIX}/opt/foldingathome\"" +command="${EPREFIX}/opt/foldingathome/FAHClient" +command_args="\${FOLD_OPTS}" +command_user=foldingathome +command_background=1 +pidfile="\${PIDFILE}" +EOF + newinitd "${T}"/fah-init foldingathome + + cat <<EOF >"${T}"/fah-init.service +[Unit] +Description=Folding@Home V7 Client +Documentation=https://folding.stanford.edu/home/the-software/ + +[Service] +Type=simple +User=foldingathome +WorkingDirectory="${EPREFIX}/opt/foldingathome" +PIDFile=/run/fahclient.pid +ExecStart=./FAHClient -v start +ExecReload=./FAHClient -v restart +ExecStop=./FAHClient -v stop +KillMode=process + +[Install] +WantedBy=multi-user.target +EOF + systemd_newunit "${T}"/fah-init.service foldingathome.service + + fowners -R foldingathome:foldingathome /opt/foldingathome +} + +pkg_postinst() { + elog "To run Folding@home in the background at boot:" + elog "(openrc)\trc-update add foldingathome default" + elog "(systemd)\tsystemctl enable foldingathome" + elog "" + if [ ! -e "${EPREFIX}"/opt/foldingathome/config.xml ]; then + elog "No config.xml file found -- please run" + elog "emerge --config ${P} to configure your client, or specify" + elog "all necessary runtime options in FOLD_OPTS within" + elog "${EPREFIX}/etc/conf.d/foldingathome" + elog "" + fi + if [[ -n ${REPLACING_VERSIONS} ]]; then + elog "NOTE, the 'initfolding' helper script has been dropped, please" + elog "use emerge --config ${P} or run FAHClient --configure directly" + elog "and adjust file permissions and ownership yourself" + elog "" + fi + elog "Please see ${EPREFIX}/opt/foldingathome/FAHClient --help for more details." + einfo "" + einfo "The original package maintainer 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 ${EPREFIX}/opt/foldingathome" +} + +pkg_config() { + cd "${EPREFIX}"/opt/foldingathome || die + su foldingathome -s /bin/sh -c "./FAHClient --configure" +} diff --git a/sci-biology/foldingathome/metadata.xml b/sci-biology/foldingathome/metadata.xml new file mode 100644 index 000000000000..2a9179e910a9 --- /dev/null +++ b/sci-biology/foldingathome/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>axs@gentoo.org</email> + <name>Ian Stakenvicius</name> +</maintainer> +<maintainer type="project"> + <email>sci-biology@gentoo.org</email> + <name>Gentoo Biology Project</name> +</maintainer> +</pkgmetadata> |