diff options
author | Ghiunhan Mamut (aka V3n3RiX) <venerix@redcorelinux.org> | 2017-12-09 14:00:13 +0000 |
---|---|---|
committer | Ghiunhan Mamut (aka V3n3RiX) <venerix@redcorelinux.org> | 2017-12-09 14:00:13 +0000 |
commit | bfea8ed5a641421ee8406b9b046b6c31b0dcfb93 (patch) | |
tree | 87d85205ea1fe0af72bc5557bdddd5020b8ae1ef | |
parent | 8b986450e0ba25f00f695c68ac76a4bbc41023a0 (diff) | |
parent | fddf2f2eac240816393da74135796759e69bb106 (diff) |
net-misc/teamviewer : version bump (12.0.76279 -> 13.0.5494)
-rw-r--r-- | net-misc/teamviewer/Manifest | 1 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-13.0.5494-r1.ebuild | 123 |
2 files changed, 124 insertions, 0 deletions
diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest index 0e2e8eed..00a1ece6 100644 --- a/net-misc/teamviewer/Manifest +++ b/net-misc/teamviewer/Manifest @@ -1 +1,2 @@ DIST teamviewer_12.0.76279_i386.deb 46547662 SHA256 0050798ef06b5bb750899fdc35d365520917d64be3b9db460753aefe8de9d097 SHA512 02c586d303149b9f6e33e4da6a53e14715f95ad74264b758ddd6dfaa3530d93e50db0e297cb5bd257558199afa28b49a90bdfbcc64fbd5e90d887d233d6b30f8 WHIRLPOOL b3848d75002cd760cbac397250a7a8d355e770003bcda2482b1aed85f8d2744176f81876dc65c9669905e97fe4aa8fd1c093f7f1f3d13c5e0d2ef5d55b82baf5 +DIST teamviewer_13.0.5494_amd64.tar.xz 9672840 SHA256 b37630e95c110ea56476d22dacd3b549dba7a2956593e94984bf7587b93aaab6 SHA512 41a9ca6206ee439cc6c8dcc7c4c1665382c86887199c386bc6e57ccc37b36093f49bdb57afd8305ce1afaa3922a5309a1802d5d38d33f35008dbd381a405996f WHIRLPOOL 6f644351cda904f91dfe9a6caedfc263741b2d8df2023c2512194634b87631443bf6f4c72239bc1b31e9c46572f13de3cb821c51e61ae01f8c1c8b02451ef41b diff --git a/net-misc/teamviewer/teamviewer-13.0.5494-r1.ebuild b/net-misc/teamviewer/teamviewer-13.0.5494-r1.ebuild new file mode 100644 index 00000000..56824583 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-13.0.5494-r1.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils gnome2-utils xdg-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="amd64? ( https://dl.tvcdn.de/download/linux/version_13x/${PN}_${PV}_amd64.tar.xz ) " + +IUSE="system-xdg systemd" + +LICENSE="TeamViewer LGPL-2.1" #LGPL for bundled wine +SLOT="${MV}" +KEYWORDS="amd64 x86" + +RESTRICT="bindist mirror" + +RDEPEND=" + dev-qt/qtgui:5 + dev-qt/qtwebkit:5 + dev-qt/qtx11extras:5 + dev-qt/qtwidgets:5 + dev-qt/qtnetwork:5 + dev-qt/qtdeclarative:5 + dev-qt/qtdbus:5 + media-libs/alsa-lib + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdamage + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXtst" + +QA_PREBUILT="opt/teamviewer${MV}/*" + +S="${WORKDIR}/teamviewer/tv_bin/" + +src_prepare() { + 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 +} + +src_install () { + local destdir="/opt/${MY_PN}" + + # install executables wrapper + exeinto "/opt/bin" + newexe "${T}/sh" "${MY_PN}" + dosym "${destdir}"/tv_bin/TeamViewer /opt/bin/"${MY_PN}" + + # install daemon binary and scripts + exeinto "${destdir}/tv_bin" + doexe "${PN}"d + doexe TeamViewer + doexe "${PN}"-config + newinitd "${T}/init" "${PN}d${MV}" + newconfd "${FILESDIR}/${PN}d.conf" "${PN}d${MV}" + + if use systemd ; then + systemd_newunit "${T}/${PN}d.service" "${PN}d${MV}.service" + fi + + insinto "${destdir}/tv_bin" + doins -r desktop + doins -r resources + rm "${S}"/script/teamviewerd.DEB.conf || die + rm "${S}"/script/teamviewerd.RHEL.conf || die + rm "${S}"/script/teamviewerd.RPM.conf || die + doins -r script + + # teamviewer can use system/not system xdg utils + if ! use system-xdg ; then + doins -r xdg-utils + fi + + # 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}"_48.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 + xdg_desktop_database_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 "The end-user client requires running the accompanying daemon," + elog "available via init-scripts." +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update +} |