commit:     80e878a3d48883d1746c731776fd3ac29cb64073
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 21 18:24:57 2017 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu Sep 21 19:00:29 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80e878a3

sci-biology/foldingathome: minor ebuild improvements

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 sci-biology/foldingathome/foldingathome-7.4.4-r2.ebuild | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sci-biology/foldingathome/foldingathome-7.4.4-r2.ebuild 
b/sci-biology/foldingathome/foldingathome-7.4.4-r2.ebuild
index bdb2a91c704..92d3b277ea7 100644
--- a/sci-biology/foldingathome/foldingathome-7.4.4-r2.ebuild
+++ b/sci-biology/foldingathome/foldingathome-7.4.4-r2.ebuild
@@ -43,7 +43,6 @@ pkg_setup() {
        elog "(ref: 
http://foldingforum.org/viewtopic.php?f=16&t=22524&p=241992#p241992 )"
        elog ""
 
-       # the bash shell is important for "su -c" in init script
        enewuser foldingathome -1 -1 "${EPREFIX}"/opt/foldingathome
 }
 
@@ -88,7 +87,7 @@ WantedBy=multi-user.target
 EOF
        systemd_newunit "${T}"/fah-init.service foldingathome.service
 
-       chown -R foldingathome:foldingathome "${ED}"${I}
+       fowners -R foldingathome:foldingathome /opt/foldingathome
 }
 
 pkg_postinst() {
@@ -97,17 +96,18 @@ pkg_postinst() {
        elog "(systemd)\tsystemctl enable foldingathome"
        elog ""
        if [ ! -e "${EPREFIX}"/opt/foldingathome/config.xml ]; then
-               elog "No configuration found -- please run"
+               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 ""
        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."
@@ -122,5 +122,5 @@ pkg_postrm() {
 
 pkg_config() {
        cd "${EPREFIX}"/opt/foldingathome || die
-       su foldingathome -s /bin/bash -c "./FAHClient --configure"
+       su foldingathome -s /bin/sh -c "./FAHClient --configure"
 }

Reply via email to