aboutsummaryrefslogtreecommitdiff
path: root/network/teamviewer
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2013-02-17 23:42:49 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-02-22 22:29:39 -0600
commit4a831c7fd4326009b2e34ef7515e0208ad04341e (patch)
treeb71717c993c98cad900deabf70818bfe9ce5bf89 /network/teamviewer
parent158c9b7f67810a905ed0d2ae6bb0786b1630e49c (diff)
network/teamviewer: Updated for version 8.0.17147.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/teamviewer')
-rw-r--r--network/teamviewer/README10
-rw-r--r--network/teamviewer/doinst.sh26
-rw-r--r--network/teamviewer/rc.teamviewerd41
-rw-r--r--network/teamviewer/teamviewer.SlackBuild33
-rw-r--r--network/teamviewer/teamviewer.info8
5 files changed, 104 insertions, 14 deletions
diff --git a/network/teamviewer/README b/network/teamviewer/README
index 109e92ebb920f..618758e1b5827 100644
--- a/network/teamviewer/README
+++ b/network/teamviewer/README
@@ -3,3 +3,13 @@ fast and secure remote access to Linux, Windows PCs, and Macs.
NOTE: The 64-bit package only works in a multi-lib environment, and it
requires these 32-bit packages: glibc, zlib, freetype, alsa-lib, GConf.
+
+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:
+
+if [ -x /etc/rc.d/rc.teamviewerd ]; then
+ /etc/rc.d/rc.teamviewerd start
+fi \ No newline at end of file
diff --git a/network/teamviewer/doinst.sh b/network/teamviewer/doinst.sh
index 5fb28930db0b9..e8edc2ff3f580 100644
--- a/network/teamviewer/doinst.sh
+++ b/network/teamviewer/doinst.sh
@@ -1,3 +1,29 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
+
+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
diff --git a/network/teamviewer/rc.teamviewerd b/network/teamviewer/rc.teamviewerd
new file mode 100644
index 0000000000000..51be305c09ee3
--- /dev/null
+++ b/network/teamviewer/rc.teamviewerd
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# /etc/rc.d/rc.teamviewerd
+#
+# Start/stop/restart the TeamViewer Daemon
+#
+# To make TeamViewer Daemon start automatically at boot, make this
+# file executable: chmod 755 /etc/rc.d/rc.teamviewerd
+#
+
+teamviewerd_start() {
+ if [ -x /opt/teamviewer8/tv_bin/teamviewerd ]; then
+ echo "Starting TeamViewer Daemon"
+ /opt/teamviewer8/tv_bin/teamviewerd
+ fi
+}
+
+teamviewerd_stop() {
+ echo "Terminating TeamViewer Daemon"
+ killall teamviewerd
+}
+
+teamviewerd_restart() {
+ teamviewerd_stop
+ sleep 2
+ teamviewerd_start
+}
+
+case "$1" in
+'start')
+ teamviewerd_start
+ ;;
+'stop')
+ teamviewerd_stop
+ ;;
+'restart')
+ teamviewerd_restart
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac
diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild
index 6cb3510914925..6d716c18b76ad 100644
--- a/network/teamviewer/teamviewer.SlackBuild
+++ b/network/teamviewer/teamviewer.SlackBuild
@@ -23,8 +23,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Modified by Willy Sudiarto Raharjo
+# Changelog
+# January 9, Upgraded to 8.0.16675, added rc.teamviewerd to provide teamviewer daemon
+# January 12, Rebuilt to create symlink in /usr/bin, thanks to Ponce
+# January 17, Rebuilt to change the default behaviour on rc.teamviewerd when no parameter is given
+# February 16: Upgraded to 8.0.17147
+
PRGNAM=teamviewer
-VERSION=${VERSION:-7.0.9377}
+VERSION=${VERSION:-8.0.17147}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,7 +50,7 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
DEBARCH=""
- LIBDIRSUFFIX="" # Just in case
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
DEBARCH="_x64"
LIBDIRSUFFIX="64"
@@ -61,9 +68,6 @@ if [ "$VERSION" != "$REAL_VER" ]; then
exit 1
fi
-# We need this for later use
-MAIN_VER=$(echo $VERSION | cut -d . -f 1)
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
@@ -81,21 +85,30 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
# Make a .desktop file
mkdir -p $PKG/usr/share/applications
-cat $PKG/opt/teamviewer/teamviewer/$MAIN_VER/desktop/teamviewer.desktop.template \
+cat $PKG/opt/teamviewer8/tv_bin/desktop/teamviewer-teamviewer8.desktop \
| sed -e 's/EXEC/teamviewer/' -e 's/ICON/teamviewer/' \
> $PKG/usr/share/applications/teamviewer.desktop
-# Create the generic executable
-( cd $PKG/usr/bin; ln -sf teamviewer$MAIN_VER teamviewer )
+# Remove the dangling symlink first
+rm $PKG/usr/bin/teamviewer
+
+# Re-create the generic executable
+( cd $PKG/usr/bin; ln -s /opt/teamviewer8/tv_bin/script/teamviewer teamviewer )
# Link icon to /usr/share/pixmaps
mkdir -p $PKG/usr/share/pixmaps
-ln -sf /opt/teamviewer/teamviewer/$MAIN_VER/desktop/teamviewer.png $PKG/usr/share/pixmaps/teamviewer.png
+ln -sf /opt/teamviewer8/tv_bin/desktop/teamviewer.png $PKG/usr/share/pixmaps/teamviewer.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
# Move docs to official place
-mv $PKG/opt/teamviewer/teamviewer/$MAIN_VER/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/opt/teamviewer8/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+
+mkdir -p $PKG/etc/rc.d/
+install -m 0644 $CWD/rc.teamviewerd $PKG/etc/rc.d/rc.teamviewerd.new
+
+# Remove duplicate file
+rm -f $PKG/opt/teamviewer8/tv_bin/xdg-utils/xdg-email~
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/network/teamviewer/teamviewer.info b/network/teamviewer/teamviewer.info
index 10ff6517e489f..b7aefd5067431 100644
--- a/network/teamviewer/teamviewer.info
+++ b/network/teamviewer/teamviewer.info
@@ -1,10 +1,10 @@
PRGNAM="teamviewer"
-VERSION="7.0.9377"
+VERSION="8.0.17147"
HOMEPAGE="http://www.teamviewer.com/"
-DOWNLOAD="http://www.teamviewer.com/download/teamviewer_linux.deb"
-MD5SUM="ab13157b1f68234e1887332cda93786a"
+DOWNLOAD="https://www.teamviewer.com/download/teamviewer_linux.deb"
+MD5SUM="47790ed345a7b7970fc1f2ac50c97002"
DOWNLOAD_x86_64="http://www.teamviewer.com/download/teamviewer_linux_x64.deb"
-MD5SUM_x86_64="bb63d2bd4879fc8956b754b227402a66"
+MD5SUM_x86_64="a252c5cbb8703eed113b51ce0fe66419"
REQUIRES=""
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackware-id.org"