Skip to content

Commit

Permalink
Fix pkg-plist
Browse files Browse the repository at this point in the history
PR: 28690
Submitted by: MAINTAINER
  • Loading branch information
Kevin Lo authored and Kevin Lo committed Jul 4, 2001
1 parent b4e642d commit b71d257
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions astro/setiathome/files/setiathome.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions astro/setiathome/pkg-plist
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
etc/rc.d/setiathome.sh
sbin/setiathome

0 comments on commit b71d257

Please sign in to comment.