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