ports/93643: [new port] astro/boinc-einsteinathome: Einstein at Home for BOINC

Rene Ladan r.c.ladan at student.tue.nl
Tue Feb 21 14:10:10 UTC 2006


>Number:         93643
>Category:       ports
>Synopsis:       [new port] astro/boinc-einsteinathome: Einstein at Home for BOINC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 21 14:10:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Rene Ladan
>Release:        FreeBSD 6.0-RELEASE-p4 i386
>Organization:
>Environment:
FreeBSD s000655.campus.tue.nl 6.0-RELEASE-p4 FreeBSD 6.0-RELEASE-p4 #6: Thu Feb 16 18:17:36 CET 2006   
>Description:
Einstein at Home - Search for gravitational waves

Use your unused CPU cycles to aid in computations analyzing telescope
information for possible gravitational waves emitted by pulsars as
predicted by Albert Einstein.

Einstein at home is based on BOINC (Berkeley Open Infrastructure for
Network Computing).  Several other projects besides Einstein at home are
using BOINC.  BOINC lets you participate in more than one project,
and it lets you specify what fraction of your computer time should go
to each project.

Be sure to join the "FreeBSD" team on the Einstein website once you're
up and running.

The FreeBSD version of this client is currently in its beta-testing
phase.

WWW: http://einstein.phys.uwm.edu/


>How-To-Repeat:

>Fix:
(maybe an earlier version of this PR already arrived, but I couldn't find it back on the ports@ nor in the pr database nor in my inbox, and I'm trying to be ahead of the upcoming ports freeze :) )

