1 |
commit: a1fbc9fae62011986a7b80d27c5a23c43c75b066 |
2 |
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> |
3 |
AuthorDate: Mon Sep 6 14:08:15 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 10 07:22:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1fbc9fa |
7 |
|
8 |
net-misc/teamviewer: version bump to 15.21.4 |
9 |
|
10 |
upstream changelog: |
11 |
fix CVE-2021-34858, CVE-2021-34859 |
12 |
|
13 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
14 |
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/22233 |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
net-misc/teamviewer/Manifest | 4 + |
19 |
net-misc/teamviewer/teamviewer-15.21.4.ebuild | 163 ++++++++++++++++++++++++++ |
20 |
2 files changed, 167 insertions(+) |
21 |
|
22 |
diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest |
23 |
index 66024168f0c..be35b495bb1 100644 |
24 |
--- a/net-misc/teamviewer/Manifest |
25 |
+++ b/net-misc/teamviewer/Manifest |
26 |
@@ -4,3 +4,7 @@ DIST teamviewer_15.20.6_amd64.tar.xz 59943100 BLAKE2B 8d7c92056b72df1eb027c3ecbb |
27 |
DIST teamviewer_15.20.6_arm64.tar.xz 60154904 BLAKE2B 4b5079c90b7fb1d4468de0e726382b9faf1b7fdfd873b4000f6a43ec81eaea2f1ed40c642e736d2539318e4d4a67b9bc876868da7ca5c6f6ba9246b100a32b9a SHA512 b021b144b68a5cdb7f5186a6cff1d9bc41909272c9f9cb0d2fea81b820a1a0b669e5cf2a5576923575493dcde0b3b87917637dae5633c83754fc45651afc60fd |
28 |
DIST teamviewer_15.20.6_armhf.tar.xz 54563324 BLAKE2B b47fae120033f28472d1b3b1f69ed45a60e9c03c2032a263c274851e067809fd9527c02ab5f505fc417358c75fd93bdbfa94db1f9285d9b62678a1c265fa65a8 SHA512 a971ff53bdcaa045d8e69fd80e9e217f478e5d3488f6a41fe9c108bc7eb15f046c51510b482ea00515317181bc501ad22a8ca18507441040f0cde27f86936faa |
29 |
DIST teamviewer_15.20.6_i386.tar.xz 63206124 BLAKE2B f25fe894873d932786caf09a8ac64cb7d80ff850bb4290159868f3ef75b4bf8026fca4baf0cf9951c0ff69e05613a45c6c8b5ab33c8d3b05bd6a14d297fe9f8a SHA512 c41b0e9a5e1dec10ffcf493e135d6bc52dec501520e5cd35654538dd754f5eb409bd934375925da7b0b8f05004c6f38beefa8e44c95e776c5f99880fb430f648 |
30 |
+DIST teamviewer_15.21.4_amd64.tar.xz 59986736 BLAKE2B cfc437d5af70ff67358642ef7283a7d6c7be5fc49519f36ce9da962105ad194e3e4c485d993535f4f8979c37c01515ae0221a7f18f397b6ac74f1935ec4834d2 SHA512 49b060326a41951655763480b995dbd4d51d00f71262daae85b025d4fb69548a52601fba9520668f1292cb635a2434f081ec2f2eacceae5e03c88bba9b80b8bf |
31 |
+DIST teamviewer_15.21.4_arm64.tar.xz 60252416 BLAKE2B 54895af7df588a03d136029c39f3107a4a634bc60f2d032d02e87e31ec11730cddc033895ac15ca4b2050500bcca1cfed484561459146b051ccc2c865230bfe6 SHA512 4640362b54e3a25962ccb29ea436d0928f19433ef07a946e515f972ba130932ce6bcf3ed403178f39e70735bf881bae56f56ce38fe8c4547b6a09d7ba859243b |
32 |
+DIST teamviewer_15.21.4_armhf.tar.xz 54634980 BLAKE2B 152a42be4dc340f567034f2425c8a92c600000d1219f8d5ddaf0af78e3a720990d6375ee2724d3e8728958fce890a427d3ac0f36643a1af68f43f253cf43eac4 SHA512 fcb6551c47ed5d14a1b39540d93b50da7bc559a49dae907c406e10a15a29609514488a752ddfeefd10e0f5a00d0ec3a551d811cf421a1d7f46461a2507a385c4 |
33 |
+DIST teamviewer_15.21.4_i386.tar.xz 63280600 BLAKE2B c224b71cdfc01c8327503a6464c46b5e3c06f4886bbd40d93cc65662f6c53dee6bc0319a675117fac1670d98523186805b8bd002fda5cb7503a45a32c733c316 SHA512 933a09a41d42423aa4dbd6879ca9ed64dcc21ca2fb91aa1a9391fee7aee3d6e382635f20dbeeffebf9de3cb36b91f240668d4792a0d60a94ccfbf912289a385c |
34 |
|
35 |
diff --git a/net-misc/teamviewer/teamviewer-15.21.4.ebuild b/net-misc/teamviewer/teamviewer-15.21.4.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..156bef4ed7c |
38 |
--- /dev/null |
39 |
+++ b/net-misc/teamviewer/teamviewer-15.21.4.ebuild |
40 |
@@ -0,0 +1,163 @@ |
41 |
+# Copyright 1999-2021 Gentoo Authors |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=7 |
45 |
+ |
46 |
+inherit desktop optfeature systemd xdg |
47 |
+ |
48 |
+MY_MAJOR="$(ver_cut 1)" |
49 |
+MY_P="${PN}${MY_MAJOR}" |
50 |
+DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet" |
51 |
+HOMEPAGE="https://www.teamviewer.com" |
52 |
+MY_URI="https://dl.tvcdn.de/download/linux/version_${MY_MAJOR}x/${PN}_${PV}" |
53 |
+SRC_URI="amd64? ( ${MY_URI}_amd64.tar.xz ) |
54 |
+ arm? ( ${MY_URI}_armhf.tar.xz ) |
55 |
+ arm64? ( ${MY_URI}_arm64.tar.xz ) |
56 |
+ x86? ( ${MY_URI}_i386.tar.xz )" |
57 |
+S="${WORKDIR}"/teamviewer |
58 |
+ |
59 |
+LICENSE="TeamViewer MIT" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="-* ~amd64 ~x86" |
62 |
+RESTRICT="bindist mirror" |
63 |
+ |
64 |
+# Unpack will fail without app-arch/xz-utils[extra-filters], bug #798027 |
65 |
+BDEPEND="app-arch/xz-utils[extra-filters]" |
66 |
+ |
67 |
+RDEPEND=" |
68 |
+ dev-libs/glib:2 |
69 |
+ dev-libs/nspr |
70 |
+ dev-libs/nss |
71 |
+ media-libs/fontconfig |
72 |
+ media-libs/freetype |
73 |
+ media-libs/libglvnd[X] |
74 |
+ sys-apps/dbus |
75 |
+ sys-apps/util-linux |
76 |
+ sys-libs/zlib:0/1[minizip] |
77 |
+ x11-libs/libICE |
78 |
+ x11-libs/libSM |
79 |
+ x11-libs/libX11 |
80 |
+ x11-libs/libXScrnSaver |
81 |
+ x11-libs/libXcomposite |
82 |
+ x11-libs/libXcursor |
83 |
+ x11-libs/libXdamage |
84 |
+ x11-libs/libXext |
85 |
+ x11-libs/libXfixes |
86 |
+ x11-libs/libXi |
87 |
+ x11-libs/libXrandr |
88 |
+ x11-libs/libXrender |
89 |
+ x11-libs/libXtst |
90 |
+ x11-libs/libxcb |
91 |
+ x11-libs/libxkbcommon[X] |
92 |
+ x11-libs/xcb-util-image |
93 |
+ x11-libs/xcb-util-keysyms |
94 |
+ x11-libs/xcb-util-renderutil |
95 |
+ x11-libs/xcb-util-wm |
96 |
+" |
97 |
+# For consolekit incompatibility see https://forums.gentoo.org/viewtopic-p-8332956.html#8332956 |
98 |
+ |
99 |
+QA_PREBUILT="opt/${MY_P}/*" |
100 |
+ |
101 |
+src_prepare() { |
102 |
+ default |
103 |
+ |
104 |
+ # Switch operation mode from 'portable' to 'installed' |
105 |
+ sed -e "s/TAR_NI/TAR_IN/g" -i tv_bin/script/tvw_config || die |
106 |
+ |
107 |
+ sed -i \ |
108 |
+ -e "/^ExecStart/s|${PN}|${MY_P}|" \ |
109 |
+ -e "/^PIDFile/s|/var/run/|/run/|" \ |
110 |
+ tv_bin/script/teamviewerd.service || die |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ local dst="/opt/${MY_P}" # install destination |
115 |
+ |
116 |
+ # Quirk: |
117 |
+ # Remove Intel 80386 32-bit ELF binary 'libdepend' present in all |
118 |
+ # archives. It will trip the 'emerge @preserved-libs' logic on amd64 |
119 |
+ # when changing the ABI of one of its dependencies. According to the |
120 |
+ # TeamViewer devs, this binary is an unused remnant of previous Wine- |
121 |
+ # based builds and will be removed in future releases anyway |
122 |
+ rm tv_bin/script/libdepend || die |
123 |
+ |
124 |
+ insinto ${dst} |
125 |
+ doins -r tv_bin |
126 |
+ |
127 |
+ # Set permissions for executables and libraries |
128 |
+ local exe |
129 |
+ for exe in $(find tv_bin -type f -executable -or -name '*.so' || die); do |
130 |
+ fperms +x ${dst}/${exe} |
131 |
+ done |
132 |
+ |
133 |
+ newinitd "${FILESDIR}"/teamviewerd15.init teamviewerd |
134 |
+ systemd_dounit tv_bin/script/teamviewerd.service |
135 |
+ |
136 |
+ insinto /usr/share/dbus-1/services |
137 |
+ doins tv_bin/script/com.teamviewer.TeamViewer.service |
138 |
+ doins tv_bin/script/com.teamviewer.TeamViewer.Desktop.service |
139 |
+ |
140 |
+ insinto /usr/share/polkit-1/actions |
141 |
+ doins tv_bin/script/com.teamviewer.TeamViewer.policy |
142 |
+ |
143 |
+ local size |
144 |
+ for size in 16 24 32 48 256; do |
145 |
+ newicon -s ${size} tv_bin/desktop/teamviewer_${size}.png teamviewer.png |
146 |
+ done |
147 |
+ |
148 |
+ dodoc -r doc |
149 |
+ |
150 |
+ # Make docs available in expected location |
151 |
+ dosym ../../usr/share/doc/${PF}/doc ${dst}/doc |
152 |
+ |
153 |
+ # We need to keep docs uncompressed, bug #778617 |
154 |
+ docompress -x /usr/share/doc/${PF}/. |
155 |
+ |
156 |
+ keepdir /etc/${MY_P} |
157 |
+ dosym ../../etc/${MY_P} ${dst}/config |
158 |
+ |
159 |
+ # Create directory and symlink for log files (NOTE: according to Team- |
160 |
+ # Viewer devs, all paths are hard-coded in the binaries; therefore |
161 |
+ # using the same path as the DEB/RPM archives, i.e. '/var/log/teamviewer |
162 |
+ # <major-version>') |
163 |
+ keepdir /var/log/${MY_P} |
164 |
+ dosym ../../var/log/${MY_P} ${dst}/logfiles |
165 |
+ |
166 |
+ dodir /opt/bin |
167 |
+ dosym ${dst}/tv_bin/teamviewerd /opt/bin/teamviewerd |
168 |
+ dosym ${dst}/tv_bin/script/teamviewer /opt/bin/teamviewer |
169 |
+ |
170 |
+ make_desktop_entry teamviewer "TeamViewer ${MY_MAJOR}" |
171 |
+} |
172 |
+ |
173 |
+pkg_postinst() { |
174 |
+ xdg_pkg_postinst |
175 |
+ |
176 |
+ ewarn |
177 |
+ ewarn "Please note that the teamviewer gui works only when started from" |
178 |
+ ewarn "a session initiated by a display manager." #799137 |
179 |
+ optfeature_header "Install one of the following display managers:" |
180 |
+ optfeature "an example display manager" x11-misc/cdm gnome-base/gdm gui-apps/gtkgreet x11-misc/lightdm lxde-base/lxdm sys-apps/qingy x11-misc/sddm x11-misc/slim x11-misc/wdm x11-apps/xdm |
181 |
+ |
182 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
183 |
+ elog |
184 |
+ elog "Please note that parallel installation of multiple versions of" |
185 |
+ elog "TeamViewer is currently not supported at runtime. Bug #621818" |
186 |
+ elog |
187 |
+ elog "Before using TeamViewer, you need to start its daemon:" |
188 |
+ elog "OpenRC:" |
189 |
+ elog "# /etc/init.d/teamviewerd start" |
190 |
+ elog "# rc-update add teamviewerd default" |
191 |
+ elog |
192 |
+ elog "Systemd:" |
193 |
+ elog "# systemctl start teamviewerd.service" |
194 |
+ elog "# systemctl enable teamviewerd.service" |
195 |
+ elog |
196 |
+ elog "To display additional command line options simply run:" |
197 |
+ elog "$ teamviewer help" |
198 |
+ elog |
199 |
+ elog "Most likely TeamViewer will work normally only on systems with systemd" |
200 |
+ elog "or elogind. See this thread for additional info:" |
201 |
+ elog "https://forums.gentoo.org/viewtopic-p-8332956.html#8332956" |
202 |
+ fi |
203 |
+} |