summaryrefslogtreecommitdiff
path: root/media-sound/teamspeak-client/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-06-30 08:49:38 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-06-30 08:49:38 +0100
commitb2be182d49eea46686b5cf2680d457df61e89dc4 (patch)
treec66442ced2011c5ca81c3114cc51041e314c6d33 /media-sound/teamspeak-client/files
parente23cdda4dbb0c83b9e682ab5e916085a35203da5 (diff)
gentoo resync : 30.06.2018
Diffstat (limited to 'media-sound/teamspeak-client/files')
-rw-r--r--media-sound/teamspeak-client/files/ts3client-bin10
1 files changed, 10 insertions, 0 deletions
diff --git a/media-sound/teamspeak-client/files/ts3client-bin b/media-sound/teamspeak-client/files/ts3client-bin
new file mode 100644
index 000000000000..c59e278f390c
--- /dev/null
+++ b/media-sound/teamspeak-client/files/ts3client-bin
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Sets BASEDIR for teamspeak3-client
+BASEDIR="/opt/teamspeak3-client"
+
+# Work around DT_RPATH (.) security issue by chdir'ing into expected $LD_LIBRARY_PATH
+export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
+
+# Launch teamspeak3-client
+cd "${BASEDIR}" && exec "${BASEDIR}/ts3client" $*