diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-06-01 05:45:34 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-06-01 05:45:34 +0000 |
commit | 044a2ff8cf2fd5f4864a3e696d549a7570d607d9 (patch) | |
tree | 279a3ec4d9ff546ca3ca7afbcd6a95c992ea2dd7 /astro/setiathome/pkg-install | |
parent | - Update to 1.1.0 (diff) |
version bump to 3.08 w/ the following enhancements :
- only one master shell to monitor multiple setiathome instances
- wait some time for setiathome server to come up between restarts
- xsetiathome comes back
- -graphics is now the default (so xsetiathome may be launched)
- registration heuristic changed (see comments below)
- take care, some variable names have changed (see comments below)
- manual page reviewed
The setiathome manual page refer to setiathome.conf while it is
now named rc.setiathome.conf. also, the manual page has been
completed (variables, start/stop scripts, etc.)
- gracefull startup script option added
Makefile
PORTVERSION bumped
PORTREVISION deleted
FORBIDDEN deleted
BROKEN bumped to 4.0
NO_XBIN deleted except for linux_base-6
wrapper added
pkg-install
registration heuristic changed (don't register if already
registered, then automatically start setiathome in either
case)
pkg-list
$FreeBSD$ added
libexec/setiathome.bin added
pkg-message
FreeBSD 5.x a.out comment changed to FreeBSD 4.x comment
files/rc.setiathome.conf
seti_std_args defaulted to "-email -graphics"
seti_proxy_args changed to seti_proxy_server
seti_socks_server, seti_socks_user, seti_socks_passwd added
seti_sleep changed to seti_sleep_time
files/setiathome.1
/usr/local changed to %%PREFIX%%
above and below changes described
files/setiathome.sh
same changes as files/rc.setiathome.conf
don't start setiathome if already started
su heuristic changed to call an external wrapper
gracefull (aka apachectl :) option added using
stop_after_send.txt
PR: 50723,51759,52297,52709
Submitted by: cyrille.lefevre@laposte.net
Notes
Notes:
svn path=/head/; revision=81858
Diffstat (limited to '')
-rw-r--r-- | astro/setiathome/pkg-install | 43 |
1 files changed, 30 insertions, 13 deletions
diff --git a/astro/setiathome/pkg-install b/astro/setiathome/pkg-install index f77e51636a02..f8a894900587 100644 --- a/astro/setiathome/pkg-install +++ b/astro/setiathome/pkg-install @@ -33,37 +33,54 @@ 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 + if [ ${seti_maxprocs} -gt 1 ]; then echo " register with SETI@home, and let me arrange for ${ncpu} setiathome" - if [ ${ncpu} -eq ${seti_maxprocs} ]; then + 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 + else echo " processes (as configured) to be started automatically as user" echo -n " \`${seti_user}'? [Y/n] " - fi - else + 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 a + fi + read ans echo - if [ "X$a" = "XN" -o "X$a" = "Xn" ]; then + 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 + exit 0 + else + register=yes + fi fi - ${rc_path} register - if [ ! -f ${seti_wrkdir}/user_info.sah ]; then + 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 + exit 0 + fi fi ${rc_path} start > /dev/null echo |