From: "Ian Stakenvicius" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/foldingathome/
Date: Fri, 21 Apr 2017 15:15:48 +0000 (UTC) [thread overview]
Message-ID: <1492787735.0b358efe8ef86e9410477fd9f4d298ef97737944.axs@gentoo> (raw)
commit: 0b358efe8ef86e9410477fd9f4d298ef97737944
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 21 14:53:55 2017 +0000
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Fri Apr 21 15:15:35 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b358efe
sci-biology/foldingathome: fix use of $PORTDIR in phase function
Bug: http://bugs.gentoo.org/566402
Package-Manager: Portage-2.3.3, Repoman-2.3.1
.../foldingathome/foldingathome-7.4.4.ebuild | 24 ++++++++++++++--------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/sci-biology/foldingathome/foldingathome-7.4.4.ebuild b/sci-biology/foldingathome/foldingathome-7.4.4.ebuild
index 761ffae1953..d1455b3ed9c 100644
--- a/sci-biology/foldingathome/foldingathome-7.4.4.ebuild
+++ b/sci-biology/foldingathome/foldingathome-7.4.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
@@ -34,16 +34,22 @@ I="opt/foldingathome"
QA_PREBUILT="${I}/*"
pkg_setup() {
- I="${EROOT}/${I}"
einfo ""
- cat "${PORTDIR}"/licenses/FAH-special-permission
+ einfo "Special permission is hereby granted to the Gentoo project to provide an"
+ einfo "automated installer package which downloads and installs the Folding@home client"
+ einfo "software. Permission is also granted for future Gentoo installer packages on the"
+ einfo "condition that they continue to adhere to all of the terms of the accompanying"
+ einfo "Folding@home license agreements and display this notice."
+ einfo "-- Vijay S. Pande, Stanford University, 07 May 2013"
+ einfo ""
+ einfo "(ref: http://foldingforum.org/viewtopic.php?f=16&t=22524&p=241992#p241992 )"
einfo ""
}
src_install() {
local myS="fahclient_${PV}-64bit-release"
use x86 && myS="${myS//64bit/32bit}"
- exeinto "${I}"
+ exeinto ${I}
doexe "${FILESDIR}"/7.3/initfolding
doexe "${myS}"/{FAHClient,FAHCoreWrapper}
newconfd "${FILESDIR}"/7.3/folding-conf.d foldingathome
@@ -52,18 +58,18 @@ src_install() {
pkg_preinst() {
# the bash shell is important for "su -c" in init script
- enewuser foldingathome -1 /bin/bash /opt/foldingathome
+ enewuser foldingathome -1 /bin/bash "${EPREFIX}"/opt/foldingathome
}
pkg_postinst() {
- chown -R foldingathome:nogroup "${I}"
+ chown -R foldingathome:nogroup "${EPREFIX}"/${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
+ if [ ! -e "${EPREFIX}"/${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"
+ elog "${EPREFIX}/etc/conf.d/foldingathome for options"
fi
einfo ""
einfo "The original author encourages you to acquire a username and join team 36480."
@@ -77,5 +83,5 @@ pkg_postrm() {
}
pkg_config() {
- "${I}"/initfolding
+ "${EPREFIX}"/${I}/initfolding
}
next reply other threads:[~2017-04-21 15:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-21 15:15 Ian Stakenvicius [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-03-01 12:10 [gentoo-commits] repo/gentoo:master commit in: sci-biology/foldingathome/ Andrew Ammerlaan
2021-07-18 18:42 Conrad Kostecki
2021-07-18 18:42 Conrad Kostecki
2020-05-14 14:59 Ian Stakenvicius
2020-04-24 21:09 Ian Stakenvicius
2020-04-24 21:09 Ian Stakenvicius
2020-03-28 7:01 Joonas Niilola
2020-03-28 7:01 Joonas Niilola
2020-03-27 16:25 Joonas Niilola
2020-03-27 7:17 Joonas Niilola
2020-03-05 4:40 Ian Stakenvicius
2019-06-14 17:46 Thomas Deutschmann
2018-09-14 16:02 Ian Stakenvicius
2018-04-25 15:04 Ian Stakenvicius
2017-09-21 19:00 Ian Stakenvicius
2017-09-20 18:40 Ian Stakenvicius
2017-04-21 15:32 Ian Stakenvicius
2017-04-21 15:15 Ian Stakenvicius
2017-04-21 15:15 Ian Stakenvicius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1492787735.0b358efe8ef86e9410477fd9f4d298ef97737944.axs@gentoo \
--to=axs@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox