From ca7449c5da2217b922db4a765518c4026ff4dca4 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Tue, 18 Jun 2024 07:02:58 +0200 Subject: sci-misc/boinc: add 8.0.3, drop 8.0.1 Signed-off-by: Sven Eden --- sci-misc/boinc/Manifest | 4 +- sci-misc/boinc/boinc-8.0.1.ebuild | 196 -------------------------------------- sci-misc/boinc/boinc-8.0.3.ebuild | 196 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+), 198 deletions(-) delete mode 100644 sci-misc/boinc/boinc-8.0.1.ebuild create mode 100644 sci-misc/boinc/boinc-8.0.3.ebuild diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest index 05f51f7..3f20407 100644 --- a/sci-misc/boinc/Manifest +++ b/sci-misc/boinc/Manifest @@ -1,6 +1,6 @@ AUX boinc.conf 606 BLAKE2B bbd48576bdf340b5a8a28ad72c8e4ee6bcd8579331edf036db357d324aa1a484836aa869fd5c39a7ed7ccf805e413a01eb2a27537d32f21692599291ec1e325d SHA512 aaf6e7180d4fde023c228a038a5d9ab295165ad6ee03bc892e5003943fa91bff03b21c39c86d6b4406d70d8d67e4fcb6dfb592a78e6df174e6bac28f70056654 AUX boinc.init 4366 BLAKE2B 1323f79c31d02c544601633590a4cebd8d77c15cb78d7ef612a176e2f96096a9cc91d5088f90702f2020228972780a4e8b4b36112f652b74d9a9186efa118ccd SHA512 8796a8eca3f6267abfff32a7505063318a5989317c1d4f03629abd580742bd814c779d2b75b343f61a4bd6db5b84effcfcb0db3d885e14ec4a44f56110005c1c -DIST boinc-8.0.1.tar.gz 46974713 BLAKE2B 774ce70b02ebfd0a0dcdc7b22a9d0db6c347e3e1122af5e67c386f582ead765eb8f4466441e604c407b036781f55d9d8edddbf7d2b175f3eb202e7bb424460d1 SHA512 c7c8c7ee6f0099fac15965c1bf0104f641c343e95c7172c73531f07fdbff655ecf013463dd7a45e6245667a02740befb3b3b90a8b26fef65121eb365dd72e7a9 +DIST boinc-8.0.3.tar.gz 46982630 BLAKE2B ecc5f3545f0e6316a81177758962cf2975eea1f8ce57c8eb3ddee059a4b7ece97d4b29c6f7f79b6e7a92471c8f42592b1e7470c2dcad10bc2892be3750bb707a SHA512 a53506bc3e92c813e7cc1a9be8741822aabc843f6ca824e35a0cd48cec34d0965d51bf97dfea2ec4898c5c36887c8bbdc4919a46a093ad2ac43b081eca3ad882 DIST boinc.tif 288208 BLAKE2B 156a99f08dcabc62a46874830600b9d237e64b650b8edf35db67b82006a67039a3965707194e8f0b25cfd65138b8700c0bfb877507418393b9cd3df32e94d260 SHA512 548e19b87fd70dbeb05687320b86aad39981c161b5b5b7e02fc3ce886d4c464c9bb763d5652d9895dd505ce247c7ff4490caa3d407e28f54ce889ffbab22d046 -EBUILD boinc-8.0.1.ebuild 5722 BLAKE2B 81fdf20da84d8327d6b7f064f5bbc3ed8934b02909746314d8f7259cf16f79a037314d216803377b0ca99a8a57467bc67d8078305882cd9b6716d0f5c8baeebe SHA512 7cec0baaf268c201986fbdbcaeb402cf5b9913cfc2b558c1a553addb476b7e0787e19d4ad67276839eed7105c95a1bdae660b2171c3ed5b23ad8264ae9179e56 +EBUILD boinc-8.0.3.ebuild 5722 BLAKE2B 81fdf20da84d8327d6b7f064f5bbc3ed8934b02909746314d8f7259cf16f79a037314d216803377b0ca99a8a57467bc67d8078305882cd9b6716d0f5c8baeebe SHA512 7cec0baaf268c201986fbdbcaeb402cf5b9913cfc2b558c1a553addb476b7e0787e19d4ad67276839eed7105c95a1bdae660b2171c3ed5b23ad8264ae9179e56 MISC metadata.xml 785 BLAKE2B ed154167c7d803a53102dc02a4c9f3d80ccc14ede90fb8637752d3d990a7d1afeae7409555d528106e7296b79b5c273ac6fb4516b0971c5dd670ea5cc246d6e5 SHA512 3e06db7f47ff76595e18330cfbd9b2a89332df6eab1f184a213bee6e5e3e7132c5719d86dbd3aa0b871ae17109dfc70a369596c0911d53933a4338253a134617 diff --git a/sci-misc/boinc/boinc-8.0.1.ebuild b/sci-misc/boinc/boinc-8.0.1.ebuild deleted file mode 100644 index cedf4e8..0000000 --- a/sci-misc/boinc/boinc-8.0.1.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 2023-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PV=$(ver_cut 1-2) -WX_GTK_VER=3.2-gtk3 - -inherit autotools desktop flag-o-matic linux-info optfeature wxwidgets xdg-utils - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="https://boinc.berkeley.edu/" - -SRC_URI="X? ( https://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )" -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/BOINC/${PN}.git" - inherit git-r3 -else - SRC_URI+=" https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ppc64 sparc ~x86" - S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}" -fi - -LICENSE="LGPL-3+" -SLOT="0" - -IUSE="X cuda curl_ssl_gnutls +curl_ssl_openssl opencl" - -REQUIRED_USE=" - ^^ ( curl_ssl_gnutls 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. -DEPEND=" - acct-user/boinc - app-misc/ca-certificates - dev-libs/openssl:= - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] - sys-libs/zlib - cuda? ( - x11-drivers/nvidia-drivers - ) - opencl? ( - virtual/opencl - ) - X? ( - dev-libs/glib:2 - media-libs/freeglut - media-libs/libjpeg-turbo:= - x11-libs/gtk+:3 - x11-libs/libnotify - x11-libs/libX11 - x11-libs/libXScrnSaver - x11-libs/libxcb:= - x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit] - x11-libs/xcb-util - ) -" -BDEPEND="app-text/docbook-xml-dtd:4.4 - app-text/docbook2X - sys-devel/gettext - X? ( virtual/imagemagick-tools[png,tiff] ) -" -RDEPEND=" - ${DEPEND} - sys-apps/util-linux - !app-admin/quickswitch -" - -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 -} - -src_configure() { - use X && setup-wxwidgets - - append-libs -L"${ESYSROOT}"/usr/$(get_libdir) -L"${ESYSROOT}"/$(get_libdir) - - local myeconfargs=( - --disable-fcgi - --disable-server - --disable-static - --enable-client - --enable-dynamic-client-linkage - --enable-libraries - --enable-unicode - --with-ssl - $(use_with X x) - $(use_enable X manager) - $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir) - ) - econf "${myeconfargs[@]}" -} - -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 - # The convert command is not checked, because it will issue warnings and exit with - # an error code if imagemagick is used and was merged with USE="-xml", although the - # conversion has worked. See #766093 - # Instead, newicon will fail if the conversion did not produce the icon. - convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png - 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" - - newinitd "${FILESDIR}"/${PN}.init ${PN} - newconfd "${FILESDIR}"/${PN}.conf ${PN} -} - -pkg_postinst() { - if use X; then - xdg_desktop_database_update - xdg_mimeinfo_database_update - xdg_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 - elog "To be able to use CUDA or OpenCL you should add the boinc user to the video group." - elog "Run as root:" - elog "gpasswd -a boinc video" - elog - - optfeature_header "If you want to run ATLAS native tasks by LHC@home, you need to install:" - optfeature "CERN VM filesystem support" net-fs/cvmfs -} - -pkg_postrm() { - if use X; then - xdg_desktop_database_update - xdg_mimeinfo_database_update - xdg_icon_cache_update - fi -} diff --git a/sci-misc/boinc/boinc-8.0.3.ebuild b/sci-misc/boinc/boinc-8.0.3.ebuild new file mode 100644 index 0000000..cedf4e8 --- /dev/null +++ b/sci-misc/boinc/boinc-8.0.3.ebuild @@ -0,0 +1,196 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PV=$(ver_cut 1-2) +WX_GTK_VER=3.2-gtk3 + +inherit autotools desktop flag-o-matic linux-info optfeature wxwidgets xdg-utils + +DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" +HOMEPAGE="https://boinc.berkeley.edu/" + +SRC_URI="X? ( https://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )" +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/BOINC/${PN}.git" + inherit git-r3 +else + SRC_URI+=" https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ppc64 sparc ~x86" + S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}" +fi + +LICENSE="LGPL-3+" +SLOT="0" + +IUSE="X cuda curl_ssl_gnutls +curl_ssl_openssl opencl" + +REQUIRED_USE=" + ^^ ( curl_ssl_gnutls 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. +DEPEND=" + acct-user/boinc + app-misc/ca-certificates + dev-libs/openssl:= + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] + sys-libs/zlib + cuda? ( + x11-drivers/nvidia-drivers + ) + opencl? ( + virtual/opencl + ) + X? ( + dev-libs/glib:2 + media-libs/freeglut + media-libs/libjpeg-turbo:= + x11-libs/gtk+:3 + x11-libs/libnotify + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libxcb:= + x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit] + x11-libs/xcb-util + ) +" +BDEPEND="app-text/docbook-xml-dtd:4.4 + app-text/docbook2X + sys-devel/gettext + X? ( virtual/imagemagick-tools[png,tiff] ) +" +RDEPEND=" + ${DEPEND} + sys-apps/util-linux + !app-admin/quickswitch +" + +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 +} + +src_configure() { + use X && setup-wxwidgets + + append-libs -L"${ESYSROOT}"/usr/$(get_libdir) -L"${ESYSROOT}"/$(get_libdir) + + local myeconfargs=( + --disable-fcgi + --disable-server + --disable-static + --enable-client + --enable-dynamic-client-linkage + --enable-libraries + --enable-unicode + --with-ssl + $(use_with X x) + $(use_enable X manager) + $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir) + ) + econf "${myeconfargs[@]}" +} + +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 + # The convert command is not checked, because it will issue warnings and exit with + # an error code if imagemagick is used and was merged with USE="-xml", although the + # conversion has worked. See #766093 + # Instead, newicon will fail if the conversion did not produce the icon. + convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png + 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" + + newinitd "${FILESDIR}"/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} +} + +pkg_postinst() { + if use X; then + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_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 + elog "To be able to use CUDA or OpenCL you should add the boinc user to the video group." + elog "Run as root:" + elog "gpasswd -a boinc video" + elog + + optfeature_header "If you want to run ATLAS native tasks by LHC@home, you need to install:" + optfeature "CERN VM filesystem support" net-fs/cvmfs +} + +pkg_postrm() { + if use X; then + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update + fi +} -- cgit v1.2.3-65-gdbad