diff options
-rw-r--r-- | net/boinc3-seti/DESCR | 7 | ||||
-rw-r--r-- | net/boinc3-seti/Makefile | 43 | ||||
-rw-r--r-- | net/boinc3-seti/PLIST | 4 | ||||
-rw-r--r-- | net/boinc3-seti/distinfo | 5 | ||||
-rw-r--r-- | net/boinc3-seti/files/app_info.xml | 18 | ||||
-rw-r--r-- | net/boinc3-seti/patches/patch-aa | 13 |
6 files changed, 90 insertions, 0 deletions
diff --git a/net/boinc3-seti/DESCR b/net/boinc3-seti/DESCR new file mode 100644 index 00000000000..fdf02bfc5f4 --- /dev/null +++ b/net/boinc3-seti/DESCR @@ -0,0 +1,7 @@ +SETI@home is a scientific experiment that uses Internet-connected computers +in the Search for Extraterrestrial Intelligence (SETI). You can participate +by running a free program that downloads and analyzes radio telescope data. +This version of SETI@home is based on BOINC (Berkeley Open Infrastructure +for Network Computing). Several other projects besides SETI@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. diff --git a/net/boinc3-seti/Makefile b/net/boinc3-seti/Makefile new file mode 100644 index 00000000000..28ee1281d98 --- /dev/null +++ b/net/boinc3-seti/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/07/19 20:14:21 drochner Exp $ +# + +DISTNAME= seti_boinc-client-cvs-2004-07-15 +PKGNAME= boinc3-seti-20040715 +CATEGORIES= net +MASTER_SITES= http://boinc.berkeley.edu/seti_source/nightly/ + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://setiweb.ssl.berkeley.edu/ +COMMENT= SETI@home client for the BOINC framework + +WRKSRC= ${WRKDIR}/seti_boinc +USE_BUILDLINK3= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV+= BOINCDIR=${BUILDLINK_DIR}/boinc3 +# XXX don't know why MySQL is needed here +#CONFIGURE_ENV+= MYSQL_CONFIG=true +USE_GNU_TOOLS+= make + +CLIENTBINNAME= setiathome-3.10.${MACHINE_GNU_PLATFORM} +CLIENTVERSION= 310 + +PLIST_SUBST+= CLIENTBINNAME=${CLIENTBINNAME} +APPINFO_SED= -e "s|@CLIENTBINNAME@|${CLIENTBINNAME}|g" +APPINFO_SED+= -e "s|@CLIENTVERSION@|${CLIENTVERSION}|g" + +# XXX hack: boinc-lib detection code is too stupid... +pre-configure: + ${TOUCH} ${BUILDLINK_DIR}/boinc3/Makefile.am + +SBDIR= ${PREFIX}/lib/boinc3-seti + +do-install: + ${INSTALL_DATA_DIR} ${SBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/client/${CLIENTBINNAME} ${SBDIR} + ${SED} ${APPINFO_SED} <${FILESDIR}/app_info.xml \ + >${WRKDIR}/app_info.xml + ${INSTALL_DATA} ${WRKDIR}/app_info.xml ${SBDIR} + +.include "../../net/boinc3-libs/buildlink3.mk" +.include "../../databases/mysql-client/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/boinc3-seti/PLIST b/net/boinc3-seti/PLIST new file mode 100644 index 00000000000..6924710fb3f --- /dev/null +++ b/net/boinc3-seti/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/19 20:14:21 drochner Exp $ +lib/boinc3-seti/app_info.xml +lib/boinc3-seti/${CLIENTBINNAME} +@dirrm lib/boinc3-seti diff --git a/net/boinc3-seti/distinfo b/net/boinc3-seti/distinfo new file mode 100644 index 00000000000..9bc313aa6c9 --- /dev/null +++ b/net/boinc3-seti/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/07/19 20:14:21 drochner Exp $ + +SHA1 (seti_boinc-client-cvs-2004-07-15.tar.gz) = 1d4ef530895a464e9cec657cacaaea1b12f1002f +Size (seti_boinc-client-cvs-2004-07-15.tar.gz) = 1202670 bytes +SHA1 (patch-aa) = 300a6fbb7da1bcfa93e23cd136670e4f8456fcdc diff --git a/net/boinc3-seti/files/app_info.xml b/net/boinc3-seti/files/app_info.xml new file mode 100644 index 00000000000..dbfa11eec0f --- /dev/null +++ b/net/boinc3-seti/files/app_info.xml @@ -0,0 +1,18 @@ +<!-- $NetBSD: app_info.xml,v 1.1.1.1 2004/07/19 20:14:21 drochner Exp $ --> + +<app_info> + <app> + <name>setiathome</name> + </app> + <file_info> + <name>@CLIENTBINNAME@</name> + </file_info> + <app_version> + <app_name>setiathome</app_name> + <version_num>@CLIENTVERSION@</version_num> + <file_ref> + <file_name>@CLIENTBINNAME@</file_name> + <main_program/> + </file_ref> + </app_version> +</app_info> diff --git a/net/boinc3-seti/patches/patch-aa b/net/boinc3-seti/patches/patch-aa new file mode 100644 index 00000000000..f5acef67e9f --- /dev/null +++ b/net/boinc3-seti/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/07/19 20:14:21 drochner Exp $ + +--- db/xml_util.h.orig 2004-07-16 00:36:18.000000000 +0200 ++++ db/xml_util.h +@@ -381,7 +381,7 @@ std::vector<T> base85_decode(const char + if (p[i]!='_') break; + npads++; + } +- for (i=0;i<std::min(eol-p,5-npads);i++) { ++ for (i=0;i<std::min((int)(eol-p),5-npads);i++) { + val*=85; + if ((p[i]>='0') && (p[i]<='9')) { + val=p[i]-'0'; |