aboutsummaryrefslogtreecommitdiff
path: root/network/teamviewer/teamviewer.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2013-02-17 23:57:52 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-02-22 22:29:40 -0600
commita6e86630fb0c686dfb26801b807e1902e856e677 (patch)
tree0c4cfcb6147f61e0400a9d0f0f39a3f1d38d2853 /network/teamviewer/teamviewer.SlackBuild
parent8ee33b2dede987877d92b934a9035546cd5d8245 (diff)
network/teamviewer: Fixup log/config dir symlinks
Instead of putting symlinks at /var/log/teamviewer/ and /etc/teamviewer/ pointing to /opt/teamviewer8/$subdir locations, let's use the /var and /etc locations for the actual writing and put the symlinks in /opt/teamviewer8/ to be consistent with where stuff is actually expected to be writing (and what filesystems are expected to be writable). Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/teamviewer/teamviewer.SlackBuild')
-rw-r--r--network/teamviewer/teamviewer.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild
index 62af54b02b68..ac4273c99f7d 100644
--- a/network/teamviewer/teamviewer.SlackBuild
+++ b/network/teamviewer/teamviewer.SlackBuild
@@ -111,6 +111,12 @@ 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~
+# Let's flip-flop the actual locations vs. symlinks of a couple of things:
+mkdir -p $PKG/var/log/teamviewer/ $PKG/etc/teamviewer
+rm -rf $PKG/opt/teamviewer8/logfiles/ $PKG/opt/teamviewer8/config/
+ln -s /var/log/teamviewer $PKG/opt/teamviewer8/logfiles
+ln -s /etc/teamviewer $PKG/opt/teamviewer8/config
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh