From owner-svn-ports-head@FreeBSD.ORG Sun Jul 27 09:36:58 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B23DC511; Sun, 27 Jul 2014 09:36:58 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8520128AB; Sun, 27 Jul 2014 09:36:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6R9awZG099106; Sun, 27 Jul 2014 09:36:58 GMT (envelope-from marino@svn.freebsd.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6R9awsd099104; Sun, 27 Jul 2014 09:36:58 GMT (envelope-from marino@svn.freebsd.org) Message-Id: <201407270936.s6R9awsd099104@svn.freebsd.org> From: John Marino Date: Sun, 27 Jul 2014 09:36:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r363031 - in head/net/boinc-client: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2014 09:36:58 -0000 Author: marino Date: Sun Jul 27 09:36:57 2014 New Revision: 363031 URL: http://svnweb.freebsd.org/changeset/ports/363031 QAT: https://qat.redports.org/buildarchive/r363031/ Log: net/boinc-client: Fix to detect virtualbox again The virtualbox path detection code has been patched to work on FreeBSD. The PR submission was modified to avoid hardcoding /usr/local. PR: 188710 Submitted by: Lawrence Chen Added: head/net/boinc-client/files/patch-client__hostinfo_unix.cpp (contents, props changed) Modified: head/net/boinc-client/Makefile Modified: head/net/boinc-client/Makefile ============================================================================== --- head/net/boinc-client/Makefile Sun Jul 27 09:05:49 2014 (r363030) +++ head/net/boinc-client/Makefile Sun Jul 27 09:36:57 2014 (r363031) @@ -3,7 +3,7 @@ PORTNAME= boinc-client PORTVERSION= 7.2.33 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_LOCAL} \ ftp://rene-ladan.nl/pub/distfiles/ @@ -124,6 +124,10 @@ post-extract: ${WRKSRC}/zip/zip/zip.c ${WRKSRC}/zip/zip/zipfile.c \ ${WRKSRC}/zip/zip/zipup.c +post-patch: + ${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|' \ + ${WRKSRC}/client/hostinfo_unix.cpp + pre-configure: (cd ${WRKSRC} ; ./_autosetup) Added: head/net/boinc-client/files/patch-client__hostinfo_unix.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/boinc-client/files/patch-client__hostinfo_unix.cpp Sun Jul 27 09:36:57 2014 (r363031) @@ -0,0 +1,20 @@ +--- client/hostinfo_unix.cpp.orig 2013-12-20 14:28:08.000000000 -0600 ++++ client/hostinfo_unix.cpp 2014-04-16 17:07:56.996236131 -0500 +@@ -1213,6 +1213,8 @@ + + #if LINUX_LIKE_SYSTEM + safe_strcpy(path, "/usr/lib/virtualbox/VBoxManage"); ++#elif defined( __FreeBSD__) ++ safe_strcpy(path, "@PREFIX@/lib/virtualbox/VBoxManage"); + #elif defined( __APPLE__) + FSRef theFSRef; + OSStatus status = noErr; +@@ -1231,7 +1233,7 @@ + #endif + + if (boinc_file_exists(path)) { +-#if LINUX_LIKE_SYSTEM ++#if LINUX_LIKE_SYSTEM || defined( __FreeBSD__) + if (access(path, X_OK)) { + return 0; + }