Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/boinc/
Date: Thu, 02 Nov 2017 11:39:57
Message-Id: 1509622776.6bfdf87f159e4ca84c0ba7f7cc57a86773290088.leio@gentoo
1 commit: 6bfdf87f159e4ca84c0ba7f7cc57a86773290088
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 2 11:39:30 2017 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 2 11:39:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bfdf87f
7
8 sci-misc/boinc: remove old
9
10 Acked-by: David Seifert <soap <AT> gentoo.org>
11 Package-Manager: Portage-2.3.8, Repoman-2.3.2
12
13 sci-misc/boinc/Manifest | 3 -
14 sci-misc/boinc/boinc-7.2.47.ebuild | 175 --------------------------------
15 sci-misc/boinc/boinc-7.4.52-r6.ebuild | 180 ---------------------------------
16 sci-misc/boinc/boinc-7.6.33-r6.ebuild | 181 ----------------------------------
17 4 files changed, 539 deletions(-)
18
19 diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest
20 index f4897fa8f32..45520c8c7b0 100644
21 --- a/sci-misc/boinc/Manifest
22 +++ b/sci-misc/boinc/Manifest
23 @@ -1,5 +1,2 @@
24 -DIST boinc-7.2.47.tar.gz 45121528 SHA256 2b06d0bbff2aae52645db124052ba1b749c38261e9b9f006fc9b5d00b35c2141 SHA512 25d44c5db8533367bdf960f76c52bb6f1763110843be3616b822dbc2d0d1aea2837052f041c04e0336f3371449a96562740f484969b73e26c0f5b20407c74e14 WHIRLPOOL 9b6ad2d776dd0ab506af25df576b098988a12649da6d4deef6505c7e2284062d494293f5b9b9ddb44cce131819112b705e7658cd1473ca5889fed6f9a0b7e306
25 -DIST boinc-7.4.52.tar.gz 44146597 SHA256 b1a53a845c3f9e727d2b3017b266438fd346d73b06c5b0b371e689e803ef0b02 SHA512 09743401e204b4af1e2fb5a594a4cb024b5270b80e69a82cf67eb5e648b14b348a3f7f3b45128667e3ba4ef5f85bc3206606276a91a3497a1a3e7f775f1df006 WHIRLPOOL 27f29ac83a6494943c55f89bbdca8cbbbdd469ab1bf389c6772423e7eb0aaf4e4650a4a883ad45a99f97aa32fb3d598c926ae06a5f8ceae30a415e41fb3dd9e1
26 -DIST boinc-7.6.33.tar.gz 43569061 SHA256 dd2bee1f0ee734961a24f4edfb9f45efa4bd6d7351f5bd5f715a822245ac4353 SHA512 dc374b4dcfbe4cc1b75274ba651ee8bb7da1223263bd71d9589eeee39330b09757a9c8c22da43d06126cf444933c01814775d234294a5d4c00dc31a7ec27895b WHIRLPOOL 15221749191abf7fe28091f2b916c896fd9101e23ff3e711fa4bd9d925f00fb58d14345c656ad0fe5988eba5f22f2671fc6fc748f39615eeba1aab08cc8619cb
27 DIST boinc-7.8.1.tar.gz 52056850 SHA256 6c9668bf2240b4d4e96ee5955b91d474011ec62414434de2d4f170e3ecb7bd6d SHA512 32a30f19dd6b7e6b6050de9952091c2a60e27f4891542f70a449a7d7af347d9b0eecae4501bfb7465f453d1bbe321369f911be74b882384aa5216db3bf569656 WHIRLPOOL 3fee0f50d96e6a4ddd5f0c6b7976658e92358ae73c1169f403495a42f3758398d3ba5d868ec433519ded3f65f01a50325a6f24ae5fbfddf8f63201e246e32980
28 DIST boinc.tif 288208 SHA256 5c14c65a7531e1dc3f7f7c18ef86eb0e27726527cb835967aed8b0d003eb564a SHA512 548e19b87fd70dbeb05687320b86aad39981c161b5b5b7e02fc3ce886d4c464c9bb763d5652d9895dd505ce247c7ff4490caa3d407e28f54ce889ffbab22d046 WHIRLPOOL 6a6cace44c8483000cda787da39006db521fd9408539f8abca2c2ab913371405b97719af0518acd2f5239451a9605d0f6d67a40fdb14cb49a03a42a7a44a4c86
29
30 diff --git a/sci-misc/boinc/boinc-7.2.47.ebuild b/sci-misc/boinc/boinc-7.2.47.ebuild
31 deleted file mode 100644
32 index a5b8a0a8c2d..00000000000
33 --- a/sci-misc/boinc/boinc-7.2.47.ebuild
34 +++ /dev/null
35 @@ -1,175 +0,0 @@
36 -# Copyright 1999-2017 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=6
40 -
41 -WX_GTK_VER=2.8
42 -
43 -inherit autotools eutils linux-info systemd user versionator wxwidgets
44 -
45 -MY_PV=$(get_version_component_range 1-2)
46 -
47 -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
48 -HOMEPAGE="http://boinc.ssl.berkeley.edu/"
49 -SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz
50 - X? ( http://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )"
51 -RESTRICT="mirror"
52 -
53 -LICENSE="LGPL-2.1"
54 -SLOT="0"
55 -KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
56 -IUSE="X cuda curl_ssl_gnutls curl_ssl_libressl +curl_ssl_openssl static-libs"
57 -
58 -REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_libressl curl_ssl_openssl ) "
59 -
60 -# libcurl must not be using an ssl backend boinc does not support.
61 -# If the libcurl ssl backend changes, boinc should be recompiled.
62 -RDEPEND="
63 - !sci-misc/boinc-bin
64 - !app-admin/quickswitch
65 - >=app-misc/ca-certificates-20080809
66 - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
67 - sys-apps/util-linux
68 - sys-libs/zlib
69 - cuda? (
70 - >=dev-util/nvidia-cuda-toolkit-2.1
71 - >=x11-drivers/nvidia-drivers-180.22
72 - )
73 - X? (
74 - dev-db/sqlite:3
75 - media-libs/freeglut
76 - sys-libs/glibc:2.2
77 - virtual/jpeg:0=
78 - x11-libs/gtk+:2
79 - >=x11-libs/libnotify-0.7
80 - x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
81 - )
82 -"
83 -DEPEND="${RDEPEND}
84 - sys-devel/gettext
85 - app-text/docbook-xml-dtd:4.4
86 - app-text/docbook2X
87 - X? ( virtual/imagemagick-tools[png,tiff] )
88 -"
89 -
90 -S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
91 -
92 -pkg_setup() {
93 - # Bug 578750
94 - if use kernel_linux; then
95 - linux-info_pkg_setup
96 - if ! linux_config_exists; then
97 - ewarn "Can't check the linux kernel configuration."
98 - ewarn "You might be missing vsyscall support."
99 - elif kernel_is -ge 4 4 \
100 - && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then
101 - ewarn "You do not have vsyscall emulation enabled."
102 - ewarn "This will prevent some boinc projects from running."
103 - ewarn "Please enable vsyscall emulation:"
104 - ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y"
105 - ewarn "in /usr/src/linux/.config, to be found at"
106 - ewarn " Processor type and features --->"
107 - ewarn " vsyscall table for legacy applications (None) --->"
108 - ewarn " (X) Emulate"
109 - ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE."
110 - ewarn "However, this has security implications and is not recommended."
111 - fi
112 - fi
113 -}
114 -
115 -src_prepare() {
116 - default
117 -
118 - # prevent bad changes in compile flags, bug 286701
119 - sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
120 -
121 - eautoreconf
122 -
123 - use X && need-wxwidgets unicode
124 -}
125 -
126 -src_configure() {
127 - econf --disable-server \
128 - --enable-client \
129 - --enable-dynamic-client-linkage \
130 - --disable-static \
131 - --enable-unicode \
132 - --with-ssl \
133 - $(use_with X x) \
134 - $(use_enable X manager) \
135 - $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir)
136 -}
137 -
138 -src_install() {
139 - default
140 -
141 - keepdir /var/lib/${PN}
142 -
143 - if use X; then
144 - # Create new icons. bug 593362
145 - local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256)
146 - for s in "${SIZES[@]}"; do
147 - convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png || die
148 - newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
149 - done
150 - make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
151 -
152 - # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
153 - mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
154 - die "Failed to rename desktop file"
155 - fi
156 -
157 - # cleanup cruft
158 - rm -rf "${ED%/}"/etc || die "rm failed"
159 -
160 - sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
161 - newinitd ${PN}.init ${PN}
162 - newconfd "${FILESDIR}"/${PN}.conf ${PN}
163 - systemd_dounit "${FILESDIR}"/${PN}.service
164 -}
165 -
166 -pkg_preinst() {
167 - enewgroup ${PN}
168 - # note this works only for first install so we have to
169 - # elog user about the need of being in video group
170 - local groups="${PN}"
171 - if use cuda; then
172 - groups+=",video"
173 - fi
174 - enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}"
175 -}
176 -
177 -pkg_postinst() {
178 - elog
179 - elog "You are using the source compiled version of boinc."
180 - use X && elog "The graphical manager can be found at /usr/bin/boincmgr"
181 - elog
182 - elog "You need to attach to a project to do anything useful with boinc."
183 - elog "You can do this by running /etc/init.d/boinc attach"
184 - elog "The howto for configuration is located at:"
185 - elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
186 - elog
187 - # Add warning about the new password for the client, bug 121896.
188 - if use X; then
189 - elog "If you need to use the graphical manager the password is in:"
190 - elog "/var/lib/boinc/gui_rpc_auth.cfg"
191 - elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
192 - elog "/etc/conf.d/boinc"
193 - elog "You should change this password to something more memorable (can be even blank)."
194 - elog "Remember to launch init script before using manager. Or changing the password."
195 - elog
196 - fi
197 - if use cuda; then
198 - elog "To be able to use CUDA you should add boinc user to video group."
199 - elog "Run as root:"
200 - elog "gpasswd -a boinc video"
201 - fi
202 - # Add information about BOINC supporting OpenCL
203 - elog "BOINC supports OpenCL. To use it you have to eselect"
204 - if use cuda; then
205 - elog "nvidia as the OpenCL implementation, as you are using CUDA."
206 - else
207 - elog "the correct OpenCL implementation for your graphic card."
208 - fi
209 - elog
210 -}
211
212 diff --git a/sci-misc/boinc/boinc-7.4.52-r6.ebuild b/sci-misc/boinc/boinc-7.4.52-r6.ebuild
213 deleted file mode 100644
214 index 55454c00e45..00000000000
215 --- a/sci-misc/boinc/boinc-7.4.52-r6.ebuild
216 +++ /dev/null
217 @@ -1,180 +0,0 @@
218 -# Copyright 1999-2017 Gentoo Foundation
219 -# Distributed under the terms of the GNU General Public License v2
220 -
221 -EAPI=6
222 -
223 -WX_GTK_VER=3.0
224 -
225 -inherit autotools eutils linux-info systemd user versionator wxwidgets
226 -
227 -MY_PV=$(get_version_component_range 1-2)
228 -
229 -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
230 -HOMEPAGE="http://boinc.ssl.berkeley.edu/"
231 -SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz
232 - X? ( http://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )"
233 -RESTRICT="mirror"
234 -
235 -LICENSE="LGPL-2.1"
236 -SLOT="0"
237 -KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
238 -IUSE="X cuda curl_ssl_gnutls curl_ssl_libressl +curl_ssl_openssl static-libs"
239 -
240 -REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_libressl curl_ssl_openssl ) "
241 -
242 -# libcurl must not be using an ssl backend boinc does not support.
243 -# If the libcurl ssl backend changes, boinc should be recompiled.
244 -RDEPEND="
245 - !sci-misc/boinc-bin
246 - !app-admin/quickswitch
247 - >=app-misc/ca-certificates-20080809
248 - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
249 - sys-apps/util-linux
250 - sys-libs/zlib
251 - cuda? (
252 - >=dev-util/nvidia-cuda-toolkit-2.1
253 - >=x11-drivers/nvidia-drivers-180.22
254 - )
255 - X? (
256 - dev-db/sqlite:3
257 - media-libs/freeglut
258 - sys-libs/glibc:2.2
259 - virtual/jpeg:0=
260 - x11-libs/gtk+:2
261 - >=x11-libs/libnotify-0.7
262 - x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit]
263 - )
264 -"
265 -DEPEND="${RDEPEND}
266 - sys-devel/gettext
267 - app-text/docbook-xml-dtd:4.4
268 - app-text/docbook2X
269 - X? ( virtual/imagemagick-tools[png,tiff] )
270 -"
271 -
272 -PATCHES=(
273 - # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462
274 - "${FILESDIR}"/fix_webview.patch
275 -)
276 -
277 -S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
278 -
279 -pkg_setup() {
280 - # Bug 578750
281 - if use kernel_linux; then
282 - linux-info_pkg_setup
283 - if ! linux_config_exists; then
284 - ewarn "Can't check the linux kernel configuration."
285 - ewarn "You might be missing vsyscall support."
286 - elif kernel_is -ge 4 4 \
287 - && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then
288 - ewarn "You do not have vsyscall emulation enabled."
289 - ewarn "This will prevent some boinc projects from running."
290 - ewarn "Please enable vsyscall emulation:"
291 - ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y"
292 - ewarn "in /usr/src/linux/.config, to be found at"
293 - ewarn " Processor type and features --->"
294 - ewarn " vsyscall table for legacy applications (None) --->"
295 - ewarn " (X) Emulate"
296 - ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE."
297 - ewarn "However, this has security implications and is not recommended."
298 - fi
299 - fi
300 -}
301 -
302 -src_prepare() {
303 - default
304 -
305 - # prevent bad changes in compile flags, bug 286701
306 - sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
307 -
308 - eautoreconf
309 -
310 - use X && need-wxwidgets unicode
311 -}
312 -
313 -src_configure() {
314 - econf --disable-server \
315 - --enable-client \
316 - --enable-dynamic-client-linkage \
317 - --disable-static \
318 - --enable-unicode \
319 - --with-ssl \
320 - $(use_with X x) \
321 - $(use_enable X manager) \
322 - $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir)
323 -}
324 -
325 -src_install() {
326 - default
327 -
328 - keepdir /var/lib/${PN}
329 -
330 - if use X; then
331 - # Create new icons. bug 593362
332 - local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256)
333 - for s in "${SIZES[@]}"; do
334 - convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png || die
335 - newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
336 - done
337 - make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
338 -
339 - # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
340 - mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
341 - die "Failed to rename desktop file"
342 - fi
343 -
344 - # cleanup cruft
345 - rm -rf "${ED%/}"/etc || die "rm failed"
346 -
347 - sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
348 - newinitd ${PN}.init ${PN}
349 - newconfd "${FILESDIR}"/${PN}.conf ${PN}
350 - systemd_dounit "${FILESDIR}"/${PN}.service
351 -}
352 -
353 -pkg_preinst() {
354 - enewgroup ${PN}
355 - # note this works only for first install so we have to
356 - # elog user about the need of being in video group
357 - local groups="${PN}"
358 - if use cuda; then
359 - groups+=",video"
360 - fi
361 - enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}"
362 -}
363 -
364 -pkg_postinst() {
365 - elog
366 - elog "You are using the source compiled version of boinc."
367 - use X && elog "The graphical manager can be found at /usr/bin/boincmgr"
368 - elog
369 - elog "You need to attach to a project to do anything useful with boinc."
370 - elog "You can do this by running /etc/init.d/boinc attach"
371 - elog "The howto for configuration is located at:"
372 - elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
373 - elog
374 - # Add warning about the new password for the client, bug 121896.
375 - if use X; then
376 - elog "If you need to use the graphical manager the password is in:"
377 - elog "/var/lib/boinc/gui_rpc_auth.cfg"
378 - elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
379 - elog "/etc/conf.d/boinc"
380 - elog "You should change this password to something more memorable (can be even blank)."
381 - elog "Remember to launch init script before using manager. Or changing the password."
382 - elog
383 - fi
384 - if use cuda; then
385 - elog "To be able to use CUDA you should add boinc user to video group."
386 - elog "Run as root:"
387 - elog "gpasswd -a boinc video"
388 - fi
389 - # Add information about BOINC supporting OpenCL
390 - elog "BOINC supports OpenCL. To use it you have to eselect"
391 - if use cuda; then
392 - elog "nvidia as the OpenCL implementation, as you are using CUDA."
393 - else
394 - elog "the correct OpenCL implementation for your graphic card."
395 - fi
396 - elog
397 -}
398
399 diff --git a/sci-misc/boinc/boinc-7.6.33-r6.ebuild b/sci-misc/boinc/boinc-7.6.33-r6.ebuild
400 deleted file mode 100644
401 index 59a13dfeba9..00000000000
402 --- a/sci-misc/boinc/boinc-7.6.33-r6.ebuild
403 +++ /dev/null
404 @@ -1,181 +0,0 @@
405 -# Copyright 1999-2017 Gentoo Foundation
406 -# Distributed under the terms of the GNU General Public License v2
407 -
408 -EAPI=6
409 -
410 -WX_GTK_VER=3.0
411 -
412 -inherit autotools eutils linux-info systemd user versionator wxwidgets
413 -
414 -MY_PV=$(get_version_component_range 1-2)
415 -
416 -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
417 -HOMEPAGE="http://boinc.ssl.berkeley.edu/"
418 -SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz
419 - X? ( http://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )"
420 -RESTRICT="mirror"
421 -
422 -LICENSE="LGPL-2.1"
423 -SLOT="0"
424 -KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
425 -IUSE="X cuda curl_ssl_gnutls curl_ssl_libressl +curl_ssl_openssl static-libs"
426 -
427 -REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_libressl curl_ssl_openssl ) "
428 -
429 -# libcurl must not be using an ssl backend boinc does not support.
430 -# If the libcurl ssl backend changes, boinc should be recompiled.
431 -RDEPEND="
432 - !sci-misc/boinc-bin
433 - !app-admin/quickswitch
434 - >=app-misc/ca-certificates-20080809
435 - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
436 - sys-apps/util-linux
437 - sys-libs/zlib
438 - cuda? (
439 - >=dev-util/nvidia-cuda-toolkit-2.1
440 - >=x11-drivers/nvidia-drivers-180.22
441 - )
442 - X? (
443 - dev-db/sqlite:3
444 - media-libs/freeglut
445 - sys-libs/glibc:2.2
446 - virtual/jpeg:0=
447 - x11-libs/gtk+:2
448 - >=x11-libs/libnotify-0.7
449 - x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit]
450 - )
451 -"
452 -DEPEND="${RDEPEND}
453 - sys-devel/gettext
454 - app-text/docbook-xml-dtd:4.4
455 - app-text/docbook2X
456 - X? ( virtual/imagemagick-tools[png,tiff] )
457 -"
458 -
459 -PATCHES=(
460 - # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462
461 - "${FILESDIR}"/fix_webview.patch
462 -)
463 -
464 -S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
465 -
466 -pkg_setup() {
467 - # Bug 578750
468 - if use kernel_linux; then
469 - linux-info_pkg_setup
470 - if ! linux_config_exists; then
471 - ewarn "Can't check the linux kernel configuration."
472 - ewarn "You might be missing vsyscall support."
473 - elif kernel_is -ge 4 4 \
474 - && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then
475 - ewarn "You do not have vsyscall emulation enabled."
476 - ewarn "This will prevent some boinc projects from running."
477 - ewarn "Please enable vsyscall emulation:"
478 - ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y"
479 - ewarn "in /usr/src/linux/.config, to be found at"
480 - ewarn " Processor type and features --->"
481 - ewarn " vsyscall table for legacy applications (None) --->"
482 - ewarn " (X) Emulate"
483 - ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE."
484 - ewarn "However, this has security implications and is not recommended."
485 - fi
486 - fi
487 -}
488 -
489 -src_prepare() {
490 - default
491 -
492 - # prevent bad changes in compile flags, bug 286701
493 - sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
494 -
495 - eautoreconf
496 -
497 - use X && need-wxwidgets unicode
498 -}
499 -
500 -src_configure() {
501 - econf --disable-server \
502 - --enable-client \
503 - --enable-dynamic-client-linkage \
504 - --disable-static \
505 - --enable-unicode \
506 - --with-ssl \
507 - $(use_with X x) \
508 - $(use_enable X manager) \
509 - $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir)
510 -}
511 -
512 -src_install() {
513 - default
514 -
515 - keepdir /var/lib/${PN}
516 -
517 - if use X; then
518 - # Create new icons. bug 593362
519 - local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256)
520 - for s in "${SIZES[@]}"; do
521 - convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png || die
522 - newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
523 - done
524 - make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
525 -
526 - # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
527 - mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
528 - die "Failed to rename desktop file"
529 - fi
530 -
531 - # cleanup cruft
532 - rm -rf "${ED%/}"/etc || die "rm failed"
533 -
534 - sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
535 - newinitd ${PN}.init ${PN}
536 - newconfd "${FILESDIR}"/${PN}.conf ${PN}
537 - systemd_dounit "${FILESDIR}"/${PN}.service
538 -}
539 -
540 -pkg_preinst() {
541 - enewgroup ${PN}
542 - # note this works only for first install so we have to
543 - # elog user about the need of being in video group
544 - local groups="${PN}"
545 - if use cuda; then
546 - groups+=",video"
547 - fi
548 - enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}"
549 -}
550 -
551 -pkg_postinst() {
552 - elog
553 - elog "You are using the source compiled version of boinc."
554 - use X && elog "The graphical manager can be found at /usr/bin/boincmgr"
555 - elog
556 - elog "You need to attach to a project to do anything useful with boinc."
557 - elog "You can do this by running /etc/init.d/boinc attach"
558 - elog "The howto for configuration is located at:"
559 - elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
560 - elog
561 - # Add warning about the new password for the client, bug 121896.
562 - if use X; then
563 - elog "If you need to use the graphical manager the password is in:"
564 - elog "/var/lib/boinc/gui_rpc_auth.cfg"
565 - elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
566 - elog "/etc/conf.d/boinc"
567 - elog "You should change this password to something more memorable (can be even blank)."
568 - elog "Remember to launch init script before using manager. Or changing the password."
569 - elog
570 - fi
571 - if use cuda; then
572 - elog "To be able to use CUDA you should add boinc user to video group."
573 - elog "Run as root:"
574 - elog "gpasswd -a boinc video"
575 - elog
576 - fi
577 - # Add information about BOINC supporting OpenCL
578 - elog "BOINC supports OpenCL. To use it you have to eselect"
579 - if use cuda; then
580 - elog "nvidia as the OpenCL implementation, as you are using CUDA."
581 - else
582 - elog "the correct OpenCL implementation for your graphic card."
583 - fi
584 - elog
585 -}