TeamViewer (Remote Control Application)
ln: usr/bin/teamviewer: File exists
root@slitaz:~# get-teamviewer
Connecting to http://www.teamviewer.com (46.163.100.220:80)
teamviewer_linux.deb 100% |*******************************| 17820k 00:00:00 ETA
ln: usr/bin/teamviewer: File exists
root@slitaz:~#
1.
tux@slitaz:~$ sudo get-teamviewer
Connecting to http://www.teamviewer.com (46.163.100.220:80)
teamviewer_linux.deb 100% |*******************************| 17820k 00:00:00 ETA
Packing : teamviewer-8.0.17147
================================================================================
Creating the list of files... [ OK ]
Creating md5sum of files... [ OK ]
Compressing the fs... [ OK ]
Updating receipt sizes... [ OK ]
Creating full cpio archive... [ OK ]
Restoring original package tree... [ OK ]
================================================================================
Package teamviewer-8.0.17147 compressed successfully.
Size : 11.9M teamviewer-8.0.17147.tazpkg
Installation of : teamviewer
================================================================================
Copying teamviewer... [ OK ]
Extracting teamviewer... [ OK ]
Extracting the pseudo fs... (lzma) [ OK ]
Installing teamviewer... [ OK ]
Removing all tmp files... [ OK ]
To start teamviewerd server you can run :
/etc/init.d/teamviewerd start
Or add teamviewerd to RUN_DAEMONS in /etc/rcS.conf
Web viewer (needs flash): https://go.teamviewer.com/v8/
================================================================================
teamviewer (8.0.17147) is installed.
tux@slitaz:~$
2.
tux@slitaz:~$ cat get-teamviewer.diff
--- get-teamviewer-orig
+++ get-teamviewer
@@ -3,7 +3,7 @@
PACKAGE="teamviewer"
WEB_SITE="http://www.$PACKAGE.com/"
URL=${WEB_SITE}download/${PACKAGE}_linux.deb
-DEPENDS="bash alsa-lib zlib xorg-libXext"
+DEPENDS="bash alsa-lib zlib xorg-libXext coreutils-file-special"
ROOT="$1"
[ -d "$ROOT" ] || ROOT=""
@@ -48,11 +48,10 @@
mv $PACKAGE $PACKAGE-$VERSION
cd $PACKAGE-$VERSION/fs
-ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE
-mkdir -p usr/share/applications
-sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
- < $(find opt | grep desktop.template) \
- > usr/share/applications/$PACKAGE.desktop
+mkdir -p usr/share/applications usr/share/pixmaps etc/init.d
+cp -a opt/teamviewer8/tv_bin/desktop/*.png usr/share/pixmaps
+cp -a opt/teamviewer8/tv_bin/desktop/*.desktop usr/share/applications
+cp -a opt/teamviewer8/tv_bin/script/teamviewerd.sysv etc/init.d/teamviewerd
cd ../..
cat > $PACKAGE-$VERSION/receipt <<EOT
@@ -69,10 +68,16 @@
post_install()
{
cat <<EOF
+
+To start ${PACKAGE}d server you can run :
+/etc/init.d/${PACKAGE}d start
+Or add ${PACKAGE}d to RUN_DAEMONS in /etc/rcS.conf
+
Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/
EOF
}
EOT
+
# Pack
tazpkg pack $PACKAGE-$VERSION
tux@slitaz:~$
3.
tux@slitaz:~$ tail /var/lib/tazpkg/installed/teamviewer/files.list
/usr/share/applications/teamviewer-teamviewer8.desktop
/usr/share/pixmaps/teamviewer.png
/etc/init.d/teamviewerd
/opt/teamviewer8/tv_bin/TeamViewer
/opt/teamviewer8/tv_bin/wine/lib/libwine.so
/opt/teamviewer8/tv_bin/wine/lib/libwine.so.1
/opt/teamviewer8/tv_bin/TeamViewer_Desktop
/usr/bin/teamviewer
/var/log/teamviewer
/etc/teamviewer
tux@slitaz:~$