ports/79349: astro/boinc-setiathome: port update to 4.07.20050218
J.R. Oldroyd
fbsd at opal.com
Wed Mar 30 02:00:15 UTC 2005
>Number: 79349
>Category: ports
>Synopsis: astro/boinc-setiathome: port update to 4.07.20050218
>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: Wed Mar 30 02:00:13 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: J.R. Oldroyd
>Release: FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD linwhf.opal.com 6.0-CURRENT FreeBSD 6.0-CURRENT #77: Tue Mar 29 12:02:15 EST 2005 jr at linwhf.opal.com:/usr/src-current/sys/i386/compile/LINWHF i386
>Description:
Brings port to the 2005/02/18 version which now includes the GUI support.
Also fixes problem with the distribution site URL which recently changed.
There may be problems with the GUI on FreeBSD 4.x. If it doesn't work,
build using "make -DWITHOUT_X11" to disable the GUI.
Notes to committer:
Files deleted:
files/patch-client::Makefile.in
files/patch-db::schema_to_class.in
Files added:
files/patch-Makefile.incl
files/patch-m4::sah_check_boinc.m4
files/patch-m4::sah_header_stdcxx.m4
files/patch-m4::sah_largefile_breaks_cxx.m4
>How-To-Repeat:
>Fix:
diff -ruN /usr/ports/astro/boinc-setiathome/Makefile astro/boinc-setiathome/Makefile
--- /usr/ports/astro/boinc-setiathome/Makefile Sat Nov 13 11:45:42 2004
+++ astro/boinc-setiathome/Makefile Tue Mar 22 22:16:39 2005
@@ -6,64 +6,99 @@
#
PORTNAME= boinc-setiathome
-PORTVERSION= 4.07
+PORTVERSION= 4.07.20050218
CATEGORIES= astro
-MASTER_SITES= http://boinc.berkeley.edu/seti_source/nightly/
-DISTNAME= seti_boinc-client-cvs-2004-11-09
+MASTER_SITES= http://setiweb.ssl.berkeley.edu/sah/seti_source/nightly/
+DISTNAME= seti_boinc-client-cvs-2005-02-18
MAINTAINER= fbsd at opal.com
COMMENT= Setiathome for boinc
-BUILD_DEPENDS= ${LOCALBASE}/boinc/api/boinc_api.h:${PORTSDIR}/net/boinc-client
-RUN_DEPENDS= boinc-client:${PORTSDIR}/net/boinc-client
+.include <bsd.port.pre.mk>
+
+# Build with "make -DWITHOUT_X11" if you don't want the boincmgr
+# GUI management interface or the "screensaver" status displays
+# from any of the client applications.
+#
+# Defining WITHOUT_X11 removes the dependencies on the X11 libs
+# and the glut and jpeg graphics libs.
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/boinc/boinc-client:${PORTSDIR}/net/boinc-client
+RUN_DEPENDS= boinc:${PORTSDIR}/net/boinc-client
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
+.if !defined(WITHOUT_X11)
+LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \
+ glut:${PORTSDIR}/graphics/libglut
+USE_XLIB= yes
+.endif
+
+USE_AUTOMAKE_VER= 19
+USE_AUTOCONF_VER= 259
+USE_AUTOHEADER_VER= 259
+USE_LIBTOOL_VER= 15
GNU_CONFIGURE= yes
USE_REINPLACE= yes
-CONFIGURE_ENV= LANG=C BOINCDIR=${LOCALBASE}/boinc CPPFLAGS=-I${X11BASE}/include CFLAGS=-I${X11BASE}/include LDFLAGS=-L${LOCALBASE}/lib
+CONFIGURE_ARGS= --disable-server
+.if !defined(WITHOUT_X11)
+CONFIGURE_ARGS+= --disable-dynamic-graphics
+.else
+CONFIGURE_ARGS+= --disable-gui
+.endif
+CONFIGURE_ENV= LANG=C BOINCDIR=${LOCALBASE} CPPFLAGS=-I${X11BASE}/include CXXFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" LDFLAGS=-L${LOCALBASE}/lib
MAKE_ENV= LANG=C
USE_GMAKE= yes
PKGINSTALL= ${WRKDIR}/pkg-install
-WRKSRC= ${WRKDIR}/seti_boinc/client
-CONFIGURE_WRKSRC=${WRKDIR}/seti_boinc/
+WRKSRC= ${WRKDIR}/seti_boinc
+
+FIND_SETI_BINARY=(cd ${WRKSRC}/client; make -V CLIENT_PROG)
+SETI_SITE= setiathome.berkeley.edu
+SETI_BINARY= setiathome
-FIND_SETI_BINARY=(cd ${WRKSRC}; make -V PROG)
-SETI_SITE?= setiathome.berkeley.edu
PLIST_SUB= SETI_SITE=${SETI_SITE} BOINC_HOME=${BOINC_HOME}
+.if !defined(WITHOUT_X11)
+PLIST_SUB+= BOINC_GUI=""
+.else
+PLIST_SUB+= BOINC_GUI="@comment "
+.endif
# these must match settings in ../../net/boinc-client/Makefile
BOINC_USER= boinc
+BOINC_GROUP= nobody
BOINC_HOME= /var/db/boinc
-BOINC_DATADIR= ${PREFIX}/boinc
-# ${TOUCH} ${WRKDIR}/seti_boinc/db/schema_master.cpp
-pre-patch:
- ${TOUCH} ${WRKDIR}/seti_boinc/client/dependencies
- ${TOUCH} ${WRKDIR}/seti_boinc/db/dependencies
+pre-configure:
+ ${TOUCH} ${WRKSRC}/missing
+ cd ${WRKSRC}; ${ACLOCAL} -I ${LOCALBASE}/share/libtool${USE_LIBTOOL_VER}/libltdl -I m4
post-build:
- ${SED} -e "s:%%SETI_BINARY%%:`${FIND_SETI_BINARY}`:g" \
- -e "s:%%SETI_SITE%%:${SETI_SITE}:g" \
- -e "s:%%BOINC_DATADIR%%:${BOINC_DATADIR}:g" \
+ ${SED} -e "s:%%SETI_BINARY%%:${SETI_BINARY}:g" \
< ${FILESDIR}/app_info.xml > ${WRKDIR}/app_info.xml
${SED} -e "s:%%SETI_SITE%%:${SETI_SITE}:g" \
-e "s:%%BOINC_HOME%%:${BOINC_HOME}:g" \
-e "s:%%BOINC_USER%%:${BOINC_USER}:g" \
+ -e "s:%%BOINC_GROUP%%:${BOINC_GROUP}:g" \
< pkg-install > ${WRKDIR}/pkg-install
do-install:
- ${MKDIR} ${PREFIX}/boinc/projects/${SETI_SITE}
- ${INSTALL_PROGRAM} ${WRKSRC}/`${FIND_SETI_BINARY}` ${PREFIX}/boinc/projects/${SETI_SITE}
- ${INSTALL_DATA} ${WRKDIR}/app_info.xml ${PREFIX}/boinc/projects/${SETI_SITE}
- ${MKDIR} ${BOINC_HOME}/projects/${SETI_SITE}/
- ${LN} -s ${PREFIX}/boinc/projects/${SETI_SITE}/`${FIND_SETI_BINARY}` ${BOINC_HOME}/projects/${SETI_SITE}
- ${LN} -s ${PREFIX}/boinc/projects/${SETI_SITE}/app_info.xml ${BOINC_HOME}/projects/${SETI_SITE}
+ ${INSTALL_PROGRAM} ${WRKSRC}/client/`${FIND_SETI_BINARY}` ${PREFIX}/lib/boinc/${SETI_BINARY}
+.if !defined(WITHOUT_X11)
+ #${INSTALL_PROGRAM} ${WRKSRC}/client/`${FIND_SETI_BINARY}`.so ${PREFIX}/lib/boinc/${SETI_BINARY}.so
+.endif
post-install:
+ ${MKDIR} ${BOINC_HOME}/projects/${SETI_SITE}
+ ${INSTALL_DATA} ${WRKDIR}/app_info.xml ${BOINC_HOME}/projects/${SETI_SITE}
+ ${LN} -s ${PREFIX}/lib/boinc/${SETI_BINARY} ${BOINC_HOME}/projects/${SETI_SITE}
+.if !defined(WITHOUT_X11)
+ #${LN} -s ${PREFIX}/lib/boinc/${SETI_BINARY}.so ${BOINC_HOME}/projects/${SETI_SITE}
+.endif
${REINPLACE_CMD} \
- -e "s:%%SETI_BINARY%%:`${FIND_SETI_BINARY}`:g" \
- -e "s:%%BOINC_HOME%%:${BOINC_HOME}:g" ${TMPPLIST}
+ -e "s:%%SETI_SITE%%:${SETI_SITE}:g" \
+ -e "s:%%SETI_BINARY%%:${SETI_BINARY}:g" \
+ -e "s:%%BOINC_HOME%%:${BOINC_HOME}:g" \
+ ${TMPPLIST}
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN /usr/ports/astro/boinc-setiathome/distinfo astro/boinc-setiathome/distinfo
--- /usr/ports/astro/boinc-setiathome/distinfo Sat Nov 13 11:45:42 2004
+++ astro/boinc-setiathome/distinfo Fri Feb 18 09:45:30 2005
@@ -1,2 +1,2 @@
-MD5 (seti_boinc-client-cvs-2004-11-09.tar.gz) = 4120f1701484b78e099c51adfe31653b
-SIZE (seti_boinc-client-cvs-2004-10-01.tar.gz) = 1214124
+MD5 (seti_boinc-client-cvs-2005-02-18.tar.gz) = 6f4aa7dc0a88f50bc6f7c160fb3150ef
+SIZE (seti_boinc-client-cvs-2005-02-18.tar.gz) = 1462337
diff -ruN /usr/ports/astro/boinc-setiathome/files/patch-Makefile.incl astro/boinc-setiathome/files/patch-Makefile.incl
--- /usr/ports/astro/boinc-setiathome/files/patch-Makefile.incl Wed Dec 31 19:00:00 1969
+++ astro/boinc-setiathome/files/patch-Makefile.incl Tue Mar 1 11:45:41 2005
@@ -0,0 +1,11 @@
+--- Makefile.incl.orig Wed Feb 9 12:03:32 2005
++++ Makefile.incl Tue Mar 1 10:15:48 2005
+@@ -37,7 +37,7 @@
+ VERSION_MAJOR = @MAJOR_VERSION@
+ VERSION_MINOR = @MINOR_VERSION@
+
+-BOINC_CFLAGS= -I$(BOINCDIR)/api -I$(BOINCDIR)/lib
++BOINC_CFLAGS= -I$(BOINCDIR)/include/BOINC
+
+
+ DEBUG_PROG = setiathome-$(VERSION_MAJOR).$(VERSION_MINOR). at host@.debug$(DOTEXEEXT)
diff -ruN /usr/ports/astro/boinc-setiathome/files/patch-client::Makefile.in astro/boinc-setiathome/files/patch-client::Makefile.in
--- /usr/ports/astro/boinc-setiathome/files/patch-client::Makefile.in Mon Oct 4 00:10:48 2004
+++ astro/boinc-setiathome/files/patch-client::Makefile.in Wed Dec 31 19:00:00 1969
@@ -1,25 +0,0 @@
---- Makefile.in.orig Mon Aug 30 17:31:09 2004
-+++ Makefile.in Thu Oct 4 00:10:02 2004
-@@ -98,11 +98,11 @@
- @RANLIB@ libooura.$(LIBEXT)
-
- $(PROG): main.$(OBJEXT) libooura.$(LIBEXT) $(OBJS)
-- $(CXX) main.$(OBJEXT) $(OBJS) $(LIBS) $(CLIBS) -o $(PROG) $(BOINC_OBJS)
-+ $(CXX) main.$(OBJEXT) $(OBJS) $(LIBS) $(LDFLAGS) $(CLIBS) -o $(PROG) $(BOINC_OBJS)
- strip $(PROG)
-
- $(GUIPROG): $(GUIOBJS) libooura.$(LIBEXT)
-- $(CXX) $(GUIOBJS) $(GUILIBS) $(CLIBS) -o $(GUIPROG).debug $(BOINC_OBJS)
-+ $(CXX) $(GUIOBJS) $(GUILIBS) $(LDFLAGS) $(CLIBS) -o $(GUIPROG).debug $(BOINC_OBJS)
- cp $(GUIPROG).debug $(GUIPROG)
- strip $(GUIPROG)
-
-@@ -115,7 +115,7 @@
- $(CXX) $(CXXFLAGS) $(BOINC_INC) -I.. -I../db -DTEST_VERSION -c -o main_test.$(OBJEXT) main.cpp
-
- setiathome_test$(DOTEXEEXT): main_test.$(OBJEXT) $(OBJS) libooura.$(LIBEXT)
-- $(CXX) main_test.$(OBJEXT) $(OBJS) $(LIBS) $(CLIBS) -o setiathome_test$(DOTEXEEXT) $(BOINC_OBJS)
-+ $(CXX) main_test.$(OBJEXT) $(OBJS) $(LIBS) $(LDFLAGS) $(CLIBS) -o setiathome_test$(DOTEXEEXT) $(BOINC_OBJS)
-
- ../db/sqlrow_client.$(OBJEXT): ../db/sqlrow.cpp ../db/sqlrow.h
- (cd ../db; $(MAKE) sqlrow_client.$(OBJEXT))
diff -ruN /usr/ports/astro/boinc-setiathome/files/patch-db::schema_to_class.in astro/boinc-setiathome/files/patch-db::schema_to_class.in
--- /usr/ports/astro/boinc-setiathome/files/patch-db::schema_to_class.in Sun Oct 3 17:28:50 2004
+++ astro/boinc-setiathome/files/patch-db::schema_to_class.in Wed Dec 31 19:00:00 1969
@@ -1,11 +0,0 @@
---- ../db/schema_to_class.in.orig Wed Sep 22 18:42:01 2004
-+++ ../db/schema_to_class.in Sun Oct 3 17:28:10 2004
-@@ -22,7 +22,7 @@
- @CAT@ $1 | @TR@ "[A-Z]" "[a-z]" | @SED@ 's/\`//g' >>$filename
-
- @AWK@ -f @SAH_TOP_DIR@/db/schema_to_class.awk $filename
--INDENT=@INDENT@
-+INDENT=
- if test -n "$INDENT"
- then
- @INDENT@ @INDENT_FLAGS@ $filename.h
diff -ruN /usr/ports/astro/boinc-setiathome/files/patch-m4::sah_check_boinc.m4 astro/boinc-setiathome/files/patch-m4::sah_check_boinc.m4
--- /usr/ports/astro/boinc-setiathome/files/patch-m4::sah_check_boinc.m4 Wed Dec 31 19:00:00 1969
+++ astro/boinc-setiathome/files/patch-m4::sah_check_boinc.m4 Tue Mar 1 11:28:06 2005
@@ -0,0 +1,51 @@
+--- m4/sah_check_boinc.m4.orig Fri Dec 24 17:40:58 2004
++++ m4/sah_check_boinc.m4 Tue Mar 1 11:27:23 2005
+@@ -18,29 +18,6 @@
+ fi
+ thisdir=`pwd`
+ AC_MSG_CHECKING([for BOINC])
+- boinc_search_path="$BOINCDIR boinc ../boinc $HOME/boinc /usr/local/boinc /usr/local/lib/boinc /opt/misc/boinc /opt/misc/lib/boinc $2"
+- for boinc_dir in $boinc_search_path
+- do
+- if test -d $boinc_dir
+- then
+- if test -f $boinc_dir/Makefile.am
+- then
+- cd $boinc_dir
+- BOINCDIR=`pwd`
+- cd $thisdir
+- break
+- else
+- if $FIND $boinc_dir -name "Makefile.am" >& /dev/null
+- then
+- BOINCDIR=`$FIND $boinc_dir -name "Makefile.am" -print | $HEAD -1 | sed 's/\/Makefile.am//'`
+- cd $BOINCDIR
+- BOINCDIR=`pwd`
+- cd $thisdir
+- break
+- fi
+- fi
+- fi
+- done
+ if test -n "$BOINCDIR"
+ then
+ AC_MSG_RESULT($BOINCDIR)
+@@ -56,13 +33,13 @@
+ AC_SUBST([PROJECTDIR])
+ AC_SUBST([BOINCDIR])
+ save_libs="$LIBS"
+- RSADIR="$BOINCDIR/RSAEuro"
+- LIBS="$LIBS -L$RSADIR/source"
+- AC_CHECK_LIB([rsaeuro],[RSAPublicEncrypt],[RSALIBS="-L$RSADIR/source -lrsaeuro"])
++ RSADIR="$BOINCDIR"
++ LIBS="$LIBS -L$RSADIR"
++ AC_CHECK_LIB([rsaeuro],[RSAPublicEncrypt],[RSALIBS="-L$RSADIR -lrsaeuro"])
+ LIBS="$save_libs"
+- BOINC_CFLAGS="-I$BOINCDIR/api -I$BOINCDIR/lib"
++ BOINC_CFLAGS="-I$BOINCDIR/include/BOINC"
+ AC_SUBST([BOINC_CFLAGS])
+- RSA_CFLAGS="-I$RSADIR/source"
++ RSA_CFLAGS="-I$BOINCDIR/include/BOINC"
+ AC_SUBST([RSA_CFLAGS])
+ AC_SUBST([RSADIR])
+ AC_SUBST([RSALIBS])
diff -ruN /usr/ports/astro/boinc-setiathome/files/patch-m4::sah_header_stdcxx.m4 astro/boinc-setiathome/files/patch-m4::sah_header_stdcxx.m4
--- /usr/ports/astro/boinc-setiathome/files/patch-m4::sah_header_stdcxx.m4 Wed Dec 31 19:00:00 1969
+++ astro/boinc-setiathome/files/patch-m4::sah_header_stdcxx.m4 Tue Mar 1 11:15:21 2005
@@ -0,0 +1,11 @@
+--- m4/sah_header_stdcxx.m4.orig Mon Nov 17 18:33:14 2003
++++ m4/sah_header_stdcxx.m4 Tue Mar 1 10:37:29 2005
+@@ -9,7 +9,7 @@
+ save_inc="$ac_includes_default"
+ ac_includes_default="$ac_includes_default
+ #define CONFIG_TEST
+-#include \"$BOINCDIR/lib/std_fixes.h\"
++#include <BOINC/std_fixes.h>
+ "
+ sah_stdcxx_headers="algorithm bitset cassert cctype cerrno cfloat climits clocale cmath complex csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime deque fstream functional iomanip ios iosfwd iostream istream iterator limits list locale map memory numeric ostream queue set sstream stack stdexcept streambuf string utility valarray vector"
+ AC_LANG_PUSH(C++)
diff -ruN /usr/ports/astro/boinc-setiathome/files/patch-m4::sah_largefile_breaks_cxx.m4 astro/boinc-setiathome/files/patch-m4::sah_largefile_breaks_cxx.m4
--- /usr/ports/astro/boinc-setiathome/files/patch-m4::sah_largefile_breaks_cxx.m4 Wed Dec 31 19:00:00 1969
+++ astro/boinc-setiathome/files/patch-m4::sah_largefile_breaks_cxx.m4 Tue Mar 1 11:15:42 2005
@@ -0,0 +1,11 @@
+--- m4/sah_largefile_breaks_cxx.m4.orig Mon Nov 17 18:33:14 2003
++++ m4/sah_largefile_breaks_cxx.m4 Tue Mar 1 10:38:00 2005
+@@ -18,7 +18,7 @@
+ [AC_DEFINE([LARGEFILE_BREAKS_CXX],[1],
+ ["Define to 1 if largefile support causes missing symbols in C++"] )
+ tmp_res="yes"
+- sah_cxx_includes=`echo "#include \"$BOINCDIR/lib/std_fixes.h\"" ; echo $sah_cxx_includes`
++ sah_cxx_includes=`echo "#include <BOINC/std_fixes.h>" ; echo $sah_cxx_includes`
+ ]
+ )
+ AC_MSG_RESULT($tmp_res)
diff -ruN /usr/ports/astro/boinc-setiathome/pkg-install astro/boinc-setiathome/pkg-install
--- /usr/ports/astro/boinc-setiathome/pkg-install Sat Oct 9 01:13:48 2004
+++ astro/boinc-setiathome/pkg-install Tue Mar 1 13:40:21 2005
@@ -2,6 +2,6 @@
case $2 in
POST-INSTALL)
- chown %%BOINC_USER%% %%BOINC_HOME%%/projects/%%SETI_SITE%%
- ;;
+ chown %%BOINC_USER%%:%%BOINC_GROUP%% %%BOINC_HOME%%/projects/%%SETI_SITE%%
+ ;;
esac
diff -ruN /usr/ports/astro/boinc-setiathome/pkg-plist astro/boinc-setiathome/pkg-plist
--- /usr/ports/astro/boinc-setiathome/pkg-plist Sun Oct 10 19:26:23 2004
+++ astro/boinc-setiathome/pkg-plist Wed Mar 2 23:19:36 2005
@@ -1,7 +1,7 @@
@comment @unexec %D/boinc/boinc_client -detach_project %%SETI_SITE%%
-boinc/projects/%%SETI_SITE%%/app_info.xml
-boinc/projects/%%SETI_SITE%%/%%SETI_BINARY%%
- at dirrm boinc/projects/%%SETI_SITE%%
+lib/boinc/%%SETI_BINARY%%
+ at comment %%BOINC_GUI%%lib/boinc/%%SETI_BINARY%%.so
@cd %%BOINC_HOME%%
projects/%%SETI_SITE%%/app_info.xml
projects/%%SETI_SITE%%/%%SETI_BINARY%%
+ at comment %%BOINC_GUI%%projects/%%SETI_SITE%%/%%SETI_BINARY%%.so
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list