Commit graph

104 commits

Author SHA1 Message Date
Renato Botelho
6b0def58e2 emulators/open-vm-tools: Add DEPLOYPKG option
Before this change, open-vm-tools port used to depend inconditionally of
libmspack, which is a requirement of DeployPkg plugin.  It turns out
that configure script only enable this plugin automatically on linux, so
it was not being built and dependency was not supposed to be there.

Instead of removing bogus dependency, I decided to add DEPLOYPKG option,
used to enable that plugin and left it off by default in order to
preserve previous default behavior.

Some changes on source code were needed to make DeployPkg to build on
FreeBSD and are done by new patches, which I intend to submit upstream.

Reported by:	vangyzen
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2023-07-19 12:38:44 -03:00
Renato Botelho
af3ba1edf2 emulators/open-vm-tools: Update to 12.2.0
PR:		270077
Reported by:	John Wolfe <jwolfe@vmware.com>
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2023-03-10 18:56:15 -03:00
Renato Botelho
4126c3ae4f emulators/open-vm-tools: Unbreak build on CURRENT
Fix build on CURRENT after NDFREE retirement

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-12-22 13:29:28 -03:00
Geoff Davis
8f9a376fdf emulators/open-vm-tools: Fix vmware-guestd rc
Add eval to the call to ${checkvm_cmd} to make sure stdout/stderr are
redirect to /dev/null and remove spurious output when it's executed

PR:		266520
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-10-03 14:55:12 -03:00
John Baldwin
5e788414f6 emulators/open-vm-tools: Update for changes to kmem_*() in main.
Reviewed by:	garga
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D36734
2022-09-26 16:27:08 -07:00
Renato Botelho
eb65cf5cbe emulators/open-vm-tools: Update to 12.0.5
- Update to 12.0.5 [1]
- Silence checkvm_cmd [2]

PR:		264241 [1], 264564 [2]
Reported by:	John Wolfe <jwolfe@vmware.com> [1], oz42@oz42.eu [2]
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-08-12 10:28:46 -03:00
Renato Botelho
30dfe4eba5 emulators/open-vm-tools: Fix build on current
Since 8b83d7e0ee544, -Wunused-but-set-variable became a fatal error on
CURRENT.  Remove a couble of set-but-not-used variables and fix the
build

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-04-20 11:54:12 -03:00
Dimitry Andric
c55c6dd676 emulators/open-vm-tools: fix build after 2587b74c6187 removed NDF_ONLY_PNBUF
After base commit 2587b74c6187, which removed NDF_ONLY_PNBUF,
emulators/open-vm-tools fails to build, with:

--- vfsops.o ---
vfsops.c:190:16: error: use of undeclared identifier 'NDF_ONLY_PNBUF'; did you mean 'NDFREE_PNBUF'?
   NDFREE(ndp, NDF_ONLY_PNBUF);
               ^~~~~~~~~~~~~~
               NDFREE_PNBUF
/usr/src/sys/sys/namei.h:291:6: note: 'NDFREE_PNBUF' declared here
void NDFREE_PNBUF(struct nameidata *);
     ^

Indeed, NDFREE_PNBUF() should now be used.

PR:		263041
Approved by:	garga (maintainer)
MFH:		2022Q2
2022-04-04 19:54:55 +02:00
Renato Botelho
491b15ab8e emulators/open-vm-tools: Fix build on current
After src commit 66c5fbca7719dca1ac361a010fa511a4514a662d, insmntque1()
changed to have only 2 arguments, breaking open-vm-tools.

Added a patch to call the new version on recent current and call
destructor to make sure it runs.

Suggested by:	kib
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-02-04 16:10:16 -03:00
Renato Botelho
ecfed7ee5c emulators/open-vm-tools: Fix build after 1400043
NDINIT() last parameter was removed after this osversion

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2021-11-30 16:23:59 -03:00
Renato Botelho
fd649cf025 emulators/open-vm-tools: Fix build
Remove some patches introduced by 42dfc139f6 that are note needed on
11.3.0 and fix build

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2021-08-18 15:54:18 -03:00
Neel Chauhan
42dfc139f6 emulators/open-vm-tools: Prepare for glib 2.68.3
PR:	256200
2021-08-02 19:47:10 -07:00
Mathieu Arnold
135fdeebb9
all: Remove all other $FreeBSD keywords. 2021-04-06 16:31:13 +02:00
Renato Botelho
f310ea8b50 emulators/open-vm-tools: Update to 11.2.5 and other changes
- Update to 11.2.5 [1]
- Make fuse dependency optional adding new FUSE option, enabled by default [2]
- Remove CONFLICTS with packages that were removed years ago
- Remove DOCS items from pkg-plist and use PORTDOCS instead
- Install default tools.conf [1]
- Do not mkdir directories not covered by pkg-plist
- Rework patch-lib_guestApp_guestApp.c to respect ${PREFIX}
- vmware-kmod.in:
	- Simplify logic
	- Use kldstat -q instead of redirect stdout/stderr [2]
- Partially restore @preunexec removed in r473438.  Set tools.set.version as 0
  is important to let hypervisor to be notified package is removed.  Otherwise
  vCenter console shows tools status as "installed" but "not-running". [3]

PR:		252699 [1]
		226204 [2]
		246440 [3]
Submitted by:	John Wolfe <jwolfe@vmware.com> [1] [3]
		ohauer [2]
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2021-03-25 12:10:00 +00:00
Renato Botelho
ba6f0e996f emulators/open-vm-tools: Flavorize and other tweaks
- Remove emulators/open-vm-tools-nox11 and create a nox11 flavor
- Regenerate patches with make makepatch
- Sort Makefile and make portclippy and portlint happy
- Remove unused variables
- Simplify Makefile

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2021-03-17 16:44:10 +00:00
Dima Panov
a785804107 emulators/open-vm-tools: update to 11.2.0 release
PR:		250550
Submitted by:	fluffy
Approved by:	jpaetzel
2020-12-31 19:17:51 +00:00
Josh Paetzel
63a41f899a Fix an issue where the rc.d script can error out because it was run before ldconfig
PR:	250407
Submitted by:	dim
Sponsored by:	Panzura
2020-10-21 18:47:28 +00:00
Josh Paetzel
b8827782a8 Update to 11.1.5
There's no functional changes in this update that apply to FreeBSD.  Upstream fixed
some issues detected by coverity.

https://github.com/vmware/open-vm-tools/blob/stable-11.1.5/ReleaseNotes.md

PR:	248782
Submitted by:	John Wolfe <jwolfe@vmware.com>
Sponsored by:	Panzura, Inc
2020-09-10 13:27:57 +00:00
Josh Paetzel
887979b55a Fix compilation in a -fno-common universe 2020-08-24 00:40:41 +00:00
Jung-uk Kim
83c07b27c6 - Install a script in ${PREFIX}/bin rather than /usr/bin. Fix plist.
- Add DOCS option for consistent build.  Documentation was automatically
built when doxygen was found by the configure script.

PR:		246468
Approved by:	jpaetzel (maintainer)
2020-05-15 03:52:33 +00:00
Josh Paetzel
cdded8b1e2 Update to version 11.1.0
In terms of functionality this update is a no-op on
FreeBSD.  Some local patches were upstreamed and have
been removed from the port.

Tested matrix is ESXi 6.5 and 6.7, and Fusion.
FreeBSD HEAD, 12.1-R, 12.0-R and 11.3-R AMD64

The test plan ensures the VM power control works from
the management app, that the memory balloon driver operates
properly, and that reporting back to vCenter as far as IP
and whether the tools are installed and operational works.

In particular no i386 versions of FreeBSD were
explicitly tested, nor was any testing done on ESXi 7.0

https://github.com/vmware/open-vm-tools/blob/stable-11.1.0/ReleaseNotes.md

The new functionality in this version of the tools is Windows/Linux
only.  See the listed PR for the pieces FreeBSD needs to achieve parity.

PR:	246338
Submitted by:	jwolfe@vmware.com
Sponsored by:	Panzura
2020-05-14 14:18:16 +00:00
Josh Paetzel
e43dda5328 Unbreak build on HEAD
PR:	243864
Submitted by:	Ruslan Garipov <brigadir15@gmail.com>
Sponsored by:	Panzura
2020-02-06 20:18:10 +00:00
Josh Paetzel
1ed4644786 Fix build on HEAD
PR:	243240
Submitted by:	Ruslan Garipov <brigadir15@gmail.com>
2020-01-11 16:32:46 +00:00
Josh Paetzel
801426181a Fix build on HEAD
PR:	242679
Submitted by:	Ruslan Garipov <brigadir15@gmail.com>
Reviewed by:	jhb
2020-01-11 16:24:54 +00:00
Brooks Davis
861caa6012 Fix build with src r354909 applied. 2019-11-22 19:45:11 +00:00
Josh Paetzel
0616fa1a22 Update rc.d script to chase the removal of vmxnet
PR:	241580
Submitted by:	ard_1@mail.ru
2019-10-30 16:10:41 +00:00
Josh Paetzel
29c57298f2 Update to version 11.0.1
The biggest change is the removal of vmxnet from this package.  This means you
*must* be using the vmx driver included in FreeBSD or your networking will fail
after this update.  This is a danger for people who are running unsupported versions
of FreeBSD but could also affect people who are running custom kernels that have
removed vmx from them.

