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