1 |
commit: 34abf617fd037ae568cd183e823f9c51949d1cb2 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 18:20:41 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 18:42:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34abf617 |
7 |
|
8 |
sci-biology/foldingathome: drop old version |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781485 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
.../foldingathome/foldingathome-7.6.13.ebuild | 140 --------------------- |
15 |
1 file changed, 140 deletions(-) |
16 |
|
17 |
diff --git a/sci-biology/foldingathome/foldingathome-7.6.13.ebuild b/sci-biology/foldingathome/foldingathome-7.6.13.ebuild |
18 |
deleted file mode 100644 |
19 |
index ca477a6d6b7..00000000000 |
20 |
--- a/sci-biology/foldingathome/foldingathome-7.6.13.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,140 +0,0 @@ |
23 |
-# Copyright 1999-2020 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=7 |
27 |
- |
28 |
-inherit user systemd |
29 |
- |
30 |
-DESCRIPTION="Folding@Home is a distributed computing project for protein folding" |
31 |
-HOMEPAGE="https://foldingathome.org/" |
32 |
-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" |
33 |
- |
34 |
-RESTRICT="mirror bindist strip" |
35 |
- |
36 |
-LICENSE="FAH-EULA-2014 FAH-special-permission" |
37 |
-SLOT="0" |
38 |
-KEYWORDS="~amd64" |
39 |
-IUSE="" |
40 |
-# Expressly listing all deps, as this is a binpkg and it is doubtful whether |
41 |
-# i.e. uclibc or clang can provide what is necessary at runtime |
42 |
-DEPEND="dev-util/patchelf" |
43 |
-RDEPEND="app-arch/bzip2 |
44 |
- || ( |
45 |
- dev-libs/openssl-compat:1.0.0 |
46 |
- =dev-libs/openssl-1.0*:* |
47 |
- ) |
48 |
- sys-devel/gcc |
49 |
- sys-libs/glibc |
50 |
- sys-libs/zlib |
51 |
- acct-group/video |
52 |
-" |
53 |
- |
54 |
-S="${WORKDIR}/fahclient_${PV}-64bit-release" |
55 |
- |
56 |
-QA_PREBUILT="opt/foldingathome/*" |
57 |
- |
58 |
-pkg_setup() { |
59 |
- elog "" |
60 |
- elog "Special permission is hereby granted to the Gentoo project to provide an" |
61 |
- elog "automated installer package which downloads and installs the Folding@home client" |
62 |
- elog "software. Permission is also granted for future Gentoo installer packages on the" |
63 |
- elog "condition that they continue to adhere to all of the terms of the accompanying" |
64 |
- elog "Folding@home license agreements and display this notice." |
65 |
- elog "-- Vijay S. Pande, Stanford University, 07 May 2013" |
66 |
- elog "" |
67 |
- elog "(ref: http://foldingforum.org/viewtopic.php?f=16&t=22524&p=241992#p241992 )" |
68 |
- elog "" |
69 |
- |
70 |
- enewgroup foldingathome |
71 |
- enewuser foldingathome -1 -1 "${EPREFIX}"/opt/foldingathome video |
72 |
-} |
73 |
- |
74 |
-src_install() { |
75 |
- patchelf --set-rpath "${EPREFIX}/opt/foldingathome" FAHClient || die |
76 |
- patchelf --set-rpath "${EPREFIX}/opt/foldingathome" FAHCoreWrapper || die |
77 |
- |
78 |
- dosym "../../usr/$(get_libdir)/libssl.so.1.0.0" /opt/foldingathome/libssl.so.10 |
79 |
- dosym "../../usr/$(get_libdir)/libcrypto.so.1.0.0" /opt/foldingathome/libcrypto.so.10 |
80 |
- |
81 |
- exeinto /opt/foldingathome |
82 |
- doexe {FAHClient,FAHCoreWrapper} |
83 |
- |
84 |
- insinto /opt/foldingathome |
85 |
- doins sample-config.xml |
86 |
- |
87 |
- newconfd "${FILESDIR}"/7.3/folding-conf.d foldingathome |
88 |
- cat <<EOF >"${T}"/fah-init |
89 |
-#!/sbin/openrc-run |
90 |
-# Copyright 1999-2020 Gentoo Authors |
91 |
-# Distributed under the terms of the GNU General Public License v2 |
92 |
- |
93 |
-start_stop_daemon_args="--chdir \"${EPREFIX}/opt/foldingathome\"" |
94 |
-command="${EPREFIX}/opt/foldingathome/FAHClient" |
95 |
-command_args="\${FOLD_OPTS}" |
96 |
-command_user=foldingathome |
97 |
-command_background=1 |
98 |
-pidfile="\${PIDFILE}" |
99 |
-EOF |
100 |
- newinitd "${T}"/fah-init foldingathome |
101 |
- |
102 |
- cat <<EOF >"${T}"/fah-init.service |
103 |
-[Unit] |
104 |
-Description=Folding@Home V7 Client |
105 |
-Documentation=https://foldingathome.org |
106 |
- |
107 |
-[Service] |
108 |
-Type=simple |
109 |
-User=foldingathome |
110 |
-Group=foldingathome |
111 |
-Nice=19 |
112 |
-WorkingDirectory=${EPREFIX}/opt/foldingathome |
113 |
-ExecStart=${EPREFIX}/opt/foldingathome/FAHClient --fork=false --pid=false --respawn=false --service=false |
114 |
-NoNewPrivileges=yes |
115 |
-PrivateTmp=yes |
116 |
-ProtectControlGroups=yes |
117 |
-ProtectSystem=full |
118 |
-RestrictRealtime=true |
119 |
-ProtectControlGroups=yes |
120 |
- |
121 |
-[Install] |
122 |
-WantedBy=multi-user.target |
123 |
-EOF |
124 |
- systemd_newunit "${T}"/fah-init.service foldingathome.service |
125 |
- |
126 |
- fowners -R foldingathome:foldingathome /opt/foldingathome |
127 |
-} |
128 |
- |
129 |
-pkg_postinst() { |
130 |
- elog "To run Folding@home in the background at boot:" |
131 |
- elog "(openrc)\trc-update add foldingathome default" |
132 |
- elog "(systemd)\tsystemctl enable foldingathome" |
133 |
- elog "" |
134 |
- if [ ! -e "${EPREFIX}"/opt/foldingathome/config.xml ]; then |
135 |
- elog "No config.xml file found -- please run" |
136 |
- elog "emerge --config ${P} to configure your client, or specify" |
137 |
- elog "all necessary runtime options in FOLD_OPTS within" |
138 |
- elog "${EPREFIX}/etc/conf.d/foldingathome" |
139 |
- elog "" |
140 |
- fi |
141 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
142 |
- elog "NOTE, the 'initfolding' helper script has been dropped, please" |
143 |
- elog "use emerge --config ${P} or run FAHClient --configure directly" |
144 |
- elog "and adjust file permissions and ownership yourself" |
145 |
- elog "" |
146 |
- fi |
147 |
- elog "Please see ${EPREFIX}/opt/foldingathome/FAHClient --help for more details." |
148 |
- einfo "" |
149 |
- einfo "The original package maintainer encourages you to acquire a username and join team 36480." |
150 |
- einfo "http://folding.stanford.edu/English/Download#ntoc2" |
151 |
- einfo "" |
152 |
-} |
153 |
- |
154 |
-pkg_postrm() { |
155 |
- elog "Folding@home data files were not removed." |
156 |
- elog "Remove them manually from ${EPREFIX}/opt/foldingathome" |
157 |
-} |
158 |
- |
159 |
-pkg_config() { |
160 |
- cd "${EPREFIX}"/opt/foldingathome || die |
161 |
- su foldingathome -s /bin/sh -c "./FAHClient --configure" |
162 |
-} |