From b49088575eb777ced2551f484da86317332d6087 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 24 Jul 2021 02:11:45 +0100 Subject: gentoo resync : 24.07.2021 --- sci-biology/foldingathome/Manifest | 2 +- .../foldingathome/foldingathome-7.6.13-r1.ebuild | 138 ++++++++++++++++++++ .../foldingathome/foldingathome-7.6.13.ebuild | 140 --------------------- 3 files changed, 139 insertions(+), 141 deletions(-) create mode 100644 sci-biology/foldingathome/foldingathome-7.6.13-r1.ebuild delete mode 100644 sci-biology/foldingathome/foldingathome-7.6.13.ebuild (limited to 'sci-biology/foldingathome') diff --git a/sci-biology/foldingathome/Manifest b/sci-biology/foldingathome/Manifest index 404ba0cdaf8c..e31d49a66e57 100644 --- a/sci-biology/foldingathome/Manifest +++ b/sci-biology/foldingathome/Manifest @@ -1,4 +1,4 @@ AUX 7.3/folding-conf.d 339 BLAKE2B 93a0b3672777ad737ce27694aaca547634c375e180ad3c28c3adb9cae2cb1c054ff9458ee1fe04b70fe9841ae67d41198bcecfc4826d05d5de8df2759bd80910 SHA512 6fd10dc938262c05831e68176e93a24869bb6991508bcc48ece487b701788026561d073025bd347cd77ede13ca26f6b284861f30b07becf72ea77e4db22867b3 DIST fahclient_7.6.13-64bit-release.tar.bz2 3951134 BLAKE2B 2748b7c1987d166bdda08caf5ff2f331523ff519e24768cd7e111c6d3a93f54c10c88d8adbf733230b6c51547360135dbcb272e5d43fd06d01918481601382a1 SHA512 f39f2990d78d075e1061ceaff9453b703a000770a3422965b7b8a91d1814f8804837628d8a34be5afd914228ef787f699f2488523baad295a8d9c1e3bb4f35cf -EBUILD foldingathome-7.6.13.ebuild 4422 BLAKE2B 50f39d12b3c1bf23e94119a7d3a1434f7f44e1765ab77550e4561875be2e1b5b8ca1e00393ba1b218ebb12f54b4cc27721ee46586986b8771b8216ab6fe20e33 SHA512 1be3543d064a478e22abf386bdc634f5e63710aaada32fd035b4f5c1ef02bc01521a084430e9cc4fed17a677b51a62d811f5c74b1dca1b581b489f585d5d58ee +EBUILD foldingathome-7.6.13-r1.ebuild 4368 BLAKE2B 987b6022e43c2a39338ec8269e3ac001f9c0667237384814183d100fa2191dd91aaf57cfa86407d3bac0e4cee7bd12e022a967d5045e6888ba57622873500d2d SHA512 5225fcec1fb2e5d29b6628a0b06ec1f9f588f74feee6282ff7ee910fb87fba29512880707219ef77e63d0c7584858f50d0a1262ee88eea624c8dedce7df5d873 MISC metadata.xml 257 BLAKE2B c0d9bf845137c20d86333bbe5f6f7d27e5ae2edbdd6997f870a6678825b5494b8160a4dc5fba6221f252e1146c57d3237f3d7feb098a9beed9c272f57f30d708 SHA512 5be44a06c71b100dfe66effc1d12a9801f6daf2e252f74b6499528644db9b3dd00d51827a984817b78755e8d544f9c674c27c6a370c4c4414ce26a09b478b69b diff --git a/sci-biology/foldingathome/foldingathome-7.6.13-r1.ebuild b/sci-biology/foldingathome/foldingathome-7.6.13-r1.ebuild new file mode 100644 index 000000000000..c45300719bff --- /dev/null +++ b/sci-biology/foldingathome/foldingathome-7.6.13-r1.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd + +DESCRIPTION="Folding@Home is a distributed computing project for protein folding" +HOMEPAGE="https://foldingathome.org/" +SRC_URI="https://download.foldingathome.org/releases/public/release/fahclient/centos-6.7-64bit/v$(ver_cut 1-2)/fahclient_${PV}-64bit-release.tar.bz2" +S="${WORKDIR}/fahclient_${PV}-64bit-release" + +LICENSE="FAH-EULA-2014 FAH-special-permission" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="mirror bindist strip" + +# 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 +DEPEND="dev-util/patchelf" +RDEPEND=" + acct-group/foldingathome + acct-group/video + acct-user/foldingathome + app-arch/bzip2 + || ( + dev-libs/openssl-compat:1.0.0 + =dev-libs/openssl-1.0*:* + ) + sys-devel/gcc + sys-libs/glibc + sys-libs/zlib +" + +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 "" +} + +src_install() { + patchelf --set-rpath "${EPREFIX}/opt/foldingathome" FAHClient || die + patchelf --set-rpath "${EPREFIX}/opt/foldingathome" FAHCoreWrapper || die + + dosym "../../usr/$(get_libdir)/libssl.so.1.0.0" /opt/foldingathome/libssl.so.10 + dosym "../../usr/$(get_libdir)/libcrypto.so.1.0.0" /opt/foldingathome/libcrypto.so.10 + + exeinto /opt/foldingathome + doexe {FAHClient,FAHCoreWrapper} + + insinto /opt/foldingathome + doins sample-config.xml + + newconfd "${FILESDIR}"/7.3/folding-conf.d foldingathome + cat <"${T}"/fah-init +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# 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 <"${T}"/fah-init.service +[Unit] +Description=Folding@Home V7 Client +Documentation=https://foldingathome.org + +[Service] +Type=simple +User=foldingathome +Group=foldingathome +Nice=19 +WorkingDirectory=${EPREFIX}/opt/foldingathome +ExecStart=${EPREFIX}/opt/foldingathome/FAHClient --fork=false --pid=false --respawn=false --service=false +NoNewPrivileges=yes +PrivateTmp=yes +ProtectControlGroups=yes +ProtectSystem=full +RestrictRealtime=true +ProtectControlGroups=yes + +[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/foldingathome-7.6.13.ebuild b/sci-biology/foldingathome/foldingathome-7.6.13.ebuild deleted file mode 100644 index ca477a6d6b77..000000000000 --- a/sci-biology/foldingathome/foldingathome-7.6.13.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit user systemd - -DESCRIPTION="Folding@Home is a distributed computing project for protein folding" -HOMEPAGE="https://foldingathome.org/" -SRC_URI="https://download.foldingathome.org/releases/public/release/fahclient/centos-6.7-64bit/v$(ver_cut 1-2)/fahclient_${PV}-64bit-release.tar.bz2" - -RESTRICT="mirror bindist strip" - -LICENSE="FAH-EULA-2014 FAH-special-permission" -SLOT="0" -KEYWORDS="~amd64" -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 -DEPEND="dev-util/patchelf" -RDEPEND="app-arch/bzip2 - || ( - dev-libs/openssl-compat:1.0.0 - =dev-libs/openssl-1.0*:* - ) - sys-devel/gcc - sys-libs/glibc - sys-libs/zlib - acct-group/video -" - -S="${WORKDIR}/fahclient_${PV}-64bit-release" - -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 "" - - enewgroup foldingathome - enewuser foldingathome -1 -1 "${EPREFIX}"/opt/foldingathome video -} - -src_install() { - patchelf --set-rpath "${EPREFIX}/opt/foldingathome" FAHClient || die - patchelf --set-rpath "${EPREFIX}/opt/foldingathome" FAHCoreWrapper || die - - dosym "../../usr/$(get_libdir)/libssl.so.1.0.0" /opt/foldingathome/libssl.so.10 - dosym "../../usr/$(get_libdir)/libcrypto.so.1.0.0" /opt/foldingathome/libcrypto.so.10 - - exeinto /opt/foldingathome - doexe {FAHClient,FAHCoreWrapper} - - insinto /opt/foldingathome - doins sample-config.xml - - newconfd "${FILESDIR}"/7.3/folding-conf.d foldingathome - cat <"${T}"/fah-init -#!/sbin/openrc-run -# Copyright 1999-2020 Gentoo Authors -# 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 <"${T}"/fah-init.service -[Unit] -Description=Folding@Home V7 Client -Documentation=https://foldingathome.org - -[Service] -Type=simple -User=foldingathome -Group=foldingathome -Nice=19 -WorkingDirectory=${EPREFIX}/opt/foldingathome -ExecStart=${EPREFIX}/opt/foldingathome/FAHClient --fork=false --pid=false --respawn=false --service=false -NoNewPrivileges=yes -PrivateTmp=yes -ProtectControlGroups=yes -ProtectSystem=full -RestrictRealtime=true -ProtectControlGroups=yes - -[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" -} -- cgit v1.2.3