Moved from app-sci/zetagrid to sci-misc/zetagrid.
authorOlivier Fisette <ribosome@gentoo.org>
Mon, 27 Dec 2004 21:10:25 +0000 (21:10 +0000)
committerOlivier Fisette <ribosome@gentoo.org>
Mon, 27 Dec 2004 21:10:25 +0000 (21:10 +0000)
sci-misc/zetagrid/ChangeLog [new file with mode: 0644]
sci-misc/zetagrid/Manifest [new file with mode: 0644]
sci-misc/zetagrid/files/digest-zetagrid-1.9.0 [new file with mode: 0644]
sci-misc/zetagrid/files/digest-zetagrid-1.9.1 [new file with mode: 0644]
sci-misc/zetagrid/files/zeta.cfg [new file with mode: 0644]
sci-misc/zetagrid/files/zeta.sh [new file with mode: 0755]
sci-misc/zetagrid/files/zeta_progress.sh [new file with mode: 0755]
sci-misc/zetagrid/files/zetagrid.init [new file with mode: 0755]
sci-misc/zetagrid/metadata.xml [new file with mode: 0644]
sci-misc/zetagrid/zetagrid-1.9.0.ebuild [new file with mode: 0644]
sci-misc/zetagrid/zetagrid-1.9.1.ebuild [new file with mode: 0644]

