summaryrefslogtreecommitdiff
path: root/astro/setiathome/pkg-install
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2002-07-28 22:13:45 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2002-07-28 22:13:45 +0000
commit58b1dd0eda72b7bf700922140b7f480c43d390f9 (patch)
tree002a64d27994411b867c97525ddccca3a43d5abc /astro/setiathome/pkg-install
parent* PERL -> REINPLACE_CMD. (diff)
Add alpha and Linux (i686) support.
PR: 40022 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Notes
Notes: svn path=/head/; revision=63681
Diffstat (limited to 'astro/setiathome/pkg-install')
-rw-r--r--astro/setiathome/pkg-install10
1 files changed, 5 insertions, 5 deletions
diff --git a/astro/setiathome/pkg-install b/astro/setiathome/pkg-install
index 9efc10fb666d..151035f60526 100644
--- a/astro/setiathome/pkg-install
+++ b/astro/setiathome/pkg-install
@@ -9,16 +9,16 @@
[ -z "${PKG_PREFIX}" ] && exit 1
[ -n "${BATCH}" ] && exit 0
-PKG_NAME=$1
+PKG_NAME=${1%%-[0-9._]*}
PKG_ACTION=$2
# override these variables in ${PREFIX}/etc/rc.setiathome.conf
-seti_wrkdir=/var/db/setiathome # working directory
+seti_wrkdir=/var/db/${PKG_NAME} # working directory
seti_user=nobody # 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.setiathome.conf
+rcconf_file=rc.${PKG_NAME}.conf
rcconf_path=${rcconf_dir}/${rcconf_file}
if [ -f ${rcconf_path} ]; then
@@ -26,12 +26,12 @@ if [ -f ${rcconf_path} ]; then
fi
rc_dir=${PKG_PREFIX}/etc/rc.d
-rc_file=setiathome.sh
+rc_file=${PKG_NAME}.sh
rc_path=${rc_dir}/${rc_file}
ncpu=$(sysctl -n hw.ncpu)
-case "$PKG_ACTION" in
+case "${PKG_ACTION}" in
POST-INSTALL)
echo "**** SETI@home requires a working directory for temporary files and a"