This update reduces our patchset by taking advantage of patches submitted upstream.

Sponsored by:	Panzura
2019-10-29 14:36:04 +00:00
Josh Paetzel
a9164c0a1c Update to 10.3.0
PR:	229985
Submitted by:	John Wolfe <jwolfe@vmware.com>
2018-09-29 05:29:28 +00:00
Josh Paetzel
ba2015fb66 Chase FreeBSD HEAD changes
r338318, r338143

The patches have been upstreamed to VMware.

Submitted by:	dim
2018-08-31 18:13:56 +00:00
Josh Paetzel
69f24b93f5 Update to version 10.2.5
For the most part this is just to track upstream for FreeBSD.
In particular 10.2.0 introduced a regression whereby UFS support
was dropped.  The fix was backported to the FreeBSD port of 10.2.0
in lieu of waiting for 10.2.5 to be released.

PR:	227124
Submitted by:	John Wolfe <jwolfe@vmware.com>
2018-05-28 02:04:36 +00:00
Josh Paetzel
25959fc500 Unbreak after src r333813
Fallout from being out of tree.
2018-05-23 22:37:05 +00:00
Josh Paetzel
9caf09de92 Reintegrate accidentally removed patch
Along the way remove a patch that is no longer
needed.

Reported by:	John Wolfe <jwolfe@vmware.com>
Pointyhat:	jpaetzel
2018-03-13 14:20:24 +00:00
Josh Paetzel
445f4b448a Fix bug that causes crashes when running commands from the host
PR:	226478
Submitted by:	german.mb@gmail.com
Reviewed by:	John Wolfe <jwolfe@vmware.com>
2018-03-10 22:56:54 +00:00
Josh Paetzel
2715780414 Backport a fix from upstream that broke UFS
Reported by:	dim
Obtained from:	VMware
2018-02-25 15:35:07 +00:00
Josh Paetzel
8bea5017d1 Fix build with clang 6.0.0
Also avoids an endless loop in practice

PR:	224816
Submitted by:	dim
2018-01-02 14:45:06 +00:00
Josh Paetzel
6342be5e7d Update to 10.2.0
See the following link for the full release notes for this release:
https://github.com/vmware/open-vm-tools/blob/10.2.x/ReleaseNotes.md

PR:	224373
Submitted by:	John Wolfe <jwolfe@vmware.com>
2017-12-23 05:20:29 +00:00
Josh Paetzel
dd74544a2b Update to 10.1.10
Improvements include:

  - Improved OS detection and reporting for FreeBSD 11 and 12.
  - Improved networking resume for DHCP FreeBSD guests.
  - Check for Xen, VirtualPC etc., only if VMware not detected.
  - Improve timesync when the offset is large.

Full changelog is available at:
https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/ChangeLog

PR:	221194
2017-08-29 16:43:48 +00:00
John Baldwin
db9b491670 Don't leak lock from os_kmem_alloc().
The current port patches for os_kmem_alloc() add VM object locking.
However, the lock is not unlocked in the success case because the
unlock code is inside of an if body instead of after the if statement.

Reported by:	jpaetzel
Reviewed by:	jpaetzel
Approved by:	swills
MFH:		2017Q3
Differential Revision:	https://reviews.freebsd.org/D12038
2017-08-17 17:47:58 +00:00
Steve Wills
f2e6e3cde5 emulators/open-vm-tools: update to 10.1.5 2017-06-30 18:37:49 +00:00
Renato Botelho
c8cb3b67f8 Make vmware-kmod startup script to return 1 when it fails
Approved by:	swills (maintainer)
MFH:		2017Q2
Sponsored by:	Rubicon Communications (Netgate)
Differential Revision:	https://reviews.freebsd.org/D10397
2017-04-14 17:36:31 +00:00
Steve Wills
15b8d7f152 emulators/open-vm-tools: improve scripts
Make it possible to disable the rc scripts.
Still default to enabled, but only when checkvm says we are in a VM.
While here, improve scripts slightly.

