diff options
author | Pacho Ramos <pacho@gentoo.org> | 2014-11-21 15:11:37 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2014-11-21 15:11:37 +0000 |
commit | 7053b561197d53ad20a6261b6c8b36b8572deaeb (patch) | |
tree | 6317fb301f8f5b05aeff4f50a018822d9a51e4e1 /games-server/halflife-steam/files | |
parent | Remove masked for removal package (diff) | |
download | gentoo-2-7053b561197d53ad20a6261b6c8b36b8572deaeb.tar.gz gentoo-2-7053b561197d53ad20a6261b6c8b36b8572deaeb.tar.bz2 gentoo-2-7053b561197d53ad20a6261b6c8b36b8572deaeb.zip |
Remove masked for removal package
Diffstat (limited to 'games-server/halflife-steam/files')
-rw-r--r-- | games-server/halflife-steam/files/hlds.confd | 21 | ||||
-rw-r--r-- | games-server/halflife-steam/files/hlds.rc | 75 |
2 files changed, 0 insertions, 96 deletions
diff --git a/games-server/halflife-steam/files/hlds.confd b/games-server/halflife-steam/files/hlds.confd deleted file mode 100644 index d27b0cbb16ab..000000000000 --- a/games-server/halflife-steam/files/hlds.confd +++ /dev/null @@ -1,21 +0,0 @@ -# /etc/conf.d/hlds: config file for halflife steam server - -# Path to game -HLDS_PATH="@GAMESDIR@" - -# Machine type: The binary you want to start -# For Source-based games use the following values: -# srcds_amd for Athlon and x64 systems -# srcds_i486 for non-MMX capable machines -# srcds_i686 on most x86 systems -#HLDS_MT="srcds_i686" - -# Here you can set your common start options... -HLDS_OPTS="-console +maxplayers 32" - -# Here you can setup more than one server -# You should for each server create variable HLDS_SERVER<N> (where <N> positive decimal number) -# When you have enabled SERVER1 and SERVER3 then only first will be started -HLDS_SERVER1="-game cstrike -port 27015 +map de_dust2" -#HLDS_SERVER2="-game cstrike +ip a.b.c.d -port 27015 +map de_aztec15" -#HLDS_SERVER3="-game cstrike +ip a.b.c.d -port 27016" diff --git a/games-server/halflife-steam/files/hlds.rc b/games-server/halflife-steam/files/hlds.rc deleted file mode 100644 index a03690b947b4..000000000000 --- a/games-server/halflife-steam/files/hlds.rc +++ /dev/null @@ -1,75 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-steam/files/hlds.rc,v 1.2 2011/10/05 09:14:03 mr_bones_ Exp $ - -PID_PATH="/var/run" - -depend() { - use net -} - -checkconfig() { - local var - for var in HLDS_PATH HLDS_MT HLDS_OPTS ; do - if [[ -z ${!var} ]] ; then - eerror "Need to set ${var} in /etc/conf.d/HLDS_PATH" - return 1 - fi - done - return 0 -} - -start_server() { - local serv_num=$1 - local serv_opts="`eval echo '$'HLDS_SERVER${serv_num}`" - local PID1=${PID_PATH}/hlds${serv_num}_1.pid - local PID2=${PID_PATH}/hlds${serv_num}_2.pid - rm -f $PID1 $PID2 - - test $serv_num != 1 -a -z "$serv_opts" && return 1 - - ebegin "Starting Halflife Dedicated Server $serv_num" - touch ${PID2} - chown @GAMES_USER@:@GAMES_GROUP@ ${PID2} - start-stop-daemon --start \ - --chdir ${HLDS_PATH} -c @GAMES_USER@:@GAMES_GROUP@ \ - -n ${HLDS_MT} -b -a ${HLDS_PATH}/${HLDS_MT} \ - -m --pidfile ${PID1} \ - -- \ - -pidfile ${PID2} ${HLDS_OPTS} ${serv_opts} - eend $? -} - -stop_server() { - local serv_num=$1 - local PID1=${PID_PATH}/hlds${serv_num}_1.pid - local PID2=${PID_PATH}/hlds${serv_num}_2.pid - if test -f ${PID1} -a -f ${PID2}; then - ebegin "Stopping Halflife Dedicated Server $serv_num" - start-stop-daemon --stop --pidfile ${PID1} - start-stop-daemon --stop --pidfile ${PID2} - eend $? - rm -f $PID1 $PID2 - else - return 1 - fi - return 0 -} - -start() { - checkconfig || return $? - - export LD_LIBRARY_PATH=${HLDS_PATH}:${HLDS_PATH}/bin:${LD_LIBRARY_PATH} - local i=1 - while start_server $i; do - i=$(($i+1)) - done -} - -stop() { - local i=1 - while stop_server $i; do - i=$(($i+1)) - done -} |