Gentoo Archives: gentoo-commits

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