Moved from app-sci/chessbrain to sci-misc/chessbrain.
authorOlivier Fisette <ribosome@gentoo.org>
Mon, 27 Dec 2004 21:01:10 +0000 (21:01 +0000)
committerOlivier Fisette <ribosome@gentoo.org>
Mon, 27 Dec 2004 21:01:10 +0000 (21:01 +0000)
sci-misc/chessbrain/ChangeLog [new file with mode: 0644]
sci-misc/chessbrain/Manifest [new file with mode: 0644]
sci-misc/chessbrain/chessbrain-20407-r1.ebuild [new file with mode: 0644]
sci-misc/chessbrain/files/cb-conf.d [new file with mode: 0644]
sci-misc/chessbrain/files/cb-init.d [new file with mode: 0755]
sci-misc/chessbrain/files/digest-chessbrain-20407-r1 [new file with mode: 0644]
sci-misc/chessbrain/metadata.xml [new file with mode: 0644]

diff --git a/sci-misc/chessbrain/ChangeLog b/sci-misc/chessbrain/ChangeLog
new file mode 100644 (file)
index 0000000..7daf05d
--- /dev/null
@@ -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 (file)
index 0000000..b90be57
--- /dev/null
@@ -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 (file)
index 0000000..898dddf
--- /dev/null
@@ -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 (file)
index 0000000..a2f9d93
--- /dev/null
@@ -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 (executable)
index 0000000..b0cc6d4
--- /dev/null
@@ -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 (file)
index 0000000..4b0eb73
--- /dev/null
@@ -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 (file)
index 0000000..b229aec
--- /dev/null
@@ -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>