diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-12-18 03:16:16 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-12-19 01:18:57 +0100 |
commit | 10c2ceaeed402f8f73447dbac9a1bfceb00aef02 (patch) | |
tree | f1a7b3fa698f79838aa088ba431bf9f2d2e78f2c /net-misc/teamviewer/files | |
parent | profiles: Drop obsolete net-misc/teamviewer mask (diff) | |
download | gentoo-10c2ceaeed402f8f73447dbac9a1bfceb00aef02.tar.gz gentoo-10c2ceaeed402f8f73447dbac9a1bfceb00aef02.tar.bz2 gentoo-10c2ceaeed402f8f73447dbac9a1bfceb00aef02.zip |
net-misc/teamviewer: Drop last-rited versions
Closes: https://bugs.gentoo.org/620736
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'net-misc/teamviewer/files')
-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 |
3 files changed, 0 insertions, 83 deletions
diff --git a/net-misc/teamviewer/files/teamviewer.sh b/net-misc/teamviewer/files/teamviewer.sh deleted file mode 100644 index 70fc4e8a80af..000000000000 --- a/net-misc/teamviewer/files/teamviewer.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 deleted file mode 100644 index e949660678be..000000000000 --- a/net-misc/teamviewer/files/teamviewerd.conf +++ /dev/null @@ -1,6 +0,0 @@ -# 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 deleted file mode 100644 index 3ca37da3ebc4..000000000000 --- a/net-misc/teamviewer/files/teamviewerd.init +++ /dev/null @@ -1,30 +0,0 @@ -#!/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 -} |