diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2018-10-24 12:58:20 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2020-04-18 16:10:09 +0200 |
commit | eb27b91166236c4de7ed2315a2c71d553c0f2b41 (patch) | |
tree | e736387faa6a1d55a1e880d86ad8268b498e262e | |
parent | app-emulation/cloud-init: version bump 17.2 → 18.4 (diff) | |
download | eva-eb27b91166236c4de7ed2315a2c71d553c0f2b41.tar.gz eva-eb27b91166236c4de7ed2315a2c71d553c0f2b41.tar.bz2 eva-eb27b91166236c4de7ed2315a2c71d553c0f2b41.zip |
sci-misc/boinc: cleanup old revisions
Package-Manager: Portage-2.3.50, Repoman-2.3.11
Manifest-Sign-Key: 0x5A56C8CD0C13248A
Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org>
-rw-r--r-- | sci-misc/boinc/Manifest | 29 | ||||
-rw-r--r-- | sci-misc/boinc/boinc-7.12.1.ebuild | 192 | ||||
-rw-r--r-- | sci-misc/boinc/boinc-7.14.0.ebuild | 200 | ||||
-rw-r--r-- | sci-misc/boinc/boinc-7.14.1.ebuild | 200 |
4 files changed, 13 insertions, 608 deletions
diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest index 1f5358b..363a39b 100644 --- a/sci-misc/boinc/Manifest +++ b/sci-misc/boinc/Manifest @@ -1,27 +1,24 @@ -----BEGIN PGP SIGNED MESSAGE----- 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-7.14.2.tar.gz 52236336 BLAKE2B fa97d3af9e9a650db409b24386e7950369ab2247469cd83d717d1b6dccb7952a0997763dad2285532cef6807f0460eb320edb3a162b6b20a70bae12159ec6b7f SHA512 dcb6d60893e8baad6282d5e4728387352e942375d988df9c2ad00022deaa9bc5ace967a1346e1b43b25342d2e477ab42e28640935d94e6950ee3716732c9c1af DIST boinc.tif 288208 BLAKE2B 156a99f08dcabc62a46874830600b9d237e64b650b8edf35db67b82006a67039a3965707194e8f0b25cfd65138b8700c0bfb877507418393b9cd3df32e94d260 SHA512 548e19b87fd70dbeb05687320b86aad39981c161b5b5b7e02fc3ce886d4c464c9bb763d5652d9895dd505ce247c7ff4490caa3d407e28f54ce889ffbab22d046 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQKTBAEBCAB9FiEEX+aBqe7MmoWBwzA1lSmjXZiBxnkFAlvPjmZfFIAAAAAALgAo +iQKTBAEBCAB9FiEEX+aBqe7MmoWBwzA1lSmjXZiBxnkFAlvQUExfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDVG RTY4MUE5RUVDQzlBODU4MUMzMzAzNTk1MjlBMzVEOTg4MUM2NzkACgkQlSmjXZiB -xnnT3xAAsqHzLy5K6ZWvlfzy+hBzdCm+h9omLWN3Mp2LKG5lOP9LOSiJdUDXmFGx -/rleyjBLb+4146Fc+/z5sVg6hp6rn/OOzeIm5rcb/PAPawM05nbyQ+PW62cVpHqb -o+/NIvWjvW10fFAFMpq7M/I44dOoiM74DBvZmjEFvowClXKMbar9jzHQs2FWN2ht -d+K42G6csUCmEGEUkIQ2hs2QdS+e1MS4O9S1+ox1KhaLV2FNwgjuerfZt8tN7FKd -zrY7pd/xQxNI5g+rPVzr0Sq5JJms24CTOnWpoycuSf/CMJ4JMKUTskkMc3/olS5B -VCUfzXKOCKoNql/w0M9qXJWeJuUTbF1ejUBsKCct5YdmVN6bRjurERTof6B4Eywn -CR3bCOiy0Xs6t3GGNcaXaroAY0BIAqLFcYC9k3+nFIWFuTAZG6c1PBOqc0wHSOBl -nHIJTBt152Lg2vTswBHkEbLaszSlmvqXKfg+jG2Xe+8G0QtnrBya/R6rqg7CFN9z -Z3hmT8g2O1UUQyvdFL7jCbsIEo7kUm1wpYJIKdXA71qzYs1OFxXpErvgzUY2QE4u -a/0gTJUWPXZmdwkuQS0yDuZNQ5giuxbmfYC35/lh9OQSfgAk0s/hc0mAkhIhzWU3 -aLC8HzaiLFddFnVfcgf19Gv/MAwGyNAsyyaiRKU/VTFZNQqUVOQ= -=g5HO +xnlxwg/8C9zcb7DOVkXLdAR+4bjdUTBo06xLPtSawcuB+sUZ2ezXR7FzAutVF5Yn +nOVcxiKsieQiogxe+jWEoU4lu40ED2a3xhj0LlSZFj8EPjZz12brSzBwxLWxxoCH +7jVRJE0TcZlIzbmrdtsqjMbVXiFfATkMgbzJPl4Rznya3BPXnUUEo7zLQ0EkoVkq +6DqWGmd2Hekn84frGmX/OrGIlKH9becp+WZcYpAUCth2s3FT24E5Jlkvc3x9DPpi +jvE3kJgBd2bWFbHAUYxlw4/IIo9/pB7ZVR1Oydd9NuXnG1GN0OMo/28D98v1U6CE +pjK9SbWUm7E05RLhVMZQgLD+TBvVj3DLMmwNFHOTvDBE4rH1NzB39gAD0InIPP47 +KpFWYl7bpls8Fu45fMzaDtQMMvypv1/K/9wuon3kff2CNy7uezLLG224pTkgf9Kd +n5Z72MK3YKe8KtdBF+ii2V+rOPzBFfqtCFYBvTvY1+VSgPmwzRGVh0Mo/gMPmEAs +VRxOG//ECoPR8/qG/yCJW3XnfjcUqGTqKdfmyPLLEnubcyizDAlFOhnWftThma5r +5YPtr6OoY2AgWLYsTIJfxhAhAtN3+XUEw/wGTYLg40x+ajBXS+wZa/vZ+UuF0tnC +ACTthAwhAl9RixfWUuHlapQhsWORbv5Z3Y4GYduyaErti08e42U= +=jbJt -----END PGP SIGNATURE----- diff --git a/sci-misc/boinc/boinc-7.12.1.ebuild b/sci-misc/boinc/boinc-7.12.1.ebuild deleted file mode 100644 index 8a1be89..0000000 --- a/sci-misc/boinc/boinc-7.12.1.ebuild +++ /dev/null @@ -1,192 +0,0 @@ -# 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 eutils gnome2-utils linux-info systemd user wxwidgets - -MY_PV="7.12" - -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. -COMMON_DEPEND=" - >=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] ) -" -RDEPEND="${COMMON_DEPEND} - !app-admin/quickswitch -" - -PATCHES=( - # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462 - "${FILESDIR}"/fix_webview.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" - - eautoreconf - - use X && need-wxwidgets unicode -} - -src_configure() { - 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 -rf "${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} - systemd_dounit "${FILESDIR}"/${PN}.service -} - -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 -} diff --git a/sci-misc/boinc/boinc-7.14.0.ebuild b/sci-misc/boinc/boinc-7.14.0.ebuild deleted file mode 100644 index 89a6103..0000000 --- a/sci-misc/boinc/boinc-7.14.0.ebuild +++ /dev/null @@ -1,200 +0,0 @@ -# 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 -} diff --git a/sci-misc/boinc/boinc-7.14.1.ebuild b/sci-misc/boinc/boinc-7.14.1.ebuild deleted file mode 100644 index 89a6103..0000000 --- a/sci-misc/boinc/boinc-7.14.1.ebuild +++ /dev/null @@ -1,200 +0,0 @@ -# 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 -} |