1 |
commit: ac1dbe19a142cc4f1240e7760618a1981b32458b |
2 |
Author: Wolfram Schlich <wschlich <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 2 17:31:50 2016 +0000 |
4 |
Commit: Wolfram Schlich <wschlich <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 17:32:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac1dbe19 |
7 |
|
8 |
net-misc/teamviewer: major version bump (v12 is officially still beta though) |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-misc/teamviewer/Manifest | 1 + |
13 |
net-misc/teamviewer/teamviewer-12.0.69753.ebuild | 132 +++++++++++++++++++++++ |
14 |
2 files changed, 133 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest |
17 |
index a5865f8..ca19165 100644 |
18 |
--- a/net-misc/teamviewer/Manifest |
19 |
+++ b/net-misc/teamviewer/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST teamviewer-9.0.32150.deb 22898922 SHA256 66d9a69f7e1523a2e1b41ff2e55adac01b |
21 |
DIST teamviewer_10.0.41499_i386.deb 41166700 SHA256 0694c756b8cb5f2b09c8d6db960ced3e899d4ce43060e77ef4f1c36254dc31c4 SHA512 afdfafb89398b29206414537c69a798574807c0f350d7ec819579167e0ffbb33c2c3754fdc17a79576b3ff7bcb729c78bda47a5387c1dc178cf85107dae71d9f WHIRLPOOL a0d1595f4133e6e875e49ed6db6777e732c79f7a283d1bcddfd489557eb3bebbbc9c41362cf3576e97513ce8345665645fa5e54ada12275e29bd8d3349752713 |
22 |
DIST teamviewer_11.0.57095_i386.deb 53774306 SHA256 a3e763912892019143517f8c40404aa23465b4d78fb382336d165d3b96f1b83d SHA512 d218cc5a7ea516b7df326d60726405fa1db5c313a74b14594ea8309bd5f06cc611d2391a750405ae8a39b419747bc6974d6b5f4ca54015fce869566d937cecdd WHIRLPOOL 175259ecce24b576c7cac9d55d5ce8aeede00edfcc92953fd0ff75642aab1d4769cadbb7683ab4f3346afeb591caf679fbaab6cc8c629f7867438e483d40d89f |
23 |
DIST teamviewer_11.0.67687_i386.deb 47341822 SHA256 b74542910ac574803905658787174b6a60055c6473d3c4e398da36d0dedaf416 SHA512 3fbb0a2fc1bccd41ba9798305fada7e8266e1c9ed8509492ccb75e6f85995538ddc05ad72648e9f6c31cd5f17ad34f1ed3a300eeb38a4a703d3414c113d3e5a9 WHIRLPOOL 2a6b1c04f67933a43ac2493a12c21b8a9eae95150b10d9e713e01efed98c397f44fdd77012407da2dffb8bf0b804374a60cce9d2646ff3c117041d13366be628 |
24 |
+DIST teamviewer_12.0.69753_i386.deb 46499056 SHA256 6110e5ba521f7ffb429d7d0bf5f03dad7a18994dc6b62a6901353f1da7dbc744 SHA512 b6cc5e55780fc45713387a6b4b68937660a0833f51bbd7c76941d6fa0a3c3156f58b00477bc3d4d5bb3e7559447a4165ee823098a33c24ce42cd8fe40d219364 WHIRLPOOL 117928d325b6bcc97c3119a0b5cecd1b276de70d2bf51f973f426a7d30c47b612c1cd68e78f19e12730a630f506bce53de44960887e6293941893c85b03685da |
25 |
|
26 |
diff --git a/net-misc/teamviewer/teamviewer-12.0.69753.ebuild b/net-misc/teamviewer/teamviewer-12.0.69753.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..6a093d8 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/teamviewer/teamviewer-12.0.69753.ebuild |
31 |
@@ -0,0 +1,132 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+inherit eutils gnome2-utils systemd unpacker |
39 |
+ |
40 |
+# Major version |
41 |
+MV=${PV/\.*} |
42 |
+MY_PN=${PN}${MV} |
43 |
+DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet" |
44 |
+HOMEPAGE="https://www.teamviewer.com" |
45 |
+SRC_URI="https://download.teamviewer.com/download/version_${MV}x/${PN}_${PV}_i386.deb" |
46 |
+ |
47 |
+IUSE="+system-wine" |
48 |
+ |
49 |
+LICENSE="TeamViewer LGPL-2.1" #LGPL for bundled wine |
50 |
+SLOT=${MV} |
51 |
+KEYWORDS="-* ~amd64 ~x86" |
52 |
+ |
53 |
+RESTRICT="bindist mirror" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ system-wine? ( app-emulation/wine[abi_x86_32(-),png] ) |
57 |
+ !system-wine? ( media-libs/libpng:1.2[abi_x86_32(-)] ) |
58 |
+ sys-apps/dbus[abi_x86_32(-)] |
59 |
+ dev-qt/qtcore:4[abi_x86_32(-)] |
60 |
+ dev-qt/qtgui:4[abi_x86_32(-)] |
61 |
+ dev-qt/qtwebkit:4[abi_x86_32(-)] |
62 |
+ media-libs/alsa-lib[abi_x86_32(-)] |
63 |
+ x11-libs/libICE[abi_x86_32(-)] |
64 |
+ x11-libs/libSM[abi_x86_32(-)] |
65 |
+ x11-libs/libX11[abi_x86_32(-)] |
66 |
+ x11-libs/libXau[abi_x86_32(-)] |
67 |
+ x11-libs/libXdamage[abi_x86_32(-)] |
68 |
+ x11-libs/libXdmcp[abi_x86_32(-)] |
69 |
+ x11-libs/libXext[abi_x86_32(-)] |
70 |
+ x11-libs/libXfixes[abi_x86_32(-)] |
71 |
+ x11-libs/libXrandr[abi_x86_32(-)] |
72 |
+ x11-libs/libXtst[abi_x86_32(-)]" |
73 |
+ |
74 |
+QA_PREBUILT="opt/teamviewer${MV}/*" |
75 |
+ |
76 |
+S=${WORKDIR}/opt/teamviewer/tv_bin |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ #epatch "${FILESDIR}/${P}-gentoo.patch" |
80 |
+ sed \ |
81 |
+ -e "s/@TVV@/${MV}/g" \ |
82 |
+ "${FILESDIR}"/${PN}d.init > "${T}"/init || die |
83 |
+ sed \ |
84 |
+ -e "s:/opt/teamviewer:/opt/teamviewer${MV}:g" \ |
85 |
+ "script//${PN}d.service" > "${T}/${PN}d.service" || die |
86 |
+ sed \ |
87 |
+ -e "s/@TVV@/${PV}/g" \ |
88 |
+ -e "s/@TVMV@/${MV}/g" \ |
89 |
+ "${FILESDIR}"/${PN}.sh > "${T}"/sh || die |
90 |
+ if ! use system-wine; then |
91 |
+ sed -i "s/native=true/native=false/g" "${T}/sh" || die |
92 |
+ fi |
93 |
+} |
94 |
+ |
95 |
+src_install () { |
96 |
+ local destdir="/opt/${MY_PN}" |
97 |
+ |
98 |
+ # install wine prefix skeleton and reg keys |
99 |
+ insinto "${destdir}/wine/drive_c/" |
100 |
+ doins -r wine/drive_c/TeamViewer/ |
101 |
+ # install bundled wine if necessary |
102 |
+ if ! use system-wine; then |
103 |
+ insinto "${destdir}/tv_bin/wine" |
104 |
+ doins -r wine/{lib,share} |
105 |
+ exeinto "${destdir}/tv_bin/wine/bin" |
106 |
+ doexe wine/bin/{wine,wine-preloader,wineserver} |
107 |
+ fi |
108 |
+ # fix permissions |
109 |
+ fperms 755 ${destdir}/wine/drive_c/TeamViewer/TeamViewer.exe |
110 |
+ |
111 |
+ # install wine wrapper |
112 |
+ exeinto "/opt/bin" |
113 |
+ newexe "${T}/sh" "${MY_PN}" |
114 |
+ |
115 |
+ # install teamviewer linux binaries |
116 |
+ exeinto "${destdir}/tv_bin" |
117 |
+ doexe TeamViewer_Desktop TVGuiDelegate TVGuiSlave.32 |
118 |
+ use amd64 && doexe TVGuiSlave.64 |
119 |
+ |
120 |
+ # install daemon binary and scripts |
121 |
+ exeinto "${destdir}/tv_bin" |
122 |
+ doexe ${PN}d |
123 |
+ newinitd "${T}/init" ${PN}d${MV} |
124 |
+ newconfd "${FILESDIR}/${PN}d.conf" ${PN}d${MV} |
125 |
+ systemd_newunit "${T}/${PN}d.service" ${PN}d${MV}.service |
126 |
+ |
127 |
+ # set up logdir |
128 |
+ keepdir /var/log/${MY_PN} |
129 |
+ dosym /var/log/${MY_PN} /opt/${MY_PN}/logfiles |
130 |
+ |
131 |
+ # set up config dir |
132 |
+ keepdir /etc/${MY_PN} |
133 |
+ dosym /etc/${MY_PN} /opt/${MY_PN}/config |
134 |
+ |
135 |
+ newicon -s 48 desktop/${PN}.png ${MY_PN}.png |
136 |
+ #dodoc ../doc/linux_FAQ_{EN,DE}.txt |
137 |
+ make_desktop_entry ${MY_PN} "TeamViewer ${MV}" ${MY_PN} |
138 |
+} |
139 |
+ |
140 |
+pkg_preinst() { |
141 |
+ gnome2_icon_savelist |
142 |
+} |
143 |
+ |
144 |
+pkg_postinst() { |
145 |
+ gnome2_icon_cache_update |
146 |
+ |
147 |
+ elog "TeamViewer from upstream uses an overly-complicated set of bash" |
148 |
+ elog "scripts to start the program. This has been simplified for Gentoo" |
149 |
+ elog "use. Any issues should be reported via bugzilla." |
150 |
+ if use system-wine; then |
151 |
+ elog |
152 |
+ elog "Due to bug #552016, when using system wine, one is not able to" |
153 |
+ elog "share one's own screen. At this time, this may be remedied by" |
154 |
+ elog "toggling the system-wine USE flag." |
155 |
+ fi |
156 |
+ elog |
157 |
+ elog "The end-user client requires running the accompanying daemon," |
158 |
+ elog "available via init-scripts." |
159 |
+} |
160 |
+ |
161 |
+pkg_postrm() { |
162 |
+ gnome2_icon_cache_update |
163 |
+} |