From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id ED44E58973 for ; Thu, 21 Jan 2016 08:43:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 806E421C008; Thu, 21 Jan 2016 08:43:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0C61A21C008 for ; Thu, 21 Jan 2016 08:43:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D414340873 for ; Thu, 21 Jan 2016 08:43:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9B7EDA91 for ; Thu, 21 Jan 2016 08:43:18 +0000 (UTC) From: "Wolfram Schlich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Wolfram Schlich" Message-ID: <1453365784.f25db9aed15a6aa2d962f5eb07fd0353c2a914c1.wschlich@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/teamviewer/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/teamviewer/teamviewer-11.0.53191-r1.ebuild X-VCS-Directories: net-misc/teamviewer/ X-VCS-Committer: wschlich X-VCS-Committer-Name: Wolfram Schlich X-VCS-Revision: f25db9aed15a6aa2d962f5eb07fd0353c2a914c1 X-VCS-Branch: master Date: Thu, 21 Jan 2016 08:43:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 67c825a4-ae7b-477f-bb65-3287741ecd11 X-Archives-Hash: 36926be99cb85a5c4f2510406772ae41 commit: f25db9aed15a6aa2d962f5eb07fd0353c2a914c1 Author: Wolfram Schlich gentoo org> AuthorDate: Thu Jan 21 08:42:12 2016 +0000 Commit: Wolfram Schlich gentoo org> CommitDate: Thu Jan 21 08:43:04 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f25db9ae added dependency on sys-apps/dbus with abi_x86_32 wrt bug #572468 Package-Manager: portage-2.2.26 .../teamviewer/teamviewer-11.0.53191-r1.ebuild | 131 +++++++++++++++++++++ 1 file changed, 131 insertions(+) diff --git a/net-misc/teamviewer/teamviewer-11.0.53191-r1.ebuild b/net-misc/teamviewer/teamviewer-11.0.53191-r1.ebuild new file mode 100644 index 0000000..2de33d3 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-11.0.53191-r1.ebuild @@ -0,0 +1,131 @@ +# 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(-)] ) + sys-apps/dbus[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 +}