diff options
-rw-r--r-- | games-strategy/netpanzer/ChangeLog | 7 | ||||
-rw-r--r-- | games-strategy/netpanzer/Manifest | 17 | ||||
-rw-r--r-- | games-strategy/netpanzer/files/netpanzer-ded | 15 | ||||
-rw-r--r-- | games-strategy/netpanzer/files/netpanzer-ded.ini | 80 | ||||
-rw-r--r-- | games-strategy/netpanzer/files/netpanzer.rc | 34 |
5 files changed, 145 insertions, 8 deletions
diff --git a/games-strategy/netpanzer/ChangeLog b/games-strategy/netpanzer/ChangeLog index 0b0a5e02a54c..6628a6cd245e 100644 --- a/games-strategy/netpanzer/ChangeLog +++ b/games-strategy/netpanzer/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-strategy/netpanzer # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/ChangeLog,v 1.15 2005/02/11 21:08:23 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/ChangeLog,v 1.16 2005/02/23 01:57:05 wolf31o2 Exp $ + + 22 Feb 2005; Chris Gianelloni <wolf31o2@gentoo.org> +files/netpanzer-ded, + +files/netpanzer-ded.ini, +files/netpanzer.rc: + Added init script, dedicated script, and ini file from bug #69946 to close + bug #81984. *netpanzer-0.8 (11 Feb 2005) diff --git a/games-strategy/netpanzer/Manifest b/games-strategy/netpanzer/Manifest index 54a2ec6c9d0c..169037db6acd 100644 --- a/games-strategy/netpanzer/Manifest +++ b/games-strategy/netpanzer/Manifest @@ -1,11 +1,14 @@ -MD5 4b0daa043f0559f7a2309576ffccbbe1 ChangeLog 2524 -MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 -MD5 1068d6de32444858ee945d63484e9a8d netpanzer-0.1.5.ebuild 1483 MD5 ed445e3767478f939464a061ebfada98 netpanzer-0.1.5-r1.ebuild 1604 -MD5 e0750724019d5b209735b05969270f11 netpanzer-0.2.0_rc4.ebuild 1914 MD5 14b2cc2ae9df8e2bcf0cc5e72142aad9 netpanzer-0.8.ebuild 1954 -MD5 b31fb3b6d8c97b5f87ef8a825a60db2e files/digest-netpanzer-0.8 139 -MD5 f47a217f31009959adef8ad76dab43e2 files/digest-netpanzer-0.1.5-r1 141 +MD5 14317dfe8f2522be39e6e6374d2c7274 ChangeLog 2740 +MD5 e0750724019d5b209735b05969270f11 netpanzer-0.2.0_rc4.ebuild 1914 +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +MD5 1068d6de32444858ee945d63484e9a8d netpanzer-0.1.5.ebuild 1483 +MD5 e45870d0456ec36ed692b70fada22bb5 files/netpanzer-ded 353 MD5 c9b6c5701508f477aa5d96ae43826c6c files/digest-netpanzer-0.2.0_rc4 146 -MD5 f47a217f31009959adef8ad76dab43e2 files/digest-netpanzer-0.1.5 141 MD5 52b3f20dca70a177cc63da9903b5f5fb files/physfs.patch 553 +MD5 f47a217f31009959adef8ad76dab43e2 files/digest-netpanzer-0.1.5-r1 141 +MD5 31c24932718cd34666bf4e1b800772fb files/netpanzer-ded.ini 1261 +MD5 a254cf85014dab1f14a620fc3549355f files/netpanzer.rc 891 +MD5 b31fb3b6d8c97b5f87ef8a825a60db2e files/digest-netpanzer-0.8 139 +MD5 f47a217f31009959adef8ad76dab43e2 files/digest-netpanzer-0.1.5 141 diff --git a/games-strategy/netpanzer/files/netpanzer-ded b/games-strategy/netpanzer/files/netpanzer-ded new file mode 100644 index 000000000000..4d8128d15e84 --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer-ded @@ -0,0 +1,15 @@ +#!/bin/sh + +running=yes +while [ $running = yes ]; do + /usr/games/bin/netpanzer --game_config=/etc/netpanzer-ded.ini -d $@ + if [ $? -ge 128 ]; then + echo "`date`: Restarting server after crash" + # wait a bit to not blow cpu and logfiles on constant crashs + sleep 30 + else + #normal exit + running=no + fi +done + diff --git a/games-strategy/netpanzer/files/netpanzer-ded.ini b/games-strategy/netpanzer/files/netpanzer-ded.ini new file mode 100644 index 000000000000..903fb3b493b3 --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer-ded.ini @@ -0,0 +1,80 @@ +[game] + +[interface] +attacknotificationtime=5 +consoletextdelay=3 +consoletextusage=25 +drawunitdamage=yes +drawunitflags=yes +drawunitreload=no +gameinfoposition_x=0 +gameinfoposition_y=0 +minimapdrawtype=0 +minimapposition_x=0 +minimapposition_y=0 +minimapsize_x=194 +minimapsize_y=194 +playerflag=26 +rankposition_x=0 +rankposition_y=0 +scrollrate=1000 +toolbarposition_x=0 +toolbarposition_y=0 +unitcolor=0 +unitinfodrawlayer=0 +unitselectionmode=1 +vehicleselectioncolor=1 +viewdrawbackgroundmode=0 + +[player] +masterservers=81.169.185.36,81.173.119.122 +name=Gentoo NetPanzer Server +proxyserver= +proxyserverpass= +proxyserveruser= + +[radar] +alliedoutpostcolor=11 +alliedunitcolor=11 +displayclouds=no +enemyoutpostcolor=4 +objectivedrawmode=1 +playeroutpostcolor=1 +playerunitcolor=0 +resizerate=400 +unitsize=0 + +[server] +allowallies=yes +bindaddress= +cloudcoverage=0 +fraglimit=500 +gametype=0 +logging=yes +mapcycle=Cramped, Tight Quarters, Two Villages, Cramped +maxplayers=8 +maxunits=160 +objectivepercentage=75 +powerups=yes +public=yes +respawntype=1 +serverport=3030 +timelimit=50 +windspeed=30 + +[sound] +effects=yes +effectsvolume=100 +enable=yes +music=yes +musicvolume=80 + +[visuals] +blendsmoke=yes +displayshadows=yes +fullscreen=yes +gamma=50 +hardwareDoubleBuffer=yes +hardwareSurface=yes +resolution=0 + diff --git a/games-strategy/netpanzer/files/netpanzer.rc b/games-strategy/netpanzer/files/netpanzer.rc new file mode 100644 index 000000000000..5e13e5ed698a --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer.rc @@ -0,0 +1,34 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/files/netpanzer.rc,v 1.1 2005/02/23 01:57:05 wolf31o2 Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting netpanzer dedicated server" + screen -A -m -d -S netpanzer-ded su - GAMES_USER_DED -c "GENTOO_DIR/netpanzer-ded" + eend $? +} + +stop() { + ebegin "Stopping netpanzer dedicated server" + local pid=`screen -list | grep netpanzer-ded | awk -F . '{print $1}' | sed -e s/.//` + if [ -z "${pid}" ] ; then + eend 1 "Lost screen session" + else + pid=`pstree -p ${pid} | sed -e 's:^.*netpanzer-ded(\([0-9]*\)).*:\1:'` + if [ -z "${pid}" ] ; then + eend 1 "Lost netpanzer-ded session" + else + kill ${pid} + eend $? "Could not kill netpanzer-ded" + fi + fi +} + +status() { + screen -list | grep netpanzer-ded +} |