[media-sound/teamspeak-server-bin] tweak tsdns to be actually usable, remove useless wrapper

This commit is contained in:
Robert Förster 2013-09-16 18:04:53 +02:00
parent 7c4a7e5c63
commit 6edab73584
3 changed files with 4 additions and 13 deletions

View File

@ -12,8 +12,8 @@ start() {
start-stop-daemon --start --quiet --background \ start-stop-daemon --start --quiet --background \
--pidfile "/var/run/teamspeak3-server/tsdns.pid" --make-pidfile \ --pidfile "/var/run/teamspeak3-server/tsdns.pid" --make-pidfile \
--user "teamspeak3" --chdir "/opt/teamspeak3-server" \ --user "teamspeak3" --chdir "/etc/teamspeak3-server" \
--exec "/usr/sbin/tsdnsserver" --exec "/opt/teamspeak3-server/sbin/tsdnsserver"
eend $? eend $?
} }

View File

@ -1,10 +0,0 @@
#! /bin/bash
BASEDIR="/opt/teamspeak3-server"
export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
# work around DT_RPATH (.) security issue by chdir'ing into expected $LD_LIBRARY_PATH
cd "${BASEDIR}"
exec "${BASEDIR}/sbin/tsdnsserver" $*

View File

@ -46,7 +46,6 @@ src_install() {
exeinto /usr/sbin exeinto /usr/sbin
doexe "${FILESDIR}"/ts3server doexe "${FILESDIR}"/ts3server
use tsdns && doexe "${FILESDIR}"/tsdnsserver
exeinto ${opt_dir} exeinto ${opt_dir}
doexe *.sh doexe *.sh
@ -66,6 +65,8 @@ src_install() {
newdoc tsdns/README README.tsdns newdoc tsdns/README README.tsdns
newdoc tsdns/USAGE USAGE.tsdns newdoc tsdns/USAGE USAGE.tsdns
dodoc tsdns/tsdns_settings.ini.sample dodoc tsdns/tsdns_settings.ini.sample
insinto /etc/teamspeak3-server
newins tsdns/tsdns_settings.ini.sample tsdns_settings.ini
fi fi
# Install the runtime FS layout. # Install the runtime FS layout.