Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/open-vm-tools/
Date: Wed, 10 Feb 2021 00:16:26
Message-Id: 1612916101.92941620109d6b04acc464358aed5dbe4e1bd83d.floppym@gentoo
1 commit: 92941620109d6b04acc464358aed5dbe4e1bd83d
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 10 00:15:01 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 10 00:15:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92941620
7
8 app-emulation/open-vm-tools: bump to 11.2.5
9
10 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
11
12 app-emulation/open-vm-tools/Manifest | 1 +
13 .../open-vm-tools-11.2.5_p17337674.ebuild | 142 +++++++++++++++++++++
14 2 files changed, 143 insertions(+)
15
16 diff --git a/app-emulation/open-vm-tools/Manifest b/app-emulation/open-vm-tools/Manifest
17 index 9b7153cf2a2..879bf9f6a32 100644
18 --- a/app-emulation/open-vm-tools/Manifest
19 +++ b/app-emulation/open-vm-tools/Manifest
20 @@ -1 +1,2 @@
21 DIST open-vm-tools-11.2.0-16938113.tar.gz 4050857 BLAKE2B b0e5e1e985d9f3d50dbbb8a4a7939d37d8968f0aa15e6d7200b7ec8511bd059d3a78a4ddd763d22965dc6da614d156e6b7ee23af73490f8bbf8e1dc2664041d3 SHA512 c950d6e8ba5218dd40e845f3c2b09eeb640ef0d33c7ea1671164027927e062dcf0b4745f6e4515a7495ec20a6d06a8fbf700819f6211073194b5ef97d7be441d
22 +DIST open-vm-tools-11.2.5-17337674.tar.gz 4057528 BLAKE2B 2adc5179e09a4bb501fe12c9e6dea7fee106516fd250899170a8fb3bcefb9b576136a82e4c3d3a73217b44aba8880728bb3588cedd715529f9b2991f0156ac84 SHA512 b6d4bc6522418ec7a881752181ad9240e535854df492e758abf3996c6afe245466ffbff60cc1b6cdff5cf731b5769c9f9cb96aed29f0b788d0eef05f91fcf8ab
23
24 diff --git a/app-emulation/open-vm-tools/open-vm-tools-11.2.5_p17337674.ebuild b/app-emulation/open-vm-tools/open-vm-tools-11.2.5_p17337674.ebuild
25 new file mode 100644
26 index 00000000000..b67d57a3213
27 --- /dev/null
28 +++ b/app-emulation/open-vm-tools/open-vm-tools-11.2.5_p17337674.ebuild
29 @@ -0,0 +1,142 @@
30 +# Copyright 2007-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit autotools linux-info pam systemd
36 +
37 +DESCRIPTION="Opensourced tools for VMware guests"
38 +HOMEPAGE="https://github.com/vmware/open-vm-tools"
39 +MY_P="${PN}-${PV/_p/-}"
40 +SRC_URI="https://github.com/vmware/open-vm-tools/releases/download/stable-${PV%_p*}/${MY_P}.tar.gz"
41 +
42 +LICENSE="LGPL-2.1"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="X +deploypkg +dnet doc +fuse gtkmm +icu multimon pam +resolutionkms +ssl +vgauth"
46 +REQUIRED_USE="
47 + multimon? ( X )
48 + vgauth? ( ssl )
49 +"
50 +
51 +RDEPEND="
52 + dev-libs/glib
53 + net-libs/libtirpc
54 + deploypkg? ( dev-libs/libmspack )
55 + fuse? ( sys-fs/fuse:0 )
56 + pam? ( sys-libs/pam )
57 + ssl? ( dev-libs/openssl:0 )
58 + vgauth? (
59 + dev-libs/libxml2
60 + dev-libs/xmlsec
61 + )
62 + X? (
63 + x11-libs/libXext
64 + multimon? ( x11-libs/libXinerama )
65 + x11-libs/libXi
66 + x11-libs/libXrender
67 + x11-libs/libXrandr
68 + x11-libs/libXtst
69 + x11-libs/libSM
70 + x11-libs/libXcomposite
71 + x11-libs/gdk-pixbuf-xlib
72 + x11-libs/gtk+:3
73 + gtkmm? (
74 + dev-cpp/gtkmm:3.0
75 + dev-libs/libsigc++:2
76 + )
77 + )
78 + dnet? ( dev-libs/libdnet )
79 + icu? ( dev-libs/icu:= )
80 + resolutionkms? (
81 + x11-libs/libdrm[video_cards_vmware]
82 + virtual/libudev
83 + )
84 +"
85 +
86 +DEPEND="${RDEPEND}
87 + net-libs/rpcsvc-proto
88 +"
89 +
90 +BDEPEND="
91 + dev-util/glib-utils
92 + virtual/pkgconfig
93 + doc? ( app-doc/doxygen )
94 +"
95 +
96 +S="${WORKDIR}/${MY_P}"
97 +
98 +PATCHES=(
99 + "${FILESDIR}/10.1.0-mount.vmhgfs.patch"
100 + "${FILESDIR}/10.1.0-Werror.patch"
101 +)
102 +
103 +pkg_setup() {
104 + local CONFIG_CHECK="~VMWARE_BALLOON ~VMWARE_PVSCSI ~VMXNET3"
105 + use X && CONFIG_CHECK+=" ~DRM_VMWGFX"
106 + kernel_is -lt 3 9 || CONFIG_CHECK+=" ~VMWARE_VMCI ~VMWARE_VMCI_VSOCKETS"
107 + kernel_is -lt 3 || CONFIG_CHECK+=" ~FUSE_FS"
108 + kernel_is -lt 5 5 || CONFIG_CHECK+=" ~X86_IOPL_IOPERM"
109 + linux-info_pkg_setup
110 +}
111 +
112 +src_prepare() {
113 + eapply -p2 "${PATCHES[@]}"
114 + eapply_user
115 + eautoreconf
116 +}
117 +
118 +src_configure() {
119 + local myeconfargs=(
120 + --without-root-privileges
121 + $(use_enable multimon)
122 + $(use_with X x)
123 + $(use_with X gtk3)
124 + $(use_with gtkmm gtkmm3)
125 + $(use_enable doc docs)
126 + --disable-tests
127 + $(use_enable resolutionkms)
128 + --disable-static
129 + $(use_enable deploypkg)
130 + $(use_with pam)
131 + $(use_enable vgauth)
132 + $(use_with dnet)
133 + $(use_with icu)
134 + )
135 + # Avoid a bug in configure.ac
136 + use ssl || myeconfargs+=( --without-ssl )
137 +
138 + econf "${myeconfargs[@]}"
139 +}
140 +
141 +src_install() {
142 + default
143 + find "${ED}" -name '*.la' -delete || die
144 +
145 + if use pam; then
146 + rm "${ED}"/etc/pam.d/vmtoolsd || die
147 + pamd_mimic_system vmtoolsd auth account
148 + fi
149 +
150 + newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools
151 + newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools
152 +
153 + if use vgauth; then
154 + systemd_newunit "${FILESDIR}"/vmtoolsd.vgauth.service vmtoolsd.service
155 + systemd_dounit "${FILESDIR}"/vgauthd.service
156 + else
157 + systemd_dounit "${FILESDIR}"/vmtoolsd.service
158 + fi
159 +
160 + # Replace mount.vmhgfs with a wrapper
161 + mv "${ED}"/usr/sbin/{mount.vmhgfs,hgfsmounter} || die
162 + dosbin "${FILESDIR}/mount.vmhgfs"
163 +
164 + # Make fstype = vmhgfs-fuse work in fstab
165 + dosym vmhgfs-fuse /usr/bin/mount.vmhgfs-fuse
166 +
167 + if use X; then
168 + fperms 4711 /usr/bin/vmware-user-suid-wrapper
169 + dobin scripts/common/vmware-xdg-detect-de
170 + fi
171 +}