summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-07-15 17:55:45 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-07-15 17:55:45 +0100
commit398f183cfc641c99092e78f825aaf51bc43b39d7 (patch)
tree1e60394273363608080e8c7dd6c81dc92b679336
parent3b544d93966034bfc7f4c9e49719fda7218c0018 (diff)
import teamviewer from gentoo, but drop qt4 deps
-rw-r--r--net-misc/teamviewer/Manifest4
-rw-r--r--net-misc/teamviewer/teamviewer-11.0.57095-r1.ebuild129
-rw-r--r--net-misc/teamviewer/teamviewer-7.0.9310.ebuild52
-rw-r--r--net-misc/teamviewer/teamviewer-7.0.9377.ebuild52
-rw-r--r--net-misc/teamviewer/teamviewer-8.0.16675.ebuild52
5 files changed, 130 insertions, 159 deletions
diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest
index 5f111b28..57e0cea7 100644
--- a/net-misc/teamviewer/Manifest
+++ b/net-misc/teamviewer/Manifest
@@ -1,3 +1 @@
-DIST teamviewer-7.0.9310.tar.gz 28493556 SHA256 1565ebeaf8a0c9eab762414e38a6c608a890bcf360fdd14e1146ad1781437184
-DIST teamviewer-7.0.9377.tar.gz 18102617 SHA256 3eaa78cbbd49449f2dbe5be6f0af99535a039598867a537ea8230189251909b9 SHA512 cc959dc9d243be499dbd5781c979305787659fbc95f72f5cb5e05dc042006cf05e670e8feb88322a1adf74f1c58cdf8883c11945a5baff26b0a7a2a4e8b08a8b WHIRLPOOL 68cc97298d8f98b5021e39954f45167eb2b32ff3bd32aa38733120574dafcf13884e452823ccec9d73f3244989433919395ba6d357f714635a1a6276bd8fa855
-DIST teamviewer-8.0.16675.tar.gz 18102617 SHA256 3eaa78cbbd49449f2dbe5be6f0af99535a039598867a537ea8230189251909b9 SHA512 cc959dc9d243be499dbd5781c979305787659fbc95f72f5cb5e05dc042006cf05e670e8feb88322a1adf74f1c58cdf8883c11945a5baff26b0a7a2a4e8b08a8b WHIRLPOOL 68cc97298d8f98b5021e39954f45167eb2b32ff3bd32aa38733120574dafcf13884e452823ccec9d73f3244989433919395ba6d357f714635a1a6276bd8fa855
+DIST teamviewer_11.0.57095_i386.deb 53774306 SHA256 a3e763912892019143517f8c40404aa23465b4d78fb382336d165d3b96f1b83d SHA512 d218cc5a7ea516b7df326d60726405fa1db5c313a74b14594ea8309bd5f06cc611d2391a750405ae8a39b419747bc6974d6b5f4ca54015fce869566d937cecdd WHIRLPOOL 175259ecce24b576c7cac9d55d5ce8aeede00edfcc92953fd0ff75642aab1d4769cadbb7683ab4f3346afeb591caf679fbaab6cc8c629f7867438e483d40d89f
diff --git a/net-misc/teamviewer/teamviewer-11.0.57095-r1.ebuild b/net-misc/teamviewer/teamviewer-11.0.57095-r1.ebuild
new file mode 100644
index 00000000..112868fb
--- /dev/null
+++ b/net-misc/teamviewer/teamviewer-11.0.57095-r1.ebuild
@@ -0,0 +1,129 @@
+# 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(-),png] )
+ !system-wine? ( media-libs/libpng:1.2[abi_x86_32(-)] )
+ sys-apps/dbus[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
+}
diff --git a/net-misc/teamviewer/teamviewer-7.0.9310.ebuild b/net-misc/teamviewer/teamviewer-7.0.9310.ebuild
deleted file mode 100644
index 130c5270..00000000
--- a/net-misc/teamviewer/teamviewer-7.0.9310.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-inherit eutils
-
-# Major version
-MV=${PV/\.*}
-
-DESCRIPTION="the All-In-One Solution for Remote Access and Support over the Internet"
-HOMEPAGE="http://www.teamviewer.com"
-SRC_URI="http://www.teamviewer.com/download/${PN}_linux.tar.gz -> ${P}.tar.gz"
-
-LICENSE="TeamViewerNovember2011"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RESTRICT="mirror strip"
-
-RDEPEND="
- app-emulation/wine
-"
-
-S="${WORKDIR}/teamviewer${MV}"
-
-pkg_setup() {
- elog "This ebuild installs the TeamViewer binary and libraries and relies on"
- elog "Gentoo's wine package to run the actual program."
- elog
- elog "If you encounter any problems, consider running TeamViewer with the"
- elog "bundled wine package manually."
-}
-
-src_install() {
-pwd
- insinto /opt/teamviewer/
- doins .wine/drive_c/Program\ Files/TeamViewer/Version${MV}/*
-
- rm teamviewer || die
- echo "#!/bin/bash" > teamviewer || die
- echo "/usr/bin/wine /opt/teamviewer/TeamViewer.exe" >> teamviewer || die
- insinto /usr/bin
- dobin teamviewer
-
- dodoc linux_FAQ_{EN,DE}.txt
- dodoc CopyRights_{EN,DE}.txt
-
- make_desktop_entry ${PN} TeamViewer ${PN}
-}
diff --git a/net-misc/teamviewer/teamviewer-7.0.9377.ebuild b/net-misc/teamviewer/teamviewer-7.0.9377.ebuild
deleted file mode 100644
index 130c5270..00000000
--- a/net-misc/teamviewer/teamviewer-7.0.9377.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-inherit eutils
-
-# Major version
-MV=${PV/\.*}
-
-DESCRIPTION="the All-In-One Solution for Remote Access and Support over the Internet"
-HOMEPAGE="http://www.teamviewer.com"
-SRC_URI="http://www.teamviewer.com/download/${PN}_linux.tar.gz -> ${P}.tar.gz"
-
-LICENSE="TeamViewerNovember2011"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RESTRICT="mirror strip"
-
-RDEPEND="
- app-emulation/wine
-"
-
-S="${WORKDIR}/teamviewer${MV}"
-
-pkg_setup() {
- elog "This ebuild installs the TeamViewer binary and libraries and relies on"
- elog "Gentoo's wine package to run the actual program."
- elog
- elog "If you encounter any problems, consider running TeamViewer with the"
- elog "bundled wine package manually."
-}
-
-src_install() {
-pwd
- insinto /opt/teamviewer/
- doins .wine/drive_c/Program\ Files/TeamViewer/Version${MV}/*
-
- rm teamviewer || die
- echo "#!/bin/bash" > teamviewer || die
- echo "/usr/bin/wine /opt/teamviewer/TeamViewer.exe" >> teamviewer || die
- insinto /usr/bin
- dobin teamviewer
-
- dodoc linux_FAQ_{EN,DE}.txt
- dodoc CopyRights_{EN,DE}.txt
-
- make_desktop_entry ${PN} TeamViewer ${PN}
-}
diff --git a/net-misc/teamviewer/teamviewer-8.0.16675.ebuild b/net-misc/teamviewer/teamviewer-8.0.16675.ebuild
deleted file mode 100644
index 130c5270..00000000
--- a/net-misc/teamviewer/teamviewer-8.0.16675.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-inherit eutils
-
-# Major version
-MV=${PV/\.*}
-
-DESCRIPTION="the All-In-One Solution for Remote Access and Support over the Internet"
-HOMEPAGE="http://www.teamviewer.com"
-SRC_URI="http://www.teamviewer.com/download/${PN}_linux.tar.gz -> ${P}.tar.gz"
-
-LICENSE="TeamViewerNovember2011"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RESTRICT="mirror strip"
-
-RDEPEND="
- app-emulation/wine
-"
-
-S="${WORKDIR}/teamviewer${MV}"
-
-pkg_setup() {
- elog "This ebuild installs the TeamViewer binary and libraries and relies on"
- elog "Gentoo's wine package to run the actual program."
- elog
- elog "If you encounter any problems, consider running TeamViewer with the"
- elog "bundled wine package manually."
-}
-
-src_install() {
-pwd
- insinto /opt/teamviewer/
- doins .wine/drive_c/Program\ Files/TeamViewer/Version${MV}/*
-
- rm teamviewer || die
- echo "#!/bin/bash" > teamviewer || die
- echo "/usr/bin/wine /opt/teamviewer/TeamViewer.exe" >> teamviewer || die
- insinto /usr/bin
- dobin teamviewer
-
- dodoc linux_FAQ_{EN,DE}.txt
- dodoc CopyRights_{EN,DE}.txt
-
- make_desktop_entry ${PN} TeamViewer ${PN}
-}