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