diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/teamviewer |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/teamviewer')
-rw-r--r-- | net-misc/teamviewer/Manifest | 16 | ||||
-rw-r--r-- | net-misc/teamviewer/files/teamviewer-9.0.32150-gentoo.patch | 138 | ||||
-rw-r--r-- | net-misc/teamviewer/files/teamviewer.sh | 47 | ||||
-rw-r--r-- | net-misc/teamviewer/files/teamviewerd.conf | 6 | ||||
-rw-r--r-- | net-misc/teamviewer/files/teamviewerd.init | 30 | ||||
-rw-r--r-- | net-misc/teamviewer/files/teamviewerd9.init | 25 | ||||
-rw-r--r-- | net-misc/teamviewer/metadata.xml | 19 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-10.0.46203.ebuild | 129 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-11.0.67687.ebuild | 131 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-12.0.85001.ebuild | 131 | ||||
-rw-r--r-- | net-misc/teamviewer/teamviewer-9.0.32150.ebuild | 132 |
11 files changed, 804 insertions, 0 deletions
diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest new file mode 100644 index 000000000000..cc2c4f68822b --- /dev/null +++ b/net-misc/teamviewer/Manifest @@ -0,0 +1,16 @@ +AUX teamviewer-9.0.32150-gentoo.patch 3876 SHA256 c8a9ee6772df79076c68bd3b47654d42d87fa5846e7f812fbf756d26ccc4fe65 SHA512 7eef0090c836ca304554dd064ef105a8ed141e8300a829ebeb6b73e233413efdbdf8662a48da340c11f4e8cddeb00d4cfe7d761e3adf532e48f61fccf642752f WHIRLPOOL 2f68646f536cff27becc20aab89e70a136a5b4f576026cb4e22e184e59cdc0449f322965e8649630ebc36c7cefb4cf089d896c685a8910752013dc6633de11a3 +AUX teamviewer.sh 1329 SHA256 bd55aeee66dc57fc3c38d3ff40117d5f5f41fa106f51ae21a8f471f0f043fee0 SHA512 44e9e519ed3056438952c448b40a0c231238379fc1a5737f0f4ae28860fb3cfa2d9abffbb7e2b9682dbd62a67ad672f4406c2696359ace8fc42d6d0171b0bab0 WHIRLPOOL bb30483b6af1f05bab98d0eb0cdee984cb3c013a6090887659482db93eb73723ad61a8220ecd0b9809961b9790d003e4bc4358d0c67689193bc9f5d11512a316 +AUX teamviewerd.conf 230 SHA256 5cd8485974ef1c62be8fbe4d92f31a03b616e1a3e46c11bcadef7bdb2c169d8a SHA512 31d412278f61fc943f474a02db6de802f53da8b2b424adb5c8a1720bff4316ccb36d5bfbb505c056ef031dcfd52fef5ea28da96b348a76ddf9c624ca1c3cf78f WHIRLPOOL f2bb0f80d15b3dce8db6d9e598e2e050c09aa64e255edfd43567245b7f208aed725e384bcb27b120d3e81655d25e13472ed39e4daefd3bc7d855d9a0bcd3d5c6 +AUX teamviewerd.init 785 SHA256 0b41c5dd3ed54424342a0948439f987bb3987aeced7019a59c59b513737edcb7 SHA512 79f0f5a274e53e6d058e6f0d24f9f9964992391e36a06264aaaba8e219238be9f24ebf64bb3b0aac91dc9e8625835b243e51fb6325d1b0e42242d7b7186ff20d WHIRLPOOL a77293bfa91c8cd7b9f2b67e79465d2b817aca4f1bb370ec3a408d57472b9f640f36fc2eef217ae8ae66b4c5a00e55a6de9f4c794ae0ec514cc8caba16f4e3b9 +AUX teamviewerd9.init 482 SHA256 a0dcbd88055a8594dea307d88c626b9ee2ebb2183d56172b66a5320aa487c281 SHA512 a229cf976e5ce7142dbb57989bb0e802a5b8cdf222f52ad768dfaaacb3ba160ab05d3e1ff1ca7770daf37d9c06e391c6a3c1843ec2be78a86450bcf2a3e4fca9 WHIRLPOOL 6a474b82d3466ceb53d7bbd5abc58e33cac77d6a74c87e5a88046acedbcfaa9465945c96a8e8989cf07a4f1881da5fdd955748805ad3338ef59827ca9581fb95 +DIST teamviewer-9.0.32150.deb 22898922 SHA256 66d9a69f7e1523a2e1b41ff2e55adac01b2dae9b8bdfabf9db6080fc21d24451 SHA512 3e72ed5cab7a754a0aa75e533da92292ad004f66c55ac4c386b6f4a65cc41b14a8d9d7a5410dccdb90c1172cd33e52383289339ab44f0847a061655498ab8e4d WHIRLPOOL fa48ff99a5df29072b1073f35e3f27aeba87b2b846813dca612212344a5b8e35f7f1e221e1fb4f7a12464fce4a185b8dad6dd8f48432e4c48ecd61d9cc6b7960 +DIST teamviewer_10.0.46203_i386.deb 43326592 SHA256 eb1fe811fd2dc1c8dc6fc2ebaae177072b65bc1a3b2a6bb88b9e25f633c51359 SHA512 2133194b180648685a9e179df1a2888277f3038d9098d0d12b72de92026bdb969d90262514996df60dfcf6986e291ecb756fde9e0781fca5c872b5c82e5494ea WHIRLPOOL b6bedba426954f74fb51dca51949508f7299f9bee2dea1abc442a8a8acf79b408455901fedda524851c69a6352ef5a7bb1c733233823d49a0adfec64561f61ce +DIST teamviewer_11.0.67687_i386.deb 47341822 SHA256 b74542910ac574803905658787174b6a60055c6473d3c4e398da36d0dedaf416 SHA512 3fbb0a2fc1bccd41ba9798305fada7e8266e1c9ed8509492ccb75e6f85995538ddc05ad72648e9f6c31cd5f17ad34f1ed3a300eeb38a4a703d3414c113d3e5a9 WHIRLPOOL 2a6b1c04f67933a43ac2493a12c21b8a9eae95150b10d9e713e01efed98c397f44fdd77012407da2dffb8bf0b804374a60cce9d2646ff3c117041d13366be628 +DIST teamviewer_12.0.85001_i386.deb 46549564 SHA256 7a729557ef7618c41c8a94a6d668fa84422ecf9acf2b1889ea52c727849f7f07 SHA512 4db490568936ec58a37157019071cf61ed5dde8b5951f6e524d1f64aa23f46dd40c8eda1e96a9d47c756c1427d82ccb9c58773b53dfa0ae60bbb94e03b4522a0 WHIRLPOOL 9a33d37c30273eabf7321157f473c0ac1788d2567695a7da020f3e922e553f371dc7dc10e1fe4e20ada25bc2cf2f3eb29edaa1613fd513a0fb42a7b1599bf4e0 +EBUILD teamviewer-10.0.46203.ebuild 3520 SHA256 278b22990bd6ad26122c03a0d6a8243f00de0a459510ffb3a1cf6b1d879cfda5 SHA512 a2b9587b4c9fafaab23d67ca0dce7c99b8769f9663e865762fb95269e825c2ab269cf1b54d69949566c1cb04d5fd9df93e0fec4c4d5e455268f24752a11dfebe WHIRLPOOL 4c0fa1b5b3285f4f209409ed02ba31b2e6bad4fbeab4a4210aff46941e81c289987e0d8b35da656272bf85e7e3d4d84c8d842c832c3a910cb68a24200dd9546c +EBUILD teamviewer-11.0.67687.ebuild 3610 SHA256 e4f07e347ec4732e9ff67ae64a9e02fd1a2683c55cd97c1f49abe2b87d1527c9 SHA512 df84cf8082d6626e5e2e212c7b9910bd953ac4346d06a74181813a4b0bcafcb2691912064d5a0cba6facca253f2782bbb99ad9103ed68a4ed3e8429561229f67 WHIRLPOOL c127485558474f5a0de1a796bc3d224a25a6ba9c2f9378afe74ee1f12d70b6cc2e6b9a366ec041f23b0e1f77d73fa1a466110f1f6c21c149b5cab74df272a443 +EBUILD teamviewer-12.0.85001.ebuild 3610 SHA256 d71b964336d614f3bbe7221c04e1accdf1ac0a6e8845e772cfe216ea1a6c3ce3 SHA512 2a6876746bb249e6e1e7ea6d215a74eb98cd4d323dd9a40cbd1a8eff4784568dda16521a163fa4c511479d95188b8fe649da55f92520579bcffe1c61299921e7 WHIRLPOOL e2f8856eae5d7f74f941bb7b3138c11159ba4848d04deb4789cd17a01969c529b0fa0f22573d00e4aafcfd24074d65f906d3ccfc09b05c439df37ed5db81323a +EBUILD teamviewer-9.0.32150.ebuild 3260 SHA256 f02f4f956dde57e194dfc28d57356568b3b812b2bef19cfbe7f1d02fbd4d4443 SHA512 29b18f606daf48400ad770603ad735a917ad7aa50ce86b280f21ae6e36f978c5baa5ed34749a26206563f0d37c67a144365134d5ee61d8b8e21f61a996223c3c WHIRLPOOL 49909da9b99123c1923def710341f06dcd1681afd0e511c9a62c0f2708685ebc7bdcf336d2eecf8ce5911f4b32352c4c09a949a91e962f6ee516cbf2875b62fd +MISC ChangeLog 4894 SHA256 c8b5387746e86753a0e59c503eb649133e7c53851c742e081e5272cdda01cc23 SHA512 80aff9327934eaf4d0c3dabdbba5d90b8c9b6d4e65aa043d88f54278abb5aa23d9e7eaba5711521fc7df3074d40a0b4f8bef45d7b32170220d11b3d80ff3e60a WHIRLPOOL a312fb7846044219e22f9fb71b9fbb58b0babc8605faa0b0232944fe0d0f17f83d8f37a436d544e633adb7bda4e7efb2c1608ccab228427b540cd17c91640776 +MISC ChangeLog-2015 5287 SHA256 c30e66aacb8fa20f0b575c2e1996a41bf321431eb2c84b8f3962927012e93d03 SHA512 3bc2ae794461ea8cfb65c4621eecc4bfe60dc1768e0007a3294bd041e89e887db24a1d0d21742ad86bb16a5e332121e1636e6ede4d3d54b6a82866f4b562d2d1 WHIRLPOOL c3afbc2b3f33a57454a405a95d5011832b6d36d9b61866d57887cb0f85613f8b36ce67f9f8e1fc9527f4439f838e9bb4f9165874cd5caeca2d4d4563ac8b8d24 +MISC metadata.xml 567 SHA256 f1f346b2f6c69ff147ab2766977db3a0cf34de1e5f53f4735d548341618c6f19 SHA512 e1b42cde0a8bff1b512960667fc428f3188609e30ad787b8c5bde1e1c8520d3810bd33f8f11d59ec314a3b0812a9aa4552ada29b465c34f8c0276d85176392f6 WHIRLPOOL 7105c5ec4162fb2dd2076ffe3b69e281528519ce59208bf304f6e134f368a8987593cf760b241d785402ca32a1ea65240bcee27b0b78695de74426ff2ecc5ada diff --git a/net-misc/teamviewer/files/teamviewer-9.0.32150-gentoo.patch b/net-misc/teamviewer/files/teamviewer-9.0.32150-gentoo.patch new file mode 100644 index 000000000000..1df4632795bc --- /dev/null +++ b/net-misc/teamviewer/files/teamviewer-9.0.32150-gentoo.patch @@ -0,0 +1,138 @@ +diff --git a/opt/teamviewer9/tv_bin/script/tvw_extra b/opt/teamviewer9/tv_bin/script/tvw_extra +index 71164aa..848cd25 100644 +--- a/opt/teamviewer9/tv_bin/script/tvw_extra ++++ b/opt/teamviewer9/tv_bin/script/tvw_extra +@@ -16,13 +16,6 @@ + isInstalledTV || return + ABecho "teamviewer --passwd [PASSWD]" "set a password (useful when installing remote (ssh)" + echo +- ABecho "teamviewer --daemon status" "show current status of the TeamViewer daemon" +- ABecho "teamviewer --daemon start" "start TeamViewer daemon" +- ABecho "teamviewer --daemon stop" "stop TeamViewer daemon" +- ABecho "teamviewer --daemon restart" "stop/start TeamViewer daemon" +- ABecho "teamviewer --daemon disable" "disable TeamViewer daemon - don't start daemon on system startup" +- ABecho "teamviewer --daemon enable" "enable TeamViewer daemon - start daemon on system startup (default)" +- echo + } + + function PrintVersion() +@@ -37,19 +30,6 @@ + PrintDaemonStatus + echo + PrintTeamViewerID +-} +- +-function PrintDaemonStatus() +-{ +- local cmd="$(daemonCtl 'status')" +- local txt="n/a" +- +- if [ isInstalledTV ] ; then +- txt="$(eval "$cmd")" +- [ $? = 0 ] || txt='n/a (error)' +- fi +- +- ABecho "teamviewerd status" "$txt" + } + + function PrintTeamViewerID() +@@ -64,20 +44,21 @@ + ABecho "TeamViewer ID:" "$tvid" + + if [ -z "$tvid" ] && isInstalledTV; then +- echo "Try restarting the TeamViewer daemon (e.g. teamviewer --daemon restart)" ++ echo "Try restarting the TeamViewer daemon." + fi + } + + function SetPasswd() + { ++ echo "Stop your teamviewer daemon first, then press enter." ++ read ++ + local pwd="$1" + [ -n "$pwd" ] || die 'no password specified' + + installedTVorDie + isSuperUser || die 'You need root permissions for this operation' + +- Run_Daemon 'stop' > /dev/null +- + "$TV_BIN_DIR/teamviewerd" --passwd "$pwd" + case $? in + 0 ) echo 'ok' ;; +@@ -88,12 +69,14 @@ + * ) echo 'unknown response' ;; + esac + +- Run_Daemon 'start' > /dev/null || die 'failed to restart the daemon' +- echo ++ echo "You may start your teamviewer daemon again." + } + + function ExportLicense() + { ++ echo "Stop your teamviewer daemon first, then press enter." ++ read ++ + local license="$1" + local path='/tmp/tv_global.conf' + +@@ -101,8 +84,6 @@ + + isSuperUser || die 'You need root permissions for this operation' + +- Run_Daemon 'stop' > /dev/null +- + "$TV_BIN_DIR/teamviewerd" --export-license "$license" "$path" + case $? in + 0 ) echo "ok - license exported to '$path'" ;; +@@ -110,8 +91,7 @@ + * ) echo 'unknown response' ;; + esac + +- Run_Daemon 'start' > /dev/null || die 'failed to restart the daemon' +- echo ++ echo "You may start your teamviewer daemon again." + } + + function StripPersonalInformation() +diff --git a/opt/teamviewer9/tv_bin/script/tvw_main b/opt/teamviewer9/tv_bin/script/tvw_main +index 8984db0..c6dff8d 100644 +--- a/opt/teamviewer9/tv_bin/script/tvw_main ++++ b/opt/teamviewer9/tv_bin/script/tvw_main +@@ -4,7 +4,6 @@ + source "$TV_SCRIPT_DIR/tvw_config" + source "$TV_SCRIPT_DIR/tvw_exec" + source "$TV_SCRIPT_DIR/tvw_extra" +-source "$TV_SCRIPT_DIR/tvw_daemon" + source "$TV_SCRIPT_DIR/tvw_profile" + + function Main() +@@ -18,7 +17,6 @@ + --help ) PrintHelp ;; + --version ) PrintVersion ;; + --info ) PrintInfo ;; +- --daemon ) Run_Daemon $opt ;; + --winecfg ) shift; Run_WineCfg "$@" ;; + --regedit ) shift; Run_RegEdit "$@" ;; + --kill ) Run_KillTeamViewer ;; +@@ -170,18 +168,3 @@ + Init + wine regedit "$@" + } +- +-function Run_Daemon() +-{ +- local opt="$1" +- +- installedTVorDie +- +- case "$opt" in +- ( disable ) removeDaemon || rootSuggest ;; +- ( enable ) installDaemon || rootSuggest ;; +- ( start | stop | restart ) cmdDaemon $opt || rootSuggest ;; +- ( status ) cmdDaemon $opt ;; +- ( * ) echo "unknown option '$opt'" ;; +- esac +-} diff --git a/net-misc/teamviewer/files/teamviewer.sh b/net-misc/teamviewer/files/teamviewer.sh new file mode 100644 index 000000000000..70fc4e8a80af --- /dev/null +++ b/net-misc/teamviewer/files/teamviewer.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +tv="$(basename $0)" +tvdir="/opt/${tv}" +version="@TVV@" +tvw_version="" +prefix="${HOME}/.wine-${tv}" +arch="win32" +native=true + +if $native; then + export WINEDLLPATH="${prefix}/drive_c/TeamViewer" +else + export WINEDLLPATH="${tvdir}/tv_bin/wine/lib:${tvdir}/tv_bin/wine/lib/wine:${prefix}/drive_c/TeamViewer" + export PATH="${tvdir}/tv_bin/wine/bin:${PATH}" +fi +export WINEARCH="${arch}" +export WINEPREFIX="${prefix}" + +if [ ! -d "${prefix}" ]; then + echo "Creating prefix..." + wineboot -i &> /dev/null + mkdir -p "${prefix}/drive_c/TeamViewer" +fi + +if [ -e "${prefix}/tvw-version" ]; then + tvw_version=$(<"${prefix}/tvw-version") +fi + +#If version has changed or new instance +if [ "${version}" != "${tvw_version}" ]; then + echo "Copying TeamViewer files to prefix..." + cp -R "/opt/${tv}/wine/drive_c/TeamViewer" "${prefix}/drive_c/" + echo "Creating config and log directories in ~/.config/teamviewer@TVMV@" + mkdir -p "${HOME}"/.config/teamviewer@TVMV@/{config,logfiles} + echo "${version}" > "${prefix}/tvw-version" +fi + +TV_BASE_DIR="${tvdir}" +TV_BIN_DIR="${TV_BASE_DIR}/tv_bin" +TV_PROFILE="${prefix}" +TV_LOG_DIR="${TV_PROFILE}/logfiles" +TV_CFG_DIR="${TV_PROFILE}/config" +TV_USERHOME="${HOME}" + +wine "C:\\TeamViewer\\TeamViewer.exe" "\${[@]}" &> \ + "${HOME}/.config/teamviewer@TVMV@/logfiles/$(date +%Y.%m.%d-%H:%M:%S)-wine.log" diff --git a/net-misc/teamviewer/files/teamviewerd.conf b/net-misc/teamviewer/files/teamviewerd.conf new file mode 100644 index 000000000000..e949660678be --- /dev/null +++ b/net-misc/teamviewer/files/teamviewerd.conf @@ -0,0 +1,6 @@ +# This entry can be used to specify a default daemon password. +# It is set by running /etc/init.d/teamviewerd@TVV@ passwd. +# The password must be between 8 and 12 characters, and special characters should +# be avoided. + +PASSWD="" diff --git a/net-misc/teamviewer/files/teamviewerd.init b/net-misc/teamviewer/files/teamviewerd.init new file mode 100644 index 000000000000..3ca37da3ebc4 --- /dev/null +++ b/net-misc/teamviewer/files/teamviewerd.init @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command=/opt/teamviewer@TVV@/tv_bin/teamviewerd +command_args=-d +description="daemon for TeamViewer" +pidfile=/var/run/teamviewerd.pid + +extra_stopped_commands="passwd" + +passwd() { + if [ -z "${PASSWD}" ]; then + eerror "No password specified." + exit 1 + fi + + ebegin "Attempting to change password." + /opt/teamviewer@TVV@/tv_bin/teamviewerd --passwd "${PASSWD}" + retr=$? + case $retr in + 0) einfo "Password successfully set." ;; + 11|12) eerror "Password must be between 8 and 12 characters.";; + 13) eerror "Invalid characters detected.";; + 14) eerror "Password invalid. Validation failed.";; + *) eerror "Unknown error code";; + esac + eend $retr + exit $retr +} diff --git a/net-misc/teamviewer/files/teamviewerd9.init b/net-misc/teamviewer/files/teamviewerd9.init new file mode 100644 index 000000000000..3a625c95d3b7 --- /dev/null +++ b/net-misc/teamviewer/files/teamviewerd9.init @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="daemon for TeamViewer" + +PIDFILE="/var/run/teamviewerd.pid" + +start() { + ebegin "Starting Teamviewer Daemon" + + start-stop-daemon \ + --start \ + --pidfile "${PIDFILE}" \ + --background \ + --exec /opt/teamviewer@TVV@/teamviewerd -- -d +} + +stop() { + ebegin "Stopping Teamviewer Daemon" + + start-stop-daemon \ + --stop \ + --pidfile "${PIDFILE}" +} diff --git a/net-misc/teamviewer/metadata.xml b/net-misc/teamviewer/metadata.xml new file mode 100644 index 000000000000..35e3a8613fbb --- /dev/null +++ b/net-misc/teamviewer/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>wschlich@gentoo.org</email> + <name>Wolfram Schlich</name> + </maintainer> + <maintainer type="person"> + <email>NP-Hardass@gentoo.org</email> + <name>NP-Hardass</name> + </maintainer> + <maintainer type="project"> + <email>wine@gentoo.org</email> + <name>Wine</name> + </maintainer> + <use> + <flag name="system-wine">Use <pkg>app-emulation/wine</pkg> instead of bundled wine.</flag> + </use> +</pkgmetadata> diff --git a/net-misc/teamviewer/teamviewer-10.0.46203.ebuild b/net-misc/teamviewer/teamviewer-10.0.46203.ebuild new file mode 100644 index 000000000000..3950aeb34533 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-10.0.46203.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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(-)] ) + dev-qt/qtcore:4[abi_x86_32(-)] + dev-qt/qtgui:4[abi_x86_32(-)] + dev-qt/qtwebkit:4[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-11.0.67687.ebuild b/net-misc/teamviewer/teamviewer-11.0.67687.ebuild new file mode 100644 index 000000000000..07243d0be1e6 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-11.0.67687.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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(-)] + dev-qt/qtcore:4[abi_x86_32(-)] + dev-qt/qtgui:4[abi_x86_32(-)] + dev-qt/qtwebkit:4[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-12.0.85001.ebuild b/net-misc/teamviewer/teamviewer-12.0.85001.ebuild new file mode 100644 index 000000000000..28819fde7126 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-12.0.85001.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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(-)] + dev-qt/qtcore:4[abi_x86_32(-)] + dev-qt/qtgui:4[abi_x86_32(-)] + dev-qt/qtwebkit:4[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-9.0.32150.ebuild b/net-misc/teamviewer/teamviewer-9.0.32150.ebuild new file mode 100644 index 000000000000..0d584b497c5f --- /dev/null +++ b/net-misc/teamviewer/teamviewer-9.0.32150.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="http://www.teamviewer.com" +SRC_URI="http://www.teamviewer.com/download/version_${MV}x/teamviewer_linux.deb -> ${P}.deb" + +LICENSE="TeamViewer !system-wine? ( LGPL-2.1 )" +SLOT=${MV} +KEYWORDS="~amd64 ~x86" +IUSE="system-wine" + +RESTRICT="mirror" + +RDEPEND=" + app-shells/bash + x11-misc/xdg-utils + !system-wine? ( + media-libs/alsa-lib[abi_x86_32(-)] + media-libs/freetype[abi_x86_32(-)] + sys-libs/zlib[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXau[abi_x86_32(-)] + x11-libs/libXdamage[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libXfixes[abi_x86_32(-)] + x11-libs/libXrandr[abi_x86_32(-)] + x11-libs/libXrender[abi_x86_32(-)] + x11-libs/libSM[abi_x86_32(-)] + x11-libs/libXtst[abi_x86_32(-)] + ) + system-wine? ( app-emulation/wine )" + +QA_PREBUILT="opt/teamviewer${MV}/*" + +S=${WORKDIR}/opt/teamviewer${MV}/tv_bin + +make_winewrapper() { + cat << EOF > "${T}/${MY_PN}" +#!/bin/sh +export WINEDLLPATH=/opt/${MY_PN} +exec wine "/opt/${MY_PN}/TeamViewer.exe" "\$@" +EOF + chmod go+rx "${T}/${MY_PN}" + exeinto /opt/bin + doexe "${T}/${MY_PN}" +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + + sed \ + -e "s#@TVV@#${MV}/tv_bin#g" \ + "${FILESDIR}"/${PN}d${MV}.init > "${T}"/${PN}d${MV} || die +} + +src_install () { + if use system-wine ; then + make_winewrapper + exeinto /opt/${MY_PN} + doexe wine/drive_c/TeamViewer/* + else + # install scripts and .reg + insinto /opt/${MY_PN}/tv_bin + doins -r * + + exeinto /opt/${MY_PN}/tv_bin + doexe TeamViewer_Desktop + exeinto /opt/${MY_PN}/tv_bin/script + doexe script/teamviewer script/tvw_{aux,config,exec,extra,main,profile} + + dosym /opt/${MY_PN}/tv_bin/script/${PN} /opt/bin/${MY_PN} + + # fix permissions + fperms 755 /opt/${MY_PN}/tv_bin/wine/bin/wine{,-preloader,server} + fperms 755 /opt/${MY_PN}/tv_bin/wine/drive_c/TeamViewer/TeamViewer.exe + find "${D}"/opt/${MY_PN} -type f -name "*.so*" -execdir chmod 755 '{}' \; + fi + + # install daemon binary + exeinto /opt/${MY_PN}/tv_bin + doexe ${PN}d + + # 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 + + doinitd "${T}"/${PN}d${MV} + systemd_newunit script/${PN}d.service ${PN}d${MV}.service + + newicon -s 48 desktop/${PN}.png ${MY_PN}.png + dodoc ../doc/linux_FAQ_{EN,DE}.txt + make_desktop_entry ${MY_PN} TeamViewer ${MY_PN} +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + + if use system-wine ; then + echo + eerror "IMPORTANT NOTICE!" + elog "Using ${PN} with system wine is not supported and experimental." + elog "Do not report gentoo bugs while using this version." + echo + fi + + eerror "STARTUP NOTICE:" + elog "You cannot start the daemon via \"teamviewer --daemon start\"." + elog "Instead use the provided gentoo initscript:" + elog " /etc/init.d/${PN}d${MV} start" + elog + elog "Logs are written to \"/var/log/teamviewer${MV}\"" +} + +pkg_postrm() { + gnome2_icon_cache_update +} |