diff --git a/sci-misc/zetagrid/ChangeLog b/sci-misc/zetagrid/ChangeLog
new file mode 100644 (file)
index 0000000..a5e680f
--- /dev/null
@@ -0,0 +1,67 @@
+# ChangeLog for app-sci/zetagrid
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/zetagrid/ChangeLog,v 1.1 2004/12/27 21:10:25 ribosome Exp $
+
+*zetagrid-1.9.1 (27 Dec 2004)
+
+  27 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+  +files/zeta.cfg, +files/zeta.sh, +files/zeta_progress.sh,
+  +files/zetagrid.init, +zetagrid-1.9.0.ebuild, +zetagrid-1.9.1.ebuild:
+  Moved from app-sci/zetagrid to sci-misc/zetagrid.
+
+  01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+  zetagrid-1.9.0.ebuild, zetagrid-1.9.1.ebuild:
+  virtual/glibc -> virtual/libc
+
+*zetagrid-1.9.1 (28 Feb 2004)
+
+  28 Feb 2004; Michael Imhof <tantive@gentoo.org> zetagrid-1.9.1.ebuild:
+  Version bumped.
+
+*zetagrid-1.9.0 (15 Feb 2004)
+
+  15 Feb 2004; Michael Imhof <tantive@gentoo.org> zetagrid-1.8.6.ebuild,
+  zetagrid-1.9.0.ebuild:
+  Bumped to new version. Cleaned out old ebuilds.
+
+  11 Dec 2003; Michael Imhof <tantive@gentoo.org> files/zeta.sh,
+  files/zetagrid.init:
+  Changed scripts to allow logging. Closes #35261.
+
+*zetagrid-1.8.6-r1 (11 Dec 2003)
+
+  11 Dec 2003; Michael Imhof <tantive@gentoo.org> zetagrid-1.8.6-r1.ebuild, files/zeta.sh,
+  files/zetagrid.init:
+  Changed scripts to new POSIX conform syntax. Closes #35595.
+
+*zetagrid-1.8.6 (08 Dec 2003)
+
+  08 Dec 2003; Michael Imhof <tantive@gentoo.org> zetagrid-1.8.6.ebuild:
+  Version bumped.
+
+*zetagrid-1.8.4 (15 Apr 2003)
+
+  15 Apr 2003; Michael Imhof <tantive@gentoo.org> :
+  Version bumped.
+
+*zetagrid-1.8.2-r1 (17 Mar 2003)
+
+  17 Mar 2003; Michael Imhof <tantive@gentoo.org> :
+  Unmasked for sparc.
+
+*zetagrid-1.8.2 (11 Mar 2003)
+
+  11 Mar 2003; Michael Imhof <tantive@gentoo.org> :
+  The ebuild now contains the correct version number after the filename
+  has been corrected upstream.
+
+*zetagrid-1.0 (14 Mar 2003)
+
+  14 Mar 2003; Michael Imhof <tantive@gentoo.org> zetagrid-1.0-r1.ebuild,
+  zetagrid-1.0-r1.ebuild, zetagrid-1.0-r2.ebuild, zetagrid-1.0-r2.ebuild,
+  zetagrid-1.0-r3.ebuild, zetagrid-1.0-r3.ebuild, zetagrid-1.0-r4.ebuild,
+  zetagrid-1.0-r4.ebuild, zetagrid-1.0-r5.ebuild, zetagrid-1.0-r5.ebuild,
+  zetagrid-1.0-r6.ebuild, zetagrid-1.0-r6.ebuild, zetagrid-1.0-r7.ebuild,
+  zetagrid-1.0-r7.ebuild, zetagrid-1.0-r8.ebuild, zetagrid-1.0-r8.ebuild,
+  zetagrid-1.0.ebuild, zetagrid-1.0.ebuild:
+  Cleaned out old ebuilds
diff --git a/sci-misc/zetagrid/Manifest b/sci-misc/zetagrid/Manifest
new file mode 100644 (file)
index 0000000..744e815
--- /dev/null
@@ -0,0 +1,10 @@
+MD5 e7c791f11872a1d509c1e225c3bc071c ChangeLog 2066
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 32e19cf9632fe640a367a6dabce76832 zetagrid-1.9.0.ebuild 1621
+MD5 e0b02ab55efc5adddce742f249d5fd3c zetagrid-1.9.1.ebuild 1621
+MD5 6df7b3d7149cbe2afdefc5895a8001a6 files/zeta.sh 1439
+MD5 2891501a095e1789c7867fa75495ae3c files/zeta_progress.sh 987
+MD5 68c0b0a9602b20f4e255b4e323114d9c files/digest-zetagrid-1.9.0 122
+MD5 7ed8339f5ea2f78678f91df84a4057c6 files/digest-zetagrid-1.9.1 122
+MD5 a994c331aadb23393e238d6684e89a6e files/zeta.cfg 4343
+MD5 bd38a9b80e6a8060d4a8e5db95c977a0 files/zetagrid.init 1163
diff --git a/sci-misc/zetagrid/files/digest-zetagrid-1.9.0 b/sci-misc/zetagrid/files/digest-zetagrid-1.9.0
new file mode 100644 (file)
index 0000000..9ec8efb
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 d2ce37eab41634f5daa36e94ff55a684 zeta_cmd_1.9.0.zip 46798
+MD5 fce1921170a936c7b234ec071953eea5 zeta_progress.zip 5874
diff --git a/sci-misc/zetagrid/files/digest-zetagrid-1.9.1 b/sci-misc/zetagrid/files/digest-zetagrid-1.9.1
new file mode 100644 (file)
index 0000000..571b71e
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 aa25d5fac05343acdd8b35c87f385245 zeta_cmd_1.9.1.zip 46848
+MD5 fce1921170a936c7b234ec071953eea5 zeta_progress.zip 5874
diff --git a/sci-misc/zetagrid/files/zeta.cfg b/sci-misc/zetagrid/files/zeta.cfg
new file mode 100644 (file)
index 0000000..695e37d
--- /dev/null
@@ -0,0 +1,111 @@
+# User identification
+# Please note: We would very much appreciate to see your real name in the
+#              statistics, but if you do not like to enter your real name for
+#              some reason, please use the name 'anonymous' instead.
+#              The e-mail address is optional. We guarantee you not to give your
+#              e-mail address to any third parties. The e-mail is only used for
+#              the location statistic and to send important ZetaGrid related
+#              announcements. Do not worry, this will rarely happen.
+#
+#              All awards (see http://www.zetagrid.net/zeta/prizes.html) will
+#              be offered only to correctly registered users. This means that
+#              the user must provide a correct user name and a valid e-mail
+#              address required for contact purposes.
+name=Michael Imhof
+eMail=tantive@gentoo.org
+
+# Receive important ZetaGrid related announcements
+# You will receive important ZetaGrid related announcements if messages=true.
+# Do not worry, this will rarely happen. Set messages=false if you do not want
+# to receive announcements.
+# The default value is messages=true.
+messages=true
+
+# Team identification
+# The team name is optional. You can be a member of a team and your name will be
+# listed in further statistics. If you want to change your team membership
+# you must supply a valid e-mail address in the appropriate field.
+team=Gentoo Linux Users Everywhere
+
+# Size of the work units (estimates are made on Pentium IV 2 GHz, April 2003)
+# Please note: After a time frame of about 7 days all incomplete work units
+#              will be redistributed.
+# t: tiny work unit ~  2 hours
+# s: small work unit ~  4 hours
+# m: medium work unit ~ 6 hours  (recommended)
+# l: large work unit ~  8 hours
+# h: huge work unit ~  12 hours
+# Remark: The performance index will decrease about 0.3% per day because the
+#         complexity to separate the zeros is growing continuously.
+#         Therefore, the perfomance index will be 10% lower in about 30 days.
+work_unit_size=m
+
+# Number of work units
+# The general limit of work units provided by the server is 5 for beginners,
+# 10 for users who calculated more than 10 million zeros,
+# and 25 for users who calculated more than 100 million zeros.
+# Every work unit expires after 7 days.
+work_units=1
+
+# Terminates the client
+# The client will be terminated after calculating a number of work units.
+# The default value 0 means that the client calculates infinitely many work
+# units and never stops.
+exit=0
+
+# Terminates the client in seconds
+# The default value 0 means that the client will never be terminated.
+exit.time=0
+
+# Number of work units must be greater or equal than the number of processors
+# The value 0 sequentially completes all local work units and terminates the
+# process.
+processors=1
+
+# Usage of the processor power
+# the value 0 means the usage of the complete CPU power
+# a small value (>0) reduce the intensity, e.g. 60000 (~ 50% CPU usage)
+sleep=0
+
+# Transfer results asynchronous to the computation
+transfer.asynchronous=false
+
+# Transfer results asynchronous to the computation
+# if 'transfer.asynchronous=true' and a connection to the server is detected.
+# The default value 0 deactivate this function.
+# A value > 0 means in how many seconds a connection to the server will be
+# checked.
+transfer.detect=0
+
+# Set the task which should be computed
+# the default is 'zeta-zeros': Verification of the Riemann Hypothesis
+task=zeta-zeros
+
+# Using resources
+# 0: using about 37 MB main memory (default)
+# 1: using about 45 MB main memory (~ 20% faster)
+# 2: using about 51 MB main memory (~ 40% faster)
+resources=0
+
+# Put all logging data of the computation also on standard output stream
+standard.output=true
+
+# Put all imformation also on standard output stream
+info.output=true
+
+# Appends a timestamp at the end of every information
+#info.timestamp=yyyy/MM/dd hh:mm:ss
+
+# Put all exceptions on standard output stream
+exception.output=true
+
+# Proxy authentication
+# Define username, password and the system properties
+# proxyHost and proxyPort to enable authentication
+proxy.authentication.username=
+proxy.authentication.password=
+
+# Port number which is used to avoid conflicts
+# this port number must be changed if it is used by other applications,
+# e.g. www.webmin.com
+port=10000
diff --git a/sci-misc/zetagrid/files/zeta.sh b/sci-misc/zetagrid/files/zeta.sh
new file mode 100755 (executable)
index 0000000..718a4c6
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2003 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/zetagrid/files/zeta.sh,v 1.1 2004/12/27 21:10:25 ribosome Exp $
+
+# ======================================================================
+#  zeta.sh        Start script for the ZetaGrid client
+# ----------------------------------------------------------------------
+#
+#  This script sets the environment for the ZetaGrid client.
+#
+#  Please note:
+#
+#  - You must adopte the Java call below for your environment.
+#
+#  - If you have to access the Internet through a proxy server
+#    you must add -Dhttp.proxyHost=$PROXY_HOST
+#    and -Dhttp.proxyPort=$PROXY_PORT in the command below.
+#    Example: -Dhttp.proxyHost=proxy.computer.com
+#             -Dhttp.proxyPort=80
+#
+#  Prerequisite: Java Runtime Environment 1.2.2 or higher,
+#                e.g. http://java.sun.com/j2se/1.3/download.html
+#
+# ======================================================================
+
+if [ -n "$http_proxy" ]; then
+    http_proxy="${http_proxy#http://}"
+    http_proxy="${http_proxy%/}"
+    proxies="-Dhttp.proxyHost=${http_proxy%:*} \
+             -Dhttp.proxyPort=${http_proxy#*:}"
+else
+    proxies=""
+fi
+
+nice -n 19 java -Xmx128m $proxies -Djava.library.path=. -Dsun.net.inetaddr.ttl=0 -Dnetworkaddress.cache.ttl=0 -Dnetworkaddress.cache.negative.ttl=0 -cp zeta.jar:zeta_client.jar zeta.ZetaClient &
diff --git a/sci-misc/zetagrid/files/zeta_progress.sh b/sci-misc/zetagrid/files/zeta_progress.sh
new file mode 100755 (executable)
index 0000000..3d3ceaa
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright 1999-2003 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/zetagrid/files/zeta_progress.sh,v 1.1 2004/12/27 21:10:25 ribosome Exp $
+
+# ======================================================================
+#  zeta_progress.sh      Start script for the ZetaGrid progress utility
+# ----------------------------------------------------------------------
+#
+#  This script sets the environment for the ZetaGrid progress utility.
+#
+#  Please note:
+#
+#  - You must adopte the Java call below for your environment.
+#
+#  - This utility reads the progress file 'zeta_zeros.tmp'
+#    which only exists when the ZetaGrid client is running.
+#
+#  Prerequisite: Java Runtime Environment 1.2.2 or higher,
+#                e.g. http://java.sun.com/j2se/1.3/download.html
+#
+# ======================================================================
+
+java -Djava.library.path=. -cp zeta_client.jar zeta.ShowProgress
diff --git a/sci-misc/zetagrid/files/zetagrid.init b/sci-misc/zetagrid/files/zetagrid.init
new file mode 100755 (executable)
index 0000000..9549f09
--- /dev/null
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+#
+# Copyright 1999-2003 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/zetagrid/files/zetagrid.init,v 1.1 2004/12/27 21:10:25 ribosome Exp $
+
+opts="${opts} progress"
+ZETADIR=/opt/zetagrid/
+
+start() {
+        ebegin "Starting zetagrid"
+        cd ${ZETADIR}
+       JAVA_HOME="`/bin/grep -e "JAVA_HOME" /etc/profile.env | sed -e "s/^.*'\(.*\)'$/\1/"`"
+       export PATH=$PATH:$JAVA_HOME/bin
+        ./zeta.sh >> /var/log/zetagrid.log 2>&1
+        eend $? "Failed to start zetagrid"
+}
+
+stop() {
+        ebegin "Stopping zetagrid"
+        kill `ps ax | grep java | grep ZetaClient | sed -e 's/^\(.\{5\}\).*$/\1/' | tail -n 1`
+        eend $? "Failed to stop zetagrid"
+}
+
+progress() {
+        if [ 'ps ax | grep java | grep ZetaClient | sed -e 's/^\(.\{5\}\).*$/\1/' | tail -n 1' ]
+        then
+                ebegin "Showing zetagrid progress (Cancel with ^C) "
+                cd ${ZETADIR}
+                echo ""
+                ./zeta_progress.sh
+                echo ""
+                echo ""
+        else
+                eend $? "zetagrid is not started"
+        fi
+} 
diff --git a/sci-misc/zetagrid/metadata.xml b/sci-misc/zetagrid/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>
diff --git a/sci-misc/zetagrid/zetagrid-1.9.0.ebuild b/sci-misc/zetagrid/zetagrid-1.9.0.ebuild
new file mode 100644 (file)
index 0000000..0533651
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/zetagrid/zetagrid-1.9.0.ebuild,v 1.1 2004/12/27 21:10:25 ribosome Exp $
+
+S=${WORKDIR}/zetagrid-${PV}
+DESCRIPTION="An open source and platform independent grid system"
+SRC_URI="http://www.zetagrid.net/zeta/zeta_cmd_${PV}.zip http://www.zetagrid.net/zeta/add-ons/zeta_progress.zip"
+HOMEPAGE="http://www.zetagrid.net http://cvs.gentoo.org/~tantive"
+IUSE=""
+
+DEPEND="virtual/libc
+       app-arch/unzip"
+RDEPEND="virtual/jre
+       >=sys-libs/lib-compat-1.1"
+SLOT="0"
+LICENSE="ZetaGrid"
+KEYWORDS="x86 ppc sparc alpha"
+
+src_unpack() {
+       unpack zeta_cmd_${PV}.zip zeta_progress.zip
+       if test -e /opt/zetagrid/zeta.cfg; then
+           cp /opt/zetagrid/zeta.cfg ${WORKDIR}/zeta.cfg
+       fi
+}
+
+src_install() {
+       dodir /opt/zetagrid
+       cp ${FILESDIR}/zeta.sh ${D}/opt/zetagrid
+       cp ${FILESDIR}/zeta_progress.sh ${D}/opt/zetagrid
+       cp ${WORKDIR}/* ${D}/opt/zetagrid
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/zetagrid.init zetagrid
+}
+
+pkg_postinst() {
+       einfo "Zetagrid is now installed in /opt/zetagrid"
+       einfo "Please change zeta.cfg for configuration issues!"
+       einfo "More information about setup can be found at"
+       einfo "http://dev.gentoo.org/~tantive"
+       einfo
+       einfo "Zetagrid can be started using zeta.sh"
+       einfo "Progress information is displayed by zeta_progress.sh or"
+       einfo "by "java -cp zeta_progress.jar zeta.JShowProgress"."
+       einfo
+       ewarn "If you're getting an error at first execution"
+       ewarn "please run it a second time, this issue is known"
+       ewarn "and only happens at the very first start."
+}
+
diff --git a/sci-misc/zetagrid/zetagrid-1.9.1.ebuild b/sci-misc/zetagrid/zetagrid-1.9.1.ebuild
new file mode 100644 (file)
index 0000000..abd595b
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/zetagrid/zetagrid-1.9.1.ebuild,v 1.1 2004/12/27 21:10:25 ribosome Exp $
+
+S=${WORKDIR}/zetagrid-${PV}
+DESCRIPTION="An open source and platform independent grid system"
+SRC_URI="http://www.zetagrid.net/zeta/zeta_cmd_${PV}.zip http://www.zetagrid.net/zeta/add-ons/zeta_progress.zip"
+HOMEPAGE="http://www.zetagrid.net http://cvs.gentoo.org/~tantive"
+IUSE=""
+
+DEPEND="virtual/libc
+       app-arch/unzip"
+RDEPEND="virtual/jre
+       >=sys-libs/lib-compat-1.1"
+SLOT="0"
+LICENSE="ZetaGrid"
+KEYWORDS="x86 ppc sparc alpha"
+
+src_unpack() {
+       unpack zeta_cmd_${PV}.zip zeta_progress.zip
+       if test -e /opt/zetagrid/zeta.cfg; then
+           cp /opt/zetagrid/zeta.cfg ${WORKDIR}/zeta.cfg
+       fi
+}
+
+src_install() {
+       dodir /opt/zetagrid
+       cp ${FILESDIR}/zeta.sh ${D}/opt/zetagrid
+       cp ${FILESDIR}/zeta_progress.sh ${D}/opt/zetagrid
+       cp ${WORKDIR}/* ${D}/opt/zetagrid
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/zetagrid.init zetagrid
+}
+
+pkg_postinst() {
+       einfo "Zetagrid is now installed in /opt/zetagrid"
+       einfo "Please change zeta.cfg for configuration issues!"
+       einfo "More information about setup can be found at"
+       einfo "http://dev.gentoo.org/~tantive"
+       einfo
+       einfo "Zetagrid can be started using zeta.sh"
+       einfo "Progress information is displayed by zeta_progress.sh or"
+       einfo "by "java -cp zeta_progress.jar zeta.JShowProgress"."
+       einfo
+       ewarn "If you're getting an error at first execution"
+       ewarn "please run it a second time, this issue is known"
+       ewarn "and only happens at the very first start."
+}
+