diff options
Diffstat (limited to 'net-misc/teamviewer')
-rw-r--r-- | net-misc/teamviewer/Manifest | 10 | ||||
-rw-r--r-- | net-misc/teamviewer/metadata.xml | 19 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-15.0.8397.ebuild | 136 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-15.1.3937.ebuild | 136 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-15.2.2756.ebuild | 136 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-15.48.4.ebuild | 151 |
6 files changed, 164 insertions, 424 deletions
diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest index 1130c1540e43..057c602d7868 100644 --- a/net-misc/teamviewer/Manifest +++ b/net-misc/teamviewer/Manifest @@ -1,6 +1,4 @@ -DIST teamviewer_15.0.8397_amd64.tar.xz 12532076 BLAKE2B a66cc74961edb1eb28b38a77aa29a18c91c86703334903f33e6a7d9cd4dcedcfd92d51636c2908eaa38ff0f024eca97f8b1ad63c396f033efa5039b9fccff5a9 SHA512 f4c9fb9da1b7af9fa1d798c67eb014e906684dab05b41d5618ec21732a4b9b917e7d51e185ca58bc811c8e869f7171136e5a405f9ffd7e8fa5d0b2c7952ed68a -DIST teamviewer_15.0.8397_i386.tar.xz 13019240 BLAKE2B b14dc20b31d888297602baae65c9ec802e5104f8169090ca3f88b87814f58b81585b9d5b89bfe8478d767b30612ad05ccf2d6a659046c0c5e75bfa287436e06c SHA512 4e1d6101ae8a91e03c6580407857df76505dd216baf172de6a7d00ea308318b8b326f0d15e1d8819ede4d7d758c65608c4446abcfc52ba224e56ab11a623aa65 -DIST teamviewer_15.1.3937_amd64.tar.xz 12898448 BLAKE2B fea1d64c04c5c4f04237ab639b1faf1c6fb027fa5f4824f8a9c0ed31b52894c7a22130d0871dba98388ccf073a5393973350a3e3ea88f94bc5958196a6bb8934 SHA512 23fc65a676570c291184a5c89ce05998cb70ec822d764264de7afaffa47a862e3eb0a4ae9364064fa831165be901dc0b85cb5b79181b8b833638d720504dee5c -DIST teamviewer_15.1.3937_i386.tar.xz 13443796 BLAKE2B aa9c5f3cd42a123c38a567a117c919c829e089e4c81cf4b6fca0559351895c3824b7a117ac7dc64c9f1129e0cd44dd2347e57644080559a86640a9d8bffbe62a SHA512 8054e5e3901d60bbf210b03209da8afaab03ba95529d1a107a23401a7561c5ee0c33a43837f84490667f0fa282fe8a74087473b7f51f604b675e87d87522302d -DIST teamviewer_15.2.2756_amd64.tar.xz 12925536 BLAKE2B 94029edb0c333bbab3dc8ed0ad881fc5e5de820a4a92f578781456315d746d1fbf94e7b4d1b651c250c23a32247d2ccf9ba9f9fe839ba188e572ffacebd71630 SHA512 9227388efd819689bd852de62b1dbe122e7081cbec19ba4c96546dd8f889c8b87884fe53231f00f39030882bc150aefaaeedab7d9b3ff28315273d95303eaf78 -DIST teamviewer_15.2.2756_i386.tar.xz 13456056 BLAKE2B cd41db000d5d7fe67f888026146affcfd08495c4e275b1e66ffcc71224b75643713a6f59598eb94aae473d1ec3e9dd500c40e28017bec1f2d50f27f182a01ed7 SHA512 17c0da4599ae1c111ff1ac3069bbb7b613175253a13086c1d564e0ab268317e6249daa3453d686379b3c29cc5cd76a74c2e6654bed8326ee1c8f46e40cbb4888 +DIST teamviewer_15.48.4_amd64.tar.xz 90151736 BLAKE2B 9a62255790361c7627cd8158f7278f923ded0f19214a45088f8f36118a8700156f7dcb6ab6b3e5aff13997968b2c6ba7140b996e371f9451fda1b75e8382448d SHA512 60819003e38373fdf34a0eec8ee29023d0a787c47fdfa1d3bf663a801f7d71341cd2416d63a94c0751fd6ede96c5bdfefea037863f25862f0b098cf2c8ba4687 +DIST teamviewer_15.48.4_arm64.tar.xz 85987048 BLAKE2B 2c863f312c08ab3f79ad0c420a6f7ef984625e5fe2bdbbe924ca43fd0b96b351e056274f67099773a3b59a7d5c618b894133a14e3f79d104cf723e73f43f946e SHA512 c3d6e98f28fa7a99746fece3067bc3b1d4e0fbbb74d85112f00928b9acc7ab769717974564089d3b00cd3fe86b94ddff4bde2247fb91281492208c960b1e02af +DIST teamviewer_15.48.4_armhf.tar.xz 83553336 BLAKE2B 9524777e4489aac133cde30d4045d3d0ad14bd2848d09bbbf8c797aacfa7aa962dcae7e5fbbcc1d3df913142ba38faafaee8590eee5317a0727f064983ba8438 SHA512 ad1d4aa69d8f3b63295c145e495d0e65e6983dad522b2f5bd46768136a04268475bdfe4ea11c766f36e6c709f6dcd6ddd201ae87067ad4fa7a44b3453a5ff5ba +DIST teamviewer_15.48.4_i386.tar.xz 91591284 BLAKE2B 4353591f9d3cc67105ad26bb33e1640db06be9d0caa4a0e3461e4e9f0f3313577c87640278b3a3c64df6a5687f637017720ef117e19588d00e776979c3ed3299 SHA512 0141eb380b8816d99de753e061056da2b0acf21d93f4ff6d9f8fa615c03257a8f70b5552d18c66fbce3dd5540591a9b9e483504ffc96027fee1a7cc1e202a270 diff --git a/net-misc/teamviewer/metadata.xml b/net-misc/teamviewer/metadata.xml index 0034f0d370dd..f16c98dc3065 100644 --- a/net-misc/teamviewer/metadata.xml +++ b/net-misc/teamviewer/metadata.xml @@ -1,13 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>maksbotan@gentoo.org</email> - <name>Maxim Koltsov</name> -</maintainer> -<maintainer type="person"> - <email>zlogene@gentoo.org</email> - <name>Mikle Kolyada</name> -</maintainer> + <maintainer type="person" proxied="yes"> + <email>martin.dummer@gmx.net</email> + <name>Martin Dummer</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> </pkgmetadata> - diff --git a/net-misc/teamviewer/teamviewer-15.0.8397.ebuild b/net-misc/teamviewer/teamviewer-15.0.8397.ebuild deleted file mode 100644 index 7c717766d4a1..000000000000 --- a/net-misc/teamviewer/teamviewer-15.0.8397.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -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://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_amd64.tar.xz ) - x86? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_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}"/teamviewerd15.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 -} diff --git a/net-misc/teamviewer/teamviewer-15.1.3937.ebuild b/net-misc/teamviewer/teamviewer-15.1.3937.ebuild deleted file mode 100644 index 7c717766d4a1..000000000000 --- a/net-misc/teamviewer/teamviewer-15.1.3937.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -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://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_amd64.tar.xz ) - x86? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_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}"/teamviewerd15.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 -} diff --git a/net-misc/teamviewer/teamviewer-15.2.2756.ebuild b/net-misc/teamviewer/teamviewer-15.2.2756.ebuild deleted file mode 100644 index 96d0e2cc15fc..000000000000 --- a/net-misc/teamviewer/teamviewer-15.2.2756.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -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://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_amd64.tar.xz ) - x86? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_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}"/teamviewerd15.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 -} diff --git a/net-misc/teamviewer/teamviewer-15.48.4.ebuild b/net-misc/teamviewer/teamviewer-15.48.4.ebuild new file mode 100644 index 000000000000..ceef9a916e07 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-15.48.4.ebuild @@ -0,0 +1,151 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop optfeature systemd xdg + +MY_MAJOR="$(ver_cut 1)" +MY_P="${PN}${MY_MAJOR}" +DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet" +HOMEPAGE="https://www.teamviewer.com" +MY_URI="https://dl.tvcdn.de/download/linux/version_${MY_MAJOR}x/${PN}_${PV}" +SRC_URI="amd64? ( ${MY_URI}_amd64.tar.xz ) + arm? ( ${MY_URI}_armhf.tar.xz ) + arm64? ( ${MY_URI}_arm64.tar.xz ) + x86? ( ${MY_URI}_i386.tar.xz )" +S="${WORKDIR}"/teamviewer + +LICENSE="TeamViewer MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +RESTRICT="bindist mirror strip" + +# Unpack will fail without app-arch/xz-utils[extra-filters], bug #798027 +BDEPEND="app-arch/xz-utils[extra-filters]" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/fontconfig + media-libs/freetype + media-libs/libglvnd[X] + sys-apps/dbus + sys-apps/util-linux + sys-libs/glibc + sys-libs/zlib:0/1[minizip] + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libxcb +" +# For consolekit incompatibility see https://forums.gentoo.org/viewtopic-p-8332956.html#8332956 + +QA_PREBUILT="opt/${MY_P}/*" + +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 -i \ + -e "/^ExecStart/s|${PN}|${MY_P}|" \ + -e "/^PIDFile/s|/var/run/|/run/|" \ + tv_bin/script/teamviewerd.service || die +} + +src_install() { + local dst="/opt/${MY_P}" # install destination + + insinto ${dst} + doins -r tv_bin + + # Set permissions for executables and libraries + local exe + for exe in $(find tv_bin -type f -executable -or -name '*.so' || die); do + fperms +x ${dst}/${exe} + done + + newinitd "${FILESDIR}"/teamviewerd15.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 + + local size + for size in 16 24 32 48 256; do + newicon -s ${size} tv_bin/desktop/teamviewer_${size}.png teamviewer.png + done + + dodoc -r doc + + # Make docs available in expected location + dosym ../../usr/share/doc/${PF}/doc ${dst}/doc + + # We need to keep docs uncompressed, bug #778617 + docompress -x /usr/share/doc/${PF}/. + + keepdir /etc/${MY_P} + dosym ../../etc/${MY_P} ${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_P} + dosym ../../var/log/${MY_P} ${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 ${MY_MAJOR}" +} + +pkg_postinst() { + xdg_pkg_postinst + + ewarn + ewarn "Please note that the teamviewer gui works only when started from" + ewarn "a session initiated by a display manager." #799137 + optfeature_header "Install one of the following display managers:" + optfeature "an example display manager" x11-misc/cdm gnome-base/gdm gui-apps/gtkgreet x11-misc/lightdm lxde-base/lxdm sys-apps/qingy x11-misc/sddm x11-misc/slim x11-misc/wdm x11-apps/xdm + + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog + 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#8332956" + fi +} |