diff options
Diffstat (limited to 'sci-misc/boinc')
-rw-r--r-- | sci-misc/boinc/Manifest | 27 | ||||
-rw-r--r-- | sci-misc/boinc/boinc-7.14.1.ebuild | 200 |
2 files changed, 214 insertions, 13 deletions
diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest index c4576e7..b64dab0 100644 --- a/sci-misc/boinc/Manifest +++ b/sci-misc/boinc/Manifest @@ -3,23 +3,24 @@ Hash: SHA256 DIST boinc-7.12.1.tar.gz 50378728 BLAKE2B efc903129fdf3dbc734afc7bf566e017d116b2b0a2673b07917d21300e20f5da4facc40c6c963062a3624553932149f22b7673513e4790375ce9239d9c55bd3f SHA512 7e96a3f7929c153b0001d0b0d2f626256bde9278e56fe9d10985292bd38646ac8a7ff572b8757a3f72cd8481fd893deb111a8c7a572beaec2881dd354651564c DIST boinc-7.14.0.tar.gz 52228832 BLAKE2B 87f48325d7183108dc80520228d91030037f2de472bd55ec3eb1d56a8b45dd6af46ad37616a0b94e9969578a4eeb9874be376ca706c183819a5518cbba3ffc73 SHA512 cac985814b15b7252411e25acee5f5a8a0d470536f5e15ca42e5524fa6780568b96ffcd1ba27abff083a5e63aa8de86ead5896ca90d41575a56208e4992ca37c +DIST boinc-7.14.1.tar.gz 52229521 BLAKE2B 1d6ecbb4d1db5ec12a508bea917f23213df9811a8c16dfaa0c0589b55c7fe305b762b0da8d52e05a444da88a57c9a3ef057df4b2861766e81dbdf3b7b214532d SHA512 bb1639ec0b9b8370852dac224b7f21628bc51b7273b522d8f465c167b2ffc40500c836d495d21249a22d16403ba4f2f86ba17efea886f2776ee7d1694c24a7d4 DIST boinc.tif 288208 BLAKE2B 156a99f08dcabc62a46874830600b9d237e64b650b8edf35db67b82006a67039a3965707194e8f0b25cfd65138b8700c0bfb877507418393b9cd3df32e94d260 SHA512 548e19b87fd70dbeb05687320b86aad39981c161b5b5b7e02fc3ce886d4c464c9bb763d5652d9895dd505ce247c7ff4490caa3d407e28f54ce889ffbab22d046 -----BEGIN P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NgROP8pQrBKlSnt37XmU6LTugKzhGfbe31GL2B/p5obbG6UyP+8eYuG3B8JeribN +4mrNeM3a5qfhNebekYTAemniJTeXuQX3c0e3csKx0YTikaziUYZQVfaZNr0XG4ze +FZ+NFLvHwC65spZfkLGgez/UUR+5Oqzb9N+OxRob3HTWH0q0/c5VhqylTlawM5r+ +Sc+3dMErQ3BTIPSxtPAusIr4NoQlp3npkzC0Dj49Ub5wkE0yK//9KE4oZWhlXT74 +1hy6BRKuInuvSDXoG23CIrTe0zFn3I1tJTDsNgvKh9lSfSYjcLJpIhcB7gCeuM7F +hgcXZnVpAC+8+wsgK3UqkMU4ogWyyZqPC4yFDpXRiOa/Z4rAj8i/koGIJhd9hZar +tbMxcacBnP/hJDIRBp4IeWXeWFEj3SjttKROFs7qf+ENkIdN+BRGD32f6G6QwM7Y +VQ6ZWXjtEpmLxbUpqLB0CMDz2f6QOHm7VYwrbr1qHPetvT2waY1abFG6BvJVAMkW +gRVUjCuXvKFOTkNHcpTXAAsRgmq/KgoWXETQWzYdS4C80rWfYquMYJaLeE9zpD6l +AnGnKe8qU5DRarv3IKw8vKgAXTT8f4+k6W+83JUs+hT8LXuyrZk= +=zxPK -----END PGP SIGNATURE----- diff --git a/sci-misc/boinc/boinc-7.14.1.ebuild b/sci-misc/boinc/boinc-7.14.1.ebuild new file mode 100644 index 0000000..89a6103 --- /dev/null +++ b/sci-misc/boinc/boinc-7.14.1.ebuild @@ -0,0 +1,200 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +WX_GTK_VER=3.0-gtk3 + +inherit autotools desktop eapi7-ver gnome2-utils linux-info user wxwidgets + +MY_PV=$(ver_cut 1-2) + +DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" +HOMEPAGE="http://boinc.ssl.berkeley.edu/" +SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz + X? ( https://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )" +RESTRICT="mirror" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="X cuda curl_ssl_gnutls curl_ssl_libressl +curl_ssl_openssl" + +REQUIRED_USE="^^ ( curl_ssl_gnutls curl_ssl_libressl curl_ssl_openssl ) " + +# libcurl must not be using an ssl backend boinc does not support. +# If the libcurl ssl backend changes, boinc should be recompiled. +RDEPEND=" + >=app-misc/ca-certificates-20080809 + cuda? ( + >=dev-util/nvidia-cuda-toolkit-2.1 + >=x11-drivers/nvidia-drivers-180.22 + ) + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] + sys-apps/util-linux + sys-libs/zlib + X? ( + dev-db/sqlite:3 + media-libs/freeglut + virtual/jpeg:0= + x11-libs/gtk+:3 + >=x11-libs/libnotify-0.7 + x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit] + ) +" +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.4 + app-text/docbook2X + sys-devel/gettext + X? ( virtual/imagemagick-tools[png,tiff] ) +" + +PATCHES=( + # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462 + "${FILESDIR}"/fix_webview.patch + # fix sandboxing tools installation + "${FILESDIR}"/0001-Install-switcher-tool-to-FHS-directory.patch + "${FILESDIR}"/0002-Install-missing-tool-for-sandboxing.patch + "${FILESDIR}"/0003-Add-missing-config.h-include-in-setprojectgrp.cpp.patch +) + +S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}" + +pkg_setup() { + # Bug 578750 + if use kernel_linux; then + linux-info_pkg_setup + if ! linux_config_exists; then + ewarn "Can't check the linux kernel configuration." + ewarn "You might be missing vsyscall support." + elif kernel_is -ge 4 4 \ + && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then + ewarn "You do not have vsyscall emulation enabled." + ewarn "This will prevent some boinc projects from running." + ewarn "Please enable vsyscall emulation:" + ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y" + ewarn "in /usr/src/linux/.config, to be found at" + ewarn " Processor type and features --->" + ewarn " vsyscall table for legacy applications (None) --->" + ewarn " (X) Emulate" + ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE." + ewarn "However, this has security implications and is not recommended." + fi + fi +} + +src_prepare() { + default + + # prevent bad changes in compile flags, bug 286701 + sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed" + + # fix systemd unit installation path + sed -i -e "s:usr/lib:lib:" client/scripts/Makefile.am || die + + eautoreconf + + use X && need-wxwidgets unicode +} + +src_configure() { + # TODO Xss is automagic on --enable-client. + econf --disable-server \ + --enable-client \ + --enable-dynamic-client-linkage \ + --disable-static \ + --enable-unicode \ + --with-ssl \ + $(use_with X x) \ + $(use_enable X manager) \ + $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir) +} + +src_install() { + default + + keepdir /var/lib/${PN} + + if use X; then + # Create new icons. bug 593362 + local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256) + for s in "${SIZES[@]}"; do + convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png || die + newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png + done + make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}" + + # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910 + mv "${ED%/}"/usr/share/applications/boincmgr{-${PN},}.desktop || \ + die "Failed to rename desktop file" + fi + + # cleanup cruft + rm -r "${ED%/}"/etc || die "rm failed" + find "${D}" -name '*.la' -delete || die "Removing .la files failed" + + sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die + newinitd ${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + + # Give X access to boinc for idle detection + exeinto /etc/X11/xinit/xinitrc.d + newexe "${FILESDIR}"/90-boincxss 90-boincxss +} + +pkg_preinst() { + enewgroup ${PN} + # note this works only for first install so we have to + # elog user about the need of being in video group + local groups="${PN}" + if use cuda; then + groups+=",video" + fi + enewuser ${PN} -1 -1 /var/lib/${PN} "${groups}" +} + +pkg_postinst() { + if use X; then + gnome2_icon_cache_update + fi + + elog + elog "You are using the source compiled version of boinc." + use X && elog "The graphical manager can be found at /usr/bin/boincmgr" + elog + elog "You need to attach to a project to do anything useful with boinc." + elog "You can do this by running /etc/init.d/boinc attach" + elog "The howto for configuration is located at:" + elog "http://boinc.berkeley.edu/wiki/Anonymous_platform" + elog + # Add warning about the new password for the client, bug 121896. + if use X; then + elog "If you need to use the graphical manager the password is in:" + elog "/var/lib/boinc/gui_rpc_auth.cfg" + elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:" + elog "/etc/conf.d/boinc" + elog "You should change this password to something more memorable (can be even blank)." + elog "Remember to launch init script before using manager. Or changing the password." + elog + fi + if use cuda; then + elog "To be able to use CUDA you should add boinc user to video group." + elog "Run as root:" + elog "gpasswd -a boinc video" + elog + fi + # Add information about BOINC supporting OpenCL + elog "BOINC supports OpenCL. To use it you have to eselect" + if use cuda; then + elog "nvidia as the OpenCL implementation, as you are using CUDA." + else + elog "the correct OpenCL implementation for your graphic card." + fi + elog +} + +pkg_postrm() { + if use X; then + gnome2_icon_cache_update + fi +} |