summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2003-03-12 16:32:09 +0000
committerMichael Imhof <tantive@gentoo.org>2003-03-12 16:32:09 +0000
commit9bce55293a4fe457487c2a3f48bf2178305f27a0 (patch)
tree6a9811e49bca9a14e0c1672f8df63d9632d4ed1f /app-sci/chessbrain/files
parentAdded -DTUNTAP to emake. Should close #16384. (diff)
downloadhistorical-9bce55293a4fe457487c2a3f48bf2178305f27a0.tar.gz
historical-9bce55293a4fe457487c2a3f48bf2178305f27a0.tar.bz2
historical-9bce55293a4fe457487c2a3f48bf2178305f27a0.zip
Added submitted ebuild and bumped version to 20310 as 20304 can no longer be retrieved. Shoud close #17334.
Diffstat (limited to 'app-sci/chessbrain/files')
-rw-r--r--app-sci/chessbrain/files/cb-conf.d3
-rw-r--r--app-sci/chessbrain/files/cb-init.d50
-rw-r--r--app-sci/chessbrain/files/digest-chessbrain-203041
-rw-r--r--app-sci/chessbrain/files/digest-chessbrain-203101
4 files changed, 55 insertions, 0 deletions
diff --git a/app-sci/chessbrain/files/cb-conf.d b/app-sci/chessbrain/files/cb-conf.d
new file mode 100644
index 000000000000..6b687e61f696
--- /dev/null
+++ b/app-sci/chessbrain/files/cb-conf.d
@@ -0,0 +1,3 @@
+# Config file for /etc/init.d/chessbrain
+
+# this is the directory where setiathome's data files will be stored
diff --git a/app-sci/chessbrain/files/cb-init.d b/app-sci/chessbrain/files/cb-init.d
new file mode 100644
index 000000000000..b0cc6d42361a
--- /dev/null
+++ b/app-sci/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/app-sci/chessbrain/files/digest-chessbrain-20304 b/app-sci/chessbrain/files/digest-chessbrain-20304
new file mode 100644
index 000000000000..16da56c7f3ea
--- /dev/null
+++ b/app-sci/chessbrain/files/digest-chessbrain-20304
@@ -0,0 +1 @@
+MD5 543eddee6345c6c4d4eb8722c863d48c client20304-01-lin.tgz 130817
diff --git a/app-sci/chessbrain/files/digest-chessbrain-20310 b/app-sci/chessbrain/files/digest-chessbrain-20310
new file mode 100644
index 000000000000..65a65f93280c
--- /dev/null
+++ b/app-sci/chessbrain/files/digest-chessbrain-20310
@@ -0,0 +1 @@
+MD5 ea3467c5552a43909644d24f82946b32 client20310-01-lin.tgz 130426