diff options
Diffstat (limited to 'sci-misc')
-rw-r--r-- | sci-misc/boinc/ChangeLog | 36 | ||||
-rw-r--r-- | sci-misc/boinc/Manifest | 29 | ||||
-rw-r--r-- | sci-misc/boinc/boinc-5.8.16.ebuild | 115 | ||||
-rw-r--r-- | sci-misc/boinc/boinc-9999.ebuild | 48 | ||||
-rw-r--r-- | sci-misc/boinc/files/boinc.conf (renamed from sci-misc/boinc/files/conf.d/boinc) | 15 | ||||
-rwxr-xr-x | sci-misc/boinc/files/boinc.init | 80 | ||||
-rw-r--r-- | sci-misc/boinc/files/boincwrapper | 19 | ||||
-rw-r--r-- | sci-misc/boinc/files/digest-boinc-5.8.16 | 3 | ||||
-rw-r--r-- | sci-misc/boinc/files/digest-boinc-9999 | 0 | ||||
-rw-r--r-- | sci-misc/boinc/files/init.d/boinc | 55 | ||||
-rw-r--r-- | sci-misc/boinc/metadata.xml | 9 |
11 files changed, 214 insertions, 195 deletions
diff --git a/sci-misc/boinc/ChangeLog b/sci-misc/boinc/ChangeLog deleted file mode 100644 index fd7e1163..00000000 --- a/sci-misc/boinc/ChangeLog +++ /dev/null @@ -1,36 +0,0 @@ -# ChangeLog for sci-misc/boinc -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - -*boinc-4.27 (17 Mar 2005) - - 17 Mar 2005; Bertrand Jacquin <beber.gentoo@gmail.com> - +boinc-4.27.ebuild: - Version Bump. - -*boinc-4.26 (11 Mar 2005) - - 11 Mar 2005; Bertrand Jacquin <beber.gentoo@gmail.com> - +boinc-4.26.ebuild: - Version Bump. - Include a GUI - -*boinc-4.19 (16 Feb 2005) - - 10 Mar 2005; Bertrand Jacquin <beber.gentoo@gmail.com> - boinc-4.19-r1.ebuild: - Change License. Now GPL-2. - - 10 Mar 2005; Bertrand Jacquin <beber.gentoo@gmail.com> - boinc-4.19-r1.ebuild: - Change SRC_URI and deps. - Marked ~amd64. Thanks to Xiuteculti. - - 16 Feb 2005; Bertrand Jacquin <beber.gentoo@gmail.com> +boinc-4.19-r1.ebuild, - +files/conf.d/boinc, +files/init.d/boinc, -files/boinc.init.d, -files/boinc.conf.d: - Corrected file permissions, and so init script - - 16 Feb 2005; Bertrand Jacquin <beber.gentoo@gmail.com> +boinc-4.19.ebuild, - +metadata.xml, +files/boinc.conf.d, +files/boinc.init.d, +files/boincwrapper: - Version Bump - Ok, Ebuild is working correctly, but steel have perms errors diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest index d9cf3785..ebf4e520 100644 --- a/sci-misc/boinc/Manifest +++ b/sci-misc/boinc/Manifest @@ -1,21 +1,8 @@ -MD5 bc72dbed0e7d087379fcb8531b40c0e9 ChangeLog 1118 -RMD160 d14341a8a9dd1b67aef26be722eae3788974f624 ChangeLog 1118 -SHA256 b2fa29baa8f56028f32167371894799f60f3b75fbeb1748b85fbc9cb395089bb ChangeLog 1118 -MD5 0c3ba90974a7eae5600c112d4936e12c boinc-9999.ebuild 836 -RMD160 015259d792d7863926180e1df27bc8d64198c0cf boinc-9999.ebuild 836 -SHA256 1715a7809674bc4fb83ed98257e83b28bfbf45660fbeb658d8170ef2f89b4125 boinc-9999.ebuild 836 -MD5 25343bdcb397ae4796fef04e52a51149 files/boincwrapper 350 -RMD160 e18d1c3d87661a74d151d753569cd0f12c89571d files/boincwrapper 350 -SHA256 a1c4e69bbeb266045973f7fe1a9a830e6b1a24f5803ac7736fea658266a2c0c4 files/boincwrapper 350 -MD5 0b329ba8ff83a36e0266a189e51835c4 files/conf.d/boinc 464 -RMD160 ab425d7cc0bb6964e5edcd9a2f8457db83afbad3 files/conf.d/boinc 464 -SHA256 47a6d36511e4b9192d2edca0850fee6bfffd218f4f3043474bad82677aa5421e files/conf.d/boinc 464 -MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-boinc-9999 0 -RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-boinc-9999 0 -SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-boinc-9999 0 -MD5 20c7d1a46eb563c5e17e2c14097ffaf2 files/init.d/boinc 1147 -RMD160 7cc26f502d226b9dc48249c3fe76dd91085930bb files/init.d/boinc 1147 -SHA256 748bf5c7ec612035d5bcceb94b40dcb28ceebc1515f8f801e36c7dc0c6caee3b files/init.d/boinc 1147 -MD5 a26b2af52a90ba476496df1f2b945e02 metadata.xml 252 -RMD160 66569178d9b214a79724f083364c5ab054b60826 metadata.xml 252 -SHA256 0376911a5d616eec83d32741429082e1a265593d236d52d8191e60419a41cd40 metadata.xml 252 +DIST boinc-5.8.16.tar.bz2 4893704 RMD160 e6b02bbb6e24b6d812c7059db4649283fc9fa1a3 SHA1 83f92128620e9970614996afb019341a4ab3d377 SHA256 f4dcfb36ca50f8af87a50d8355a6df8891b6248917a0c92f33df9d5377aa4d71 +EBUILD boinc-5.8.16.ebuild 3230 RMD160 398919073a95941e8da7488b6c5e92417a5e7f0d SHA1 4151c9f48a628967409e7423f1fb5747a36f20b6 SHA256 ec3d740fe3d04e86bf561473b331aed0c1fd49b088c922e9a765e1df06712b21 +MD5 80651591120d4da776320a866ef30fde boinc-5.8.16.ebuild 3230 +RMD160 398919073a95941e8da7488b6c5e92417a5e7f0d boinc-5.8.16.ebuild 3230 +SHA256 ec3d740fe3d04e86bf561473b331aed0c1fd49b088c922e9a765e1df06712b21 boinc-5.8.16.ebuild 3230 +MD5 7121b4e83bdea38507bca7af99f4a2eb files/digest-boinc-5.8.16 244 +RMD160 99d0da976580bd44b7e2bc247959506e874edc88 files/digest-boinc-5.8.16 244 +SHA256 ab809a34b774b5e0c45920d1a4ae9fcaaea2e7054c89609d4b3224c5a581827a files/digest-boinc-5.8.16 244 diff --git a/sci-misc/boinc/boinc-5.8.16.ebuild b/sci-misc/boinc/boinc-5.8.16.ebuild new file mode 100644 index 00000000..3761fada --- /dev/null +++ b/sci-misc/boinc/boinc-5.8.16.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit flag-o-matic + +DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" +HOMEPAGE="http://boinc.ssl.berkeley.edu/" +SRC_URI="http://olivier.mondoloni.free.fr/boinc_source/${P}.tar.bz2" + +IUSE="server X unicode" + +LANGS="af_ZA ar be bg ca cs cs_CZ cz da de el en_US es eu fi fr hr hu it ja ko_KR lt lv nb nl pl pt pt_BR ro ru sk sl sv_SE tr uk zh_CN zh_TW" + +for X in ${LANGS} ; do + [[ ${X} != "en" ]] + IUSE="${IUSE} linguas_${X}" +done + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" + +RDEPEND="sys-libs/zlib + >=net-misc/curl-7.15.5 + >=dev-libs/openssl-0.9.7 + X? ( >=x11-libs/wxGTK-2.6.2 ) + server? ( net-www/apache + >=virtual/mysql-4.0 + virtual/php + >=dev-lang/python-2.2.3 + >=dev-python/mysql-python-0.9.2 )" +DEPEND=">=sys-devel/gcc-3.0.4 + >=sys-devel/autoconf-2.58 + >=sys-devel/automake-1.8 + >=dev-util/pkgconfig-0.15 + >=sys-devel/m4-1.4 + X? ( || ( ( x11-libs/libXmu + x11-libs/libXt + x11-libs/libX11 + x11-proto/xproto ) + virtual/x11 ) + virtual/glut + virtual/glu + media-libs/jpeg ) + server? ( virtual/imap-c-client ) + ${RDEPEND}" + +src_unpack() { + unpack ${A} + cd ${S} +} + +src_compile() { + append-flags -O3 -funroll-loops -fforce-addr -ffast-math + # Just run the necessary tools directly + einfo "Running necessary autotools..." + aclocal -I m4 || die "aclocal failed." + autoheader || die "autoheader failed." + automake || die "automake failed." + autoconf || die "autoconf failed." + econf \ + --enable-client \ + --disable-static-client \ + --with-wx-config=$(type -P wx-config-2.6) \ + $(use_enable unicode) \ + $(use_enable server) \ + $(use_with X x) || die "econf failed" + # Make it link to the compiled libs, not the installed ones + sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \ + die "sed failed" + emake || die "emake failed" +} + +src_install() { + make install DESTDIR=${D} || die "make install failed" + + newinitd ${FILESDIR}/boinc.init boinc + newconfd ${FILESDIR}/boinc.conf boinc + + make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc + + for i in ${LINGUAS}; do + i="${i/_/-}" + if [[ ${i} != "en" ]] ; then + insinto /usr/share/locale/${i} + doins ${S}/locale/client/${i}/* || die "doins BOINC Manager ${i} locale failed" + fi + done +} + +pkg_preinst() { + enewgroup boinc + enewuser boinc -1 -1 /var/lib/boinc boinc +} + +pkg_postinst() { + echo + einfo "You need to attach to a project to do anything useful with boinc." + einfo "You can do this by running /etc/init.d/boinc attach" + einfo "BOINC The howto for configuration is located at:" + einfo "http://boinc.berkeley.edu/anonymous_platform.php" + if use server;then + echo + einfo "You have chosen to enable server mode. this ebuild has installed" + einfo "the necessary packages to be a server. You will need to have a" + einfo "project. Contact BOINC directly for further information." + fi + echo + # Add warning about the new password for the client, bug 121896. + einfo "If you need to use the graphical client the password is in " + einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated " + einfo "by BOINC. You can change this to something more memorable." + echo +} diff --git a/sci-misc/boinc/boinc-9999.ebuild b/sci-misc/boinc/boinc-9999.ebuild deleted file mode 100644 index 75cc7c70..00000000 --- a/sci-misc/boinc/boinc-9999.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit cvs - -ECVS_SERVER="alien.ssl.berkeley.edu:/home/cvs/cvsroot" -ECVS_MODULE="boinc_public" - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.berkeley.edu/" - -LICENSE="LPGL" -SLOT="0" -KEYWORDS="-*" -IUSE="X" - -DEPEND="sys-devel/gcc - >=sys-devel/autoconf-2.5.9 - >=sys-devel/automake-1.9.3 - X? ( - >=x11-libs/wxGTK-2.4.2 - >=x11-libs/gtk+-2.5.6 - virtual/opengl - media-libs/glut - )" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${ECVS_MODULE} - -src_compile() -{ - einfo "Running ./_autosetup" - ./_autosetup || die "./_autosetup failed" - - econf \ - --prefix=/usr/tmp/boinc \ - -C --enable-client || die "econf failed" - - emake -r || die "emake failed" - - die -} - -src_test() -{ - make check -} diff --git a/sci-misc/boinc/files/conf.d/boinc b/sci-misc/boinc/files/boinc.conf index a4efa530..20f8dfd6 100644 --- a/sci-misc/boinc/files/conf.d/boinc +++ b/sci-misc/boinc/files/boinc.conf @@ -7,13 +7,14 @@ GROUP="boinc" # Directory with runtime data: Work units, project binaries, user info etc. RUNTIMEDIR="/var/lib/boinc" -# Startup script, for log file and daemonize -STARTSCRIPT="${RUNTIMEDIR}/boincwrapper" - -# Binary that is stopped with stop() -BOINCBIN="/usr/bin/boinc" - -OPTS="-return_results_immediately" +# Location of the boinc command line binary +BOINCBIN="/usr/bin/boinc_client" # Logfile (/dev/null for nowhere) LOGFILE="/var/log/boinc.log" + +# Allow remote gui RPC yes or no +ALLOW_REMOTE_RPC="yes" + +# nice level +NICELEVEL="19" diff --git a/sci-misc/boinc/files/boinc.init b/sci-misc/boinc/files/boinc.init new file mode 100755 index 00000000..8a2543fa --- /dev/null +++ b/sci-misc/boinc/files/boinc.init @@ -0,0 +1,80 @@ +#!/sbin/runscript + +opts="${opts} attach" + +depend() { + use dns + need net +} + +start() { + ebegin "Starting BOINC" + if [ ! -d ${RUNTIMEDIR} ]; then + einfo "Directory ${RUNTIMEDIR} not existing, creating now." + /bin/mkdir ${RUNTIMEDIR} + /bin/chown ${USER}:${GROUP} ${RUNTIMEDIR} + if [ ! -d ${RUNTIMEDIR} ]; then + eerror "Directory ${RUNTIMEDIR} could not be created!" + return 1 + fi + fi + + cd ${RUNTIMEDIR} + + if [ ! -f lockfile ]; then + einfo "File ${RUNTIMEDIR}/lockfile does not exist, assuming first run." + einfo "You need to setup an account on the BOINC project homepage beforehand! Go to http://boinc.berkeley.edu/ and locate your project." + einfo "Then either run /etc/init.d/boinc attach or connect with a gui client and attach to a project with that." + fi + + # if the log file doesn't exist, create it with root privs, then change ownership to boinc + if [ ! -f ${LOGFILE} ]; then + touch ${LOGFILE} + chown ${USER}:${GROUP} ${LOGFILE} + else + mv ${LOGFILE} ${LOGFILE}.old + touch ${LOGFILE} + chown ${USER}:${GROUP} ${LOGFILE} + fi + + if [ ${ALLOW_REMOTE_RPC} = "yes" ]; then + ARGS="${ARGS} -allow_remote_gui_rpc" + fi + + setsid start-stop-daemon --quiet --start --chdir ${RUNTIMEDIR} \ + --exec ${BOINCBIN} --chuid ${USER}:${GROUP} \ + --nicelevel ${NICELEVEL} -- ${ARGS} > ${LOGFILE} 2>&1 & + + eend $? +} + +attach() { + printf " Enter the Project URL: " + read url + printf " Enter your Account Key: " + read key + + RC_QUIET_STDOUT="yes" svc_status + if [ $? == 1 ]; then + svc_start + fi + ebegin "Attaching to project" + # boinc cmd does not return 1 when it fails currently + boinc_cmd --project_attach ${url} ${key} &> /dev/null + eend $? + + sleep 10 + tail ${LOGFILE} +} + +stop() { + ebegin "Stopping BOINC" + start-stop-daemon --stop --quiet --exec ${BOINCBIN} + eend $? +} + +restart() { + svc_stop + sleep 6 + svc_start +} diff --git a/sci-misc/boinc/files/boincwrapper b/sci-misc/boinc/files/boincwrapper deleted file mode 100644 index f9a270e3..00000000 --- a/sci-misc/boinc/files/boincwrapper +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Script for starting BOINC in background and keeping logfile. -# Required argument: Path to BOINC binary -# Optional argument: Logfile path - -if [ $# -lt 1 ]; then - echo "Usage: $0 pathname_to_boinc" - exit 1 -else - BOINCBIN=$1 - - if [ $# -lt 2 ]; then - LOGFILE="/dev/null" - else - LOGFILE=$2 - fi -fi - -${BOINCBIN} ${OPTS} >> ${LOGFILE} 2>&1 & diff --git a/sci-misc/boinc/files/digest-boinc-5.8.16 b/sci-misc/boinc/files/digest-boinc-5.8.16 new file mode 100644 index 00000000..0d07c35a --- /dev/null +++ b/sci-misc/boinc/files/digest-boinc-5.8.16 @@ -0,0 +1,3 @@ +MD5 4c0a4f0d92444ae7b1fc61e8d2ef1780 boinc-5.8.16.tar.bz2 4893704 +RMD160 e6b02bbb6e24b6d812c7059db4649283fc9fa1a3 boinc-5.8.16.tar.bz2 4893704 +SHA256 f4dcfb36ca50f8af87a50d8355a6df8891b6248917a0c92f33df9d5377aa4d71 boinc-5.8.16.tar.bz2 4893704 diff --git a/sci-misc/boinc/files/digest-boinc-9999 b/sci-misc/boinc/files/digest-boinc-9999 deleted file mode 100644 index e69de29b..00000000 --- a/sci-misc/boinc/files/digest-boinc-9999 +++ /dev/null diff --git a/sci-misc/boinc/files/init.d/boinc b/sci-misc/boinc/files/init.d/boinc deleted file mode 100644 index 2eba344d..00000000 --- a/sci-misc/boinc/files/init.d/boinc +++ /dev/null @@ -1,55 +0,0 @@ -#!/sbin/runscript - -opts="start stop restart" - -depend() { - use dns - need net -} - -start() { - ebegin "Starting BOINC" - if [ ! -d ${RUNTIMEDIR} ] - then - einfo "Directory ${RUNTIMEDIR} not existing, creating now." - /bin/mkdir ${RUNTIMEDIR} - /bin/chown ${USER}:${GROUP} ${RUNTIMEDIR} -R - if [ ! -d ${RUNTIMEDIR} ] - then - eerror "Directory ${RUNTIMEDIR} could not be created!" - return 1 - fi - fi - - cd ${RUNTIMEDIR} - - if [ ! -f lockfile ] - then - einfo "File ${RUNTIMEDIR}/lockfile not existing, assuming first run." - einfo "You need to setup an account on the BOINC project homepage beforehand! Go to http://boinc.berkeley.edu/ and locate your project." - su boinc -c "${BOINCBIN} -show_projects" - - if [ ! -f lockfile ] - then - eerror "File ${RUNTIMEDIR}/lockfile still not created! You should setup ${RUNTIMEDIR} yourself." - return 1 - fi - einfo "Done setting up!" - fi - - start-stop-daemon --quiet --start --exec ${STARTSCRIPT} \ - --chuid ${USER}:${GROUP} -- ${BOINCBIN} ${LOGFILE} - eend $? -} - -stop() { - ebegin "Stopping BOINC" - start-stop-daemon --stop --quiet --exec ${BOINCBIN} - eend $? -} - -restart() { - svc_stop - sleep 10 - svc_start -} diff --git a/sci-misc/boinc/metadata.xml b/sci-misc/boinc/metadata.xml deleted file mode 100644 index c6b49db3..00000000 --- a/sci-misc/boinc/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer> - <email>beber.gentoo@gmail.com</email> - <name>Bertrand Jacquin</name> - <description/> -</maintainer> -</pkgmetadata> |