--- boinc-einsteinathome-0.40.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	boinc-einsteinathome
#	boinc-einsteinathome/Makefile
#	boinc-einsteinathome/distinfo
#	boinc-einsteinathome/files
#	boinc-einsteinathome/files/app_info.xml.in
#	boinc-einsteinathome/files/pkg-install.in
#	boinc-einsteinathome/pkg-descr
#	boinc-einsteinathome/pkg-plist
#
echo c - boinc-einsteinathome
mkdir -p boinc-einsteinathome > /dev/null 2>&1
echo x - boinc-einsteinathome/Makefile
sed 's/^X//' >boinc-einsteinathome/Makefile << 'END-of-boinc-einsteinathome/Makefile'
X# New ports collection makefile for:	boinc-einsteinathome
X# Date created:				20 February 2006
X# Whom:					Rene Ladan <r.c.ladan at student.tue.nl>
X# $FreeBSD$
X#
X
XPORTNAME=	boinc-einsteinathome
XPORTVERSION=	0.40
XCATEGORIES=	astro
XMASTER_SITES=	http://einstein.phys.uwm.edu/app_test/FreeBSD/
XDISTNAME=	albert_0.40_i386-unknown-freebsd
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	r.c.ladan at student.tue.nl
XCOMMENT=	Einstein at Home for BOINC
X
X.include <bsd.port.pre.mk>
X
XONLY_FOR_ARCHS=	i386
X# Binary is built on 4.9 :
X.if ${OSVERSION} >= 500000
XLIB_DEPENDS+=	c_r.4:${PORTSDIR}/misc/compat4x
X# also depends on libm.so.2
X.endif
X
XRUN_DEPENDS+=	boinc:${PORTSDIR}/net/boinc-client
X
XNO_BUILD=	yes
XNO_WRKSUBDIR=	yes
X
X# these must match settings in ${PORTSDIR}/net/boinc-client/Makefile
XBOINC_USER=	boinc
XBOINC_GROUP=	nobody
XBOINC_HOME=	/var/db/boinc
X
XEINSTEIN_SITE=	einstein.phys.uwm.edu
XEINSTEIN_BINARY=${DISTNAME}
X
XPLIST_SUB=	EINSTEIN_BINARY="${EINSTEIN_BINARY}" EINSTEIN_SITE=${EINSTEIN_SITE} \
X		BOINC_HOME=${BOINC_HOME}
X
XSUB_FILES=	app_info.xml pkg-install
XSUB_LIST=	EINSTEIN_BINARY="${EINSTEIN_BINARY}" EINSTEIN_SITE="${EINSTEIN_SITE}" \
X		BOINC_HOME="${BOINC_HOME}" BOINC_USER="${BOINC_USER}" \
X		BOINC_GROUP="${BOINC_GROUP}"
X
Xdo-install:
X	${MKDIR} ${BOINC_HOME}/projects/${EINSTEIN_SITE}
X	${INSTALL_DATA} ${WRKDIR}/app_info.xml ${BOINC_HOME}/projects/${EINSTEIN_SITE}
X	${INSTALL_PROGRAM} ${WRKSRC}/${EINSTEIN_BINARY} ${PREFIX}/lib/boinc/${EINSTEIN_BINARY}
X
Xpost-install:
X	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
X.include <bsd.port.post.mk>
END-of-boinc-einsteinathome/Makefile
echo x - boinc-einsteinathome/distinfo
sed 's/^X//' >boinc-einsteinathome/distinfo << 'END-of-boinc-einsteinathome/distinfo'
XMD5 (albert_0.40_i386-unknown-freebsd.tgz) = 7d88e5ac84acaa242e6b47a19e7a6151
XSHA256 (albert_0.40_i386-unknown-freebsd.tgz) = 610a9f2c00f66b36039298739e418783053960185d800d90b2d0b90cf55f2d43
XSIZE (albert_0.40_i386-unknown-freebsd.tgz) = 446372
END-of-boinc-einsteinathome/distinfo
echo c - boinc-einsteinathome/files
mkdir -p boinc-einsteinathome/files > /dev/null 2>&1
echo x - boinc-einsteinathome/files/app_info.xml.in
sed 's/^X//' >boinc-einsteinathome/files/app_info.xml.in << 'END-of-boinc-einsteinathome/files/app_info.xml.in'
X<app_info>
X    <app>
X        <name>albert</name>
X    </app>
X    <file_info>
X        <name>%%EINSTEIN_BINARY%%</name>
X        <executable/>
X    </file_info>
X    <app_version>
X        <app_name>albert</app_name>
X        <version_num>40</version_num>
X        <file_ref>
X            <file_name>%%EINSTEIN_BINARY%%</file_name>
X            <main_program/>
X        </file_ref>
X    </app_version>
X</app_info>
END-of-boinc-einsteinathome/files/app_info.xml.in
echo x - boinc-einsteinathome/files/pkg-install.in
sed 's/^X//' >boinc-einsteinathome/files/pkg-install.in << 'END-of-boinc-einsteinathome/files/pkg-install.in'
X#!/bin/sh
X
Xcase "$2" in
XPOST-INSTALL)
X	install -d -o %%BOINC_USER%% -g %%BOINC_GROUP%% %%BOINC_HOME%%/projects/%%EINSTEIN_SITE%%
X	ln -s %%PREFIX%%/lib/boinc/%%EINSTEIN_BINARY%% %%BOINC_HOME%%/projects/%%EINSTEIN_SITE%%
X	;;
Xesac
END-of-boinc-einsteinathome/files/pkg-install.in
echo x - boinc-einsteinathome/pkg-descr
sed 's/^X//' >boinc-einsteinathome/pkg-descr << 'END-of-boinc-einsteinathome/pkg-descr'
XEinstein at Home - Search for gravitational waves
X
XUse your unused CPU cycles to aid in computations analyzing telescope
Xinformation for possible gravitational waves emitted by pulsars as
Xpredicted by Albert Einstein.
X
XEinstein at home is based on BOINC (Berkeley Open Infrastructure for
XNetwork Computing).  Several other projects besides Einstein at home are
Xusing BOINC.  BOINC lets you participate in more than one project,
Xand it lets you specify what fraction of your computer time should go
Xto each project.
X
XBe sure to join the "FreeBSD" team on the Einstein website once you're
Xup and running.
X
XThe FreeBSD version of this client is currently in its beta-testing
Xphase.
X
XWWW: http://einstein.phys.uwm.edu/
END-of-boinc-einsteinathome/pkg-descr
echo x - boinc-einsteinathome/pkg-plist
sed 's/^X//' >boinc-einsteinathome/pkg-plist << 'END-of-boinc-einsteinathome/pkg-plist'
X at comment @unexec %D/lib/boinc_client -detach_project %%EINSTEIN_SITE%%
Xlib/boinc/%%EINSTEIN_BINARY%%
X at unexec rm %%BOINC_HOME%%/projects/%%EINSTEIN_SITE%%/app_info.xml 2>&1 >/dev/null || true
X at unexec rm %%BOINC_HOME%%/projects/%%EINSTEIN_SITE%%/%%EINSTEIN_BINARY%% 2>&1 >/dev/null || true
X at comment %%BOINC_GUI%%@unexec rm %%BOINC_HOME%%/projects/%%EINSTEIN_SITE%%/%%EINSTEIN_BINARY%%.so 2>&1 >/dev/null || true
END-of-boinc-einsteinathome/pkg-plist
exit
--- boinc-einsteinathome-0.40.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list