1 |
commit: f6f37fe3cd7cba6dc2e5e80eb76a33084972e611 |
2 |
Author: Sven Eden <sven.eden <AT> prydeworx <DOT> com> |
3 |
AuthorDate: Tue Jun 22 06:21:48 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 8 09:38:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6f37fe3 |
7 |
|
8 |
sci-misc/boinc: Bump to 7.16.17 |
9 |
|
10 |
Simple copy&rename bump, no changes needed. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/797439 |
13 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
14 |
Signed-off-by: Sven Eden <sven.eden <AT> prydeworx.com> |
15 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
16 |
|
17 |
sci-misc/boinc/Manifest | 1 + |
18 |
sci-misc/boinc/boinc-7.16.17.ebuild | 208 ++++++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 209 insertions(+) |
20 |
|
21 |
diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest |
22 |
index f6fa833c3e1..6f35f7adedd 100644 |
23 |
--- a/sci-misc/boinc/Manifest |
24 |
+++ b/sci-misc/boinc/Manifest |
25 |
@@ -1,3 +1,4 @@ |
26 |
DIST boinc-7.16.14.tar.gz 49623696 BLAKE2B dde4163040d122cf4707e4747b18120f64c31af5ea4ca778709d9dd3c2fb019eb10ecb6ee367b73ea245cb5ed93bac710f268db2e0408b32120c750915473575 SHA512 9315cd8344571ac64eecf12676a2d3d6c021577ecee7a92eff253185f7ddf5bf4d64503a819c625afafd258ad28c3879839016c431aa3099083a90194c7e6454 |
27 |
DIST boinc-7.16.16.tar.gz 49599131 BLAKE2B 819ab85c19a684144711f77e669b892aa73c006b81c1d7ef7adbd9d580e1e8473ae27b52dc17953ee677c70fc78ed15df936afd740e629715f30f2b81d84ea6f SHA512 dd7042e176d6506c70de7866556ae73b2f45734df92038086d5b0414751f3da08dc571c49f0c26d747d3fb2577674d3ff8cdec7d3563861eaaaa5af9c1db0a0e |
28 |
+DIST boinc-7.16.17.tar.gz 49628624 BLAKE2B 87e266a29506ecaa41fd18a2521b08c291548a4e31f7748001e5214e6f1fada1ded8bb8b559635d4f9c7c256cd7829dcf9132c02448c559d5ceb13524ca42e0f SHA512 e9882f37ad5c83ed020155c8192228322932f83b88ed00d025dcda63bff2dca109ecdcbaf98b48c4522b841f545f32352e5c158ae0a41de0a1f2941ac8135221 |
29 |
DIST boinc.tif 288208 BLAKE2B 156a99f08dcabc62a46874830600b9d237e64b650b8edf35db67b82006a67039a3965707194e8f0b25cfd65138b8700c0bfb877507418393b9cd3df32e94d260 SHA512 548e19b87fd70dbeb05687320b86aad39981c161b5b5b7e02fc3ce886d4c464c9bb763d5652d9895dd505ce247c7ff4490caa3d407e28f54ce889ffbab22d046 |
30 |
|
31 |
diff --git a/sci-misc/boinc/boinc-7.16.17.ebuild b/sci-misc/boinc/boinc-7.16.17.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..5ed09539980 |
34 |
--- /dev/null |
35 |
+++ b/sci-misc/boinc/boinc-7.16.17.ebuild |
36 |
@@ -0,0 +1,208 @@ |
37 |
+# Copyright 1999-2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+MY_PV=$(ver_cut 1-2) |
43 |
+WX_GTK_VER=3.0-gtk3 |
44 |
+ |
45 |
+inherit autotools desktop flag-o-matic linux-info systemd wxwidgets xdg-utils |
46 |
+ |
47 |
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" |
48 |
+HOMEPAGE="https://boinc.ssl.berkeley.edu/" |
49 |
+ |
50 |
+SRC_URI="X? ( https://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )" |
51 |
+if [[ ${PV} == *9999 ]] ; then |
52 |
+ EGIT_REPO_URI="https://github.com/BOINC/${PN}.git" |
53 |
+ inherit git-r3 |
54 |
+else |
55 |
+ SRC_URI+=" https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz" |
56 |
+ KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
57 |
+ S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}" |
58 |
+fi |
59 |
+ |
60 |
+LICENSE="LGPL-3" |
61 |
+SLOT="0" |
62 |
+IUSE="X cuda curl_ssl_gnutls +curl_ssl_openssl" |
63 |
+ |
64 |
+REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_openssl ) " |
65 |
+ |
66 |
+# libcurl must not be using an ssl backend boinc does not support. |
67 |
+# If the libcurl ssl backend changes, boinc should be recompiled. |
68 |
+COMMON_DEPEND=" |
69 |
+ acct-group/boinc |
70 |
+ acct-user/boinc |
71 |
+ >=app-misc/ca-certificates-20080809 |
72 |
+ cuda? ( |
73 |
+ >=dev-util/nvidia-cuda-toolkit-2.1 |
74 |
+ >=x11-drivers/nvidia-drivers-180.22 |
75 |
+ ) |
76 |
+ net-misc/curl[curl_ssl_gnutls(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] |
77 |
+ sys-apps/util-linux |
78 |
+ sys-libs/zlib |
79 |
+ X? ( |
80 |
+ dev-db/sqlite:3 |
81 |
+ media-libs/freeglut |
82 |
+ virtual/jpeg:0= |
83 |
+ x11-libs/gtk+:3 |
84 |
+ x11-libs/libICE |
85 |
+ >=x11-libs/libnotify-0.7 |
86 |
+ x11-libs/libSM |
87 |
+ x11-libs/libXi |
88 |
+ x11-libs/libXmu |
89 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit] |
90 |
+ virtual/jpeg |
91 |
+ ) |
92 |
+" |
93 |
+DEPEND="${RDEPEND} |
94 |
+ app-text/docbook-xml-dtd:4.4 |
95 |
+ app-text/docbook2X |
96 |
+ sys-devel/gettext |
97 |
+ X? ( virtual/imagemagick-tools[png,tiff] ) |
98 |
+" |
99 |
+RDEPEND="${COMMON_DEPEND} |
100 |
+ !app-admin/quickswitch |
101 |
+" |
102 |
+ |
103 |
+PATCHES=( |
104 |
+ # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462 |
105 |
+ "${FILESDIR}"/${PN}-${MY_PV}-fix_webview.patch |
106 |
+) |
107 |
+ |
108 |
+pkg_setup() { |
109 |
+ # Bug 578750 |
110 |
+ if use kernel_linux; then |
111 |
+ linux-info_pkg_setup |
112 |
+ if ! linux_config_exists; then |
113 |
+ ewarn "Can't check the linux kernel configuration." |
114 |
+ ewarn "You might be missing vsyscall support." |
115 |
+ elif kernel_is -ge 4 4 \ |
116 |
+ && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then |
117 |
+ ewarn "You do not have vsyscall emulation enabled." |
118 |
+ ewarn "This will prevent some boinc projects from running." |
119 |
+ ewarn "Please enable vsyscall emulation:" |
120 |
+ ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y" |
121 |
+ ewarn "in /usr/src/linux/.config, to be found at" |
122 |
+ ewarn " Processor type and features --->" |
123 |
+ ewarn " vsyscall table for legacy applications (None) --->" |
124 |
+ ewarn " (X) Emulate" |
125 |
+ ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE." |
126 |
+ ewarn "However, this has security implications and is not recommended." |
127 |
+ fi |
128 |
+ fi |
129 |
+} |
130 |
+ |
131 |
+src_prepare() { |
132 |
+ # bug #732024 |
133 |
+ if test "x$(get_libdir)" = "xlib64"; then |
134 |
+ sed -i -e 's,/:/lib:/usr/lib:,:/lib64:/usr/lib64:,g' m4/sah_check_lib.m4 || die |
135 |
+ fi |
136 |
+ |
137 |
+ default |
138 |
+ |
139 |
+ # prevent bad changes in compile flags, bug 286701 |
140 |
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed" |
141 |
+ |
142 |
+ eautoreconf |
143 |
+ |
144 |
+ # bug #732024 |
145 |
+ if test "x$(get_libdir)" = "xlib64"; then |
146 |
+ sed -i -e 's,/lib\([ /;:"]\),/lib64\1,g' configure || die |
147 |
+ fi |
148 |
+} |
149 |
+ |
150 |
+src_configure() { |
151 |
+ use X && setup-wxwidgets |
152 |
+ |
153 |
+ append-libs -L"${ESYSROOT}"/usr/$(get_libdir) -L"${ESYSROOT}"/$(get_libdir) |
154 |
+ |
155 |
+ econf --disable-server \ |
156 |
+ --enable-client \ |
157 |
+ --enable-dynamic-client-linkage \ |
158 |
+ --disable-static \ |
159 |
+ --enable-unicode \ |
160 |
+ --with-ssl \ |
161 |
+ $(use_with X x) \ |
162 |
+ $(use_enable X manager) \ |
163 |
+ $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir) |
164 |
+} |
165 |
+ |
166 |
+src_install() { |
167 |
+ default |
168 |
+ |
169 |
+ keepdir /var/lib/${PN} |
170 |
+ |
171 |
+ if use X; then |
172 |
+ # Create new icons. bug 593362 |
173 |
+ local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256) |
174 |
+ for s in "${SIZES[@]}"; do |
175 |
+ # The convert command is not checked, because it will issue warnings and exit with |
176 |
+ # an error code if imagemagick is used and was merged with USE="-xml", although the |
177 |
+ # conversion has worked. See #766093 |
178 |
+ # Instead, newicon will fail if the conversion did not produce the icon. |
179 |
+ convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png |
180 |
+ newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png |
181 |
+ done |
182 |
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}" |
183 |
+ |
184 |
+ # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910 |
185 |
+ mv "${ED}"/usr/share/applications/boincmgr{-${PN},}.desktop || \ |
186 |
+ die "Failed to rename desktop file" |
187 |
+ fi |
188 |
+ |
189 |
+ # cleanup cruft |
190 |
+ rm -r "${ED}"/etc || die "rm failed" |
191 |
+ find "${D}" -name '*.la' -delete || die "Removing .la files failed" |
192 |
+ |
193 |
+ sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die |
194 |
+ newinitd ${PN}.init ${PN} |
195 |
+ newconfd "${FILESDIR}"/${PN}.conf ${PN} |
196 |
+} |
197 |
+ |
198 |
+pkg_postinst() { |
199 |
+ if use X; then |
200 |
+ xdg_desktop_database_update |
201 |
+ xdg_mimeinfo_database_update |
202 |
+ xdg_icon_cache_update |
203 |
+ fi |
204 |
+ |
205 |
+ elog |
206 |
+ elog "You are using the source compiled version of boinc." |
207 |
+ use X && elog "The graphical manager can be found at /usr/bin/boincmgr" |
208 |
+ elog |
209 |
+ elog "You need to attach to a project to do anything useful with boinc." |
210 |
+ elog "You can do this by running /etc/init.d/boinc attach" |
211 |
+ elog "The howto for configuration is located at:" |
212 |
+ elog "http://boinc.berkeley.edu/wiki/Anonymous_platform" |
213 |
+ elog |
214 |
+ # Add warning about the new password for the client, bug 121896. |
215 |
+ if use X; then |
216 |
+ elog "If you need to use the graphical manager the password is in:" |
217 |
+ elog "/var/lib/boinc/gui_rpc_auth.cfg" |
218 |
+ elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:" |
219 |
+ elog "/etc/conf.d/boinc" |
220 |
+ elog "You should change this password to something more memorable (can be even blank)." |
221 |
+ elog "Remember to launch init script before using manager. Or changing the password." |
222 |
+ elog |
223 |
+ fi |
224 |
+ elog "To be able to use CUDA or OpenCL you should add the boinc user to the video group." |
225 |
+ elog "Run as root:" |
226 |
+ elog "gpasswd -a boinc video" |
227 |
+ elog |
228 |
+ # Add information about BOINC supporting OpenCL |
229 |
+ elog "BOINC supports OpenCL. To use it you have to eselect" |
230 |
+ if use cuda; then |
231 |
+ elog "nvidia as the OpenCL implementation, as you are using CUDA." |
232 |
+ else |
233 |
+ elog "the correct OpenCL implementation for your graphic card." |
234 |
+ fi |
235 |
+ elog |
236 |
+} |
237 |
+ |
238 |
+pkg_postrm() { |
239 |
+ if use X; then |
240 |
+ xdg_desktop_database_update |
241 |
+ xdg_mimeinfo_database_update |
242 |
+ xdg_icon_cache_update |
243 |
+ fi |
244 |
+} |