aboutsummaryrefslogtreecommitdiffstats
path: root/astro/boinc-setiathome-naparst/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'astro/boinc-setiathome-naparst/Makefile')
-rw-r--r--astro/boinc-setiathome-naparst/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/astro/boinc-setiathome-naparst/Makefile b/astro/boinc-setiathome-naparst/Makefile
new file mode 100644
index 000000000000..9de70ee7784d
--- /dev/null
+++ b/astro/boinc-setiathome-naparst/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: boinc-setiathome-naparst
+# Date created: 14 March 2006
+# Whom: Pav Lucistnik <pav@FreeBSD.org>
+# $FreeBSD$
+#
+
+PORTNAME= boinc-setiathome-naparst
+PORTVERSION= 3.4
+CATEGORIES= astro
+MASTER_SITES= http://naparst.name/files/
+DISTNAME= setiathome_SSE-naparst-r${PORTVERSION}
+
+MAINTAINER= pav@FreeBSD.org
+COMMENT= Setiathome for BOINC, optimized by Harold Naparst
+
+RUN_DEPENDS= boinc_client:${PORTSDIR}/net/boinc-client
+
+ONLY_FOR_ARCHS= i386 amd64
+USE_BZIP2= yes
+USE_LINUX= yes
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+CONFLICTS= boinc-setiathome-[0-9]*
+
+# these must match settings in ${PORTSDIR}/net/boinc-client/Makefile
+BOINC_USER?= boinc
+BOINC_GROUP?= nobody
+BOINC_HOME?= /var/db/boinc
+
+SETI_SITE= setiathome.berkeley.edu
+SETI_BINARY= setiathome_SSE-naparst-r3.4
+
+PLIST_SUB= SETI_BINARY="${SETI_BINARY}" SETI_SITE=${SETI_SITE} \
+ BOINC_HOME=${BOINC_HOME}
+
+post-patch:
+ @${BRANDELF} -t Linux ${WRKDIR}/${SETI_BINARY}
+
+do-install:
+ ${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects
+ ${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects/${SETI_SITE}
+ ${INSTALL_DATA} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKDIR}/app_info.xml ${BOINC_HOME}/projects/${SETI_SITE}
+ ${INSTALL_PROGRAM} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKDIR}/${SETI_BINARY} ${BOINC_HOME}/projects/${SETI_SITE}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>