- Update to 6.2.14
This commit is contained in:
parent
08de036489
commit
3febb62f5b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218116
6 changed files with 6 additions and 119 deletions
|
@ -6,8 +6,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= boinc-client
|
||||
PORTVERSION= 5.10.32
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 6.2.14
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= pav
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (boinc-client-5.10.32.tar.bz2) = 0718535f78c4097b8e3fb740b7d423d3
|
||||
SHA256 (boinc-client-5.10.32.tar.bz2) = 7d3570a0de643b9623731eea45df5601e046504865946c033fc08e2273940c60
|
||||
SIZE (boinc-client-5.10.32.tar.bz2) = 4022383
|
||||
MD5 (boinc-client-6.2.14.tar.bz2) = 547b704a2f393b4d75277270975bf322
|
||||
SHA256 (boinc-client-6.2.14.tar.bz2) = 20639ebaf4173d0fe7fa988fea368e540a0b4c7dd2ee25a46f36de6ce112008e
|
||||
SIZE (boinc-client-6.2.14.tar.bz2) = 4246362
|
||||
|
|
|
@ -1,80 +0,0 @@
|
|||
--- client/hostinfo_unix.C.orig 2007-12-28 19:59:40.000000000 +0100
|
||||
+++ client/hostinfo_unix.C 2007-12-28 20:36:26.000000000 +0100
|
||||
@@ -451,6 +451,50 @@
|
||||
}
|
||||
#endif // linux
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#if defined(__i386__) || defined(__amd64__)
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/cdefs.h>
|
||||
+#include <machine/cpufunc.h>
|
||||
+
|
||||
+void use_cpuid(HOST_INFO& host) {
|
||||
+ u_int p[4];
|
||||
+ int hasMMX, hasSSE, hasSSE2, hasSSE3, has3DNow, has3DNowExt = 0;
|
||||
+ char capabilities[256];
|
||||
+
|
||||
+ do_cpuid(0x0, p);
|
||||
+
|
||||
+ if (p[0] >= 0x1) {
|
||||
+
|
||||
+ do_cpuid(0x1, p);
|
||||
+
|
||||
+ hasMMX = (p[3] & (1 << 23 )) >> 23; // 0x0800000
|
||||
+ hasSSE = (p[3] & (1 << 25 )) >> 25; // 0x2000000
|
||||
+ hasSSE2 = (p[3] & (1 << 26 )) >> 26; // 0x4000000
|
||||
+ hasSSE3 = (p[2] & (1 << 0 )) >> 0;
|
||||
+ }
|
||||
+
|
||||
+ do_cpuid(0x80000000, p);
|
||||
+ if (p[0]>=0x80000001) {
|
||||
+ do_cpuid(0x80000001, p);
|
||||
+ hasMMX |= (p[3] & (1 << 23 )) >> 23; // 0x0800000
|
||||
+ has3DNow = (p[3] & (1 << 31 )) >> 31; //0x80000000
|
||||
+ has3DNowExt = (p[3] & (1 << 30 )) >> 30;
|
||||
+ }
|
||||
+
|
||||
+ capabilities[0] = '\0';
|
||||
+ if (hasSSE) strncat(capabilities, "sse ", 4);
|
||||
+ if (hasSSE2) strncat(capabilities, "sse2 ", 5);
|
||||
+ if (hasSSE3) strncat(capabilities, "sse3 ", 5);
|
||||
+ if (has3DNow) strncat(capabilities, "3dnow ", 6);
|
||||
+ if (has3DNowExt) strncat(capabilities, "3dnowext ", 9);
|
||||
+ if (hasMMX) strncat(capabilities, "mmx ", 4);
|
||||
+ strip_whitespace(capabilities);
|
||||
+ snprintf(host.p_model, sizeof(host.p_model), "%s [] [%s]", host.p_model, capabilities);
|
||||
+}
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
#ifdef __APPLE__
|
||||
static void get_cpu_info_maxosx(HOST_INFO& host) {
|
||||
int p_model_size = sizeof(host.p_model);
|
||||
@@ -573,6 +617,12 @@
|
||||
#error Need to specify a method to get p_vendor, p_model
|
||||
#endif
|
||||
|
||||
+#if defined(__FreeBSD__)
|
||||
+#if defined(__i386__) || defined(__amd64__)
|
||||
+ use_cpuid(*this);
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
///////////// p_ncpus /////////////////
|
||||
|
||||
// sysconf not working on OS2
|
||||
@@ -639,6 +689,13 @@
|
||||
int mem_size;
|
||||
getsysinfo( GSI_PHYSMEM, (caddr_t) &mem_size, sizeof( mem_size));
|
||||
m_nbytes = 1024.* (double)mem_size;
|
||||
+#elif defined(__FreeBSD__)
|
||||
+ unsigned int mem_size;
|
||||
+ mib[0] = CTL_HW;
|
||||
+ mib[1] = HW_PHYSMEM;
|
||||
+ len = sizeof(mem_size);
|
||||
+ sysctl(mib, 2, &mem_size, &len, NULL, 0);
|
||||
+ m_nbytes = mem_size;
|
||||
#else
|
||||
#error Need to specify a method to get memory size
|
||||
#endif
|
|
@ -1,18 +0,0 @@
|
|||
--- client/cs_account.C.orig Fri Mar 3 22:34:00 2006
|
||||
+++ client/cs_account.C Wed Apr 12 10:58:15 2006
|
||||
@@ -403,7 +403,14 @@
|
||||
//
|
||||
get_project_dir(project, dir);
|
||||
sprintf(path, "%s/%s", dir, APP_INFO_FILE_NAME);
|
||||
- if (!boinc_file_exists(path)) {
|
||||
+ if (boinc_file_exists(path)) {
|
||||
+ project->anonymous_platform = true;
|
||||
+ f = fopen(path, "r");
|
||||
+ if (f) {
|
||||
+ parse_app_info(project, f);
|
||||
+ fclose(f);
|
||||
+ }
|
||||
+ } else {
|
||||
retval = remove_project_dir(*project);
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
--- lib/util.C.orig 2007-12-28 19:58:32.000000000 +0100
|
||||
+++ lib/util.C 2007-12-28 20:24:07.000000000 +0100
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <fstream>
|
||||
#include <cctype>
|
||||
#include <sys/types.h>
|
||||
+#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#include <fcntl.h>
|
|
@ -9,13 +9,12 @@ include/BOINC/boinc_win.h
|
|||
include/BOINC/boinc_zip.h
|
||||
include/BOINC/common_defs.h
|
||||
include/BOINC/config.h
|
||||
include/BOINC/coproc.h
|
||||
include/BOINC/crypt.h
|
||||
include/BOINC/diagnostics.h
|
||||
include/BOINC/error_numbers.h
|
||||
include/BOINC/filesys.h
|
||||
include/BOINC/graphics_api.h
|
||||
include/BOINC/graphics_impl.h
|
||||
include/BOINC/graphics_lib.h
|
||||
include/BOINC/graphics2.h
|
||||
include/BOINC/gui_rpc_client.h
|
||||
include/BOINC/gutil.h
|
||||
include/BOINC/hostinfo.h
|
||||
|
@ -31,9 +30,6 @@ include/BOINC/version.h
|
|||
include/BOINC/util.h
|
||||
lib/libboinc.a
|
||||
lib/libboinc_api.a
|
||||
%%BOINC_GUI%%lib/libboinc_graphics_api.a
|
||||
%%BOINC_GUI%%lib/libboinc_graphics_impl.a
|
||||
%%BOINC_GUI%%lib/libboinc_graphics_lib.a
|
||||
%%BOINC_GUI%%lib/libboinc_graphics2.a
|
||||
lib/libboinc_zip.a
|
||||
@dirrm include/BOINC
|
||||
|
|
Loading…
Reference in a new issue