diff options
Diffstat (limited to 'network/teamviewer')
-rw-r--r-- | network/teamviewer/README | 18 | ||||
-rw-r--r-- | network/teamviewer/doinst.sh | 7 | ||||
-rw-r--r-- | network/teamviewer/rc.teamviewerd | 2 | ||||
-rw-r--r-- | network/teamviewer/teamviewer.SlackBuild | 52 | ||||
-rw-r--r-- | network/teamviewer/teamviewer.info | 16 |
5 files changed, 59 insertions, 36 deletions
diff --git a/network/teamviewer/README b/network/teamviewer/README index 2e4fd6bd22..679b349dd7 100644 --- a/network/teamviewer/README +++ b/network/teamviewer/README @@ -4,8 +4,8 @@ fast and secure remote access to Linux, Windows PCs, and Macs. You must give execute permission on /etc/rc.d/rc.teamviewerd and run /etc/rc.d/rc.teamviewerd start prior launching TeamViewer application -To make this process repeated on every boot sequence, add this line -in your /etc/rc.d/rc.local: +To make this process repeated on every boot sequence, add this line in +your /etc/rc.d/rc.local: if [ -x /etc/rc.d/rc.teamviewerd ]; then /etc/rc.d/rc.teamviewerd start @@ -13,11 +13,15 @@ fi NOTE: 1. Newer version of Teamviewer can establish remote control connections -to older version (version 3 and above), but not in the opposite direction. -The same things goes to meetings (version 7 and above). +to older version (version 3 and above), but not in the opposite +direction. The same things goes to meetings (version 7 and above). 2. Always stop teamviewerd service and remove the old version before -attempting to upgrade as the path and configs may change on each major release. +attempting to upgrade as the path and configs may change on each major +release. -3. Starting from Teamviewer 13, it has come up with native 64 client package, so -no multilib is required to use. It uses Qt as a foundation. +3. Starting from Teamviewer 13, it has come up with native 64 client +package, so no multilib is required to use. It uses Qt as a foundation. + +4. The GUI client only seems to work in runlevel 4. Using runlevel 3 + +startx/startwayland doesn't work. diff --git a/network/teamviewer/doinst.sh b/network/teamviewer/doinst.sh index e8edc2ff3f..2ac42c06ac 100644 --- a/network/teamviewer/doinst.sh +++ b/network/teamviewer/doinst.sh @@ -27,3 +27,10 @@ preserve_perms etc/rc.d/rc.teamviewerd.new if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi + +# If other icon themes are installed, then add to/modify this as needed +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/network/teamviewer/rc.teamviewerd b/network/teamviewer/rc.teamviewerd index ae65dcf100..f5812f3945 100644 --- a/network/teamviewer/rc.teamviewerd +++ b/network/teamviewer/rc.teamviewerd @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # /etc/rc.d/rc.teamviewerd # diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild index 39e04fe074..adde76fee7 100644 --- a/network/teamviewer/teamviewer.SlackBuild +++ b/network/teamviewer/teamviewer.SlackBuild @@ -1,9 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for teamviewer # Copyright 2010-2012 Binh Nguyen <binhvng@gmail.com> # Copyright 2013-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2022-2024 Gregory J. L. Tourte <artourter@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,10 +26,13 @@ # Modified by Mario Preksavec <mario@slackware.hr> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=teamviewer -VERSION=${VERSION:-15.14.5} +VERSION=${VERSION:-15.53.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -38,7 +42,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -75,25 +86,30 @@ else ar p $CWD/teamviewer_${VERSION}_${DEBARCH}.deb data.tar.xz | tar xJv fi +# make all symbolic links relative +# (code from https://unix.stackexchange.com/a/100955/16829) +( cd $PKG +for link in $(find . -lname '/*'); do + target=$(readlink "$link") + link=${link#./} + root=$(echo $link | sed -E 's|[^/](.[^/]*)|..|g'); root=${root#/}; root=${root%..} + rm "$link" + ln -s "$root${target#/}" "$link" +done +) + chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ +# we do not strip te libicudata library as it prevents the package from working. +find $PKG -print0 | xargs -0 file | grep -v -e 'libicudata' | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# Remove the dangling symlink first -rm -f $PKG/usr/bin/teamviewer - -# Re-create the generic executable -( cd $PKG/usr/bin; ln -s /opt/teamviewer/tv_bin/script/teamviewer teamviewer ) - # Link icon to /usr/share/pixmaps mkdir -p $PKG/usr/share/pixmaps -( ln -sf /opt/teamviewer/tv_bin/desktop/teamviewer_256.png $PKG/usr/share/pixmaps/TeamViewer.png ) +ln -s ../../../opt/teamviewer/tv_bin/desktop/teamviewer_256.png $PKG/usr/share/pixmaps/TeamViewer.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -103,10 +119,6 @@ mv $PKG/usr/share/applications/com.teamviewer.TeamViewer.desktop $PKG/usr/share/ # We don't need apt rm -rf $PKG/etc/apt/ -# Move docs to official place -mv $PKG/opt/teamviewer/doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION -rm -rf $PKG/opt/teamviewer/doc/ - mkdir -p $PKG/etc/rc.d/ install -m 0644 $CWD/rc.teamviewerd $PKG/etc/rc.d/rc.teamviewerd.new @@ -115,4 +127,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/teamviewer/teamviewer.info b/network/teamviewer/teamviewer.info index d7802aab14..694cb14dc0 100644 --- a/network/teamviewer/teamviewer.info +++ b/network/teamviewer/teamviewer.info @@ -1,10 +1,10 @@ PRGNAM="teamviewer" -VERSION="15.14.5" +VERSION="15.53.6" HOMEPAGE="https://www.teamviewer.com/" -DOWNLOAD="https://dl.tvcdn.de/download/linux/version_15x/teamviewer_15.14.5_i386.deb" -MD5SUM="49295c6c7cab605e8ac6c2f3d4ab1118" -DOWNLOAD_x86_64="https://dl.tvcdn.de/download/linux/version_15x/teamviewer_15.14.5_amd64.deb" -MD5SUM_x86_64="e364da3834a4e4413cae17e16e9dfa1c" -REQUIRES="qt5-webkit" -MAINTAINER="Willy Sudiarto Raharjo" -EMAIL="willysr@slackbuilds.org" +DOWNLOAD="https://dl.teamviewer.com/download/linux/version_15x/teamviewer_15.53.6_i386.deb" +MD5SUM="20191185cd9f41ad2bb8d1f5eb4bbcbc" +DOWNLOAD_x86_64="https://dl.teamviewer.com/download/linux/version_15x/teamviewer_15.53.6_amd64.deb" +MD5SUM_x86_64="208ede881c2c8d54aaf78aee3fc72fe8" +REQUIRES="libminizip" +MAINTAINER="ArTourter" +EMAIL="artourter@gmail.com" |