From 21435953e16cda318a82334ddbadb3b5c36d9ea7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 15 Jan 2020 15:51:32 +0000 Subject: gentoo resync : 15.01.2020 --- net-misc/teamviewer/Manifest | 12 +-- net-misc/teamviewer/files/teamviewerd14.init | 8 -- net-misc/teamviewer/teamviewer-14.6.2452.ebuild | 136 ------------------------ net-misc/teamviewer/teamviewer-14.7.1965.ebuild | 136 ------------------------ net-misc/teamviewer/teamviewer-15.0.8397.ebuild | 4 +- net-misc/teamviewer/teamviewer-15.1.3937.ebuild | 136 ++++++++++++++++++++++++ 6 files changed, 142 insertions(+), 290 deletions(-) delete mode 100644 net-misc/teamviewer/files/teamviewerd14.init delete mode 100644 net-misc/teamviewer/teamviewer-14.6.2452.ebuild delete mode 100644 net-misc/teamviewer/teamviewer-14.7.1965.ebuild create mode 100644 net-misc/teamviewer/teamviewer-15.1.3937.ebuild (limited to 'net-misc/teamviewer') diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest index c66be05c66a9..9956ddda388a 100644 --- a/net-misc/teamviewer/Manifest +++ b/net-misc/teamviewer/Manifest @@ -1,12 +1,8 @@ -AUX teamviewerd14.init 282 BLAKE2B af900eacf64f57d6c3a404cde9b42d4e45037c7bf8d5466422ebfddbce4fc1eb27c3982dd81d4bb918479b8da00104cd1b761e64738d00e70efb3b1d7fe2134e SHA512 0905da2033afbf2f4464fae31f7d22b87469c584b912d2f8b652d05a1f2a63709e87d0e70cb981cb87803e9d66f25c399f13eea0ecd0e665bd0a9c1f6994c3f1 AUX teamviewerd15.init 282 BLAKE2B eaa5844606cab7942d8117a7f62687f1ba2b3ff5deecf61903d9c01ea5434c8104eceb2e50d1c7a4b93089df53c98fab38da6e6e5f4ee8c18426a7165b9cc465 SHA512 bc2271c1fb360129bf0452950340389e434e420830d7d3f47dcd248151dbbadf798c025d4e47fe311857c070f3dd7b12f0092fa09508f0300963c6e04d8ed7c8 -DIST teamviewer_14.6.2452_amd64.tar.xz 12507160 BLAKE2B b84f085f3371877952680305808ae1201330a6402fb0e6e4812978801b8e888b6166a8f9f39bcea16ce60e2df039fdee6800a32612028f6d8237dd763f87383e SHA512 7d82356df572e19ffc1de6de5b94f1e95e511f986c4aa88ff2a80dc6dfd12c798f93e62d7886c66c57c51a432fd265cfadaf267a56dbccb029207e3ebd719c30 -DIST teamviewer_14.6.2452_i386.tar.xz 13055508 BLAKE2B b2adc4c98aecae2886a9fc51bdb9e233250985b7863ebc4376d7d0e8240e8ed2eafc878a9a522a2d5c2c0493b4e483cd70b2ea14f57c13892635f7756f398cd8 SHA512 0ed6d712c3df7ac13748f013bb9ad27d57dda0f0f5e29847a12529253e619a47c05806a209a3e20e7760f59c9feba5bb9d33de0a739adc6619a8e6e52dcec86d -DIST teamviewer_14.7.1965_amd64.tar.xz 12459308 BLAKE2B 4a4b8005220f5433458ac61d3b9cb483d275ffc617328c49a0c7000f19b46dd620d3e517c80a680ab6c29a24924c436853d894dd6940a924afe5db848dcadc03 SHA512 b5d18bec8a5584d23687bc9f57bb8e7c44218ec9cb8adef274c9c9580bbcde51aa63d8a72d0755f1cca61305d535d20994b3a263233aca67a844b7ae6da42fcd -DIST teamviewer_14.7.1965_i386.tar.xz 12958172 BLAKE2B bb5d66a2ec3d456b62d540217b9f6c798005419a0a14671968d47efc67532da844813af72cede8ca1c66e547af92b0af2acf2a85712a9f008fc0adfc01251632 SHA512 43ac26e851ba1018de61b20f7e8a6849e3141ecee809efd44f47cda080150aac9d1cd4fdbc911292c7d543c37830922f67bd1416ebe5c4603a07ffcaa30de517 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 -EBUILD teamviewer-14.6.2452.ebuild 4103 BLAKE2B 1c4b8bcf00e3e8d651c25e3e59f87757eaa7acde99578cc54eb6fa37535424234fe7d8943fb3b74343a385deb48d8801554bf43079f07dc3073cc3ce531946c1 SHA512 c2ffd27b0edc59c40de948f1169617db5495520caa12b4b633413a645537ca41b2e8f22a0e085f439c2376c0b6d6c67a7d189ad8cfa407ecead0bd24742363cc -EBUILD teamviewer-14.7.1965.ebuild 4103 BLAKE2B 1c4b8bcf00e3e8d651c25e3e59f87757eaa7acde99578cc54eb6fa37535424234fe7d8943fb3b74343a385deb48d8801554bf43079f07dc3073cc3ce531946c1 SHA512 c2ffd27b0edc59c40de948f1169617db5495520caa12b4b633413a645537ca41b2e8f22a0e085f439c2376c0b6d6c67a7d189ad8cfa407ecead0bd24742363cc -EBUILD teamviewer-15.0.8397.ebuild 4103 BLAKE2B 1c4b8bcf00e3e8d651c25e3e59f87757eaa7acde99578cc54eb6fa37535424234fe7d8943fb3b74343a385deb48d8801554bf43079f07dc3073cc3ce531946c1 SHA512 c2ffd27b0edc59c40de948f1169617db5495520caa12b4b633413a645537ca41b2e8f22a0e085f439c2376c0b6d6c67a7d189ad8cfa407ecead0bd24742363cc +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 +EBUILD teamviewer-15.0.8397.ebuild 4095 BLAKE2B ecf492a109ce1ede852933001908cb14987d3c082a50e3ea35a142a5e93bbd90faba7620cff33969703cca89647606eff249f9082167fca314ca93839bd8ae39 SHA512 0d1281c28821cfc0db145931e661090af846fe62df96b6390c7c5cf18b5b5ed3d9533748c9611219ac01a330b79b6221001837ba65f064289fc05cc7355ca8d9 +EBUILD teamviewer-15.1.3937.ebuild 4095 BLAKE2B ecf492a109ce1ede852933001908cb14987d3c082a50e3ea35a142a5e93bbd90faba7620cff33969703cca89647606eff249f9082167fca314ca93839bd8ae39 SHA512 0d1281c28821cfc0db145931e661090af846fe62df96b6390c7c5cf18b5b5ed3d9533748c9611219ac01a330b79b6221001837ba65f064289fc05cc7355ca8d9 MISC metadata.xml 353 BLAKE2B 6b23f0ea5f9e3bc076641d6991535e7069dab3abd3f30e1d1052580223ec1f2ad94a8b0f6dfc6ee0019cdb3f1b3ea31edc5bbd04579da77f866291922f4c675a SHA512 bb21752978f1cf4c9cabf6b5fad33e0dbb820d27a5dd3ef40fd54f4a86893b77cd994dfe77395ff8fdd69f4e0f805bca622486538a4781b0f30b55ffdcf1540d diff --git a/net-misc/teamviewer/files/teamviewerd14.init b/net-misc/teamviewer/files/teamviewerd14.init deleted file mode 100644 index fc793766abd3..000000000000 --- a/net-misc/teamviewer/files/teamviewerd14.init +++ /dev/null @@ -1,8 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -command="/opt/teamviewer14/tv_bin/teamviewerd" -command_args="-d" -description="Starts the TeamViewer remote control daemon" -pidfile="/var/run/teamviewerd.pid" diff --git a/net-misc/teamviewer/teamviewer-14.6.2452.ebuild b/net-misc/teamviewer/teamviewer-14.6.2452.ebuild deleted file mode 100644 index 6650185440e6..000000000000 --- a/net-misc/teamviewer/teamviewer-14.6.2452.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="${PV/\.*}" -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}"/teamviewerd14.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-) - 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 - # ') - 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-14.7.1965.ebuild b/net-misc/teamviewer/teamviewer-14.7.1965.ebuild deleted file mode 100644 index 6650185440e6..000000000000 --- a/net-misc/teamviewer/teamviewer-14.7.1965.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="${PV/\.*}" -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}"/teamviewerd14.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-) - 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 - # ') - 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.0.8397.ebuild b/net-misc/teamviewer/teamviewer-15.0.8397.ebuild index 6650185440e6..7c717766d4a1 100644 --- a/net-misc/teamviewer/teamviewer-15.0.8397.ebuild +++ b/net-misc/teamviewer/teamviewer-15.0.8397.ebuild @@ -12,7 +12,7 @@ SRC_URI="amd64? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${ x86? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_i386.tar.xz )" LICENSE="TeamViewer MIT" -SLOT="${PV/\.*}" +SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="" @@ -70,7 +70,7 @@ src_install() { done # No slotting here, binary expects this service path - newinitd "${FILESDIR}"/teamviewerd14.init teamviewerd + newinitd "${FILESDIR}"/teamviewerd15.init teamviewerd systemd_dounit tv_bin/script/teamviewerd.service insinto /usr/share/dbus-1/services diff --git a/net-misc/teamviewer/teamviewer-15.1.3937.ebuild b/net-misc/teamviewer/teamviewer-15.1.3937.ebuild new file mode 100644 index 000000000000..7c717766d4a1 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-15.1.3937.ebuild @@ -0,0 +1,136 @@ +# 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-) + 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 + # ') + 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 +} -- cgit v1.2.3