Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/teamviewer/
Date: Mon, 01 Feb 2021 15:04:13
Message-Id: 1612191841.fd6ec25d5434769d652e444023a89e1c62bca42d.whissi@gentoo
1 commit: fd6ec25d5434769d652e444023a89e1c62bca42d
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 15:04:01 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 15:04:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd6ec25d
7
8 net-misc/teamviewer: bump to v15.14.5
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 net-misc/teamviewer/Manifest | 2 +
14 net-misc/teamviewer/teamviewer-15.14.5.ebuild | 136 ++++++++++++++++++++++++++
15 2 files changed, 138 insertions(+)
16
17 diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest
18 index 8504d7a88fc..0c0497b2c0e 100644
19 --- a/net-misc/teamviewer/Manifest
20 +++ b/net-misc/teamviewer/Manifest
21 @@ -1,2 +1,4 @@
22 DIST teamviewer_15.14.3_amd64.tar.xz 13216052 BLAKE2B d5fa55609a2bb6257c1fc95ec9dd3f330a4729c2af230600730fed06239b5cf2991733958790e254edb1d83191fd3467ae4b82547b089208799ee264c913506b SHA512 2bdeb5563c48595ed6bbbaa21e3ab63f670da082bcef297052f974c62c15ec085385d055f9be6a6fabaa61aa57d213a8dd0aaa1700f9ff20ad8ced0655684d4f
23 DIST teamviewer_15.14.3_i386.tar.xz 13733488 BLAKE2B 14def908b2c2e86b49649264b0eab4b15594e15425b98333720f0025a0530cf3e2c350f54b996f6d48a6f44dd368899fec95c38ddeb6b909992fecf80a2bdc46 SHA512 02a2843424a19252546ce0598f0ec52dd4a0d02148e379c944b7976bba794858cc1ca58724bf5b9828b6dd38e3f3989bab8b17d7ca9285596fd450d2ce753668
24 +DIST teamviewer_15.14.5_amd64.tar.xz 13224544 BLAKE2B 2cefeebce0a4c31ba84e554882400ee65b6a44d7c335125cd25dfd4e9e4aa02b34708d679873a52b31e46c5157ac7d6a89d8b77848453fc7733f8931964202fc SHA512 723a63d9490df367c3f072da9ed79d84e38de60c67ca78c10b01612f48fe1afe0d379b414f898f342ddab336b9689d2f38b76d9ff83654a789e8059b2da886ad
25 +DIST teamviewer_15.14.5_i386.tar.xz 13724612 BLAKE2B 09558e5bc3b5db9ac57a038af14eb56816a5f272a637cfb3f73bfe072836a3011ff14f5e8acdd50889d66a9422fdc0d14f50eccfa908c6e796544d93f30961ed SHA512 5c38cd3106adf69c6b27d8696ff6c3d49a1a1450e317b07af20e7b2c2351102fcd6a0d61a9e1ce1f75968db048461adcb3dd5d5b0cf98b3de94719ccfed93586
26
27 diff --git a/net-misc/teamviewer/teamviewer-15.14.5.ebuild b/net-misc/teamviewer/teamviewer-15.14.5.ebuild
28 new file mode 100644
29 index 00000000000..4636957e3f9
30 --- /dev/null
31 +++ b/net-misc/teamviewer/teamviewer-15.14.5.ebuild
32 @@ -0,0 +1,136 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +MY_PN=${PN}${PV/\.*}
39 +inherit desktop systemd xdg
40 +
41 +DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet"
42 +HOMEPAGE="https://www.teamviewer.com"
43 +SRC_URI="amd64? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_amd64.tar.xz )
44 + x86? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_i386.tar.xz )"
45 +
46 +LICENSE="TeamViewer MIT"
47 +SLOT="0"
48 +KEYWORDS="-* ~amd64 ~x86"
49 +IUSE=""
50 +
51 +DEPEND="sys-apps/sed"
52 +RDEPEND="
53 + dev-qt/qtcore:5
54 + dev-qt/qtdbus:5
55 + dev-qt/qtdeclarative:5
56 + dev-qt/qtgui:5
57 + dev-qt/qtnetwork:5
58 + dev-qt/qtquickcontrols:5
59 + dev-qt/qtwebkit:5
60 + dev-qt/qtwidgets:5
61 + dev-qt/qtx11extras:5
62 + sys-apps/dbus
63 + !sys-auth/consolekit
64 +"
65 +
66 +# For consolekit incompatibility see https://forums.gentoo.org/viewtopic-p-8332956.html#8332956
67 +
68 +RESTRICT="bindist mirror"
69 +
70 +# Silence QA messages
71 +QA_PREBUILT="opt/${MY_PN}/*"
72 +
73 +S="${WORKDIR}"/teamviewer
74 +
75 +src_prepare() {
76 + default
77 +
78 + # Switch operation mode from 'portable' to 'installed'
79 + sed -e "s/TAR_NI/TAR_IN/g" -i tv_bin/script/tvw_config || die
80 +
81 + sed -e "/^ExecStart/s/${PN}/${MY_PN}/" \
82 + -i tv_bin/script/teamviewerd.service || die
83 +}
84 +
85 +src_install() {
86 + local dst="/opt/${MY_PN}" # install destination
87 +
88 + # Quirk:
89 + # Remove Intel 80386 32-bit ELF binary 'libdepend' present in all
90 + # archives. It will trip the 'emerge @preserved-libs' logic on amd64
91 + # when changing the ABI of one of its dependencies. According to the
92 + # TeamViewer devs, this binary is an unused remnant of previous Wine-
93 + # based builds and will be removed in future releases anyway
94 + rm tv_bin/script/libdepend
95 +
96 + insinto ${dst}
97 + doins -r tv_bin
98 +
99 + # Set permissions for executables and libraries
100 + for exe in $(find tv_bin -type f -executable -or -name '*.so'); do
101 + fperms 755 ${dst}/${exe}
102 + done
103 +
104 + # No slotting here, binary expects this service path
105 + newinitd "${FILESDIR}"/teamviewerd15.init teamviewerd
106 + systemd_dounit tv_bin/script/teamviewerd.service
107 +
108 + insinto /usr/share/dbus-1/services
109 + doins tv_bin/script/com.teamviewer.TeamViewer.service
110 + doins tv_bin/script/com.teamviewer.TeamViewer.Desktop.service
111 +
112 + insinto /usr/share/polkit-1/actions
113 + doins tv_bin/script/com.teamviewer.TeamViewer.policy
114 +
115 + for size in 16 24 32 48 256; do
116 + newicon -s ${size} tv_bin/desktop/teamviewer_${size}.png TeamViewer.png
117 + done
118 +
119 + # Install documents (NOTE: using 'dodoc -r doc' instead of loop will
120 + # have the undesired result of installing subdirectory 'doc' in /usr/
121 + # share/doc/teamviewer-<version>)
122 + for doc in $(find doc -type f); do
123 + dodoc ${doc}
124 + done
125 +
126 + keepdir /etc/${MY_PN}
127 + dosym ../../etc/${MY_PN} ${dst}/config
128 +
129 + # Create directory and symlink for log files (NOTE: according to Team-
130 + # Viewer devs, all paths are hard-coded in the binaries; therefore
131 + # using the same path as the DEB/RPM archives, i.e. '/var/log/teamviewer
132 + # <major-version>')
133 + keepdir /var/log/${MY_PN}
134 + dosym ../../var/log/${MY_PN} ${dst}/logfiles
135 +
136 + dodir /opt/bin
137 + dosym ${dst}/tv_bin/teamviewerd /opt/bin/teamviewerd
138 + dosym ${dst}/tv_bin/script/teamviewer /opt/bin/teamviewer
139 +
140 + make_desktop_entry teamviewer "TeamViewer ${SLOT}" TeamViewer
141 +}
142 +
143 +pkg_postinst() {
144 + xdg_pkg_postinst
145 +
146 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
147 + # This is a new installation
148 +
149 + elog "Please note that parallel installation of multiple versions of"
150 + elog "TeamViewer is currently not supported at runtime. Bug #621818"
151 + elog ""
152 + elog "Before using TeamViewer, you need to start its daemon:"
153 + elog "OpenRC:"
154 + elog "# /etc/init.d/teamviewerd start"
155 + elog "# rc-update add teamviewerd default"
156 + elog
157 + elog "Systemd:"
158 + elog "# systemctl start teamviewerd.service"
159 + elog "# systemctl enable teamviewerd.service"
160 + elog
161 + elog "To display additional command line options simply run:"
162 + elog "$ teamviewer help"
163 + elog
164 + elog "Most likely TeamViewer will work normally only on systems with systemd"
165 + elog "or elogind. See this thread for additional info:"
166 + elog "https://forums.gentoo.org/viewtopic-p-8332956.html#8332956"
167 + fi
168 +}