aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2001-07-04 14:27:58 +0000
committerKevin Lo <kevlo@FreeBSD.org>2001-07-04 14:27:58 +0000
commitb71d2571364169c31280b9ad4943bef7a603e79a (patch)
treefdcc6fe9e1311ee32cc7548e43bc7fb3c5b215fb /astro
parentb4e642da75ed93f63fa8c58bd63408787bce745b (diff)
downloadports-b71d2571364169c31280b9ad4943bef7a603e79a.tar.gz
ports-b71d2571364169c31280b9ad4943bef7a603e79a.zip
Notes
Diffstat (limited to 'astro')
-rw-r--r--astro/setiathome/files/setiathome.sh9
-rw-r--r--astro/setiathome/pkg-plist1
2 files changed, 7 insertions, 3 deletions
diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh
index 23868446c3d3..6608d233e924 100644
--- a/astro/setiathome/files/setiathome.sh
+++ b/astro/setiathome/files/setiathome.sh
@@ -1,5 +1,6 @@
#!/bin/sh
-
+#
+# $FreeBSD$
#
# Start or stop setiathome, or set up working directory and register
#
@@ -10,6 +11,7 @@ seti_bindir=!!SUBDIR!! # exec directory relative to ${PREFIX}
seti_command=setiathome # command name
seti_std_args=-email # command arguments for standard mode
seti_reg_args=-login # command arguments for register mode
+seti_proxy_args= # proxy arguments
seti_user=nobody # user id to run as
seti_nice=1 # nice level to run at
seti_maxprocs=`sysctl -n hw.ncpu` # max. number of processes to start
@@ -50,7 +52,7 @@ case $1 in
su -fm ${seti_user} -c "\
(cd ${seti_wrkdir}/${i} && \
exec ${PREFIX}/${seti_bindir}/${seti_command} \
- ${seti_std_args} \
+ ${seti_std_args} ${seti_proxy_args} \
${seti_nice+-nice} ${seti_nice} >/dev/null &)"
echo -n " SETI@home"
done
@@ -65,6 +67,7 @@ case $1 in
mkdir -p ${seti_wrkdir}
chown ${seti_user} ${seti_wrkdir}
chmod u=Xrw,g=Xr,o=Xr ${seti_wrkdir}
+ seti_dontlogin=no
if [ -f ${seti_wrkdir}/user_info.sah ]; then
echo " It seems you have already registered with SETI@home. Would you like"
echo -n " to repeat the procedure? [Y/n] "
@@ -78,7 +81,7 @@ case $1 in
su -fm ${seti_user} -c "\
cd ${seti_wrkdir} && \
exec ${PREFIX}/${seti_bindir}/${seti_command} \
- ${seti_reg_args}"
+ ${seti_reg_args} ${seti_proxy_args}"
fi
if [ ${seti_maxprocs} -gt 1 ]; then
diff --git a/astro/setiathome/pkg-plist b/astro/setiathome/pkg-plist
index 25566c85725e..436df1983140 100644
--- a/astro/setiathome/pkg-plist
+++ b/astro/setiathome/pkg-plist
@@ -1 +1,2 @@
etc/rc.d/setiathome.sh
+sbin/setiathome