summaryrefslogtreecommitdiff
path: root/astro/setiathome
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-12-15 01:34:04 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-12-15 01:34:04 +0000
commita25526c8f7c0a715182a4a76e6606b628198c723 (patch)
tree34583e6ef23725a321bcb1bd2122104f580a2c40 /astro/setiathome
parentFix CONFIGURE_ARGS entry typo (diff)
The SETI@home project moves to a new software client based on BOINC.
Please install astro/boinc-setiathome. See http://setiathome.ssl.berkeley.edu/, November 15, 2005 for more information. PR: ports/89525 Submitted by: Edwin Groothuis <edwin@mavetju.org>
Notes
Notes: svn path=/head/; revision=151205
Diffstat (limited to 'astro/setiathome')
-rw-r--r--astro/setiathome/Makefile208
-rw-r--r--astro/setiathome/distinfo1
-rw-r--r--astro/setiathome/distinfo.alpha1
-rw-r--r--astro/setiathome/files/rc.setiathome.conf17
-rw-r--r--astro/setiathome/files/setiathome.1335
-rw-r--r--astro/setiathome/files/setiathome.bin142
-rw-r--r--astro/setiathome/files/setiathome.sh228
-rw-r--r--astro/setiathome/files/xsetiathome.184
-rw-r--r--astro/setiathome/pkg-descr8
-rw-r--r--astro/setiathome/pkg-install161
-rw-r--r--astro/setiathome/pkg-message7
-rw-r--r--astro/setiathome/pkg-plist8
12 files changed, 0 insertions, 1200 deletions
diff --git a/astro/setiathome/Makefile b/astro/setiathome/Makefile
deleted file mode 100644
index 4e5f4572358b..000000000000
--- a/astro/setiathome/Makefile
+++ /dev/null
@@ -1,208 +0,0 @@
-# Ports collection makefile for: setiathome
-# Date created: 22 Apr 1999
-# Whom: stb@freebsd.org
-#
-# $FreeBSD$
-
-PORTNAME= setiathome
-PORTVERSION?= 3.08
-PORTREVISION?= 3
-CATEGORIES?= astro
-MASTER_SITES= ftp://ftp.cdrom.com/pub/setiathome/ \
- ftp://alien.ssl.berkeley.edu/pub/
-DISTNAME= ${PORTNAME}-${PORTVERSION}.${PORT_HOST}
-EXTRACT_SUFX= .tar
-
-MAINTAINER?= ports@FreeBSD.org
-COMMENT?= Donate idle cycles to the search for space aliens
-
-DEPRECATED= Will stop working on 2005-12-15 (see http://setiathome.ssl.berkeley.edu/), use astro/boinc-setiathome.
-EXPIRATION_DATE=2005-12-15
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500000
-LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
-.endif
-
-# Global variables
-#
-
-.if !defined(BATCH)
-IS_INTERACTIVE= yes
-.endif
-
-ONLY_FOR_ARCHS?= i386 # alpha
-
-NO_BUILD= binary distribution
-NO_CDROM= interactive install
-
-.if ${OSVERSION} < 400000
-IGNORE= "supports only FreeBSD 4.0 and above"
-.endif
-
-EXTRACT_CMD= ${CAT}
-EXTRACT_BEFORE_ARGS=
-
-STRIP= # aout is already stripped
-SCRIPTS_ENV+= PKG_PREFIX=${PREFIX}
-PLIST_SUB= X11PORTS=${X11PORTS} \
- PREFX="${PKGNAMEPREFIX}" SUFX="${PKGNAMESUFFIX}"
-
-MAN1= ${PORTNAME}.1
-
-MSG_FILE= ${PKGDIR}/pkg-message
-PKGMESSAGE= ${WRKDIR}/pkg-message
-PKGDEINSTALL= ${PKGINSTALL}
-
-# Port specific variables
-#
-
-PORT_CPU?= ${ARCH}
-.if ${ARCH} == alpha
-PORT_VENDOR= compaq
-PORT_OSNAME= T64U
-PORT_OSREL= v4.0d
-.else
-PORT_VENDOR?= unknown
-PORT_OSNAME?= freebsd
-PORT_OSREL?= 4.0
-.endif
-PORT_OS= ${PORT_OSNAME}${PORT_OSREL}
-PORT_HOST= ${PORT_CPU}-${PORT_VENDOR}-${PORT_OS}
-
-# Arch/OS specific variables
-#
-
-.if ${ARCH} != i386
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
-.elif ${PORT_OSNAME} != freebsd
-PKGNAMEPREFIX= ${PORT_OSNAME}-
-PKGNAMESUFFIX= -${PORT_CPU}
-MD5_FILE= ${.CURDIR}/distinfo
-DESCR= ${.CURDIR}/pkg-descr
-.if ${PORT_OSNAME} == linux
-.if !exists(${LINUXBASE}/usr/X11R6/lib/libXaw.so.7)
-NO_XBIN= libXaw.so.7 is missing from linux_base-6
-.endif
-.endif
-.endif
-
-# Local variables
-#
-
-LBIN_DIR= ${PREFIX}/libexec
-SBIN_DIR= ${PREFIX}/sbin
-CONF_DIR= ${PREFIX}/etc
-RC_DIR= ${PREFIX}/etc/rc.d
-
-SAMP_SUFX= .sample
-
-BIN_FILE= setiathome
-RC_FILES= setiathome
-
-# Linux NOTES:
-# xsetiathome requires libXawk.so.7 which is missing from linux_base-6.
-
-.if !defined(NO_XBIN)
-MAN1+= x${PORTNAME}.1
-XBIN_DIR= ${PREFIX}/bin
-XBIN_FILE= xsetiathome
-X11PORTS=
-.else
-X11PORTS= "@comment "
-.endif
-
-# Post-patch
-#
-
-post-patch: patch-pkgmessage patch-man
-
-patch-pkgmessage:
- @${SED} 's|%%PREFIX%%|${PREFIX}|g; \
- s|%%PREFX%%|${PKGNAMEPREFIX}|g; \
- s|%%SUFX%%|${PKGNAMESUFFIX}|g' \
- ${MSG_FILE} > ${PKGMESSAGE}
-
-patch-man:
-.for mansect in 1
-.for man in ${MAN${mansect}}
- @${SED} 's|%%PREFIX%%|${PREFIX}|g; \
- s|%%PREFX%%|${PKGNAMEPREFIX}|g; \
- s|%%SUFX%%|${PKGNAMESUFFIX}|g' \
- ${FILESDIR}/${man} > ${WRKDIR}/${man}
-.endfor
-.endfor
-
-# Install
-#
-
-do-install: install-daemon install-program install-man
-
-install-daemon:
- @${INSTALL_PROGRAM} ${WRKSRC}/${BIN_FILE} \
- ${SBIN_DIR}/${PKGNAMEPREFIX}${BIN_FILE}${PKGNAMESUFFIX}
-
-install-program:
-.if defined(XBIN_FILE)
- @${INSTALL_PROGRAM} ${WRKSRC}/${XBIN_FILE} \
- ${XBIN_DIR}/${PKGNAMEPREFIX}${XBIN_FILE}${PKGNAMESUFFIX}
-.endif
-
-install-man:
-.for mansect in 1
-.for man in ${MAN${mansect}}
- @${INSTALL_MAN} ${WRKDIR}/${man} \
- ${MAN${mansect}PREFIX}/man/man${mansect}
-.endfor
-.endfor
-
-# Post-install
-#
-
-post-install: install-startup-files configure-package display-message
-
-install-startup-files:
-.for file in ${RC_FILES}
-.if exists(${FILESDIR}/rc.${file}.conf)
- @${INSTALL_DATA} ${FILESDIR}/rc.${file}.conf \
- ${CONF_DIR}/rc.${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.conf${SAMP_SUFX}
-.if !exists(${CONF_DIR}/rc.${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.conf)
- @${INSTALL_DATA} ${FILESDIR}/rc.${file}.conf \
- ${CONF_DIR}/rc.${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.conf
-.endif
-.endif
-.if defined(PKGNAMEPREFIX) && !empty(PKGNAMEPREFIX)
- -@${CHMOD} -x ${RC_DIR}/*${file}*.sh 2> /dev/null
-.endif
-.if exists(${FILESDIR}/${file}.sh)
- @${INSTALL_SCRIPT} ${FILESDIR}/${file}.sh \
- ${RC_DIR}/${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.sh
-.endif
-.if exists(${FILESDIR}/${file}.bin)
- @${INSTALL_SCRIPT} ${FILESDIR}/${file}.bin \
- ${LBIN_DIR}/${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.bin
-.endif
-.endfor
-
-configure-package:
-.if !defined(BATCH)
- @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-.endif
-
-display-message:
-.if !defined(BATCH)
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_MSG}
-.endif
-
-# Maintainer use only
-#
-
-maintainer-makesum:
-.for arch in ${ONLY_FOR_ARCHS}
- ${MAKE} ARCH=${arch} makesum
-.endfor
-
-.include <bsd.port.post.mk>
diff --git a/astro/setiathome/distinfo b/astro/setiathome/distinfo
deleted file mode 100644
index 2409a3f71c12..000000000000
--- a/astro/setiathome/distinfo
+++ /dev/null
@@ -1 +0,0 @@
-MD5 (setiathome-3.08.i386-unknown-freebsd4.0.tar) = f6ba42a3bd93313cf61df62cde3c262e
diff --git a/astro/setiathome/distinfo.alpha b/astro/setiathome/distinfo.alpha
deleted file mode 100644
index ce9daf81ac1f..000000000000
--- a/astro/setiathome/distinfo.alpha
+++ /dev/null
@@ -1 +0,0 @@
-MD5 (setiathome-3.03.alpha-compaq-T64Uv4.0d.tar) = 6d5fae078058da9620eb528ce2103a98
diff --git a/astro/setiathome/files/rc.setiathome.conf b/astro/setiathome/files/rc.setiathome.conf
deleted file mode 100644
index 209917e17e36..000000000000
--- a/astro/setiathome/files/rc.setiathome.conf
+++ /dev/null
@@ -1,17 +0,0 @@
-# $FreeBSD$
-#
-# SETI@home startup configuration file.
-#
-
-# seti_wrkdir=/var/db/${rc_file%.sh} # primary working directory
-# seti_std_args="-email -graphics" # startup command line arguments
-# seti_reg_args=-login # command line arguments to register
-# seti_proxy_server= # HTTP proxy server (hostname:port)
-# seti_socks_server= # SOCKS proxy server (hostname:port)
-# seti_socks_user= # SOCKS proxy user name
-# seti_socks_passwd= # SOCKS proxy password
-# seti_user=setiathome # user name to run as
-# seti_group=${seti_user} # group name to run as
-# seti_nice=15 # nice level to run at
-# seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start
-# seti_sleep_time=21600 # time to sleep between restarts
diff --git a/astro/setiathome/files/setiathome.1 b/astro/setiathome/files/setiathome.1
deleted file mode 100644
index 3ad84bf3fd53..000000000000
--- a/astro/setiathome/files/setiathome.1
+++ /dev/null
@@ -1,335 +0,0 @@
-.\" $FreeBSD$
-.Dd Dec 12, 2000
-.Dt setiathome 1 LOCAL
-.Os FreeBSD
-.Sh NAME
-.Nm setiathome
-.Nd the SETI@home client program
-.Sh SYNOPSIS
-.Nm
-.Op Ar options
-.Sh DESCRIPTION
-.Nm
-is the
-.Ux
-version of the
-.Tn SETI@home
-client.
-It downloads radio telescope data from a network server,
-analyzes the data looking for signals of extraterrestrial origin,
-and uploads results to the server, repeating this cycle indefinitely.
-See
-.Li http://setiathome.berkeley.edu
-for more information.
-.Pp
-The first time you run
-.Nm
-it will interactively
-ask you for E-mail address, name, country etc.
-This info is stored in a file and no interaction is
-needed when you run the program subsequently.
-.Pp
-After this you can run
-.Nm
-in the background,
-and direct its output to
-.Pa /dev/null
-if you like.
-.Pp
-.Nm
-can be freely stopped and restarted.
-It saves its state in files, and will pick up where it left off.
-.Pp
-If you want to run multiple instances of
-.Nm
-(on a multiprocessor machine, or on multiple machines
-that share a filesystem) each one must be run in a different directory.
-.Sh IMPLEMENTATION NOTES
-.Nm
-requires about 0.5\ MBytes of disk space per working directory, and about
-15\ MBytes of memory per instance.
-If you have ample physical memory, its work load should be almost undetectable.
-Additionally,
-.Nm
-requires a permanent or
-.Dq dial on demand
-Internet connection to upload results to and download new work units from the
-.Tn SETI@home
-server at any time.
-.Sh OPTIONS
-.Bl -tag -width countries
-.It Fl countries
-Show list of country codes.
-.It Fl email
-Send E-mail (to login E-mail address) on errors.
-Useful if you run in background directed to
-.Pa /dev/null .
-.It Fl graphics
-Generate a data stream for the
-.Xr xsetiathome 1
-graphical interface.
-.It Fl login
-Login or create new account.
-.It Fl nice Ar N
-Set
-.Xr nice 1
-priority to
-.Ar N
-(default 1).
-.It Fl nolock
-Omit the multiple-instance check, which uses file locking
-(not available on some NFS systems).
-.It Fl proxy Ar hostname : Ns Ar port
-Connect to
-.Tn SETI@home
-server via specified HTTP proxy server and port.
-.It Fl socks_passwd Ar password
-SOCKS
-.Ar password .
-.It Fl socks_server Ar hostname : Ns Ar port
-Connect to
-.Tn SETI@home
-server via specified SOCKS server and port.
-Overrides
-.Ev SOCKS_SERVER .
-SOCKS versions 4 and 5 are supported.
-.It Fl socks_user Ar name
-SOCKS user
-.Ar name .
-.It Fl stop_after_process
-Stop after processing current work unit.
-Do not send result.
-.It Fl stop_after_xfer
-Stop after current work unit has been sent to the SETI
-server and a new work unit has been obtained.
-(See also
-.Pa stop_after_send.txt
-mentioned in
-.Sx FILES
-below.)
-.It Fl verbose
-Print a running summary of the work being done.
-.It Fl version
-Show software version.
-.El
-.Sh USAGE
-.Ss Starting setiathome
-This
-.Fx
-port includes a start-up script that starts
-.Nm
-at system start-up and stop it at system shut-down.
-.Ss Stopping setiathome
-There is two way to stop
-.Nm ,
-gracefully (See
-.Pa stop_after_send.txt
-mentioned in
-.Sx FILES
-below) and urgently (using kill as done at system shut-down time).
-To do so, respectively run
-.Pp
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh gracefull
-or
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh stop
-.Ss Configuration File
-The optional configuration file
-.Pa %%PREFIX%%/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf
-may contain one or more of the following variable assignments to override
-their default values:
-.Bl -tag -width seti_wrkdir
-.It Pa seti_wrkdir=/var/db/setiathome
-The working directory where
-.Nm
-will store it's temporary files.
-.It Pa seti_std_args=-email and/or -graphics
-The command line arguments for normal start-up.
-.It Pa seti_reg_args=-login
-The command line arguments for registration.
-.It Pa seti_proxy_server=hostname:port
-The HTTP proxy server and port to connect through.
-.It Pa seti_socks_server=hostname:port
-The SOCKS server and port to connect through.
-.It Pa seti_socks_user=username
-The SOCKS user name to connect with.
-.It Pa seti_socks_passwd=password
-The SOCKS password to connect with.
-.It Pa seti_user=setiathome
-The user to run
-.Nm
-as.
-.It Pa seti_group=setiathome
-The group to run
-.Nm
-as (only used at registration time).
-.It Pa seti_nice=15
-The
-.Xr nice 1
-value to run
-.Nm
-at.
-.It Pa seti_maxprocs= Ns Va Number of CPUs
-The number of
-.Nm
-processes to run concurrently. Defaults to the number of CPUs installed.
-Running more than one instance per CPU is not useful, as
-.Nm
-is almost completely CPU-bound.
-.It Pa seti_sleep_time=21600
-The time to sleep (in seconds) between restarts if the
-.Nm
-data server is unresponsive.
-.El
-.Pp
-If you change values in the configuration file, you need to stop and start
-.Nm Ns ,
-and possibly reconfigure the working directory for the changes to take
-effect. Run
-.Pp
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh stop
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh register
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh start
-.Pp
-to do that.
-.Ss Setting up setiathome
-You can use the start-up script to set up a working directory
-and register with or log in to
-.Tn SETI@home
-by calling it with the argument
-.Ar register .
-If you'd like to configure and run it manually, you should first disable the
-start-up script. Then, for each
-.Nm
-instance you'd like to run, create a directory, make it owned by the user
-you'd like to run
-.Nm
-as, and run
-.Ic setiathome -login
-in that directory.
-.Pp
-Then, arrange for
-.Nm
-to be started automatically. You can easily do so by adding a line similiar
-to
-.Bd -ragged -offset indent
-.Li */10 * * * * cd
-.Va working directory
-.Li && setiathome -email >/dev/null
-.Ed
-.Pp
-to the user's crontab.
-.Sh ENVIRONMENT
-.Bl -tag -width SOCKS_SERVER
-.It Ev HTTP_PROXY
-If defined,
-.Nm
-will connect through a proxy server, specified as
-.Do Ns Va hostname Ns
-.Op Li : Ns Va port
-.Dc .
-.It Ev SOCKS_SERVER
-If defined,
-.Nm
-will connect through a SOCKS server, specified as
-.Do Ns Va hostname Ns
-.Op Li : Ns Va port
-.Dc .
-.It Ev SOCKS_USER , Ev SOCKS_PASSWD
-If defined, these will be used as the login name and password
-for the SOCKS server.
-Otherwise
-.Nm
-will query you.
-.El
-.Sh FILES
-.Bl -tag -width /var/db -compact
-.It Pa %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh
-Start-up script.
-.Pp
-.It Pa %%PREFIX%%/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf
-Optional configuration file for the start-up script.
-.Pp
-.It Pa /var/db/setiathome/
-Primary working directory.
-.Pp
-.It Pa /var/db/setiathome/user_info.sah
-Registration data.
-.Pp
-.It Pa /var/db/setiathome/ Ns Va n Ns Pa /
-Working directories for additional process
-.Va n
-(when running more than one instance).
-.Pp
-.It Pa /var/db/setiathome/ Ns Xo
-.Op Ns Va n Ns Pa / Ns
-.Pa lock.sah
-.Xc
-Lock file to prevent multiple instances to work on the same data.
-.Pp
-.It Pa /var/db/setiathome/ Ns Xo
-.Op Ns Va n Ns Pa / Ns
-.Pa *.sah
-.Xc
-Working files.
-These should not be modified.
-.Pp
-.It Pa /var/db/setiathome/ Ns Xo
-.Op Ns Va n Ns Pa / Ns
-.Pa pid.sah
-.Xc
-The process ID of the current instance.
-.Pp
-.It Pa /var/db/setiathome/ Ns Xo
-.Op Ns Va n Ns Pa / Ns
-.Pa stop_after_send.txt
-.Xc
-While the client is running, touch this file in the working directory
-to finish up your current work unit, return your result, and not
-download a new work unit.
-When the processing is finished, and the result sent, the client will stop.
-Note this one file extension is
-.Pa .txt ,
-while all other files used by
-the client have extensions
-.Pa .sah .
-.El
-.Sh SEE ALSO
-.Xr xsetiathome 1 ,
-.Xr ipcs 1 ,
-.Xr ipcrm 1 .
-.Sh AUTHORS
-.Tn SETI@home
-was developed by David Anderson, Jeff Cobb, Charles Congdon, Charlie Fenton,
-David Gedye, Kyle Granger, Eric Korpela, Matt Lebofsky, Peter Leiser, Brad
-Silen, Woody Sullivan, and Dan Werthimer.
-.Pp
-.An Stefan Bethke Aq stb@freebsd.org
-amended the original manual page for this
-.Fx
-port.
-.Sh BUGS
-Outstanding shared memory segments and semaphores may be left
-active in case of an abnormal exit of the
-.Ic setiathome -graphics
-process. These can prevent any future invocation of
-.Ic setiathome -graphics .
-To resolve this problem, use
-.Xr ipcs 1
-and
-.Xr ipcrm 1
-to remove shared memory segments and semaphores that
-are not associated with a process. This behavior may vary
-depending upon how your
-.Ux
-system handles this situation.
-.Pp
-For version 3.* clients, the estimated progress as indicated
-by the
-.Pa prog=
-line in the
-.Pa state.sah
-file in not exactly linear
-in relationship to completion time. Using this value to
-predict completion time may not be completely accurate.
-The linear relationship will vary depending upon the characteristics
-of the work unit parameters.
diff --git a/astro/setiathome/files/setiathome.bin b/astro/setiathome/files/setiathome.bin
deleted file mode 100644
index 9e4a54c69670..000000000000
--- a/astro/setiathome/files/setiathome.bin
+++ /dev/null
@@ -1,142 +0,0 @@
-#!/bin/sh -T
-
-# $FreeBSD$
-
-# Copyright (c) 2003 Cyrille Lefevre. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in
-# the documentation and/or other materials provided with the
-# distribution.
-# 3. The name of the authors and contributors may not be used to
-# endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS''
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS
-# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
-# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
-# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-
-setistart () { # dir
- local dir
- dir=$1
-
- # goto the startup dir
- cd ${dir} || return
-
- # don't start a dying client
- [ -f stop_after_send.txt ] && return
-
- # fire up a setiathome client
- ${program_path} ${program_args} > /dev/null &
-
- # memorize the startup dir
- eval pid_$!=${dir}
- # and the client process ID
- setipids="${setipids} $!"
-}
-
-setikill () { # SIGTERM handler
- local pids pid
-
- # save pids to kill
- pids="${sleeppid} ${setipids}"
- # avoid futher setiathome startup
- unset setipids
-
- # kill'em all if any
- for pid in ${pids}; do
- ps p ${pid} > /dev/null && kill ${pid}
- done
-}
-
-setirestart () { # SIGCHLD handler
- local pids pid dir
-
- # killing in progress
- [ -n "${setipids}" ] || return
- # restart in process
- [ -n "${sleeppids}" ] && return
-
- # wait for setiathome servers to come up
- sleep ${seti_sleep_time} &
-
- # wait even if more than one setiathome client dies
- sleeppid=$!
- while ps p ${sleeppid} > /dev/null; do
- wait ${sleeppid}
- done
- unset sleeppid
-
- # killing while sleeping
- [ -n "${setipids}" ] || return
-
- # save pids to restart
- pids=${setipids}
- # reset the process ID list
- unset setipids
-
- for pid in ${pids}; do
- if ps p ${pid} > /dev/null; then
- # still alive
- setipids="${setipids} ${pid}"
- else
- # backup the startup dir
- eval dir=\${pid_${pid}}
- # clean the old one
- unset pid_${pid}
- # launch the dead client
- eval setistart ${dir}
- fi
- done
-}
-
-if [ -z "${program_path}" ]; then
- case $0 in
- /*) rc_dir=${0%/*} ;;
- *) rc_dir=${PWD:-$(pwd)} ;;
- esac
- rc_file=${0##*/}
- rc_path=${rc_dir}/${rc_file}
-
- if ! PREFIX=$(expr ${rc_path} : "\(/.*\)/libexec/${rc_file}\$"); then
- echo "${rc_file}: Cannot determine PREFIX." >&2
- echo "Please use the complete pathname." >&2
- exit 64
- fi
-
- echo "Don't use this script directly, uses the following one instead :" >&2
- echo " ${PREFIX}/etc/rc.d/${rc_file%.bin}.sh start" >&2
- exit 1
-fi
-
-# save this shell process ID
-echo $$ > ${seti_wrkdir}/shpid.sah
-
-# setup handlers
-trap setikill TERM
-trap setirestart CHLD
-
-# startup setiathome client(s)
-for dir in ${seti_wrksuff}; do
- setistart ${seti_wrkdir}/${dir}
-done
-
-# wait for them until death
-while [ -n "${setipids}" ]; do
- wait
-done
diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh
deleted file mode 100644
index 3823454a9489..000000000000
--- a/astro/setiathome/files/setiathome.sh
+++ /dev/null
@@ -1,228 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# Start or stop SETI@home, or set up working directory and register.
-#
-
-case $0 in
-/*) rc_dir=${0%/*} ;;
- *) rc_dir=${PWD:-$(pwd)} ;;
-esac
-rc_file=${0##*/}
-rc_path=${rc_dir}/${rc_file}
-rc_arg=$1
-
-# override these variables in ${PREFIX}/etc/rc.setiathome.conf
-set -a
-seti_wrkdir=/var/db/${rc_file%.sh} # primary working directory
-seti_std_args="-email -graphics" # startup command line arguments
-seti_reg_args=-login # command line arguments to register
-seti_proxy_server= # HTTP proxy server (hostname:port)
-seti_socks_server= # SOCKS proxy server (hostname:port)
-seti_socks_user= # SOCKS proxy user name
-seti_socks_passwd= # SOCKS proxy password
-seti_user=setiathome # user name to run as
-seti_group=${seti_user} # group name to run as
-seti_nice=15 # nice level to run at
-seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start
-seti_sleep_time=21600 # time to sleep between restarts
-set +a
-
-if ! PREFIX=$(expr ${rc_path} : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
- echo "${rc_file}: Cannot determine PREFIX." >&2
- echo "Please use the complete pathname." >&2
- exit 64
-fi
-
-rcconf_dir=${PREFIX}/etc
-rcconf_file=rc.${rc_file%.sh}.conf
-rcconf_path=${rcconf_dir}/${rcconf_file}
-
-if [ -f ${rcconf_path} ]; then
- set -a
- . ${rcconf_path}
- set +a
-fi
-
-program_dir=${PREFIX}/sbin
-program_file=${rc_file%.sh}
-program_path=${program_dir}/${program_file}
-export program_path
-
-common_args="\
-${seti_proxy_server:+-proxy} ${seti_proxy_server} \
-${seti_socks_server:+-socks_server} ${seti_socks_server} \
-${seti_socks_user:+-socks_user} ${seti_socks_user} \
-${seti_socks_passwd:+-socks_passwd} ${seti_socks_passwd} \
-${seti_nice:+-nice} ${seti_nice} \
-"
-
-program_args="${seti_std_args} ${common_args}"
-export program_args
-register_args="${seti_reg_args} ${common_args}"
-
-wrapper_dir=${PREFIX}/libexec
-wrapper_file=${rc_file%.sh}.bin
-wrapper_path=${wrapper_dir}/${wrapper_file}
-
-syslog_facility=daemon.err
-
-i=${seti_maxprocs}
-seti_wrksuff="."
-while [ ${i} -gt 1 ]; do
- seti_wrksuff="${seti_wrksuff} ${i}"
- i=$((${i} - 1))
-done
-export seti_wrksuff
-
-case "$rc_arg" in
-start)
- if [ ! -x ${program_path} ]; then
- logger -sp ${syslog_facility} -t ${program_file} \
- "unable to start: ${program_path} is missing."
- exit 72
- fi
- if [ ! -x ${wrapper_path} ]; then
- logger -sp ${syslog_facility} -t ${wrapper_file} \
- "unable to start: ${wrapper_path} is missing."
- exit 72
- fi
- for i in ${seti_wrksuff}; do
- if [ ! -d ${seti_wrkdir}/${i} ]; then
- logger -sp ${syslog_facility} -t ${program_file} \
- "unable to start: ${seti_wrkdir}/${i} is missing."
- exit 72
- fi
- if [ ! -f ${seti_wrkdir}/${i}/user_info.sah ]; then
- logger -sp ${syslog_facility} -t ${program_file} \
- "unable to start: please log in to SETI@home first" \
- "(${seti_wrkdir}/${i}/user_info.sah is missing)."
- logger -sp ${syslog_facility} -t ${program_file} \
- "run \"$0 register\" to accomplish this."
- exit 72
- fi
- done
- if ps axo ucomm | egrep ${program_file}; then
- logger -sp ${syslog_facility} -t ${program_file} \
- "unable to start: ${program_file} is already running."
- exit 72
- fi
- su -fm ${seti_user} -c "exec ${wrapper_path} > /dev/null &"
- echo -n " SETI@home"
- ;;
-
-stop)
- pid_path=${seti_wrkdir}/shpid.sah
- if [ -f ${pid_path} ]; then
- pid=$(cat ${pid_path})
- [ -n "${pid}" ] && ps p ${pid} > /dev/null && kill ${pid}
- rm -f ${pid_path}
- fi
- for i in ${seti_wrksuff}; do
- pid_path=${seti_wrkdir}/${i}/pid.sah
- if [ -f ${pid_path} ]; then
- pid=$(cat ${pid_path})
- [ -n "${pid}" ] && ps p ${pid} > /dev/null && kill ${pid}
- fi
- done
- if [ ! -f ${seti_wrkdir}/pid.sah ]; then
- killall ${program_file} 2> /dev/null
- fi
- ;;
-
-gracefull)
- for i in ${seti_wrksuff}; do
- pid_path=${seti_wrkdir}/${i}/pid.sah
- stop_path=${seti_wrkdir}/${i}/stop_after_send.txt
- if [ -f ${pid_path} ]; then
- touch ${stop_path}
- fi
- done
- ;;
-
-restart)
- $0 stop
- $0 start
- ;;
-
-status)
- ps auxww | egrep ${program_file} | egrep -v "($0|egrep)"
- ;;
-
-register)
- if [ ! -x ${program_path} ]; then
- echo "${program_file}:" \
- "unable to register: ${program_path} is missing." >&2
- exit 72
- fi
- if pw group show "${seti_group}" 2>/dev/null; then
- echo "You already have a group \"${seti_group}\"," \
- "so I will use it."
- elif pw groupadd ${seti_group} -h -; then
- echo "Added group \"${seti_group}\"."
- else
- echo "Adding group \"${seti_group}\" failed..."
- echo "Please create it, and try again."
- exit 1
- fi
- if pw user show "${seti_user}" 2>/dev/null; then
- echo "You already have a user \"${seti_user}\"," \
- "so I will use it."
- if pw usermod ${seti_user} -d ${seti_wrkdir}; then
- echo "Changed home directory of \"${seti_user}\"" \
- "to \"${seti_wrkdir}\""
- else
- echo "Changing home directory of \"${seti_user}\"" \
- "to \"${setu_wrkdir}\" failed..."
- exit 1
- fi
- elif pw useradd ${seti_user} -g ${seti_group} -h - \
- -d ${seti_wrkdir} -s /sbin/nologin -c "SETI at home Daemon"; then
- echo "Added user \"${seti_user}\"."
- else
- echo "Adding user \"${seti_user}\" failed..."
- echo "Please create it, and try again."
- exit 1
- fi
- # Create or update primary working directory (in case the uid changed)
- mkdir -p ${seti_wrkdir} || exit
- chown -Rh ${seti_user}:${seti_group} ${seti_wrkdir} || exit
- chmod u=Xrw,g=Xr,o=Xr ${seti_wrkdir} || exit
- seti_dontlogin=no
- if [ -f ${seti_wrkdir}/user_info.sah ]; then
- echo " It seems you have already registered with" \
- "SETI@home. Would you"
- echo -n " like to repeat the procedure? [Y/n] "
- read a
- if [ "X${a}" = "Xn" -o "X${a}" = "XN" ]; then
- seti_dontlogin=yes
- fi
- fi
- # No need to register if we've already done so
- if [ "X${seti_dontlogin}" != "Xyes" ]; then
- su -fm ${seti_user} -c "\
- cd ${seti_wrkdir} && \
- exec ${program_path} ${register_args}"
- fi
- if [ ${seti_maxprocs} -gt 1 ]; then
- echo " Updating additional working directories."
- i=${seti_maxprocs}
- while [ ${i} -gt 1 ]; do
- mkdir -p ${seti_wrkdir}/${i}
- chown ${seti_user} ${seti_wrkdir}/${i}
- chmod 755 ${seti_wrkdir}/${i}
- # Assume the user want's all processes to run
- # with the same registration
- rm -f ${seti_wrkdir}/${i}/user_info.sah
- ln -sf ../user_info.sah ${seti_wrkdir}/${i}
- i=$((${i} - 1))
- done
- fi
- ;;
-
-*)
- echo "usage: ${rc_file} {start|stop|gracefull|restart|status|register}" >&2
- exit 64
- ;;
-esac
diff --git a/astro/setiathome/files/xsetiathome.1 b/astro/setiathome/files/xsetiathome.1
deleted file mode 100644
index 0b0f224452d4..000000000000
--- a/astro/setiathome/files/xsetiathome.1
+++ /dev/null
@@ -1,84 +0,0 @@
-.\" $FreeBSD$
-.\"
-.Dd Dec 12, 2000
-.Dt xsetiathome 1 LOCAL
-.Os FreeBSD
-.Sh NAME
-.Nm xsetiathome
-.Nd display SETI data under X Windows
-.Sh SYNOPSIS
-.Nm
-.Op Fl fullscreen
-.Sh DESCRIPTION
-.Nm
-is a graphical display for
-.Xr setiathome 1 .
-To use it you must run
-.Xr setiathome 1
-with the
-.Fl graphics
-flag.
-.Pp
-A typical invocation of
-.Nm
-will look like this:
-.Bd -literal -offset indent
-% setiathome -graphics &
-% xsetiathome
-.Ed
-.Pp
-Alternatively,
-.Nm
-can be executed in screensaver mode,
-which requires an external application such as
-.Xr xautolock 1 .
-.Sh OPTIONS
-.Bl -tag -width fullscreenx
-.It Fl fullscreen
-Take over the entire display.
-When running in this mode, any mouse presses will exit the application.
-.El
-.Sh SEE ALSO
-.Xr setiathome 1 ,
-.Xr xautolock 1 ,
-.Xr ipcs 1 ,
-.Xr ipcrm 1 .
-.Sh BUGS
-Please note, this
-.Nm
-binary is an initial experiment.
-We are fully aware that it may have some significant bugs and
-we are continuing to work on it.
-Please do not report bugs on this binary at this time.
-.Pp
-Only one instance of
-.Ic setiathome -graphics
-can be operating at any one time on a system.
-There is no conflict resolution with the allocated shared memory
-segments and semaphores.
-Therefore, only one instance of
-.Nm
-is practical.
-.Pp
-Outstanding shared memory segments and semaphores may be left
-active in case of an abnormal exit of the
-.Ic setiathome -graphics
-process.
-These can prevent any future invocation of
-.Ic setiathome -graphics .
-To resolve this problem, use
-.Xr ipcs 1
-and
-.Xr ipcrm 1
-to remove shared memory segments and semaphores that
-are not associated with a process.
-This behavior may vary depending upon how your
-.Ux
-system handles this situation.
-.Pp
-The
-.Nm
-process may affect system performance adversely.
-This behavior may vary depending upon your version of the
-X11 Window System client libraries and/or your X server
-and its operating mode/visual depth.
diff --git a/astro/setiathome/pkg-descr b/astro/setiathome/pkg-descr
deleted file mode 100644
index 51cae75ef8b7..000000000000
--- a/astro/setiathome/pkg-descr
+++ /dev/null
@@ -1,8 +0,0 @@
-SETI@home is a scientific experiment that will harness the power of
-hundreds of thousands of Internet-connected computers in the Search for
-Extraterrestrial Intelligence (SETI). You can participate by running a
-program that downloads and analyzes radio telescope data. There's a
-small but captivating possibility that your computer will detect the
-faint murmur of a civilization beyond Earth.
-
-WWW: http://setiathome.ssl.berkeley.edu/
diff --git a/astro/setiathome/pkg-install b/astro/setiathome/pkg-install
deleted file mode 100644
index f8a894900587..000000000000
--- a/astro/setiathome/pkg-install
+++ /dev/null
@@ -1,161 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# Set up the work area and run SETI@home to login or register.
-#
-
-[ $# != 2 ] && exit 1
-[ -z "${PKG_PREFIX}" ] && exit 1
-[ -n "${BATCH}" ] && exit 0
-
-PKG_NAME=${1%%-[0-9._]*}
-PKG_ACTION=$2
-
-# override these variables in ${PREFIX}/etc/rc.setiathome.conf
-seti_wrkdir=/var/db/${PKG_NAME} # working directory
-seti_user=setiathome # user id to run under
-seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start
-
-rcconf_dir=${PKG_PREFIX}/etc
-rcconf_file=rc.${PKG_NAME}.conf
-rcconf_path=${rcconf_dir}/${rcconf_file}
-
-if [ -f ${rcconf_path} ]; then
- . ${rcconf_path}
-fi
-
-rc_dir=${PKG_PREFIX}/etc/rc.d
-rc_file=${PKG_NAME}.sh
-rc_path=${rc_dir}/${rc_file}
-
-ncpu=$(sysctl -n hw.ncpu)
-
-case "${PKG_ACTION}" in
-POST-INSTALL)
- if [ -f ${seti_wrkdir}/user_info.sah ]; then
-echo "**** SETI@home already has a working directory for temporary files and"
-echo " you seem to be already registered with SETI@home."
-echo
-echo -n " Would you like repeat the registration with SETI@home? [y/N] "
- read ans
-echo
- if [ "X${ans}" = "XY" -o "X${ans}" = "Xy" ]; then
- register=yes
- else
- register=no
- fi
- else
-echo "**** SETI@home requires a working directory for temporary files and a"
-echo " brief registration process."
-echo
-echo " Would you like to set up a working directory in ${seti_wrkdir},"
- if [ ${seti_maxprocs} -gt 1 ]; then
-echo " register with SETI@home, and let me arrange for ${ncpu} setiathome"
- if [ ${ncpu} -eq ${seti_maxprocs} ]; then
-echo " processes (one for each of your ${ncpu} CPUs) to be started"
-echo -n " automatically as user \`${seti_user}'? [Y/n] "
- else
-echo " processes (as configured) to be started automatically as user"
-echo -n " \`${seti_user}'? [Y/n] "
- fi
- else
-echo " register with SETI@home, and let me arrange for setiathome to be"
-echo -n " started automatically as user \`${seti_user}'? [Y/n] "
- fi
- read ans
-echo
- if [ "X${ans}" = "XN" -o "X${ans}" = "Xn" ]; then
-echo "**** Please set up the working directory yourself. You may use"
-echo " ${rc_path} register"
-echo " to do so. See setiathome(1) for details."
- exit 0
- else
- register=yes
- fi
- fi
- if [ "${register}" = "yes" ]; then
- ${rc_path} register
- if [ ! -f ${seti_wrkdir}/user_info.sah ]; then
-echo "unable to start setiathome: it seems registration or login failed."
-echo "See setiathome(1) for details."
- exit 0
- fi
- fi
- ${rc_path} start > /dev/null
-echo
-echo "**** Congratulations! Your system now participates in the search for"
-echo " extra-terrestrial intelligence. Be sure to visit the home page"
-echo " at http://setiathome.ssl.berkeley.edu/"
-echo " See setiathome(1) for further details."
- ;;
-
-DEINSTALL)
- if [ ! -d ${seti_wrkdir} ]; then
- exit 0
- fi
-
- ${rc_path} stop > /dev/null
-
-echo "**** SETI@home working directory and temporary files have to be"
-echo " removed to complete the deinstallation process. Of course,"
-echo " you may prefer to keep them for futher researchs? Would you"
-echo " like to remove it as well as all temporary files it may"
-echo -n " contains? [y/N] "
- read a
-echo
- if [ "X$a" != "XY" -a "X$a" != "Xy" ]; then
-echo "**** SETI@home working directory and temporary files left untouched."
- exit 0
- fi
- for i in ${seti_wrkdir}/.??* ${seti_wrkdir}/*; do
- case "${i}" in
- "${seti_wrkdir}/.??*"|"${seti_wrkdir}/*")
- continue
- ;;
- */.tkseti*|*.sah)
- [ -f ${i} ] || continue
- rm -f ${i}
- ;;
- *)
- [ -d ${i} ] || continue
- for j in ${seti_wrkdir}/*; do
- case "${j}" in
- "${seti_wrkdir}/*")
- continue
- ;;
- */.tkseti*|*.sah)
- [ -f ${j} ] || continue
- rm -f ${j}
- ;;
- esac
- done
- rmdir ${i}
- ;;
- esac
- done
- rmdir ${seti_wrkdir}
- if [ -d ${seti_wrkdir} ]; then
-echo "**** SETI@home working directory can't be removed since it contains"
-echo " non SETI@home files or directories. You have to remove it"
-echo " manually. You can use"
-echo " rm -rf ${seti_wrkdir}"
-echo " to do so, but think about it twince before."
- else
-echo "**** SETI@home working directory and temporary files removed."
- fi
- if pw usershow "${seti_user}" 2>/dev/null 1>&2; then
-echo "To permanently delete SETI@home user, use 'pw userdel ${seti_user}'"
- fi
- ;;
-
-PRE-INSTALL|POST-DEINSTALL)
- ;;
-
-*)
-echo "usage: $0 <PKG_NAME> {PRE-INSTALL|POST-INSTALL|DEINSTALL|POST-DEINSTALL}" >&2
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/astro/setiathome/pkg-message b/astro/setiathome/pkg-message
deleted file mode 100644
index b3f0e0f96ffd..000000000000
--- a/astro/setiathome/pkg-message
+++ /dev/null
@@ -1,7 +0,0 @@
-**** %%PREFIX%%/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf may be edited
- to tune some startup variables such as `seti_nice' defaulted to
- 15 and `seti_maxprocs' defaulted to your number of processors.
-**** NOTE: FreeBSD 5.x does support FreeBSD 4.0 binaries by default.
- To run setiathome, you must have the following line to your
- kernel configuration file (/sys/i386/conf/<YOUR_KERNEL>) :
- options COMPAT_FREEBSD4 # Compatible with FreeBSD 4.x
diff --git a/astro/setiathome/pkg-plist b/astro/setiathome/pkg-plist
deleted file mode 100644
index 8ce3de3307e0..000000000000
--- a/astro/setiathome/pkg-plist
+++ /dev/null
@@ -1,8 +0,0 @@
-@comment $FreeBSD$
-libexec/%%PREFX%%setiathome%%SUFX%%.bin
-sbin/%%PREFX%%setiathome%%SUFX%%
-@unexec if cmp -s %D/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf %D/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf.sample; then rm -f %D/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf; fi
-etc/rc.%%PREFX%%setiathome%%SUFX%%.conf.sample
-@exec [ -f %D/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf ] || cp %D/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf.sample %D/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf
-etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh
-%%X11PORTS%%bin/%%PREFX%%xsetiathome%%SUFX%%