summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2004-12-27 21:01:10 +0000
committerOlivier Fisette <ribosome@gentoo.org>2004-12-27 21:01:10 +0000
commite90bafc19046df00f7f20bdc0441c3023ea9bcbd (patch)
treeb09634cecd9d83d43a99563d3872ae80a8c3ac84 /sci-misc/chessbrain
parentnew version. (diff)
downloadhistorical-e90bafc19046df00f7f20bdc0441c3023ea9bcbd.tar.gz
historical-e90bafc19046df00f7f20bdc0441c3023ea9bcbd.tar.bz2
historical-e90bafc19046df00f7f20bdc0441c3023ea9bcbd.zip
Moved from app-sci/chessbrain to sci-misc/chessbrain.
Diffstat (limited to 'sci-misc/chessbrain')
-rw-r--r--sci-misc/chessbrain/ChangeLog59
-rw-r--r--sci-misc/chessbrain/Manifest6
-rw-r--r--sci-misc/chessbrain/chessbrain-20407-r1.ebuild48
-rw-r--r--sci-misc/chessbrain/files/cb-conf.d3
-rwxr-xr-xsci-misc/chessbrain/files/cb-init.d50
-rw-r--r--sci-misc/chessbrain/files/digest-chessbrain-20407-r11
-rw-r--r--sci-misc/chessbrain/metadata.xml5
7 files changed, 172 insertions, 0 deletions
diff --git a/sci-misc/chessbrain/ChangeLog b/sci-misc/chessbrain/ChangeLog
new file mode 100644
index 000000000000..7daf05d6c275
--- /dev/null
+++ b/sci-misc/chessbrain/ChangeLog
@@ -0,0 +1,59 @@
+# ChangeLog for app-sci/chessbrain
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/chessbrain/ChangeLog,v 1.1 2004/12/27 21:01:10 ribosome Exp $
+
+*chessbrain-20407-r1 (27 Dec 2004)
+
+ 27 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/cb-conf.d, +files/cb-init.d, +chessbrain-20407-r1.ebuild:
+ Moved from app-sci/chessbrain to sci-misc/chessbrain.
+
+ 18 Nov 2004; Olivier Fisette <ribosome@gentoo.org> -chessbrain-20314.ebuild,
+ -chessbrain-20407.ebuild:
+ Removed insecure versions. (See GLSA 200411-26.)
+
+*chessbrain-20407-r1 (07 Nov 2004)
+
+ 07 Nov 2004; Olivier Fisette <ribosome@gentoo.org>
+ +chessbrain-20407-r1.ebuild:
+ Fixed insecure installation (see bug #69868).
+
+ 07 Aug 2004; Tom Martin <slarti@gentoo.org> chessbrain-20314.ebuild:
+ Typo in DESCRIPTION: distibuted -> distributed. Bug 59717.
+
+ 27 Jul 2004; Olivier Fisette <ribosome@gentoo.org> files/cb-conf.d:
+ Changed erroneous reference to the setiathome project.
+
+ 19 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> chessbrain-20304.ebuild,
+ chessbrain-20310.ebuild, chessbrain-20314.ebuild, chessbrain-20407.ebuild:
+ Cleanup, adding IUSE, latest bumped to stable
+
+*chessbrain-20407 (10 Dec 2003)
+
+ 10 Dec 2003; Patrick Kursawe <phosphan@gentoo.org> chessbrain-20407.ebuild:
+ Version bump, ebuild modified from bug 34981
+
+ 06 Dec 2003; Donnie Berkholz <spyderous@gentoo.org>;
+ chessbrain-20304.ebuild, chessbrain-20310.ebuild, chessbrain-20314.ebuild:
+ Changing obsolete chown syntax for bug #35127.
+
+*chessbrain-20314 (17 Mar 2003)
+
+ 17 Mar 2003; Michael Imhof <tantive@gentoo.org>
+ chessbrain-20314.ebuild: Version bumped, as 20310 can no longer
+ communicate with the server. Should close #17334
+
+*chessbrain-20310 (12 Mar 2003)
+
+ 12 Mar 2003; Michael Imhof <tantive@gentoo.org>
+ chessbrain-20310.ebuild:
+ Added submitted ebuild and bumped version to 20310 as 20304 can no longer be
+ retrieved. Shoud close #17334.
+
+*chessbrain-20304 (08 Mar 2003)
+
+ 08 Mar 2003; Abhishek Amit <abhishekamit2000@yahoo.com>
+ chessbrain-20304.ebuild files/cb-conf.d files/cb-init.d
+ files/digest-chessbrain-20304 :
+ Initial import. Ebuild submitted by Abhishek Amit
+ <abhishekamit2000@yahoo.com>. Modeled after setiathome ebuild.
diff --git a/sci-misc/chessbrain/Manifest b/sci-misc/chessbrain/Manifest
new file mode 100644
index 000000000000..b90be57ffa7f
--- /dev/null
+++ b/sci-misc/chessbrain/Manifest
@@ -0,0 +1,6 @@
+MD5 7420b9db69de4aed708c8d7698d19ab4 ChangeLog 2071
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 f4815723ed48b0ca585715e3bbd20605 chessbrain-20407-r1.ebuild 1340
+MD5 628a940ece7bcac03be879283f329f06 files/cb-init.d 1212
+MD5 c22395b25da500b1599da7372446505f files/digest-chessbrain-20407-r1 67
+MD5 7271441b59160948a7504c35eac50efa files/cb-conf.d 112
diff --git a/sci-misc/chessbrain/chessbrain-20407-r1.ebuild b/sci-misc/chessbrain/chessbrain-20407-r1.ebuild
new file mode 100644
index 000000000000..898dddf81e9f
--- /dev/null
+++ b/sci-misc/chessbrain/chessbrain-20407-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/chessbrain/chessbrain-20407-r1.ebuild,v 1.1 2004/12/27 21:01:10 ribosome Exp $
+
+MY_PV=${PV}-01
+DESCRIPTION="client for the ChessBrain distributed computing project"
+HOMEPAGE="http://www.chessbrain.net/"
+SRC_URI="http://www.chessbrain.net/client${MY_PV}-lin.tgz"
+
+LICENSE="freedist"
+IUSE=""
+SLOT="0"
+KEYWORDS="x86"
+
+S=${WORKDIR}
+
+DEPEND=""
+RDEPEND="
+ sys-fs/e2fsprogs
+ sys-libs/lib-compat"
+
+# no version number on this install dir since upgrades will be using same dir
+# (data will be stored here too)
+I=/opt/chessbrain
+
+src_install() {
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/cb-init.d chessbrain
+ insinto /etc/conf.d
+ newins ${FILESDIR}/cb-conf.d chessbrain
+ echo "CHESSBRAIN_DIR=${I}">> ${D}/etc/conf.d/chessbrain
+
+ insinto ${I}
+ doins cbspn.conf
+ exeinto ${I}
+ doexe cbspn
+}
+
+pkg_postinst() {
+ einfo "To run ChessBrain in the background at boot:"
+ einfo " Edit ${I}/cbspn.conf for information relevant to ChessBrain"
+ einfo " See http://www.chessbrain.net/peernodenotes.html"
+ einfo " Then just run \`/etc/init.d/chessbrain start\`"
+ einfo
+ einfo "Otherwise remember to cd into the directory"
+ einfo "where it should keep its data files first, like so:"
+ einfo " cd ${I} && ./cbspn"
+}
diff --git a/sci-misc/chessbrain/files/cb-conf.d b/sci-misc/chessbrain/files/cb-conf.d
new file mode 100644
index 000000000000..a2f9d93561dd
--- /dev/null
+++ b/sci-misc/chessbrain/files/cb-conf.d
@@ -0,0 +1,3 @@
+# Config file for /etc/init.d/chessbrain
+
+# This is the directory where chessbrain's data files will be stored:
diff --git a/sci-misc/chessbrain/files/cb-init.d b/sci-misc/chessbrain/files/cb-init.d
new file mode 100755
index 000000000000..b0cc6d42361a
--- /dev/null
+++ b/sci-misc/chessbrain/files/cb-init.d
@@ -0,0 +1,50 @@
+#!/sbin/runscript
+
+cpus=`egrep -c "^processor" /proc/cpuinfo`
+
+checkconfig() {
+ if [ ! -e ${CHESSBRAIN_DIR} ]
+ then
+ einfo "Creating ${CHESSBRAIN_DIR}"
+ mkdir ${CHESSBRAIN_DIR}
+ fi
+
+ if [ $cpus != '1' ]; then
+ cd ${CHESSBRAIN_DIR}
+ for cpu in `seq 2 $cpus`; do
+ if [ ! -e ${CHESSBRAIN_DIR}/cpu${cpu} ]; then
+ mkdir ${CHESSBRAIN_DIR}/cpu${cpu}
+ cp ${CHESSBRAIN_DIR}/* ${CHESSBRAIN_DIR}/cpu${cpu} > /dev/null
+ cp ${CHESSBRAIN_DIR}/cbspan.conf ${CHESSBRAIN_DIR}/cpu${cpu}
+ fi
+ done
+ fi
+}
+
+start() {
+ checkconfig
+
+
+ if [ $cpus = '1' ]; then
+ ebegin "Starting ChessBrain"
+ else
+ ebegin "Starting ChessBrain ($cpus processors)"
+ fi
+
+ for cpu in `seq 1 $cpus`; do
+ cd ${CHESSBRAIN_DIR}
+ if [ $cpu != '1' ]; then
+ cd cpu${cpu}
+ fi
+
+ ./cbspn >&/dev/null&
+ done
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ChessBrain"
+ killall cbspn
+ eend $?
+}
diff --git a/sci-misc/chessbrain/files/digest-chessbrain-20407-r1 b/sci-misc/chessbrain/files/digest-chessbrain-20407-r1
new file mode 100644
index 000000000000..4b0eb737628a
--- /dev/null
+++ b/sci-misc/chessbrain/files/digest-chessbrain-20407-r1
@@ -0,0 +1 @@
+MD5 fca2b97189c6e5a9e3b2ade4ca4857e0 client20407-01-lin.tgz 133444
diff --git a/sci-misc/chessbrain/metadata.xml b/sci-misc/chessbrain/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/sci-misc/chessbrain/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>