Maintainer update: Do not assume the user running setiathome has a

Borne-ish shell.

Submitted by:	Cyrille Lefevre <cyrille.lefevre@laposte.net>
This commit is contained in:
Crist J. Clark 2003-04-12 17:07:42 +00:00
parent c64b3d609f
commit b61982d0c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78801
2 changed files with 12 additions and 10 deletions

View file

@ -6,7 +6,7 @@
PORTNAME= setiathome PORTNAME= setiathome
PORTVERSION?= 3.03 PORTVERSION?= 3.03
PORTREVISION?= 6 PORTREVISION?= 7
CATEGORIES?= astro CATEGORIES?= astro
MASTER_SITES= ftp://ftp.cdrom.com/pub/setiathome/ \ MASTER_SITES= ftp://ftp.cdrom.com/pub/setiathome/ \
ftp://alien.ssl.berkeley.edu/pub/ ftp://alien.ssl.berkeley.edu/pub/

View file

@ -74,17 +74,19 @@ start)
fi fi
done done
for i in ${seti_wrksuff}; do for i in ${seti_wrksuff}; do
su -fm ${seti_user} -c "\ su -fm ${seti_user} -c "exec /bin/sh -T" << EOF > /dev/null &
cd ${seti_wrkdir}/${i} || exit; \ cd ${seti_wrkdir}/${i} || exit
echo \$\$ > shpid.sah; \ echo \$\$ > shpid.sah
trap 'kill \$pid;exit' 15; \ trap 'kill \$pid;exit' 15
while :; do \ while :; do
${program_path} \ ${program_path} \
${seti_std_args} ${seti_proxy_args} \ ${seti_std_args} ${seti_proxy_args} \
${seti_nice:+-nice} ${seti_nice} & \ ${seti_nice:+-nice} ${seti_nice} &
pid=\$!; wait \$pid; \ pid=\$!; wait \$pid
sleep ${seti_sleep}; \ sleep ${seti_sleep} &
done > /dev/null" & pid=\$!; wait \$pid
done
EOF
done done
echo -n " SETI@home" echo -n " SETI@home"
;; ;;