From 7c7e766b43e00437036e06affaf44b3b586ddbbd Mon Sep 17 00:00:00 2001 From: Jeffrey Gardner Date: Tue, 28 Jun 2011 15:14:16 +0000 Subject: Change init script to use 'user' instead of 'chuid' for new openrc. (Portage version: 2.1.10.3/cvs/Linux x86_64) --- sci-biology/foldingathome/ChangeLog | 8 ++- sci-biology/foldingathome/files/6.34/fah-init | 4 +- .../foldingathome/foldingathome-6.34-r1.ebuild | 59 ++++++++++++++++++++++ .../foldingathome/foldingathome-6.34.ebuild | 59 ---------------------- 4 files changed, 68 insertions(+), 62 deletions(-) create mode 100644 sci-biology/foldingathome/foldingathome-6.34-r1.ebuild delete mode 100644 sci-biology/foldingathome/foldingathome-6.34.ebuild (limited to 'sci-biology') diff --git a/sci-biology/foldingathome/ChangeLog b/sci-biology/foldingathome/ChangeLog index 46a279fad231..7aa557ab6a48 100644 --- a/sci-biology/foldingathome/ChangeLog +++ b/sci-biology/foldingathome/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-biology/foldingathome # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.32 2011/06/15 18:00:52 je_fro Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/ChangeLog,v 1.33 2011/06/28 15:14:16 je_fro Exp $ + +*foldingathome-6.34-r1 (28 Jun 2011) + + 28 Jun 2011; Jeff Gardner files/6.34/fah-init, + -foldingathome-6.34.ebuild, +foldingathome-6.34-r1.ebuild: + Change init script to use 'user' instead of 'chuid' for new openrc. 15 Jun 2011; Jeff Gardner -files/copy_client_config-5.0.2-r1, -files/init-5.0.2-r3, diff --git a/sci-biology/foldingathome/files/6.34/fah-init b/sci-biology/foldingathome/files/6.34/fah-init index a80c0fa6eb6e..04a9389db0cd 100644 --- a/sci-biology/foldingathome/files/6.34/fah-init +++ b/sci-biology/foldingathome/files/6.34/fah-init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/6.34/fah-init,v 1.2 2011/06/15 17:41:48 je_fro Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/6.34/fah-init,v 1.3 2011/06/28 15:14:16 je_fro Exp $ opts="${opts} unitinfo" @@ -13,7 +13,7 @@ unitinfo() { start() { ebegin "Starting Folding@Home" cd /opt/foldingathome - start-stop-daemon --chdir ${PWD} --chuid foldingathome --nicelevel 19 \ + start-stop-daemon --chdir ${PWD} --user foldingathome --nicelevel 19 \ --make-pidfile --pidfile "${PIDFILE}" \ --start --background --exec ./fah6 -- ${FOLD_OPTS} eend $? diff --git a/sci-biology/foldingathome/foldingathome-6.34-r1.ebuild b/sci-biology/foldingathome/foldingathome-6.34-r1.ebuild new file mode 100644 index 000000000000..9a63a44f28dd --- /dev/null +++ b/sci-biology/foldingathome/foldingathome-6.34-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/foldingathome-6.34-r1.ebuild,v 1.1 2011/06/28 15:14:16 je_fro Exp $ + +EAPI="3" + +inherit eutils + +DESCRIPTION="Folding@Home is a distributed computing project for protein folding." +HOMEPAGE="http://folding.stanford.edu/FAQ-SMP.html" +SRC_URI="http://www.stanford.edu/group/pandegroup/folding/release/FAH${PV}-Linux64.tgz" + +LICENSE="folding-at-home" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +S="${WORKDIR}" + +I="opt/foldingathome" + +QA_DT_HASH="${I}/.*" +QA_PRESTRIPPED="${I}/fah6" + +pkg_setup() { + I="${EPREFIX}/${I}" +} + +src_install() { + exeinto ${I} + doexe "${FILESDIR}"/${PV}/initfolding || die + doexe fah6 || die + newconfd "${FILESDIR}"/${PV}/folding-conf.d foldingathome || die + newinitd "${FILESDIR}"/${PV}/fah-init foldingathome || die +} + +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 "${EPREFIX}"/opt/foldingathome + einfo "To run Folding@home in the background at boot:" + einfo " rc-update add foldingathome default" + einfo "" + einfo "Please run ${I}/initfolding to configure your client" + einfo "and edit ${EPREFIX}/etc/conf.d/foldingathome for options" + einfo "" + einfo "I encourage you to acquire a username and join team 36480." + einfo "http://folding.stanford.edu/English/Download#ntoc2" + einfo "" +} + +pkg_postrm() { + einfo "Folding@home data files were not removed." + einfo " Remove them manually from ${I}" + einfo "" +} diff --git a/sci-biology/foldingathome/foldingathome-6.34.ebuild b/sci-biology/foldingathome/foldingathome-6.34.ebuild deleted file mode 100644 index 11fee0924b84..000000000000 --- a/sci-biology/foldingathome/foldingathome-6.34.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/foldingathome-6.34.ebuild,v 1.1 2011/06/15 17:26:03 je_fro Exp $ - -EAPI="3" - -inherit eutils - -DESCRIPTION="Folding@Home is a distributed computing project for protein folding." -HOMEPAGE="http://folding.stanford.edu/FAQ-SMP.html" -SRC_URI="http://www.stanford.edu/group/pandegroup/folding/release/FAH${PV}-Linux64.tgz" - -LICENSE="folding-at-home" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -S="${WORKDIR}" - -I="opt/foldingathome" - -QA_DT_HASH="${I}/.*" -QA_PRESTRIPPED="${I}/fah6" - -pkg_setup() { - I="${EPREFIX}/${I}" -} - -src_install() { - exeinto ${I} - doexe "${FILESDIR}"/${PV}/initfolding || die - doexe fah6 || die - newconfd "${FILESDIR}"/${PV}/folding-conf.d foldingathome || die - newinitd "${FILESDIR}"/${PV}/fah-init foldingathome || die -} - -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 "${EPREFIX}"/opt/foldingathome - einfo "To run Folding@home in the background at boot:" - einfo " rc-update add foldingathome default" - einfo "" - einfo "Please run ${I}/initfolding to configure your client" - einfo "and edit ${EPREFIX}/etc/conf.d/foldingathome for options" - einfo "" - einfo "I encourage you to acquire a username and join team 36480." - einfo "http://folding.stanford.edu/English/Download#ntoc2" - einfo "" -} - -pkg_postrm() { - einfo "Folding@home data files were not removed." - einfo " Remove them manually from ${I}" - einfo "" -} -- cgit v1.2.3-65-gdbad