aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcryos <cryos@32389bae-6d03-0410-99cf-db05cde120eb>2005-10-28 23:06:43 +0000
committercryos <cryos@32389bae-6d03-0410-99cf-db05cde120eb>2005-10-28 23:06:43 +0000
commitd6e387915a0472e741398169b3c904d507abfa96 (patch)
tree80e28db690e9b30181beb8186d6d499a73a40a47
parentMoved to portage main tree. (diff)
downloadsci-d6e387915a0472e741398169b3c904d507abfa96.tar.gz
sci-d6e387915a0472e741398169b3c904d507abfa96.tar.bz2
sci-d6e387915a0472e741398169b3c904d507abfa96.zip
Add experimental boinc ebuild to the overlay for testing.
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@11 32389bae-6d03-0410-99cf-db05cde120eb
-rw-r--r--sci-misc/boinc/ChangeLog58
-rw-r--r--sci-misc/boinc/Manifest9
-rw-r--r--sci-misc/boinc/boinc-4.72.20050813-r1.ebuild81
-rw-r--r--sci-misc/boinc/files/boinc.conf20
-rw-r--r--sci-misc/boinc/files/boinc.init76
-rw-r--r--sci-misc/boinc/files/digest-boinc-4.72.20050813-r11
-rw-r--r--sci-misc/boinc/metadata.xml12
7 files changed, 257 insertions, 0 deletions
diff --git a/sci-misc/boinc/ChangeLog b/sci-misc/boinc/ChangeLog
new file mode 100644
index 000000000..166ff5455
--- /dev/null
+++ b/sci-misc/boinc/ChangeLog
@@ -0,0 +1,58 @@
+# ChangeLog for sci-misc/boinc
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.11 2005/08/27 23:47:08 cryos Exp $
+
+ 25 Aug 2005; Aron Griffis <agriffis@gentoo.org>
+ boinc-4.72.20050813.ebuild:
+ add ~ia64 #103250
+
+ 23 Aug 2005; Ferris McCormick <fmccor@gentoo.org>
+ boinc-4.72.20050813.ebuild:
+ Add ~sparc keyword (Bug #103250) --- builds and installs on sparc, and
+ runs well enough to benchmark the system, at least. (Note that on my
+ test system, however, parallel (-j3) make had problems; "-j1" was fine.)
+
+ 23 Aug 2005; Marcus D. Hanwell <cryos@gentoo.org> boinc-4.32.ebuild,
+ boinc-4.72.20050813.ebuild:
+ Changed enewuser call to comply with bug 103421.
+
+ 20 Aug 2005; Marcus D. Hanwell <cryos@gentoo.org> -boinc-4.19.ebuild,
+ boinc-4.32.ebuild, -boinc-4.72.20050725.ebuild,
+ boinc-4.72.20050813.ebuild:
+ Cleaned out some old ebuilds. Fixed the php dependency to virtual/php
+ closing bug 102835.
+
+*boinc-4.72.20050813 (14 Aug 2005)
+*boinc-4.72.20050725 (14 Aug 2005)
+
+ 14 Aug 2005; Olivier Fisette <ribosome@gentoo.org> files/boinc.init,
+ +boinc-4.72.20050725.ebuild, +boinc-4.72.20050813.ebuild:
+ Fixed bug #98342: Boinc is now started using setsid. Fulfilled request in
+ bug #93744: Boinc ebuilds are now up-to-date. Fixed bug #91930: Boinc now
+ compiles fine with Unicode-enabled wxGTK.
+
+ 06 Aug 2005; Michael Hanselmann <hansmi@gentoo.org> boinc-4.32.ebuild:
+ Added to ~sparc.
+
+ 22 Jul 2005; Michael Hanselmann <hansmi@gentoo.org> boinc-4.32.ebuild:
+ Added to ~ppc.
+
+ 28 May 2005; Marcus D. Hanwell <cryos@gentoo.org> boinc-4.19.ebuild,
+ boinc-4.32.ebuild:
+ Give the boinc user /bin/false as shell.
+
+ 24 May 2005; Marcus D. Hanwell <cryos@gentoo.org> metadata.xml:
+ Fix up metadata, thanks to squinky86 in bug 93744.
+
+*boinc-4.32 (21 Apr 2005)
+*boinc-4.19 (21 Apr 2005)
+
+ 21 Apr 2005; Marcus D. Hanwell <cryos@gentoo.org>
+ +files/boinc-4.32_cmdline_options.patch,
+ +files/boinc-4.32_socket_close_fix.patch, +files/boinc.conf,
+ +files/boinc.init, +metadata.xml, +boinc-4.19.ebuild, +boinc-4.32.ebuild:
+ Initial import, placed in p.mask for now during initial testing. Thanks go
+ to Robert Moss <robmoss@gentoo.org> and Tony Murray <tonymurray@fastmail.fm>
+ for the ebuilds and maintenance performed by Tony, as well as all the other
+ contributors who helped with this ebuild. This closes bug 54962.
+
diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest
new file mode 100644
index 000000000..a8d7d582f
--- /dev/null
+++ b/sci-misc/boinc/Manifest
@@ -0,0 +1,9 @@
+MD5 8e6b624210c8b8e6964fc9c1c8a5f511 ChangeLog 2434
+MD5 9770929f17fa28e92c425e655a8f0f7c boinc-4.72.20050813-r1.ebuild 2249
+MD5 f34dc99c2f866383c11c0a3ac849baf8 files/boinc-4.32_cmdline_options.patch 2477
+MD5 25cfc5918b31da56263edfee7a5fa682 files/boinc-4.32_socket_close_fix.patch 1208
+MD5 87e5c7b66fd1b782ab5b01bae9cbc94e files/boinc.conf 441
+MD5 79ba92d7c417eb805a6410cd9c71789d files/boinc.init 1784
+MD5 54ee39e6bbb50b705cb5fac638568d8b files/digest-boinc-4.72.20050813-r1 80
+MD5 7ba784f70f00bda8b03e9c051273d89c files/digest-boinc-4.73 73
+MD5 4b2e94b92c84896e0204d9e7710f9c6a metadata.xml 420
diff --git a/sci-misc/boinc/boinc-4.72.20050813-r1.ebuild b/sci-misc/boinc/boinc-4.72.20050813-r1.ebuild
new file mode 100644
index 000000000..1e70d2eb7
--- /dev/null
+++ b/sci-misc/boinc/boinc-4.72.20050813-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-4.72.20050813.ebuild,v 1.5 2005/08/25 13:52:56 agriffis Exp $
+
+inherit eutils
+
+MY_PN="boinc_public-cvs"
+MY_PV="2005-08-13"
+S=${WORKDIR}/boinc_public
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="http://boinc.ssl.berkeley.edu/source/nightly/${MY_PN}-${MY_PV}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="server X"
+
+RDEPEND="sys-libs/zlib
+ X? ( >=x11-libs/wxGTK-2.6.1 )
+ server? ( net-www/apache
+ >=dev-db/mysql-4.0.24
+ 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.59
+ >=sys-devel/automake-1.9.3
+ X? ( virtual/glut
+ virtual/glu
+ media-libs/jpeg )
+ server? ( virtual/imap-c-client )
+ ${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # point to a proper mouse device
+ sed -e "s:/dev/mouse:/dev/input/mice:g" -i client/hostinfo_unix.C || die
+}
+
+src_compile() {
+ econf \
+ --enable-client \
+ --disable-static-client \
+ --with-wx-config=$(which wx-config-2.6) \
+ $(use_enable server) \
+ $(use_with X x) || die "econf 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
+}
+
+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
+}
diff --git a/sci-misc/boinc/files/boinc.conf b/sci-misc/boinc/files/boinc.conf
new file mode 100644
index 000000000..827025b7d
--- /dev/null
+++ b/sci-misc/boinc/files/boinc.conf
@@ -0,0 +1,20 @@
+# Config file for /etc/init.d/boinc
+
+# Owner of BOINC process (must be existing)
+USER="boinc"
+GROUP="boinc"
+
+# Directory with runtime data: Work units, project binaries, user info etc.
+RUNTIMEDIR="/var/lib/boinc"
+
+# 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="no"
+
+# nice level
+NICELEVEL="19"
diff --git a/sci-misc/boinc/files/boinc.init b/sci-misc/boinc/files/boinc.init
new file mode 100644
index 000000000..4e43197df
--- /dev/null
+++ b/sci-misc/boinc/files/boinc.init
@@ -0,0 +1,76 @@
+#!/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}
+ fi
+
+ if [ ${ALLOW_REMOTE_RPC} = "yes" ]; then
+ ARGS="${ARGS} -allow_remote_gui_rpc"
+ fi
+
+ setsid start-stop-daemon --quiet --start --exec ${BOINCBIN} \
+ --chuid ${USER}:${GROUP} --nicelevel ${NICELEVEL} -- ${ARGS} \
+ --chdir ${RUNTIMEDIR} > ${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/digest-boinc-4.72.20050813-r1 b/sci-misc/boinc/files/digest-boinc-4.72.20050813-r1
new file mode 100644
index 000000000..0a456c0d3
--- /dev/null
+++ b/sci-misc/boinc/files/digest-boinc-4.72.20050813-r1
@@ -0,0 +1 @@
+MD5 af114631d61e117de9bafa197864a8ff boinc_public-cvs-2005-08-13.tar.gz 6054534
diff --git a/sci-misc/boinc/metadata.xml b/sci-misc/boinc/metadata.xml
new file mode 100644
index 000000000..7b990566d
--- /dev/null
+++ b/sci-misc/boinc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>cryos@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ BOINC (Berkeley Open Infrastructure for Network Computing) is a software
+ platform for distributed computing using volunteered computer resources.
+ </longdescription>
+</pkgmetadata>