[media-sound/teamspeak-server-bin] tweak tsdns to be actually usable, remove useless wrapper
This commit is contained in:
parent
7c4a7e5c63
commit
6edab73584
@ -12,8 +12,8 @@ start() {
|
||||
|
||||
start-stop-daemon --start --quiet --background \
|
||||
--pidfile "/var/run/teamspeak3-server/tsdns.pid" --make-pidfile \
|
||||
--user "teamspeak3" --chdir "/opt/teamspeak3-server" \
|
||||
--exec "/usr/sbin/tsdnsserver"
|
||||
--user "teamspeak3" --chdir "/etc/teamspeak3-server" \
|
||||
--exec "/opt/teamspeak3-server/sbin/tsdnsserver"
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
@ -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" $*
|
@ -46,7 +46,6 @@ src_install() {
|
||||
|
||||
exeinto /usr/sbin
|
||||
doexe "${FILESDIR}"/ts3server
|
||||
use tsdns && doexe "${FILESDIR}"/tsdnsserver
|
||||
|
||||
exeinto ${opt_dir}
|
||||
doexe *.sh
|
||||
@ -66,6 +65,8 @@ src_install() {
|
||||
newdoc tsdns/README README.tsdns
|
||||
newdoc tsdns/USAGE USAGE.tsdns
|
||||
dodoc tsdns/tsdns_settings.ini.sample
|
||||
insinto /etc/teamspeak3-server
|
||||
newins tsdns/tsdns_settings.ini.sample tsdns_settings.ini
|
||||
fi
|
||||
|
||||
# Install the runtime FS layout.
|
||||
|
Loading…
Reference in New Issue
Block a user