summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2016-01-18 12:19:37 +0100
committerWolfram Schlich <wschlich@gentoo.org>2016-01-18 16:59:28 +0100
commit28728080202ad90a20b0d2001c4047841a6138cb (patch)
treedd8b3a2396d4d4b745d39f621ae6c46b8c9ae44e /net-misc/teamviewer
parentmedia-fonts/hack: version bump to 2.019 (diff)
downloadgentoo-28728080202ad90a20b0d2001c4047841a6138cb.tar.gz
gentoo-28728080202ad90a20b0d2001c4047841a6138cb.tar.bz2
gentoo-28728080202ad90a20b0d2001c4047841a6138cb.zip
added teamviewer-11.0.53191
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-misc/teamviewer')
-rw-r--r--net-misc/teamviewer/Manifest1
-rw-r--r--net-misc/teamviewer/teamviewer-11.0.53191.ebuild130
2 files changed, 131 insertions, 0 deletions
diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest
index d77a6dd7dcd6..89153cffa2a0 100644
--- a/net-misc/teamviewer/Manifest
+++ b/net-misc/teamviewer/Manifest
@@ -1,2 +1,3 @@
DIST teamviewer-9.0.32150.deb 22898922 SHA256 66d9a69f7e1523a2e1b41ff2e55adac01b2dae9b8bdfabf9db6080fc21d24451 SHA512 3e72ed5cab7a754a0aa75e533da92292ad004f66c55ac4c386b6f4a65cc41b14a8d9d7a5410dccdb90c1172cd33e52383289339ab44f0847a061655498ab8e4d WHIRLPOOL fa48ff99a5df29072b1073f35e3f27aeba87b2b846813dca612212344a5b8e35f7f1e221e1fb4f7a12464fce4a185b8dad6dd8f48432e4c48ecd61d9cc6b7960
DIST teamviewer_10.0.41499_i386.deb 41166700 SHA256 0694c756b8cb5f2b09c8d6db960ced3e899d4ce43060e77ef4f1c36254dc31c4 SHA512 afdfafb89398b29206414537c69a798574807c0f350d7ec819579167e0ffbb33c2c3754fdc17a79576b3ff7bcb729c78bda47a5387c1dc178cf85107dae71d9f WHIRLPOOL a0d1595f4133e6e875e49ed6db6777e732c79f7a283d1bcddfd489557eb3bebbbc9c41362cf3576e97513ce8345665645fa5e54ada12275e29bd8d3349752713
+DIST teamviewer_11.0.53191_i386.deb 53086174 SHA256 e37f4fa053648366a73ac7af684cee8567f3d5ef580ac5f63cbc7a68da6124fb SHA512 4c426267451bab91e75b914ed825a1f8ac5fff8a82496c411aca14fc91a6b2569c9922d0b6e92bd15f8a46c9238176c2322dafcd0a73bf2605923cc423eb0003 WHIRLPOOL 18b068f69694328ddec0ff5fbffb38befb44884c1919d1b6667f2b164c5023f6273a04627b1c6a95ea4ee1b06e903a666751f41e922d121fde38a44cb3efa2c4
diff --git a/net-misc/teamviewer/teamviewer-11.0.53191.ebuild b/net-misc/teamviewer/teamviewer-11.0.53191.ebuild
new file mode 100644
index 000000000000..8ad6896cc346
--- /dev/null
+++ b/net-misc/teamviewer/teamviewer-11.0.53191.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils gnome2-utils systemd unpacker
+
+# Major version
+MV=${PV/\.*}
+MY_PN=${PN}${MV}
+DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet"
+HOMEPAGE="https://www.teamviewer.com"
+SRC_URI="https://download.teamviewer.com/download/version_${MV}x/${PN}_${PV}_i386.deb"
+
+IUSE="+system-wine"
+
+LICENSE="TeamViewer LGPL-2.1" #LGPL for bundled wine
+SLOT=${MV}
+KEYWORDS="-* ~amd64 ~x86"
+
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ system-wine? ( app-emulation/wine[abi_x86_32(-)] )
+ dev-qt/qtcore:4[abi_x86_32(-)]
+ dev-qt/qtgui:4[abi_x86_32(-)]
+ dev-qt/qtwebkit:4[abi_x86_32(-)]
+ media-libs/alsa-lib[abi_x86_32(-)]
+ x11-libs/libICE[abi_x86_32(-)]
+ x11-libs/libSM[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXau[abi_x86_32(-)]
+ x11-libs/libXdamage[abi_x86_32(-)]
+ x11-libs/libXdmcp[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libXfixes[abi_x86_32(-)]
+ x11-libs/libXrandr[abi_x86_32(-)]
+ x11-libs/libXtst[abi_x86_32(-)]"
+
+QA_PREBUILT="opt/teamviewer${MV}/*"
+
+S=${WORKDIR}/opt/teamviewer/tv_bin
+
+src_prepare() {
+ #epatch "${FILESDIR}/${P}-gentoo.patch"
+ sed \
+ -e "s/@TVV@/${MV}/g" \
+ "${FILESDIR}"/${PN}d.init > "${T}"/init || die
+ sed \
+ -e "s:/opt/teamviewer:/opt/teamviewer${MV}:g" \
+ "script//${PN}d.service" > "${T}/${PN}d.service" || die
+ sed \
+ -e "s/@TVV@/${PV}/g" \
+ -e "s/@TVMV@/${MV}/g" \
+ "${FILESDIR}"/${PN}.sh > "${T}"/sh || die
+ if ! use system-wine; then
+ sed -i "s/native=true/native=false/g" "${T}/sh" || die
+ fi
+}
+
+src_install () {
+ local destdir="/opt/${MY_PN}"
+
+ # install wine prefix skeleton and reg keys
+ insinto "${destdir}/wine/drive_c/"
+ doins -r wine/drive_c/TeamViewer/
+ # install bundled wine if necessary
+ if ! use system-wine; then
+ insinto "${destdir}/tv_bin/wine"
+ doins -r wine/{lib,share}
+ exeinto "${destdir}/tv_bin/wine/bin"
+ doexe wine/bin/{wine,wine-preloader,wineserver}
+ fi
+ # fix permissions
+ fperms 755 ${destdir}/wine/drive_c/TeamViewer/TeamViewer.exe
+
+ # install wine wrapper
+ exeinto "/opt/bin"
+ newexe "${T}/sh" "${MY_PN}"
+
+ # install teamviewer linux binaries
+ exeinto "${destdir}/tv_bin"
+ doexe TeamViewer_Desktop TVGuiDelegate TVGuiSlave.32
+ use amd64 && doexe TVGuiSlave.64
+
+ # install daemon binary and scripts
+ exeinto "${destdir}/tv_bin"
+ doexe ${PN}d
+ newinitd "${T}/init" ${PN}d${MV}
+ newconfd "${FILESDIR}/${PN}d.conf" ${PN}d${MV}
+ systemd_newunit "${T}/${PN}d.service" ${PN}d${MV}.service
+
+ # set up logdir
+ keepdir /var/log/${MY_PN}
+ dosym /var/log/${MY_PN} /opt/${MY_PN}/logfiles
+
+ # set up config dir
+ keepdir /etc/${MY_PN}
+ dosym /etc/${MY_PN} /opt/${MY_PN}/config
+
+ newicon -s 48 desktop/${PN}.png ${MY_PN}.png
+ #dodoc ../doc/linux_FAQ_{EN,DE}.txt
+ make_desktop_entry ${MY_PN} "TeamViewer ${MV}" ${MY_PN}
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+ elog "TeamViewer from upstream uses an overly-complicated set of bash"
+ elog "scripts to start the program. This has been simplified for Gentoo"
+ elog "use. Any issues should be reported via bugzilla."
+ if use system-wine; then
+ elog
+ elog "Due to bug #552016, when using system wine, one is not able to"
+ elog "share one's own screen. At this time, this may be remedied by"
+ elog "toggling the system-wine USE flag."
+ fi
+ elog
+ elog "The end-user client requires running the accompanying daemon,"
+ elog "available via init-scripts."
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}