Hi, I'm currently trying to build a package for Teamviewer. The teamviewer.SlackBuild script exits with errors in the post-install phase. I had a look at it, and here's what I found. Consider the following stanza from the script:
# Let's flip-flop the actual locations vs. symlinks of a couple of things: # First remove the dangling symlink made by Debian packages: rm -rf $PKG/var/log/teamviewer $PKG/etc/teamviewer mkdir -p $PKG/var/log/teamviewer11 $PKG/etc/teamviewer rm -rf $PKG/opt/teamviewer/logfiles/ $PKG/opt/teamviewer/config/ ln -s /etc/teamviewer $PKG/opt/teamviewer/config Notes: 1. The directory's name is /var/log/teamviewer11. 2. The script tries to create a directory that already exists. 3. rm -rf doesn't work on dangling symlinks. Use rm -f 4. /etc/teamviewer does not exist on the system, missing $PKG. Here's my corrected version of the stanza: # Let's flip-flop the actual locations vs. symlinks of a couple of things: # First remove the dangling symlink made by Debian packages: rm -rf $PKG/var/log/teamviewer11 $PKG/etc/teamviewer mkdir -p $PKG/var/log/teamviewer11 $PKG/etc/teamviewer rm -f $PKG/opt/teamviewer/logfiles $PKG/opt/teamviewer/config ln -s $PKG/etc/teamviewer $PKG/opt/teamviewer/config Cheers, Niki -- Microlinux - Solutions informatiques durables 7, place de l'église - 30730 Montpezat Web : http://www.microlinux.fr Mail : [email protected] Tél. : 04 66 63 10 32 _______________________________________________ SlackBuilds-users mailing list [email protected] http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/ FAQ - http://slackbuilds.org/faq/
