From 5b7b62a9feb6892e88e594121ece842c37edd656 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 13 Aug 2014 10:46:05 +0200 Subject: [PATCH] iit commit of teamviewer9 Package-Manager: portage-2.2.8-r1 RepoMan-Options: --force --- net-misc/teamviewer/ChangeLog | 15 ++ net-misc/teamviewer/Manifest | 12 ++ .../files/teamviewer-7.0.9377-POSIX.patch | 183 ++++++++++++++++++ .../files/teamviewer-8.0.20931-gentoo.patch | 135 +++++++++++++ .../files/teamviewer-9.0.27891-gentoo.patch | 91 +++++++++ net-misc/teamviewer/files/teamviewerd.init | 26 +++ net-misc/teamviewer/metadata.xml | 16 ++ .../teamviewer/teamviewer-7.0.9377.ebuild | 122 ++++++++++++ .../teamviewer/teamviewer-8.0.20931.ebuild | 162 ++++++++++++++++ .../teamviewer/teamviewer-9.0.30203.ebuild | 155 +++++++++++++++ 10 files changed, 917 insertions(+) create mode 100644 net-misc/teamviewer/ChangeLog create mode 100644 net-misc/teamviewer/Manifest create mode 100644 net-misc/teamviewer/files/teamviewer-7.0.9377-POSIX.patch create mode 100644 net-misc/teamviewer/files/teamviewer-8.0.20931-gentoo.patch create mode 100644 net-misc/teamviewer/files/teamviewer-9.0.27891-gentoo.patch create mode 100644 net-misc/teamviewer/files/teamviewerd.init create mode 100644 net-misc/teamviewer/metadata.xml create mode 100644 net-misc/teamviewer/teamviewer-7.0.9377.ebuild create mode 100644 net-misc/teamviewer/teamviewer-8.0.20931.ebuild create mode 100644 net-misc/teamviewer/teamviewer-9.0.30203.ebuild diff --git a/net-misc/teamviewer/ChangeLog b/net-misc/teamviewer/ChangeLog new file mode 100644 index 00000000..4561bbd6 --- /dev/null +++ b/net-misc/teamviewer/ChangeLog @@ -0,0 +1,15 @@ +# ChangeLog for net-misc/teamviewer +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*teamviewer-7.0.9377 (13 Aug 2014) +*teamviewer-8.0.20931 (13 Aug 2014) +*teamviewer-9.0.30203 (13 Aug 2014) + + 13 Aug 2014; Mario Fetka + +files/teamviewer-7.0.9377-POSIX.patch, + +files/teamviewer-8.0.20931-gentoo.patch, + +files/teamviewer-9.0.27891-gentoo.patch, +files/teamviewerd.init, + +metadata.xml, +teamviewer-7.0.9377.ebuild, +teamviewer-8.0.20931.ebuild, + +teamviewer-9.0.30203.ebuild: + iit commit of teamviewer9 diff --git a/net-misc/teamviewer/Manifest b/net-misc/teamviewer/Manifest new file mode 100644 index 00000000..1c363882 --- /dev/null +++ b/net-misc/teamviewer/Manifest @@ -0,0 +1,12 @@ +AUX teamviewer-7.0.9377-POSIX.patch 3698 SHA256 fd595f395e0a66407c4bad2ee0d75a8f44bb39e89efc2b3ceaa5c71023024fd9 SHA512 67e9e82a606303501c0f8d4e06f06772322117b54c486c0516a593ce257961f866a4852ad677eef2a15e5714946a83d380e467519f4cc660a219f44abf8ca795 WHIRLPOOL 030ca9ee795eee371d9338fb2826b3f24617b0307c4f7a94127c921338ba335fe261bfc389cae12827b8f68deafb6852baa84664a7b3c16946670704521d49a7 +AUX teamviewer-8.0.20931-gentoo.patch 3786 SHA256 560d0ec32bae1493e2a64ffbd61f42ef7f57ee6961175cee6e0a80de683a04c2 SHA512 6395c088d8cb99d8f0067296166170b6353a8c5a3b4b3a0390a7781dd0ee2d6cf7cd48e884ab286d5c87a9a4423227f6cff8b7c2fa7d591897c4657cbca19574 WHIRLPOOL 5ca33f345fe4315a89f944056bd1df73362d005e4c75b2a8d58d35990709eab223a6c82198bd5e7e621af2a6085a250bafd3bac8e7b9a61cdf7b52edbf63437f +AUX teamviewer-9.0.27891-gentoo.patch 2488 SHA256 85d41ba7b748e20cf75e1a4d7381da9f404991e322235dd9d702ff151b3242b2 SHA512 6ed3621ef415c1f8ccfb7f9f4a57932436e2c3bc8b04a91347b9f1ceca47b1b2608b6905d98152e1efc99b6739eb6f8098d182c6413089f6ab4ffeec074927fb WHIRLPOOL 09529701480e3fcbb8f0ccd7c3c28e82a5d0efe42721247819d97552ba0f26276fde8258cfad5aa3e2a1f8ebb1e65e77d5049bca6d0fcf16e3528c6cc6ff36e9 +AUX teamviewerd.init 600 SHA256 a67baa33c8459acc6e5fe27713041d2776160530b0546c523c084c1351723add SHA512 ba11f118d1f543e02b23169704153a8f20ec259afb16b25ea09a6fb5e4400a3c7f4cbb874d2d3ef5f2676437aa1225353412742f29531b60f2a7c7c7bbae32e2 WHIRLPOOL 7c691710633e851eeb45fa9c2ca9fe11f587f973e4aad553c8139b911bf79061309ceab80c1eb69a9e5f06611b9dfa23c98ed53f66ecd972dfcd409dadb46bcf +DIST teamviewer-7.0.9377.tar.gz 18102617 SHA256 3eaa78cbbd49449f2dbe5be6f0af99535a039598867a537ea8230189251909b9 SHA512 cc959dc9d243be499dbd5781c979305787659fbc95f72f5cb5e05dc042006cf05e670e8feb88322a1adf74f1c58cdf8883c11945a5baff26b0a7a2a4e8b08a8b WHIRLPOOL 68cc97298d8f98b5021e39954f45167eb2b32ff3bd32aa38733120574dafcf13884e452823ccec9d73f3244989433919395ba6d357f714635a1a6276bd8fa855 +DIST teamviewer-8.0.20931.deb 19567090 SHA256 6ad27b106a125c51075597c526b7b84fa9637af1aef6ee0514faa49694bf70dd SHA512 991fb4e572b312289097062577c9dfd9189d8405902e6965b224b1ad7e883de2dca99aa18b4ae2e333ce1cab65eade0f86eddccc32ed045140a34037c1a129d0 WHIRLPOOL e7ec1544e13b6cdc161783e36589b1cf07bbe60dd32f811d29e8c7b266477840550a08382c3b4683fbf00a6433305c135714bb30fb260c202a1bb828f0da8d45 +DIST teamviewer-9.0.30203.deb 23460204 SHA256 ef01b63eeec7aa9c046b613d26448b87f6bd00774941730fd26f60bb14f5aa75 SHA512 ead3467bbfb7b29c6c83218271afb9d4a8ac740eaba0d879ec1fe2501199d98b6bb9549a9238153680f978439519fcbd6e85744bdf375a1296c56bb9d13407d9 WHIRLPOOL edc23b23b2ee4961b9d92748460236bb94373b8320c67b1f4ef4055874dbe8d596409dd206ea32c6a20cf593c579943ec8c2f047b01b858ccd50616d49965320 +EBUILD teamviewer-7.0.9377.ebuild 2963 SHA256 3a4deae62c7d89f8391b03256fcd4cc8604239915f57e601b697e0eaf7c10c21 SHA512 fc95dfed2c32cfd520da701910f04c4fc9d3802764907d0c425d794ff4a69be54a1a7e38dc7f7e9225ff68a6e4448992d3122f948d51f98c981b928c0d65eb74 WHIRLPOOL af9e7e9eb3190ce6f2e586edc7d565fcdc8194d71d618c99c4e0417bcc1a73ed4f8385fac1cff3bef196dd9b7ba3088bc4c7f459b25e0e3a7ec82d1a35218516 +EBUILD teamviewer-8.0.20931.ebuild 3982 SHA256 328b496dd5f2e2305e6197381ca57a1c0b37bda94e3911b2289350a7c3996c3c SHA512 d4aff89e605501fdbd6396db310c1c042aa03683c5b35f2b04905dbc27b5a4a5fee1c82ca3a71b3eae5eaaa5224e384955ad9604cf3e41337fd8506a318624ba WHIRLPOOL 96902662dfc8a98c7d20dc6df29fb4c420e245d3f17d6e307d226369035e2872f26d3a61a03698a353fe78376e695606f2d8ca9812fbe51bc98a489d6083f71f +EBUILD teamviewer-9.0.30203.ebuild 3724 SHA256 d4287976e9e9e4444358b1ca202cba569df7993792a83d81172a0982cec4ea61 SHA512 8ecc478b45c1afd50f4af35eceffac907fb4f94b7c15f6ab934cd522919fc532be90c5c1fbb88968a9d073e0f66f36e56b2e7e1ab03e04c41aeaa774911a92dd WHIRLPOOL 756f8cfb53376897bd7e53666305c7278770d4f4bc19598642fda4d563211a73e34a57aff280cfcadd203d96284eea78c09aedc60696607ed36a7ba2670f72c0 +MISC ChangeLog 570 SHA256 0a4ebfe8266f394f32e2079491485b7f17288cff1fc81ed0fcd660987b7159e2 SHA512 8c6415a0ea34305825e56912ff8aed9630893e0c297500c0f1d6ec9f58f5b1c5cd9450ef9ba4d13e7ef0da1bb7376056c8a69a7cf546cfcbf2ac8caad38684e9 WHIRLPOOL 8daab999a5ecc8a851b9cada3ddbc7df65cffc7dd182cd1edd13a67ab01e9bf482566b7d1adbb3892c2bb11b87278ef3bce58045ef20f9eec9141bcf09594367 +MISC metadata.xml 444 SHA256 639cdfda43bf7e000721768a1ea21f4f28b465aae9fc0f4b4ff46c1b55f6538a SHA512 a3b75ae69a85bd9eadeb0b58564b39486cc3f27b2588b76ed54529b03d3bd049ddeca4bf1552ceb26b58285e99fbd7b850814007365bb1e70d0c6c59aa64fea5 WHIRLPOOL 64614b52256d2dfdb9a7b94b33aaff022ceb52631bce602467422d7971339e26c5aef255c2f057d8157f00b53351f3a4f96dabbc6967f904611bf9853634ebbb diff --git a/net-misc/teamviewer/files/teamviewer-7.0.9377-POSIX.patch b/net-misc/teamviewer/files/teamviewer-7.0.9377-POSIX.patch new file mode 100644 index 00000000..ebbe5cd7 --- /dev/null +++ b/net-misc/teamviewer/files/teamviewer-7.0.9377-POSIX.patch @@ -0,0 +1,183 @@ +From: Julian Ospald +Date: Tue Feb 19 21:24:39 UTC 2013 +Subject: make scripts POSIX compliant + +--- teamviewer7/.tvscript/.regedit ++++ teamviewer7/.tvscript/.regedit +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + TV_script_dir="$(dirname "$(readlink -f "$0")")" + "$TV_script_dir/wrapper" wine regedit "$@" +--- teamviewer7/.tvscript/.winecfg ++++ teamviewer7/.tvscript/.winecfg +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + TV_script_dir="$(dirname "$(readlink -f "$0")")" + "$TV_script_dir/wrapper" wine winecfg "$@" +--- teamviewer7/.tvscript/killteamviewer ++++ teamviewer7/.tvscript/killteamviewer +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # execute wineserver -k for all users running a TeamViewer + # (if not called by root, only successful for the current user) + +--- teamviewer7/.tvscript/teamviewer ++++ teamviewer7/.tvscript/teamviewer +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + TV_script_dir="$(dirname "$(readlink -f "$0")")" + "$TV_script_dir/wrapper" wine "c:\Program Files\TeamViewer\Version7\TeamViewer.exe" "$@" +--- teamviewer7/.tvscript/wrapper ++++ teamviewer7/.tvscript/wrapper +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + TV_script_dir="$(dirname "$(readlink -f "$0")")" + TV_base_dir="$(dirname "$TV_script_dir")" +@@ -23,7 +23,7 @@ + export WINESERVER="$TV_Wine_bin/wineserver" + + +-function tv_Prepare() ++tv_Prepare() + { + exec 2>&1 # redirect stderr + +@@ -33,7 +33,7 @@ + setup_env + } + +-function tv_Run() ++tv_Run() + { + exec 2>&1 # redirect stderr + +@@ -43,7 +43,7 @@ + "$TV_Wine_bin/$binary" "$@" + } + +-function tv_LogInfo() ++tv_LogInfo() + { + exec 2>&1 # redirect stderr + +@@ -71,7 +71,7 @@ + echo " " + } + +-function setup_wine() ++setup_wine() + { + # setup dosdevices and symlinks + local c_sym="$WINEPREFIX/dosdevices/c:" +@@ -88,14 +88,14 @@ + } + + # ensure path exists +-function make_path() ++make_path() + { + local path="$1" + [ -d "$path" ] || mkdir -p "$path" || die "Could not create $path" + } + + # setup/validate drive symlinks +-function setup_drive_symlink() ++setup_drive_symlink() + { + local sym="$1" + local dst="$2" +@@ -107,7 +107,7 @@ + } + + # setup logfile symlinks +-function setup_log_symlink ++setup_log_symlink() + { + local cuser=$(id -un) + local basepath="$WINEPREFIX/drive_c/users/$cuser" +@@ -129,7 +129,7 @@ + } + + # setup/validate win symlinks +-function setup_win_symlink() ++setup_win_symlink() + { + local sym="$WINEPREFIX/$1" + local dst="$TV_Wine_dir/$1" +@@ -141,7 +141,7 @@ + [ -d $(readlink -f "$sym") ] || ln -s "$dst" "$sym" || die "Could not create $sym (link to $dst)" + } + +-function setup_prog_dir() ++setup_prog_dir() + { + local progdir="$WINEPREFIX/drive_c/Program Files/TeamViewer/Version7" + local progsrc="$TV_Wine_dir/drive_c/Program Files/TeamViewer/Version7" +@@ -158,7 +158,7 @@ + done + } + +-function setup_wine_tweaks() ++setup_wine_tweaks() + { + # Enable Subpixel Hinting + if ! [ -e "$WINEPREFIX/.set_fontsmooth" ] ; then +@@ -191,7 +191,7 @@ + fi + } + +-function setup_tar_env() ++setup_tar_env() + { + local dsrc="$TV_script_dir/teamviewer.desktop.template" + local ddst="$TV_script_dir/teamviewer.desktop" +@@ -210,7 +210,7 @@ + fi + } + +-function setup_env() ++setup_env() + { + local tvwine="$TV_Wine_dir/drive_c/Program Files/TeamViewer/Version7/tvwine.dll.so" + +@@ -227,7 +227,7 @@ + (cd /etc; ls -m *-release *-version *_version > "$TV_profile/drive_c/distrelease" 2> /dev/null) + } + +-function validate_user() ++validate_user() + { + local userid=$(id -un) + +@@ -236,7 +236,7 @@ + fi + } + +-function validate_binary() ++validate_binary() + { + local binary="$1" + +@@ -245,9 +245,11 @@ + fi + } + +-function die() ++die() + { +- echo -e "\nError: $@\n" ++ echo ++ echo "Error: $@" ++ echo + exit 1 + } + diff --git a/net-misc/teamviewer/files/teamviewer-8.0.20931-gentoo.patch b/net-misc/teamviewer/files/teamviewer-8.0.20931-gentoo.patch new file mode 100644 index 00000000..48c3712e --- /dev/null +++ b/net-misc/teamviewer/files/teamviewer-8.0.20931-gentoo.patch @@ -0,0 +1,135 @@ +commit d3060b46b357c399d522e8346dd6c9b99c322343 +Author: hasufell +Date: Sat Sep 21 20:08:07 2013 +0200 + + remove all daemon/systemd related bits + +diff --git a/script/tvw_main b/script/tvw_main +index bdff58b..1058d47 100644 +--- a/script/tvw_main ++++ b/script/tvw_main +@@ -2,7 +2,6 @@ + + source "$TV_SCRIPT_DIR/tvw_config" + source "$TV_SCRIPT_DIR/tvw_aux" +-source "$TV_SCRIPT_DIR/tvw_daemon" + source "$TV_SCRIPT_DIR/tvw_profile" + + +@@ -17,7 +16,6 @@ function Main() + --help ) PrintHelp ;; + --version ) PrintVersion ;; + --info ) PrintInfo ;; +- --daemon ) Run_Daemon $opt ;; + --winecfg ) shift; Run_WineCfg "$@" ;; + --regedit ) shift; Run_RegEdit "$@" ;; + --kill ) Run_KillTeamViewer ;; +@@ -174,26 +172,14 @@ function Run_RegEdit() + wine regedit "$@" + } + +-function Run_Daemon() +-{ +- local opt="$1" +- +- case "$opt" in +- ( disable ) removeDaemon || rootSuggest ;; +- ( enable ) installDaemon || rootSuggest ;; +- ( start | stop | restart ) cmdDaemon $opt || rootSuggest ;; +- ( status ) cmdDaemon $opt ;; +- ( * ) echo "unknown option '$opt'" ;; +- esac +-} +- + function SetPasswd() + { ++ echo "Stop your teamviewer daemon first, then press enter." ++ read ++ + local pwd="$1" + [ -n "$pwd" ] || die 'no password specified' + +- Run_Daemon 'stop' > /dev/null +- + $TV_BIN_DIR/teamviewerd --passwd "$pwd" + case $? in + 0 ) echo 'ok' ;; +@@ -203,19 +189,19 @@ function SetPasswd() + * ) echo 'unknown response' ;; + esac + +- Run_Daemon 'start' || 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' + + [ -n "$license" ] || die 'no license specified' + +- Run_Daemon 'stop' > /dev/null +- + $TV_BIN_DIR/teamviewerd --export-license "$license" "$path" + case $? in + 0 ) echo "ok - license exported to '$path'" ;; +@@ -223,8 +209,7 @@ function ExportLicense() + * ) echo 'unknown response' ;; + esac + +- Run_Daemon 'start' || die 'failed to restart the daemon' +- echo ++ echo "You may start your teamviewer daemon again." + } + + function CreateZipLog() +@@ -265,20 +250,12 @@ function PrintHelp() + ABecho "teamviewer --passwd [PASSWD]" "set a password (useful when installing remote (ssh)" + ABecho "teamviewer --ziplog" "create a zip containing all teamviewer logs (useful when contacting support)" + 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)" + } + + function PrintInfo() + { + PrintVersion + echo +- PrintDaemonStatus +- echo + PrintTeamViewerID + } + +@@ -287,15 +264,6 @@ function PrintVersion() + ABecho "TeamViewer" "$TV_VERSION" + } + +-function PrintDaemonStatus() +-{ +- local cmd="$(daemonCtl 'status')" +- local txt="$(eval "$cmd")" +- [ $? = 0 ] || txt='n/a (error)' +- +- ABecho "teamviewerd status" "$txt" +-} +- + function PrintTeamViewerID() + { + local config="$TV_BASE_DIR/config/global.conf" +@@ -307,6 +275,6 @@ function PrintTeamViewerID() + ABecho "TeamViewer ID:" "$tvid" + else + echo "TeamViewer ID: not found" +- echo "Try restarting the TeamViewer daemon (e.g. teamviewer --daemon restart)" ++ echo "Try restarting the TeamViewer daemon." + fi + } diff --git a/net-misc/teamviewer/files/teamviewer-9.0.27891-gentoo.patch b/net-misc/teamviewer/files/teamviewer-9.0.27891-gentoo.patch new file mode 100644 index 00000000..b79dd76d --- /dev/null +++ b/net-misc/teamviewer/files/teamviewer-9.0.27891-gentoo.patch @@ -0,0 +1,91 @@ +diff -uNr opt.orig/teamviewer9/tv_bin/script/tvw_extra opt/teamviewer9/tv_bin/script/tvw_extra +--- opt.orig/teamviewer9/tv_bin/script/tvw_extra 2014-05-08 22:56:31.914099956 +0200 ++++ opt/teamviewer9/tv_bin/script/tvw_extra 2014-05-08 23:09:39.484253974 +0200 +@@ -34,24 +34,9 @@ + { + PrintVersion + echo +- 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() + { + local config="$TV_BASE_DIR/config/global.conf" +@@ -61,20 +46,19 @@ + [ -e "$config" ] && tvid=$( grep 'ClientID' "$config" | cut --delimiter='=' -f2 ) + [ -n "$tvid" ] && txt="$tvid" + +- 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' + +- Run_Daemon 'stop' > /dev/null +- + $TV_BIN_DIR/teamviewerd --passwd "$pwd" + case $? in + 0 ) echo 'ok' ;; +diff -uNr opt.orig/teamviewer9/tv_bin/script/tvw_main opt/teamviewer9/tv_bin/script/tvw_main +--- opt.orig/teamviewer9/tv_bin/script/tvw_main 2014-05-08 22:56:31.914099956 +0200 ++++ opt/teamviewer9/tv_bin/script/tvw_main 2014-05-08 23:10:36.803537385 +0200 +@@ -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" + + +@@ -19,7 +18,6 @@ + --help ) PrintHelp ;; + --version ) PrintVersion ;; + --info ) PrintInfo ;; +- --daemon ) Run_Daemon $opt ;; + --winecfg ) shift; Run_WineCfg "$@" ;; + --regedit ) shift; Run_RegEdit "$@" ;; + --kill ) Run_KillTeamViewer ;; +@@ -166,18 +164,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/teamviewerd.init b/net-misc/teamviewer/files/teamviewerd.init new file mode 100644 index 00000000..f8b4dc40 --- /dev/null +++ b/net-misc/teamviewer/files/teamviewerd.init @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/teamviewer/files/teamviewerd.init,v 1.2 2013/04/18 13:08:45 hasufell Exp $ + +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 00000000..a824f0d9 --- /dev/null +++ b/net-misc/teamviewer/metadata.xml @@ -0,0 +1,16 @@ + + + + + flameeyes@gentoo.org + Diego Elio Pettenò + + + hasufell@gentoo.org + Julian Ospald + + + Use app-emulation/wine instead of bundled one. + + + diff --git a/net-misc/teamviewer/teamviewer-7.0.9377.ebuild b/net-misc/teamviewer/teamviewer-7.0.9377.ebuild new file mode 100644 index 00000000..18a86040 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-7.0.9377.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/teamviewer/teamviewer-7.0.9377.ebuild,v 1.3 2013/04/21 20:37:28 mgorny Exp $ + +EAPI=5 + +inherit eutils gnome2-utils + +# 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="https://www.teamviewer.com/download/version_${MV}x/teamviewer_linux.tar.gz -> ${P}.tar.gz" + +LICENSE="TeamViewer !system-wine? ( LGPL-2.1 )" +SLOT=${MV} +KEYWORDS="~amd64 ~x86" +IUSE="system-wine" + +RESTRICT="mirror" + +RDEPEND=" + x11-misc/xdg-utils + !system-wine? ( + amd64? ( + app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-soundlibs + || ( + ( + 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/libXext[abi_x86_32] + x11-libs/libXfixes[abi_x86_32] + x11-libs/libXtst[abi_x86_32] + ) + app-emulation/emul-linux-x86-xlibs + ) + ) + x86? ( + sys-libs/zlib + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXtst + ) + ) + system-wine? ( app-emulation/wine )" + +QA_PREBUILT="opt/teamviewer-${MV}/*" + +S=${WORKDIR}/teamviewer${MV} + +make_winewrapper() { + cat << EOF > "${T}/${MY_PN}" +#!/bin/sh +exec wine "/opt/${MY_PN}/bin/TeamViewer.exe" "\$@" +EOF + chmod go+rx "${T}/${MY_PN}" + exeinto /opt/bin + doexe "${T}/${MY_PN}" +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-POSIX.patch +} + +src_install () { + if use system-wine ; then + make_winewrapper + exeinto /opt/${MY_PN}/bin + doexe "${S}/.wine/drive_c/Program Files/TeamViewer/Version7/"* + else + # install scripts and .reg + insinto /opt/${MY_PN}/bin + find ".tvscript" -type f \( \! -name "${PN}.desktop*" -a \! -name "${PN}.png" \) \ + -maxdepth 1 -execdir doins '{}' \; + + # install wine + insinto /opt/${MY_PN}/wine + doins -r "${S}"/.wine/* + dosym /opt/${MY_PN}/bin/${PN} /opt/bin/${MY_PN} + + # fix permissions + fperms 755 /opt/${MY_PN}/bin/{${PN},wrapper,killteamviewer} + fperms 755 /opt/${MY_PN}/wine/bin/wine{,-preloader,server} + fperms 755 "/opt/${MY_PN}/wine/drive_c/Program Files/TeamViewer/Version${MV}"/TeamViewer{,_Desktop}.exe + find "${D}"/opt/${MY_PN} -type f -name "*.so*" -execdir chmod 755 '{}' \; + fi + + newicon -s 48 "${S}"/.tvscript/${PN}.png ${MY_PN}.png + dodoc 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 + + 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 + + elog "Logs are written to:" + elog " ~/.teamviewer/7" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/net-misc/teamviewer/teamviewer-8.0.20931.ebuild b/net-misc/teamviewer/teamviewer-8.0.20931.ebuild new file mode 100644 index 00000000..a9f35b8d --- /dev/null +++ b/net-misc/teamviewer/teamviewer-8.0.20931.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/teamviewer/teamviewer-8.0.20931.ebuild,v 1.1 2013/09/21 19:52:20 hasufell Exp $ + +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? ( + amd64? ( + app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-soundlibs + || ( + ( + 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/libXext[abi_x86_32] + x11-libs/libXfixes[abi_x86_32] + x11-libs/libXtst[abi_x86_32] + ) + app-emulation/emul-linux-x86-xlibs + ) + ) + x86? ( + sys-libs/zlib + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXtst + ) + ) + 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}/g" \ + "${FILESDIR}"/${PN}d.init > "${T}"/${PN}d${MV} || die + + sed -i \ + -e "s#/opt/teamviewer8/tv_bin/teamviewerd#/opt/${MY_PN}/teamviewerd#" \ + script/${PN}d.service || 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}/script + doins script/*.reg + exeinto /opt/${MY_PN}/script + doexe script/teamviewer{,_desktop} script/tvw_{aux,config,main,profile} + + # install internal wine + insinto /opt/${MY_PN} + doins -r wine + dosym /opt/${MY_PN}/script/${PN} /opt/bin/${MY_PN} + + # fix permissions + fperms 755 /opt/${MY_PN}/wine/bin/wine{,-preloader,server} + fperms 755 /opt/${MY_PN}/wine/drive_c/TeamViewer/TeamViewer{,_Desktop}.exe + find "${D}"/opt/${MY_PN} -type f -name "*.so*" -execdir chmod 755 '{}' \; + fi + + # necessary symlinks + dosym ./script/teamviewer /opt/${MY_PN}/TeamViewer + dosym ./script/teamviewer_desktop /opt/${MY_PN}/TeamViewer_Desktop + + # install daemon binary + exeinto /opt/${MY_PN} + 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_dounit script/${PN}d.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/teamviewer8\"" + + echo + + eerror "UPDATE NOTICE!" + ewarn "If you update from teamviewer-8.0.17147" + ewarn "then you might have to remove \"~/.config/teamviewer8\", because" + ewarn "the install destination changed and the config might be invalid." +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/net-misc/teamviewer/teamviewer-9.0.30203.ebuild b/net-misc/teamviewer/teamviewer-9.0.30203.ebuild new file mode 100644 index 00000000..f96ead84 --- /dev/null +++ b/net-misc/teamviewer/teamviewer-9.0.30203.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/teamviewer/teamviewer-8.0.20931.ebuild,v 1.1 2013/09/21 19:52:20 hasufell Exp $ + +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? ( + amd64? ( + app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-soundlibs + || ( + ( + 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/libXext[abi_x86_32] + x11-libs/libXfixes[abi_x86_32] + x11-libs/libXtst[abi_x86_32] + ) + app-emulation/emul-linux-x86-xlibs + ) + ) + x86? ( + sys-libs/zlib + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXtst + ) + ) + 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}/g" \ + "${FILESDIR}"/${PN}d.init > "${T}"/${PN}d${MV} || die + + sed \ + -e "s#/opt/teamviewer9/tv_bin/teamviewerd#/opt/${MY_PN}/teamviewerd#" \ + script/${PN}d.service > "${T}"/${PN}d${MV}.service || 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}/script + doins script/*.reg + exeinto /opt/${MY_PN}/script + doexe script/teamviewer script/tvw_{aux,config,exec,extra,main,profile} + + # install internal wine + insinto /opt/${MY_PN} + doins -r wine + dosym /opt/${MY_PN}/script/${PN} /opt/bin/${MY_PN} + + # fix permissions + fperms 755 /opt/${MY_PN}/wine/bin/wine{,-preloader,server} + fperms 755 /opt/${MY_PN}/wine/drive_c/TeamViewer/TeamViewer.exe + find "${D}"/opt/${MY_PN} -type f -name "*.so*" -execdir chmod 755 '{}' \; + fi + + # necessary symlinks + dosym ./script/teamviewer /opt/${MY_PN}/TeamViewer + + # install daemon binary + exeinto /opt/${MY_PN} + doexe ${PN}d TeamViewer_Desktop + + # 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_dounit "${T}"/${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/teamviewer9\"" + +} + +pkg_postrm() { + gnome2_icon_cache_update +}