diff options
author | Sven Eden <yamakuzure@gmx.net> | 2020-06-04 12:14:52 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2020-06-04 12:14:52 +0200 |
commit | 39411cbdd98c99754a7589d35fc78a6dec049501 (patch) | |
tree | 46b5372588a01e84077fa87a3cf7fd6eec8b8038 /net-misc | |
parent | app-office/zoom: Hotfix (diff) | |
download | seden-39411cbdd98c99754a7589d35fc78a6dec049501.tar.gz seden-39411cbdd98c99754a7589d35fc78a6dec049501.tar.bz2 seden-39411cbdd98c99754a7589d35fc78a6dec049501.zip |
net-misc/teamviewer: Ressurect Version 13.2.256470 (I have no higher license)
Signed-off-by: Sven Eden <yamakuzure@gmx.net>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/teamviewer/Manifest | 2 | ||||
-rw-r--r-- | net-misc/teamviewer/files/teamviewerd13.init | 8 | ||||
-rw-r--r-- | net-misc/teamviewer/metadata.xml | 8 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-13.2.256470.ebuild | 136 |
4 files changed, 154 insertions, 0 deletions
diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest new file mode 100644 index 0000000..bc07dab --- /dev/null +++ b/net-misc/teamviewer/Manifest @@ -0,0 +1,2 @@ +DIST teamviewer_amd64.tar.xz 11453520 SHA256 051e279c21f2d8c44e648fd019df003b6bb9869965881602ff87cf83406d4246 SHA512 690a2b48c7980510f73fe6ee864ca44949d46fa9fbd11dfdc99dd32fd7f9b348535a23d9f9919ff4b8cf4214b0c361ef857cc355704b88daeae2f7f1ef3a5730 WHIRLPOOL b1836cf4e55092a84d27f27fe7387f9dddce060f0579d457a0aafabfab2fd87b65c90a79ca501fdcbab3d691c4887f808a706bad4ba940e25aca9ade5b1c886d +DIST teamviewer_i386.tar.xz 11407892 SHA256 701bd93fdb2eb3dc492bee93ce5fb6c8fcfea3e8431dd16c13e033a018b87861 SHA512 3823c336c1333815c49acc69d3c06315b67286f7ef341375fd6e319b9a9df2a7849ee0323f30ed7930ec3b2c027937b80daa1bbda451c392f20968176fb053f3 WHIRLPOOL 32c6db6eab8246fa9b5679a2bb4d39791500d3b84ab2cdb28f258cd7642d720eb9980f3b64048af760d9ffb4ce541cba3766337484553e4197a0f13234ce91eb diff --git a/net-misc/teamviewer/files/teamviewerd13.init b/net-misc/teamviewer/files/teamviewerd13.init new file mode 100644 index 0000000..15dd1c6 --- /dev/null +++ b/net-misc/teamviewer/files/teamviewerd13.init @@ -0,0 +1,8 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/opt/teamviewer13/tv_bin/teamviewerd" +command_args="-d" +description="Starts the TeamViewer remote control daemon" +pidfile="/var/run/teamviewerd.pid" diff --git a/net-misc/teamviewer/metadata.xml b/net-misc/teamviewer/metadata.xml new file mode 100644 index 0000000..341f4e3 --- /dev/null +++ b/net-misc/teamviewer/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>yamakuzure@gmx.net</email> + <name>Sven Eden</name> + </maintainer> +</pkgmetadata> diff --git a/net-misc/teamviewer/teamviewer-13.2.256470.ebuild b/net-misc/teamviewer/teamviewer-13.2.256470.ebuild new file mode 100644 index 0000000..744c0be --- /dev/null +++ b/net-misc/teamviewer/teamviewer-13.2.256470.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN=${PN}${PV/\.*} +inherit desktop gnome2-utils systemd + +DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet" +HOMEPAGE="https://www.teamviewer.com" +SRC_URI="amd64? ( https://download.teamviewer.com/download/linux/version_13x/teamviewer_amd64.tar.xz ) + x86? ( https://download.teamviewer.com/download/linux/version_13x/teamviewer_i386.tar.xz )" + +LICENSE="TeamViewer MIT" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +DEPEND="sys-apps/sed" +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtquickcontrols:5 + dev-qt/qtwebkit:5 + dev-qt/qtwidgets:5 + dev-qt/qtx11extras:5 + sys-apps/dbus + !sys-auth/consolekit +" + +# For consolekit incompatibility see https://forums.gentoo.org/viewtopic-p-8332956.html?sid=3cc21e5a27935e38975ee85bf03317ae#8332956 + +RESTRICT="bindist mirror" + +# Silence QA messages +QA_PREBUILT="opt/${MY_PN}/*" + +S="${WORKDIR}"/teamviewer + +src_prepare() { + default + + # Switch operation mode from 'portable' to 'installed' + sed -e "s/TAR_NI/TAR_IN/g" -i tv_bin/script/tvw_config || die + + sed -e "/^ExecStart/s/${PN}/${MY_PN}/" \ + -i tv_bin/script/teamviewerd.service || die +} + +src_install() { + local dst="/opt/${MY_PN}" # install destination + + # Quirk: + # Remove Intel 80386 32-bit ELF binary 'libdepend' present in all + # archives. It will trip the 'emerge @preserved-libs' logic on amd64 + # when changing the ABI of one of its dependencies. According to the + # TeamViewer devs, this binary is an unused remnant of previous Wine- + # based builds and will be removed in future releases anyway + rm tv_bin/script/libdepend + + insinto ${dst} + doins -r tv_bin + + # Set permissions for executables and libraries + for exe in $(find tv_bin -type f -executable -or -name '*.so'); do + fperms 755 ${dst}/${exe} + done + + # No slotting here, binary expects this service path + newinitd "${FILESDIR}"/teamviewerd13.init teamviewerd + systemd_dounit tv_bin/script/teamviewerd.service + + insinto /usr/share/dbus-1/services + doins tv_bin/script/com.teamviewer.TeamViewer.service + doins tv_bin/script/com.teamviewer.TeamViewer.Desktop.service + + insinto /usr/share/polkit-1/actions + doins tv_bin/script/com.teamviewer.TeamViewer.policy + + for size in 16 24 32 48 256; do + newicon -s ${size} tv_bin/desktop/teamviewer_${size}.png TeamViewer.png + done + + # Install documents (NOTE: using 'dodoc -r doc' instead of loop will + # have the undesired result of installing subdirectory 'doc' in /usr/ + # share/doc/teamviewer-<version>) + for doc in $(find doc -type f); do + dodoc ${doc} + done + + keepdir /etc/${MY_PN} + dosym ../../etc/${MY_PN} ${dst}/config + + # Create directory and symlink for log files (NOTE: according to Team- + # Viewer devs, all paths are hard-coded in the binaries; therefore + # using the same path as the DEB/RPM archives, i.e. '/var/log/teamviewer + # <major-version>') + keepdir /var/log/${MY_PN} + dosym ../../var/log/${MY_PN} ${dst}/logfiles + + dodir /opt/bin + dosym ${dst}/tv_bin/teamviewerd /opt/bin/teamviewerd + dosym ${dst}/tv_bin/script/teamviewer /opt/bin/teamviewer + + make_desktop_entry teamviewer "TeamViewer ${SLOT}" TeamViewer +} + +pkg_postinst() { + gnome2_icon_cache_update + + elog "Please note that parallel installation of multiple versions of" + elog "TeamViewer is currently not supported at runtime. Bug #621818" + elog "" + elog "Before using TeamViewer, you need to start its daemon:" + elog "OpenRC:" + elog "# /etc/init.d/teamviewerd start" + elog "# rc-update add teamviewerd default" + elog + elog "Systemd:" + elog "# systemctl start teamviewerd.service" + elog "# systemctl enable teamviewerd.service" + elog + elog "To display additional command line options simply run:" + elog "$ teamviewer help" + elog + elog "Most likely TeamViewer will work normally only on systems with systemd" + elog "or elogind. See this thread for additional info:" + elog "https://forums.gentoo.org/viewtopic-p-8332956.html?sid=3cc21e5a27935e38975ee85bf03317ae#8332956" +} + +pkg_postrm() { + gnome2_icon_cache_update +} |