1 |
commit: 591de6c3bd0d7a69586256114fb276f080130b6e |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 21 18:26:02 2017 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 21 19:00:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=591de6c3 |
7 |
|
8 |
sci-biology/foldingathome: drop old 7.4.4-r1 ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
sci-biology/foldingathome/files/7.3/fah-init | 30 -------- |
13 |
sci-biology/foldingathome/files/7.3/initfolding | 5 -- |
14 |
.../foldingathome/foldingathome-7.4.4-r1.ebuild | 87 ---------------------- |
15 |
3 files changed, 122 deletions(-) |
16 |
|
17 |
diff --git a/sci-biology/foldingathome/files/7.3/fah-init b/sci-biology/foldingathome/files/7.3/fah-init |
18 |
deleted file mode 100644 |
19 |
index c5bb460d482..00000000000 |
20 |
--- a/sci-biology/foldingathome/files/7.3/fah-init |
21 |
+++ /dev/null |
22 |
@@ -1,30 +0,0 @@ |
23 |
-#!/sbin/openrc-run |
24 |
-# Copyright 1999-2013 Gentoo Foundation |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $ |
27 |
- |
28 |
-extra_commands="unitinfo" |
29 |
- |
30 |
-unitinfo() { |
31 |
- einfo "$(head -n1 /opt/foldingathome/unitinfo.txt):" |
32 |
- sed -e '1,2d' /opt/foldingathome/unitinfo.txt |
33 |
-} |
34 |
- |
35 |
-start() { |
36 |
- ebegin "Starting Folding@Home" |
37 |
- cd /opt/foldingathome |
38 |
- start-stop-daemon --chdir ${PWD} --user foldingathome --nicelevel 19 \ |
39 |
- --make-pidfile --pidfile "${PIDFILE}" \ |
40 |
- --start --background --exec ./FAHClient -- ${FOLD_OPTS} |
41 |
- eend $? |
42 |
-} |
43 |
- |
44 |
-stop() { |
45 |
- ebegin "Stopping Folding@Home" |
46 |
- start-stop-daemon --stop --user foldingathome --pidfile "${PIDFILE}" |
47 |
- if [ $? -ne 0 ]; then |
48 |
- killall --user foldingathome --signal SIGKILL |
49 |
- ewarn "killing all processes running as user 'foldingathome' ..." |
50 |
- fi |
51 |
- eend $? |
52 |
-} |
53 |
|
54 |
diff --git a/sci-biology/foldingathome/files/7.3/initfolding b/sci-biology/foldingathome/files/7.3/initfolding |
55 |
deleted file mode 100644 |
56 |
index 240b7fa2f17..00000000000 |
57 |
--- a/sci-biology/foldingathome/files/7.3/initfolding |
58 |
+++ /dev/null |
59 |
@@ -1,5 +0,0 @@ |
60 |
-#!/bin/sh |
61 |
- |
62 |
-cd /opt/foldingathome |
63 |
-/opt/foldingathome/FAHClient --configure |
64 |
-/bin/chown -R foldingathome:nogroup /opt/foldingathome |
65 |
|
66 |
diff --git a/sci-biology/foldingathome/foldingathome-7.4.4-r1.ebuild b/sci-biology/foldingathome/foldingathome-7.4.4-r1.ebuild |
67 |
deleted file mode 100644 |
68 |
index bed9135f0d2..00000000000 |
69 |
--- a/sci-biology/foldingathome/foldingathome-7.4.4-r1.ebuild |
70 |
+++ /dev/null |
71 |
@@ -1,87 +0,0 @@ |
72 |
-# Copyright 1999-2017 Gentoo Foundation |
73 |
-# Distributed under the terms of the GNU General Public License v2 |
74 |
- |
75 |
-EAPI=6 |
76 |
- |
77 |
-inherit versionator user |
78 |
- |
79 |
-MY_BASEURI="https://fah.stanford.edu/file-releases/public/release/fahclient" |
80 |
-MY_64B_URI="${MY_BASEURI}/centos-5.3-64bit/v$(get_version_component_range 1-2)/fahclient_${PV}-64bit-release.tar.bz2" |
81 |
-MY_32B_URI="${MY_BASEURI}/centos-5.5-32bit/v$(get_version_component_range 1-2)/fahclient_${PV}-32bit-release.tar.bz2" |
82 |
- |
83 |
-DESCRIPTION="Folding@Home is a distributed computing project for protein folding" |
84 |
-HOMEPAGE="http://folding.stanford.edu/FAQ-SMP.html" |
85 |
-SRC_URI="x86? ( ${MY_32B_URI} ) |
86 |
- amd64? ( ${MY_64B_URI} )" |
87 |
- |
88 |
-RESTRICT="mirror bindist strip" |
89 |
- |
90 |
-LICENSE="FAH-EULA-2014 FAH-special-permission" |
91 |
-SLOT="0" |
92 |
-KEYWORDS="~amd64 ~x86" |
93 |
-IUSE="" |
94 |
-# Expressly listing all deps, as this is a binpkg and it is doubtful whether |
95 |
-# i.e. uclibc or clang can provide what is necessary at runtime |
96 |
-RDEPEND="app-arch/bzip2 |
97 |
- sys-devel/gcc |
98 |
- sys-libs/glibc |
99 |
- sys-libs/zlib" |
100 |
- |
101 |
-S="${WORKDIR}" |
102 |
- |
103 |
-I="opt/foldingathome" |
104 |
- |
105 |
-QA_PREBUILT="${I}/*" |
106 |
- |
107 |
-pkg_setup() { |
108 |
- elog "" |
109 |
- elog "Special permission is hereby granted to the Gentoo project to provide an" |
110 |
- elog "automated installer package which downloads and installs the Folding@home client" |
111 |
- elog "software. Permission is also granted for future Gentoo installer packages on the" |
112 |
- elog "condition that they continue to adhere to all of the terms of the accompanying" |
113 |
- elog "Folding@home license agreements and display this notice." |
114 |
- elog "-- Vijay S. Pande, Stanford University, 07 May 2013" |
115 |
- elog "" |
116 |
- elog "(ref: http://foldingforum.org/viewtopic.php?f=16&t=22524&p=241992#p241992 )" |
117 |
- elog "" |
118 |
-} |
119 |
- |
120 |
-src_install() { |
121 |
- local myS="fahclient_${PV}-64bit-release" |
122 |
- use x86 && myS="${myS//64bit/32bit}" |
123 |
- exeinto ${I} |
124 |
- doexe "${FILESDIR}"/7.3/initfolding |
125 |
- doexe "${myS}"/{FAHClient,FAHCoreWrapper} |
126 |
- newconfd "${FILESDIR}"/7.3/folding-conf.d foldingathome |
127 |
- newinitd "${FILESDIR}"/7.3/fah-init foldingathome |
128 |
-} |
129 |
- |
130 |
-pkg_preinst() { |
131 |
- # the bash shell is important for "su -c" in init script |
132 |
- enewuser foldingathome -1 /bin/bash "${EPREFIX}"/opt/foldingathome |
133 |
-} |
134 |
- |
135 |
-pkg_postinst() { |
136 |
- chown -R foldingathome:nogroup "${EROOT}"${I} |
137 |
- einfo "To run Folding@home in the background at boot (with openrc):" |
138 |
- einfo "\trc-update add foldingathome default" |
139 |
- einfo "" |
140 |
- if [ ! -e "${EROOT}"${I}/config.xml ]; then |
141 |
- elog "No configuration found -- please run ${I}/initfolding or" |
142 |
- elog "emerge --config ${P} to configure your client and edit" |
143 |
- elog "${EPREFIX}/etc/conf.d/foldingathome for options" |
144 |
- fi |
145 |
- einfo "" |
146 |
- einfo "The original author encourages you to acquire a username and join team 36480." |
147 |
- einfo "http://folding.stanford.edu/English/Download#ntoc2" |
148 |
- einfo "" |
149 |
-} |
150 |
- |
151 |
-pkg_postrm() { |
152 |
- elog "Folding@home data files were not removed." |
153 |
- elog "Remove them manually from ${I}" |
154 |
-} |
155 |
- |
156 |
-pkg_config() { |
157 |
- "${EROOT}"${I}/initfolding |
158 |
-} |