Messed up my previous commit, this is the actual BOINC client and as the

name of the recently commited package by me suggests, is the package that
install the libraries and headers.
This commit is contained in:
Rumko 2006-06-18 16:51:41 +00:00 committed by Thomas Klausner
parent 6d4af53f60
commit 593c1e5c8a
7 changed files with 147 additions and 0 deletions

1
boinc-client/DESCR Normal file
View file

@ -0,0 +1 @@
The BOINC distributed computing application client.

5
boinc-client/MESSAGE Normal file
View file

@ -0,0 +1,5 @@
===========================================================================
To set the password of the client so you can access it with BOINC manager,
run:
echo "new_password" > /path/to/boinc/data/dir/gui_rpc_auth.cfg
===========================================================================

44
boinc-client/Makefile Normal file
View file

@ -0,0 +1,44 @@
DISTNAME= boinc
PKGNAME= boinc-client-1
CATEGORIES= net wip
COMMENT= The BOINC distributed computing application
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= automake m4 pkg-config gmake
USE_LANGUAGES+= c c++
CONFIGURE_ARGS+= --disable-server
BUILD_DIRS= client
SHLIBTOOL_OVERRIDE= m4/libtool.m4
.include "../../wip/boinc-lib/Makefile.common"
CVS_REPOSITORIES= boinc
FILESDIR= files
FILES_SUBST+= BOINC_USER=${BOINC_USER:Q}
FILES_SUBST+= BOINC_GROUP=${BOINC_GROUP:Q}
FILES_SUBST+= BOINC_DIR=${BOINC_DIR:Q}
PKG_GROUPS= ${BOINC_GROUP}
PKG_USERS= ${BOINC_USER}:${BOINC_GROUP}
PKG_HOME.${BOINC_USER}= ${BOINC_DIR}
PKG_SHELL.${BOINC_USER}= ${SH}
RCD_SCRIPTS= boinc
pre-configure:
cd ${WRKSRC} && \
aclocal -I m4 && autoheader && \
automake && autoconf
.include "../../www/curl/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.if !empty(PKG_OPTIONS:Mgui)
BUILD_DIRS+= clientgui
.endif
.include "../../wip/boinc-lib/buildlink3.mk"
.include "../../wip/mk/cvs-package.mk"
.include "../../mk/bsd.pkg.mk"

5
boinc-client/PLIST Normal file
View file

@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2006/06/18 16:51:41 rumko Exp $
bin/boinc_${PKGVERSION}
bin/boinc_gui
lib/libbenchmark.a
share/examples/rc.d/boinc

3
boinc-client/TODO Normal file
View file

@ -0,0 +1,3 @@
- fix the buildlink3.mk file
- make the package actually install the rc.d script, have no idea why it doesn't
- clean it up

View file

@ -0,0 +1,28 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/06/18 16:51:41 rumko Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
BOINC_CLIENT_BUILDLINK3_MK:= ${BOINC_CLIENT_BUILDLINK3_MK}+
.if ${BUILDLINK_DEPTH} == "+"
BUILDLINK_DEPENDS+= boinc-client
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nboinc-client}
BUILDLINK_PACKAGES+= boinc-client
.if ${BOINC_CLIENT_BUILDLINK3_MK} == "+"
BUILDLINK_API_DEPENDS.boinc-client+= boinc-client>=1
BUILDLINK_PKGSRCDIR.boinc-client?= ../../wip/boinc-client
.endif # BOINC_CLIENT_BUILDLINK3_MK
# XXX
# XXX Uncomment and keep only the buildlink3 lines below which are directly
# XXX needed for dependencies to compile, link, and run. If this package
# XXX provides a wrappered API or otherwise does not expose the APIs of the
# XXX buildlink3 lines below to dependencies, remove them.
# XXX
#.include "../../www/curl/buildlink3.mk"
#.include "../../security/openssl/buildlink3.mk"
#.include "../../net/boinc-lib/buildlink3.mk"
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}

View file

@ -0,0 +1,61 @@
#!@RCD_SCRIPTS_SHELL@
#
# PROVIDE: boinc
# REQUIRE: LOGIN
. /etc/rc.subr
name="boinc"
rcvar=$name
boinc_user="@BOINC_USER@"
boinc_group="@BOINC_GROUP@"
boinc_flags="-daemon"
boinc_command="/usr/pkg/bin/boinc_client"
start_precmd="boinc_precmd"
start_cmd="boinc_start"
stop_cmd="boinc_stop"
required_dirs="@BOINC_DIR@"
pidfile="/var/run/$name.pid"
boinc_precmd()
{
mkdir -p $required_dirs
chgrp $boinc_group $required_dirs
chmod 775 $required_dirs
}
boinc_start()
{
if [ ! -d "$required_dirs" ]; then
warn "$required_dirs is not a directory."
if [ -z $rc_force ]; then
return 1
fi
fi
if [ ! -r "$required_dirs" ]; then
warn "$required_dirs is not readable."
if [ -z $rc_force ]; then
return 1
fi
fi
pid=`cat $pidfile`
if test -n "`ps ax | awk '/$pid/ { if ($1 == $pid) print $0 }'`"
then
return 3
fi
#daemon -p $pidfile chroot -u $boinc_user -g $boinc_group $required_dirs ${boinc_command} ${rc_flags}
su - $boinc_user -c "cd $required_dirs && ${boinc_command} ${rc_flags} &"
echo $! > $pidfile
}
boinc_stop()
{
killall boinc_client
return 0
if [ -r "$pidfile" ]; then
kill `cat $pidfile`
fi
}
load_rc_config $name
run_rc_command "$1"