summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2002-07-19 20:11:29 +0000
committerRyan Phillips <rphillips@gentoo.org>2002-07-19 20:11:29 +0000
commit24f956fe58c9c6ae7485b5ccc495e934c9243d16 (patch)
tree5c6720cfab053ec314616f01272f7d9e1592b71b /app-sci
parentInitial gnustep-guile ebuild. (diff)
downloadgentoo-2-24f956fe58c9c6ae7485b5ccc495e934c9243d16.tar.gz
gentoo-2-24f956fe58c9c6ae7485b5ccc495e934c9243d16.tar.bz2
gentoo-2-24f956fe58c9c6ae7485b5ccc495e934c9243d16.zip
New package. Fixes #3286
Diffstat (limited to 'app-sci')
-rw-r--r--app-sci/setiathome/ChangeLog15
-rw-r--r--app-sci/setiathome/files/digest-setiathome-3.03-r10
-rw-r--r--app-sci/setiathome/files/seti-conf.d-r17
-rw-r--r--app-sci/setiathome/files/seti-init.d-r131
-rw-r--r--app-sci/setiathome/setiathome-3.03-r1.ebuild73
5 files changed, 126 insertions, 0 deletions
diff --git a/app-sci/setiathome/ChangeLog b/app-sci/setiathome/ChangeLog
new file mode 100644
index 000000000000..34c0ccaa176b
--- /dev/null
+++ b/app-sci/setiathome/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for app-sci/setiathome
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/app-sci/setiathome/ChangeLog,v 1.1 2002/07/19 20:11:29 rphillips Exp $
+
+*setiathome-3.03 (19 Jul 2002)
+
+ 19 Jul 2002; Ryan Phillips <rphillips@gentoo.org> ChangeLog :
+
+ Author: Maik Schreiber <bZ@iq-computing.de>
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/app-sci/setiathome/files/digest-setiathome-3.03-r1 b/app-sci/setiathome/files/digest-setiathome-3.03-r1
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/app-sci/setiathome/files/digest-setiathome-3.03-r1
diff --git a/app-sci/setiathome/files/seti-conf.d-r1 b/app-sci/setiathome/files/seti-conf.d-r1
new file mode 100644
index 000000000000..73dd342d6ef1
--- /dev/null
+++ b/app-sci/setiathome/files/seti-conf.d-r1
@@ -0,0 +1,7 @@
+# Config file for /etc/init.d/setiathome
+
+# set up any options you want for setiathome here
+# for more info, `setiathome -h`
+SETIATHOME_OPTIONS="-nice 19"
+
+# this is the directory where setiathome's data files will be stored
diff --git a/app-sci/setiathome/files/seti-init.d-r1 b/app-sci/setiathome/files/seti-init.d-r1
new file mode 100644
index 000000000000..975587cad36a
--- /dev/null
+++ b/app-sci/setiathome/files/seti-init.d-r1
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+
+checkconfig() {
+ if [ ! -e ${SETIATHOME_DIR} ]
+ then
+ einfo "Creating ${SETIATHOME_DIR}"
+ mkdir ${SETIATHOME_DIR}
+ fi
+
+ if [ ! -e ${SETIATHOME_DIR}/user_info.sah ]
+ then
+ einfo "Setting up SETI@home for the first time"
+ cd ${SETIATHOME_DIR}
+ setiathome -login
+ fi
+}
+
+start() {
+ checkconfig
+
+ ebegin "Starting SETI@home"
+ cd ${SETIATHOME_DIR}
+ ./setiathome ${SETIATHOME_OPTIONS} >&/dev/null&
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping SETI@home"
+ killall setiathome
+ eend $?
+}
diff --git a/app-sci/setiathome/setiathome-3.03-r1.ebuild b/app-sci/setiathome/setiathome-3.03-r1.ebuild
new file mode 100644
index 000000000000..69b4b6a1d093
--- /dev/null
+++ b/app-sci/setiathome/setiathome-3.03-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/setiathome/setiathome-3.03-r1.ebuild,v 1.1 2002/07/19 20:11:29 rphillips Exp $
+
+# generic archive name, this should be a link to the real archive
+A="${P}.tar"
+
+# this directory will not exist at first, we rename the real directory
+# to this name later
+S="${WORKDIR}/${P}"
+
+# no version number on this install dir since upgrades will be using same dir
+# (data will be stored here too)
+I=/opt/setiathome
+
+DESCRIPTION="Search for Extraterrestrial Intelligence (SETI) @ home"
+HOMEPAGE="http://setiathome.ssl.berkeley.edu"
+DEPEND=">=virtual/glibc-2.1
+ >=sys-apps/baselayout-1.8.0"
+RDEPEND=">=virtual/glibc-2.1
+ X? ( x11-base/xfree )"
+
+src_unpack () {
+ if [ ! -e ${DISTDIR}/${A} ] ; then
+ einfo "Please download the appropriate setiathome archive"
+ einfo "for your system's architecture from:"
+ einfo "http://setiathome.ssl.berkeley.edu/unix.html"
+ einfo ""
+ einfo "The archive should be placed into /usr/portage/distfiles."
+ einfo "After that, create a symbolic link:"
+ einfo ""
+ einfo "\tln -s <archive> ${DISTDIR}/${A}"
+
+ die "package archive not found"
+ fi
+
+ cd ${WORKDIR}
+ tar xf ${DISTDIR}/${A}
+
+ # find real directory ...
+ dir="`find . -type d -name "${P}*" -mindepth 1 -maxdepth 1 | \
+ cut -b "3-"`"
+ # ... and rename it to our desired directory name
+ mv "${dir}" "${P}"
+}
+
+src_install () {
+ dodir ${I}
+ cp {setiathome,README} ${D}/${I}
+ use X && cp {xsetiathome,README.xsetiathome} ${D}/${I}
+ chown nobody.nogroup ${D}/${I}
+ chown nobody.nogroup ${D}/${I}/setiathome
+ chmod +s ${S}/setiathome
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/seti-init.d-r1 setiathome
+ insinto /etc/conf.d ; newins ${FILESDIR}/seti-conf.d-r1 setiathome
+ echo "SETIATHOME_DIR=${I}">> ${D}/etc/conf.d/setiathome
+}
+
+pkg_postinst () {
+ einfo "To run SETI@home in the background at boot:"
+ einfo " Edit /etc/conf.d/setiathome to setup"
+ einfo " Then just run \`/etc/init.d/setiathome start\`"
+ einfo ""
+ einfo "Otherwise remember to cd into the directory"
+ einfo "where it should keep its data files first, like so:"
+ einfo " cd ${I} && ./setiathome"
+}
+
+pkg_postrm () {
+ einfo "SETI@home data files were not removed."
+ einfo " Remove them manually from ${I}"
+}