Requested by:	mat
Tested by:	mat
2017-03-24 14:43:24 +00:00
Steve Wills
988c348b42 emulators/open-vm-tools: Update to 10.1.0
PR:		212471
2017-03-22 14:52:00 +00:00
Enji Cooper
c2f3d4d0d9 emulators/open-vm-tools: change sysctl_add_oid use to SYSCTL_ADD_OID
sysctl_add_oid was changed in base/head@r310051 to take a label parameter,
and open-vm-tools doesn't supply it as it depends on the old KPI signature.
SYSCTL_ADD_OID doesn't require the label parameter since its inception
though, thus it's a backwards compatible solution for adding sysctl oids.

PR:		215353
Reported by:	dim
Submitted by:	ed
Reviewed by:	ed, lwhsu
Approved by:	lwhsu
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D9698
2017-02-21 19:20:47 +00:00
Mathieu Arnold
a0bcd2cf68 Use USES=pathfix where applicable.
PR:		213195
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D8093
2016-10-21 15:21:13 +00:00
Steve Wills
62a1fbb41a emulators/open-vm-tools: Fix build with clang 3.9.0
PR:		212426
Submitted by:	dim
2016-09-12 01:37:19 +00:00
Steve Wills
c8b07fac68 emulators/open-vm-tools: Fix pam issue
While here, fix a plist issue

PR:		200637
2015-06-07 12:53:15 +00:00
Dimitry Andric
63e8b9315e Fix -Werror warnings from clang 3.6.0 and higher about unused local
typedefs, which are used for hand-implementing compile-time assertions,
by adding an __unused__ attribute.

Approved by:	maintainer (swills)
PR:		198202
2015-03-02 21:36:51 +00:00
Koop Mast
92a684c4ff Fix build with clang 3.5.0.
PR:		196108
Submitted by:	dim@
Approved by:	maintainer (via IRC)
2015-02-14 13:36:48 +00:00
Brad Davis
2c554c596f Add a startup requirement on ldconfig so start up does not fail with:
Shared object "libiconv.so.2" not found, required by "libglib-2.0.so.0"

Approved by:	swills
2014-12-23 15:48:33 +00:00
Koop Mast
af3811313c The FreeBSD GNOME team proudly presents GNOME 3.14 and Cinnamon 2.2.
Gnome 3.14.1 and Cinnamon 2.2.16 are supported on FreeBSD 9.3-RELEASE and up.

This commit removes the old GNOME 2 desktop, bindings and some ports that
can't be compiled. A few ports where updated to more recent versions to
allow them to compile with this update.

Apart from updating ports to newer versions

GDM is more integrated with gnome-shell now, and handles several things for
the GNOME desktop such as screen locking. If you want to use GNOME 3 via
startx, you will have to add your own lock screen/screensaver. For example xscreensaver
can be used for sessions started without GDM.

Shell Extensions can be installed via https://extensions.gnome.org/ , we have
ported a few that can't be installed via this way.
The old gnome-utils and gnome-games ports where split up into single ports
and where converted to meta-ports.
gnome-terminal requires a UTF-8 locale to run, gdm handles this already, but
if you use startx you need to do this yourself.

Upgrade instructions:

Delete the old and conflicting packages:
# pkg delete clutter gnome-utils gnome-panel gnome-keyring vala-vapigen \
    guile gcalctool gnome-media libgnomekbd
# pkg delete gnome-screensaver gnome-applets bug-buddy evolution-exchange \
    evolution-webcal gnome-system-tools seahorse-plugins gnome-control-center

For package users the following lines will be enough:
# pkg upgrade
# pkg install gnome3

For ports users should do the following:
# portmaster -a
# portmaster x11/gnome3

We are currently aware of two issues. The first issue is a bug in the
file monitoring code in the glib20 port. This bug causes glib programs
to crash when files in a monitored directory are added or removed.
Upstream is aware of the problem, but since the problem is quite complex
there is no solution yet. This problem isn't restricted to BSD.

The second issue is that on certain video cards totem will display a
purple/pink overlay on the video. It not clear yet where the issues
comes from.

Major thanks goes to Gustau Perez for being a driving force behind getting
GNOME 3 up to speed again. Also thanks to Antoine Brodin for running the exp-runs.

This update was also made possible by:
	Joe Maloney
	Kris Moore
	Beeblebrox
	Ryan Lortie
	Antoine Jacoutot
	and everyone I missed
2014-11-19 11:49:04 +00:00