diff options
author | 2014-11-05 16:19:43 +0100 | |
---|---|---|
committer | 2014-11-05 16:19:43 +0100 | |
commit | 5de6025ec1e89d7e1f3ac6a37db270a5542d479c (patch) | |
tree | 48bdfbc2fb7c6d18bd182f2a74fab5b8ac2346d2 /sci-misc | |
parent | sci-misc/boinc : Added missing systemd inherit. (diff) | |
download | seden-5de6025ec1e89d7e1f3ac6a37db270a5542d479c.tar.gz seden-5de6025ec1e89d7e1f3ac6a37db270a5542d479c.tar.bz2 seden-5de6025ec1e89d7e1f3ac6a37db270a5542d479c.zip |
sci-misc/boinc-7.2.42-r1 : New USE flags "xscreensaver", "suid" and "kde" added for better fine tuning of the boincscr screensaver.
Diffstat (limited to 'sci-misc')
-rw-r--r-- | sci-misc/boinc/ChangeLog | 11 | ||||
-rw-r--r-- | sci-misc/boinc/Manifest | 8 | ||||
-rw-r--r-- | sci-misc/boinc/boinc-7.2.42-r1.ebuild | 199 | ||||
-rw-r--r-- | sci-misc/boinc/files/boinc-7.2-remove_boincscr.patch | 15 | ||||
-rw-r--r-- | sci-misc/boinc/files/boincscr.desktop | 20 | ||||
-rw-r--r-- | sci-misc/boinc/files/boincscr.xml | 14 | ||||
-rw-r--r-- | sci-misc/boinc/metadata.xml | 4 |
7 files changed, 268 insertions, 3 deletions
diff --git a/sci-misc/boinc/ChangeLog b/sci-misc/boinc/ChangeLog index 893b071..9f74b3e 100644 --- a/sci-misc/boinc/ChangeLog +++ b/sci-misc/boinc/ChangeLog @@ -2,6 +2,17 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 04 Nov 2014; Sven Eden <yamakuzure@gmx.net> +boinc-7.2.42.ebuild-r1, + +files/boinc-7.2-remove_boincscr.patch + +files/boincscr.desktop + +files/boincscr.xml: + Building of the boincscr screensaver depends now on the new + "xscreensaver" USE flag, and can be made setuid root using the new + "suid" USE flag. Further a desktop file is installed if the new + USE flag "kde" is enabled. + The systemd service file is no longer installed unless the "systemd" + USE flag is enabled. + *boinc-7.2.42 (04 Nov 2014) 04 Nov 2014; Sven Eden <yamakuzure@gmx.net> +boinc-7.2.42.ebuild, diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest index 78d4388..148619c 100644 --- a/sci-misc/boinc/Manifest +++ b/sci-misc/boinc/Manifest @@ -1,7 +1,11 @@ AUX boinc-7.2-fix_subdirs.patch 1323 SHA256 0a50f6bfc556e266852b0efeba98c2ed1421546506d7e53a88561601cb38ad79 SHA512 3361d8c7d42a31724129bc6259c02b9e1421218414f77320f7f991f7390b096d2bb9f53fed3a38c82469c6746bd830387d671e4ebabc8d2a9c9af723eb4f6452 WHIRLPOOL 478c3fbb6235e080909e0c1ccc8c251d2436a87a38ce6f267a5e2e0dce45a8d00c7f93b4e82d87fc8749fcc03102a920f86c04c4276bb42cff6c48f5f4e29624 +AUX boinc-7.2-remove_boincscr.patch 408 SHA256 2e89eed446c6f4bfa01a86215190a985db15191441f3321d213c2fd2b0434428 SHA512 083bd79a2c450156d9e9c437f653076bb41f51e12e25f2d1ad412406be0fe23ced114895a408b6e6de9c14571c75a1ec1aaa1cbde61b09768fcd32632358408c WHIRLPOOL 5bbc2ba34384c8dec11209d473b8b6986044732972f6e398026a89a542475b12ce3c2c5c274aa6820bafff06f342eb043976ca5bf1af190a398f1cde4f673040 AUX boinc.conf 376 SHA256 286f5f11e54a73b41ebf1e35aae1db4c2c3e249a3bfce755ced84c8c1b361cc9 SHA512 5c28de999c4b32c0cdb096dd48d2ee22504c3cb60bacdbdc4a48c4967dac181060427f2912463e45ea109c49f1c6d6a9f9631844ef26687c75521926cf26677a WHIRLPOOL 05cc900fa19722185025df2fb09e0ad4e86c7bae01dc54dc2d43fd1a0d590de4e1bf15f8cf38c8e17f441d17db482ac7390bf35c61e92742cc05dda778656858 AUX boinc.init 2640 SHA256 d15f25a8e53e1d94abd1f30eda1e49be497ebbfcd167facc40b7f46128e01d5c SHA512 481426c8bbb5b481c9298e816a9317bf1351dd59926f3e1a2a20b77aad3971cb8782797892d18459f8b3cab70fefe84a7731da1bdfa3ae0b2bcf120f4fa0b194 WHIRLPOOL fe398384b4b76d7cdb7dc732b8f44501b9433eeb925a3cd98a38ac0b7f0e9065cb0340d5869e1f0476842c76ada8817a6e8b3af56ec28ccf58c7a655f7e746ec AUX boinc.service 178 SHA256 3bcd2bdc65f7b6d9f568eeb63f54e7beaa2f0681f34bfd2d486cfd212fced105 SHA512 86a59b9096b19e6472781cb2a7229dd0540569666bcb5bedd83371e6264f1d6bee70e8b47216e1a5b6462726dcd3b54d86ba8de4478faab6c1792071b76abaf9 WHIRLPOOL 1c34aef20a8cdc0cb50a5b25c759cf622488dd2749945317f9f162a1ef1e8189b1f1069ea7be78528d1ee6454945f02f859b02359381e1d27240b796c5c0a85b +AUX boincscr.desktop 457 SHA256 565d1215d0cd8da1d89eda50ee095b124df075b1f474617edefa79f81911b0d6 SHA512 50a59cdb3217367a1ecf0f4f852dd75abaef21a893682ef234bf181d358efd0bc492157ab23b757cff2b5020116a168c26559242d80f6a548b791b8c9b0b5586 WHIRLPOOL 9de26b447e76682bb800d056f739225cef842353d26f4e7b834cb100b1fe256f18e64e3b3e155e5bf903375abdbddc7259927764fd327c081ec00e0dd544f95c +AUX boincscr.xml 365 SHA256 f40b257a253ce43b7d9131833b6c9b6da7fcdfdfd17a5b7a9f0935a9c9e7453c SHA512 be4fc2b7575f602044e9418d673256030d3cbc8452868512399614f0286058c95538cbcb2640cc78cd5b0744c07cc0876b3bfd6eb2290b0c74e1749082df167b WHIRLPOOL 5fa40b7dda0ec9d5fa06bd2de2ad73ba3395bad483332601f2d1c44a15499b4ce25fd54e0a38d31bacc0508b18339cf7dd3dd18d85bb22f15e4313dd51e96568 +EBUILD boinc-7.2.42-r1.ebuild 4994 SHA256 d8fed4f039652c39eae5798e72a443584dcc443dead45d3f1b1ede9b165d86b7 SHA512 8205549ecd03fbc5ed75cdd6a690f00abb8d101c80aba39276741add74d974c247a3660f9b2ff6c311254e3a7d4b7dc5a7a66f325b58a5f8c3c8437e2e4e5fd8 WHIRLPOOL 8318d42e6ddaef1f738701a25292f383526eda5265d861d014b71c297dd50fc22dd7e6d22c306667863ef8e2fb9fb3595d15097b2e2c0d72f46390ea91b393b0 EBUILD boinc-7.2.42.ebuild 3785 SHA256 d59cf85e7f4b20454dbfaaeb626d9dedce55e290d9721222d027f71ba63718ab SHA512 aabf7f8d0cb7ab4625f0c6943aa18912c8ad72abd9b60c4b33eb6b657223497cf3375f5d3c488a9cf6bb4e609a74a79bc638a5b69b6d94b645e002579cd526ae WHIRLPOOL fcf4b90571f6a40a5af426886d785f2c1f7587c754e436f6d6b95073e402ed4c2c7db5716c44f2e1ec2bc0e65dcf721d7de1070327bbda6a91f66cec249bdb51 -MISC ChangeLog 21022 SHA256 1b7806e3add2cc0d13e4f580c2f8351af53c49fe8fdb2b5e863516492069318f SHA512 94dec102186e91d6929f9a066563265a568b3f881264290aee02c4a614906869a05e6b323e98b00d5daf7825c991cd54e532d9d08e714c2b1ca64ba85cc85215 WHIRLPOOL 69afbc41913041b29e9a6c5460af47be99deb10a466b3c6aaee05f8c6e05b020682911f25b4a26cedeafc99a44deee5e1a7197a8a9d2315d1ab0343df18f558d -MISC metadata.xml 584 SHA256 520545ff296ad2850b9ddf643655864c3a4c0d467bddc062f70842da4afef56d SHA512 39b73667c88c2d3bcf9f70f7c0edcffea23f7aab497fffe456329bd0ab8d33c65e508d1c9d8ad3810b970c51b660d13b38b676b79bb5327333803133dee65ba7 WHIRLPOOL 2d8739a38988de04ee2d5d5740959eb903989d726154e9ae7683a7af824c29af70392752134aa67eb9888603f503d2b8eac2be1e6996ab3993d8f9e3d9096b69 +MISC ChangeLog 21504 SHA256 c06b2798e0c902a31cc4b757cd7dd6af593dfd144fa936d6f95e2cdbe1a74a37 SHA512 64c7236d8732160d433c8b89b956a2037f08c39b134498dac9b8365ccfec921119e0a4f9e10a752de7ed753722bbd604b3ee0438b5c586965a96f176208a93bb WHIRLPOOL a444fc3e1ed0adb1ed89af30be178bbe16d2da2bf46d94f41ecd5b6a0f596ab662d264975fe76df5880f305b3721bd778c138630b8eb774dfd492159924c3502 +MISC metadata.xml 699 SHA256 4ad2531267d8f0856b697e6fac37e3dc4783db75fc89cbd59aaf6d34080a6973 SHA512 46e0aeaf9f2750bbdd499106c9adf40210566af6335af158b15d7a4125c64ed4e0e8090e6c3bc0ab5744d2c4e35b8ea26fe62b64afddf2159db48931b758e45b WHIRLPOOL 3a42406e6fa1718e4e0af0de1e35637ff0cd67a2cd37b01d4acc9177cd27d19a853d7b04c5eb99540e5979e7d39e445d00fb9f2f4a9859c3676506fbdecec63b diff --git a/sci-misc/boinc/boinc-7.2.42-r1.ebuild b/sci-misc/boinc/boinc-7.2.42-r1.ebuild new file mode 100644 index 0000000..8a0e285 --- /dev/null +++ b/sci-misc/boinc/boinc-7.2.42-r1.ebuild @@ -0,0 +1,199 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils flag-o-matic wxwidgets user versionator git-r3 systemd + +MY_PV=$(get_version_component_range 1-2) + +DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" +HOMEPAGE="http://boinc.ssl.berkeley.edu/" +SRC_URI="" + +EGIT_MIN_CLONE_TYPE="shallow" +EGIT_REPO_URI="git://boinc.berkeley.edu/boinc-v2.git \ + http://boinc.berkeley.edu/git/boinc-v2.git" +EGIT_COMMIT="client_release/${MY_PV}/${PV}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="X cuda kde static-libs suid systemd xscreensaver" + +RDEPEND=" + !sci-misc/boinc-bin + !app-admin/quickswitch + >=app-misc/ca-certificates-20080809 + dev-libs/openssl + net-misc/curl[ssl,-gnutls(-),-nss(-),curl_ssl_openssl(+)] + sys-apps/util-linux + sys-libs/zlib + cuda? ( + >=dev-util/nvidia-cuda-toolkit-2.1 + >=x11-drivers/nvidia-drivers-180.22 + ) + X? ( + dev-db/sqlite:3 + media-libs/freeglut + sys-libs/glibc:2.2 + virtual/jpeg + x11-libs/gtk+:2 + >=x11-libs/libnotify-0.7 + x11-libs/wxGTK:2.8[X,opengl] + ) +" +DEPEND="${RDEPEND} + dev-vcs/git + sys-devel/gettext + app-text/docbook-xml-dtd:4.4 + app-text/docbook2X +" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +src_prepare() { + # prevent bad changes in compile flags, bug 286701 + sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed" + + # Fix subdirectory issues (remove unwanted directories) + epatch "${FILESDIR}"/${PN}-${MY_PV}-fix_subdirs.patch + + # Remove boincscr if it is not wanted + if ! use xscreensaver; then + epatch "${FILESDIR}"/${PN}-${MY_PV}-remove_boincscr.patch + fi + + autotools-utils_src_prepare +} + +src_configure() { + local wxconf="" + + # add gtk includes + use X && append-flags "$(pkg-config --cflags gtk+-2.0)" + + # look for wxGTK + if use X; then + WX_GTK_VER="2.8" + need-wxwidgets unicode + wxconf+=" --with-wx-config=${WX_CONFIG}" + else + wxconf+=" --without-wxdir" + fi + + local myeconfargs=( + --disable-server + --enable-client + --enable-dynamic-client-linkage + --disable-static + --enable-unicode + --with-ssl + $(use_with X x) + $(use_enable X manager) + ${wxconf} + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + dodir /var/lib/${PN}/ + keepdir /var/lib/${PN}/ + + if use X; then + newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die + make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}" + fi + + # cleanup cruft + rm -rf "${ED}"/etc/ + + newinitd "${FILESDIR}"/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + if use systemd; then + systemd_dounit "${FILESDIR}"/${PN}.service + fi + + # Get the screensaver working if wanted + if use xscreensaver; then + use suid && fperms 4755 /usr/bin/boincscr + dosym /usr/bin/boincscr /usr/$(get_libdir)/misc/xscreensaver/boincscr + insinto /usr/share/xscreensaver/config + doins "${FILESDIR}"/boincscr.xml + if use kde; then + insinto /usr/share/kde4/services/ScreenSavers + doins "${FILESDIR}"/boincscr.desktop + fi + fi +} + +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 + if use cuda; then + enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video" + else + enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}" + fi +} + +pkg_postinst() { + if use xscreensaver; then + local xssconf="${ROOT}usr/share/X11/app-defaults/XScreenSaver" + + if [ -f ${xssconf} ]; then + sed -e '/*programs:/a\ + GL: \"Boinc\" boincscr -root -boinc_dir /var/lib/boinc \\n\\' \ + -i ${xssconf} || die "sed failed" + else + ewarn "$xssconf not found" + fi + + fi + + echo + elog "You are using the source compiled version of ${PN}." + use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr" + elog + elog "You need to attach to a project to do anything useful with ${PN}." + elog "You can do this by running /etc/init.d/${PN} 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/${PN}/gui_rpc_auth.cfg" + elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:" + elog "/etc/conf.d/${PN}" + 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" + fi +} + +pkg_postrm() { + if use xscreensaver; then + local xssconf="${ROOT}usr/share/X11/app-defaults/XScreenSaver" + + if [ -f ${xssconf} ]; then + sed \ + -e '/\"Boinc\" boincscr/d' \ + -i ${xssconf} || die "sed failed" + else + ewarn "$xssconf not found" + fi + + fi +}
\ No newline at end of file diff --git a/sci-misc/boinc/files/boinc-7.2-remove_boincscr.patch b/sci-misc/boinc/files/boinc-7.2-remove_boincscr.patch new file mode 100644 index 0000000..2abc00f --- /dev/null +++ b/sci-misc/boinc/files/boinc-7.2-remove_boincscr.patch @@ -0,0 +1,15 @@ +--- a/Makefile.am 2014-11-05 13:23:17.000000000 +0100 ++++ b/Makefile.am 2014-11-05 13:25:43.558205864 +0100 +@@ -26,9 +26,9 @@ + + if ENABLE_MANAGER + CLIENTGUI_SUBDIRS = clientgui locale +-if BUILD_X11_SCREENSAVER +- CLIENTGUI_SUBDIRS += clientscr +-endif ++#if BUILD_X11_SCREENSAVER ++# CLIENTGUI_SUBDIRS += clientscr ++#endif + endif + + # ORDER MATTERS below. One must build dependencies FIRST, then things diff --git a/sci-misc/boinc/files/boincscr.desktop b/sci-misc/boinc/files/boincscr.desktop new file mode 100644 index 0000000..91fead3 --- /dev/null +++ b/sci-misc/boinc/files/boincscr.desktop @@ -0,0 +1,20 @@ +[Desktop Entry] +Encoding=UTF-8 +Exec=boincscr +Icon=preferences-desktop-screensaver +X-KDE-ServiceTypes=ScreenSaver +X-KDE-Category=OpenGL Screen Savers +X-KDE-Type=OpenGL +Type=Service +Actions=InWindow;Root +Name=BOINC + +[Desktop Action InWindow] +Exec=kxsrun boincscr -- -window -window-id %w +Name=Display in specified window +NoDisplay=true + +[Desktop Action Root] +Exec=kxsrun boincscr -- -root -boinc_dir /var/lib/boinc +Name=Display in root window +NoDisplay=true diff --git a/sci-misc/boinc/files/boincscr.xml b/sci-misc/boinc/files/boincscr.xml new file mode 100644 index 0000000..365914f --- /dev/null +++ b/sci-misc/boinc/files/boincscr.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<screensaver name="boincscr" _label="Boinc"> + + <command arg="-root -boinc_dir /var/lib/boinc"/> + + <_description> +This is a XScreenSaver compatible BOINC screensaver for Unix/X11. + +This screensaver is part of BOINC. +http://boinc.berkeley.edu +Copyright (C) 2010 University of California + </_description> +</screensaver> diff --git a/sci-misc/boinc/metadata.xml b/sci-misc/boinc/metadata.xml index 8c4e657..3cd0999 100644 --- a/sci-misc/boinc/metadata.xml +++ b/sci-misc/boinc/metadata.xml @@ -11,6 +11,8 @@ Use nvidia cuda toolkit for speeding up computations. NOTE: works only for subset of nvidia graphic cards so make sure your card is supported before opening bug about it. - </flag> + </flag> + <flag name="suid">setuid root /usr/bin/boincscr</flag> + <flag name="xscreensaver">Install boincscr</flag> </use> </pkgmetadata> |