Gentoo Archives: gentoo-commits

From: Maxim Koltsov <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/teamviewer/
Date: Mon, 26 Mar 2018 20:08:54
Message-Id: 1522094922.207918284e4228bde971caf76b5cdfa4dd7479b7.maksbotan@gentoo
1 commit: 207918284e4228bde971caf76b5cdfa4dd7479b7
2 Author: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 26 20:08:42 2018 +0000
4 Commit: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 26 20:08:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20791828
7
8 net-misc/teamviewer: Bump to 13.1.3026
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-misc/teamviewer/Manifest | 2 +
13 net-misc/teamviewer/teamviewer-13.1.3026.ebuild | 129 ++++++++++++++++++++++++
14 2 files changed, 131 insertions(+)
15
16 diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest
17 index 78534e2c083..c3885d2a130 100644
18 --- a/net-misc/teamviewer/Manifest
19 +++ b/net-misc/teamviewer/Manifest
20 @@ -1,3 +1,5 @@
21 DIST teamviewer-9.0.32150.deb 22898922 BLAKE2B 799aa6f48b69247a2695ca745e85d02ffa73df1375203dfc9da339673e6c18d861c4146ddbdc509bdc1114d5a2a7e5fdd4acf3c6e5da61fbba5aaa02fa4e3cfd SHA512 3e72ed5cab7a754a0aa75e533da92292ad004f66c55ac4c386b6f4a65cc41b14a8d9d7a5410dccdb90c1172cd33e52383289339ab44f0847a061655498ab8e4d
22 DIST teamviewer_13.0.9865_amd64.tar.xz 11562916 BLAKE2B 93d3a31f43c530e96202c1ce9fba7bcb24553068662d8d61869ddd38b447ae859bae8fc9a9dddd228985c6c858fcf9714e523a0649ca8dd487dd3dbe6e4ba4fc SHA512 08983ed34a6fe227bd7be5b03fb74c2b64c16a973034db2645d71e641c1855a9186fbddf6bbdae2db5e1258df0de8e252d49b4f1b0bb6aad8d357aced7a01984
23 DIST teamviewer_13.0.9865_i386.tar.xz 11540784 BLAKE2B b8fa47ec7572ed1b7eceb29f48af286ad565165498ea6f82c22f3d55181bcd70c1f380e719998a4c351ec3106216d7bde2461c23b9f84608152ae72c2f16d44c SHA512 24b70e1d728f09fc4dec4e669409b8f979011842f022b75d718459f732668689c53470e3bd4b9f21bd1a9919feda2e452de0daeb242cbef4ae49ad2483213ec2
24 +DIST teamviewer_13.1.3026_amd64.tar.xz 11500188 BLAKE2B 98dab12224ea65cdb7c45f01a835cb50fd052e044cb2908a27e0324d5647c1bcc38565eca0c1e70e86fd96a9f70ddd4b6250f13cde1fd3c381be9af8ecb1805c SHA512 30914b761833dd2720458eb3a3076f59e521bdf4fd50489e1cb7c0c80a05ef73c2fd5a9a59a33644e73b96d8db1616665a130e2781c39f35f6c5bfb64c7c7b9a
25 +DIST teamviewer_13.1.3026_i386.tar.xz 11343300 BLAKE2B c0170acf9c67f34755800a0200016dacb6f93f3f3805932fbf467dc19bb0213fce74363a0bc703af1c62b4c1bafda2257bd0cc2c52aad4dd1f22ae5a9fb2d486 SHA512 f7dac040de4a0ac3489ee5e911c3c278723cee2372bd42a4a929d3cb268f735eb73cccc514a8d72cc49c82277869533289e3195936218be6db323e732c9c380e
26
27 diff --git a/net-misc/teamviewer/teamviewer-13.1.3026.ebuild b/net-misc/teamviewer/teamviewer-13.1.3026.ebuild
28 new file mode 100644
29 index 00000000000..6c3cc7311e7
30 --- /dev/null
31 +++ b/net-misc/teamviewer/teamviewer-13.1.3026.ebuild
32 @@ -0,0 +1,129 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +MY_PN=${PN}${PV/\.*}
39 +inherit eutils gnome2-utils systemd
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="${PV/\.*}"
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 +"
64 +
65 +RESTRICT="bindist mirror"
66 +
67 +# Silence QA messages
68 +QA_PREBUILT="opt/${MY_PN}/*"
69 +
70 +S="${WORKDIR}"/teamviewer
71 +
72 +src_prepare() {
73 + default
74 +
75 + # Switch operation mode from 'portable' to 'installed'
76 + sed -e "s/TAR_NI/TAR_IN/g" -i tv_bin/script/tvw_config || die
77 +
78 + sed -e "/^ExecStart/s/${PN}/${MY_PN}/" \
79 + -i tv_bin/script/teamviewerd.service || die
80 +}
81 +
82 +src_install() {
83 + local dst="/opt/${MY_PN}" # install destination
84 +
85 + # Quirk:
86 + # Remove Intel 80386 32-bit ELF binary 'libdepend' present in all
87 + # archives. It will trip the 'emerge @preserved-libs' logic on amd64
88 + # when changing the ABI of one of its dependencies. According to the
89 + # TeamViewer devs, this binary is an unused remnant of previous Wine-
90 + # based builds and will be removed in future releases anyway
91 + rm tv_bin/script/libdepend
92 +
93 + insinto ${dst}
94 + doins -r tv_bin
95 +
96 + # Set permissions for executables and libraries
97 + for exe in $(find tv_bin -type f -executable -or -name '*.so'); do
98 + fperms 755 ${dst}/${exe}
99 + done
100 +
101 + # No slotting here, binary expects this service path
102 + newinitd "${FILESDIR}"/teamviewerd13.init teamviewerd
103 + systemd_dounit tv_bin/script/teamviewerd.service
104 +
105 + insinto /usr/share/dbus-1/services
106 + doins tv_bin/script/com.teamviewer.TeamViewer.service
107 + doins tv_bin/script/com.teamviewer.TeamViewer.Desktop.service
108 +
109 + insinto /usr/share/polkit-1/actions
110 + doins tv_bin/script/com.teamviewer.TeamViewer.policy
111 +
112 + for size in 16 24 32 48 256; do
113 + newicon -s ${size} tv_bin/desktop/teamviewer_${size}.png TeamViewer.png
114 + done
115 +
116 + # Install documents (NOTE: using 'dodoc -r doc' instead of loop will
117 + # have the undesired result of installing subdirectory 'doc' in /usr/
118 + # share/doc/teamviewer-<version>)
119 + for doc in $(find doc -type f); do
120 + dodoc ${doc}
121 + done
122 +
123 + keepdir /etc/${MY_PN}
124 + dosym ../../etc/${MY_PN} ${dst}/config
125 +
126 + # Create directory and symlink for log files (NOTE: according to Team-
127 + # Viewer devs, all paths are hard-coded in the binaries; therefore
128 + # using the same path as the DEB/RPM archives, i.e. '/var/log/teamviewer
129 + # <major-version>')
130 + keepdir /var/log/${MY_PN}
131 + dosym ../../var/log/${MY_PN} ${dst}/logfiles
132 +
133 + dodir /opt/bin
134 + dosym ${dst}/tv_bin/teamviewerd /opt/bin/teamviewerd
135 + dosym ${dst}/tv_bin/script/teamviewer /opt/bin/teamviewer
136 +
137 + make_desktop_entry teamviewer "TeamViewer ${SLOT}" TeamViewer
138 +}
139 +
140 +pkg_postinst() {
141 + gnome2_icon_cache_update
142 +
143 + elog "Please note that parallel installation of multiple versions of"
144 + elog "TeamViewer is currently not supported at runtime. Bug #621818"
145 + elog ""
146 + elog "Before using TeamViewer, you need to start its daemon:"
147 + elog "OpenRC:"
148 + elog "# /etc/init.d/teamviewerd start"
149 + elog "# rc-update add teamviewerd default"
150 + elog
151 + elog "Systemd:"
152 + elog "# systemctl start teamviewerd.service"
153 + elog "# systemctl enable teamviewerd.service"
154 + elog
155 + elog "To display additional command line options simply run:"
156 + elog "$ teamviewer help"
157 +}
158 +
159 +pkg_postrm() {
160 + gnome2_icon_cache_update
161 +}