1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

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
This commit is contained in:
John Marino 2014-07-27 09:36:57 +00:00
parent 243c0fd56d
commit 49948a095f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363031
2 changed files with 25 additions and 1 deletions

View File

@ -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)

View File

@ -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;
}