-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: CMakeLists.txt debian/changelog
- Loading branch information
Showing
18 changed files
with
316 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
rotation1 | |||
{ | |||
Eden-b3 | |||
arachnid2 | |||
atcshd | |||
atcszalpha-b2 | |||
bluedragon2_b3 | |||
citadel | |||
cruz-b6 | |||
karith | |||
methane-beta1 | |||
nano | |||
nexus6 | |||
niveus | |||
perseus-b3 | |||
plat23-b3 | |||
procyon-r1 | |||
sirius | |||
spacetracks-r1 | |||
station15-r1 | |||
transit | |||
tremor | |||
veddak-final | |||
wrecktify_b2 | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,41 @@ | |||
//Example Unvanquished alpha release decicated server config | |||
|
|||
// Impure for the moment. | |||
set sv_pure 0 | |||
|
|||
//passwords | |||
set g_needpass 0 | |||
//set g_password password //server password | |||
//set rconPassword password //rcon password | |||
|
|||
//loading screen | |||
set sv_hostname "Unvanquished Alpha Server" | |||
set g_motd "http://unvanquished.net/" | |||
|
|||
//disallow downloads from the server | |||
set sv_allowdownload 0 | |||
|
|||
//maximum number of clients | |||
//greater than 24 is not recommended from a gameplay point of view | |||
set sv_maxclients 24 | |||
|
|||
//These settings are used on the official Trem 1.2 & Unv public servers | |||
//after 30 minutes, all build points are removed | |||
set g_suddenDeathTime 30 | |||
//after 45 minutes, the game will end as a draw | |||
set timelimit 45 | |||
|
|||
//forces each team to have a similar number of players | |||
set g_teamForceBalance 1 | |||
|
|||
//following the first map, start this rotation | |||
set g_initialMapRotation rotation1 | |||
|
|||
//misc settings | |||
set pmove_fixed 0 | |||
set sv_minRate 5000 | |||
set sv_maxRate 15000 | |||
set sv_minSnaps 10 | |||
|
|||
//start this map first | |||
map niveus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
obj-*-*-*/main/qagame*.so usr/lib/games/unvanquished/main/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
# Defaults for unvanquished-server initscript | |||
# sourced by /etc/init.d/unvanquished-server | |||
# installed at /etc/default/unvanquished-server by the maintainer scripts | |||
|
|||
# set to 1 to enable | |||
START_DAEMON=0 | |||
|
|||
# DNS name or IP address of your internet interface. | |||
# Change it if you're setting up an internet server. | |||
NET_IP="localhost" | |||
|
|||
# Additional options that are passed to the Daemon. | |||
# Add "+set dedicated 2" if you want your server advertised on the public | |||
# server list. | |||
DAEMON_OPTS="+set net_ip ${NET_IP}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,86 @@ | |||
#! /bin/sh | |||
### BEGIN INIT INFO | |||
# Provides: unvanquished-server | |||
# Required-Start: $remote_fs $network | |||
# Required-Stop: $remote_fs $network | |||
# Default-Start: 2 3 4 5 | |||
# Default-Stop: 0 1 6 | |||
# Short-Description: Start Unvanquished game server | |||
# Description: Start Unvanquished game server | |||
### END INIT INFO | |||
|
|||
PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" | |||
DAEMON="/usr/games/unvanquished-server.sh" | |||
NAME="unvanquished-server" | |||
DESC="Unvanquished dedicated server" | |||
PIDFILE="/var/run/$NAME.pid" | |||
BINARY="/usr/lib/games/unvanquished/unvanquishedded" | |||
|
|||
# Exit cleanly if the package has been removed | |||
test -x $DAEMON || exit 0 | |||
|
|||
. /lib/lsb/init-functions | |||
|
|||
# Include unvanquished defaults if available | |||
if [ -f /etc/default/unvanquished-server ] ; then | |||
. /etc/default/unvanquished-server | |||
fi | |||
|
|||
unvanquished_start() { | |||
if [ -f $PIDFILE ]; then | |||
return 2 | |||
fi | |||
if [ "$START_DAEMON" != 1 ]; then | |||
echo -n " (not starting - disabled in /etc/default/unvanquished-server)" | |||
return 0 | |||
fi | |||
start-stop-daemon --start --quiet --pidfile $PIDFILE --oknodo \ | |||
--background --exec $BINARY --startas $DAEMON \ | |||
--make-pidfile --chuid unvanquished-server \ | |||
-- $DAEMON_OPTS > /dev/null 2>&1 || return 1 | |||
return 0 | |||
} | |||
|
|||
unvanquished_stop() { | |||
start-stop-daemon --stop --quiet --pidfile $PIDFILE \ | |||
--oknodo --exec $BINARY || return 1 | |||
rm -f $PIDFILE | |||
return 0 | |||
} | |||
|
|||
case "$1" in | |||
start) | |||
log_begin_msg "Starting $DESC: $NAME" | |||
unvanquished_start | |||
log_end_msg $? | |||
;; | |||
stop) | |||
log_begin_msg "Stopping $DESC: $NAME" | |||
unvanquished_stop | |||
log_end_msg $? | |||
;; | |||
#reload) | |||
# If the daemon can reload its config files on the fly | |||
# for example by sending it SIGHUP, do it here. | |||
# If the daemon responds to changes in its config file | |||
# directly anyway, make this a do-nothing entry. | |||
# echo "Reloading $DESC configuration files." | |||
# start-stop-daemon --stop --signal 1 --quiet --pidfile \ | |||
# /var/run/$NAME.pid --exec $DAEMON | |||
#;; | |||
restart|force-reload) | |||
# If the "reload" option is implemented, move the "force-reload" | |||
# option to the "reload" entry above. If not, "force-reload" is | |||
# just the same as "restart". | |||
log_begin_msg "Restarting $DESC: $NAME" | |||
unvanquished_stop && sleep 1 && unvanquished_start | |||
log_end_msg $? | |||
;; | |||
*) | |||
# echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2 | |||
echo "Usage: $0 {start|stop|restart|force-reload}" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
|
|||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
debian/unvanquished-server.sh usr/games/ | |||
obj-*-*-*/daemonded.* usr/lib/games/unvanquished/ | |||
debian/config/*.cfg etc/unvanquished-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
etc/unvanquished-server/server.cfg usr/lib/games/unvanquished/base/server.cfg | |||
etc/unvanquished-server/maprotation.cfg usr/lib/games/unvanquished/base/maprotation.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,43 @@ | |||
#!/bin/sh | |||
# postinst script for unvanquished | |||
|
|||
set -e | |||
|
|||
# summary of how this script can be called: | |||
# * <postinst> `configure' <most-recently-configured-version> | |||
# * <old-postinst> `abort-upgrade' <new version> | |||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> | |||
# <new-version> | |||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | |||
# <failed-install-package> <version> `removing' | |||
# <conflicting-package> <version> | |||
# for details, see http://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
|
|||
UNV_SERVER_HOME=/var/games/unvanquished-server | |||
UNV_SERVER_DATA=$UNV_SERVER_HOME/.Unvanquished/main | |||
|
|||
case "$1" in | |||
configure) | |||
if ! getent passwd unvanquished-server >/dev/null; then | |||
adduser --disabled-password --quiet --system \ | |||
--home $UNV_SERVER_HOME --no-create-home \ | |||
--gecos "Unvanquished dedicated server" --ingroup games unvanquished-server | |||
fi | |||
install -d /var/games | |||
install -d -o unvanquished-server -g games $UNV_SERVER_DATA | |||
if ! test -s $UNV_SERVER_DATA/default.cfg; then | |||
echo >$UNV_SERVER_DATA/default.cfg | |||
chown unvanquished-server:games $UNV_SERVER_DATA/default.cfg | |||
fi | |||
ln -fs /etc/unvanquished-server/maprotation.cfg /etc/unvanquished-server/server.cfg $UNV_SERVER_DATA/ | |||
;; | |||
abort-upgrade|abort-remove|abort-deconfigure) | |||
;; | |||
*) | |||
echo "postinst called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
|
|||
#DEBHELPER# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
#!/bin/sh | |||
|
|||
set -e | |||
|
|||
#DEBHELPER# | |||
|
|||
if [ "$1" = "purge" ] ; then | |||
deluser --quiet --system unvanquished-server > /dev/null || true | |||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
#! /bin/sh | |||
# prerm script for unvanquished-server | |||
|
|||
set -e | |||
|
|||
case "$1" in | |||
remove) | |||
# Remove links | |||
rm -f /usr/lib/games/unvanquished/base/server.cfg /usr/lib/games/unvanquished/base/maprotation.cfg | |||
;; | |||
|
|||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | |||
;; | |||
|
|||
*) | |||
echo "prerm called with unknown argument \`$1'" >&2 | |||
exit 0 | |||
;; | |||
esac | |||
|
|||
#DEBHELPER# | |||
|
|||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
#! /bin/sh | #! /bin/sh | ||
cd /usr/lib/games/unvanquished | cd /var/games/unvanquished-server | ||
exec ./daemonded.@ARCH@ +set fs_libpath "$PWD" +set fs_basepath /var/lib/games/unvanquished "$@" | exec /usr/lib/games/unvanquished/unvanquishedded +set fs_libpath /usr/lib/games/unvanquished +set fs_basepath /var/lib/games/unvanquished +exec server.cfg "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
#! /bin/sh | #! /bin/sh | ||
cd /usr/lib/games/unvanquished | cd /usr/lib/games/unvanquished | ||
exec ./daemon.@ARCH@ +set fs_libpath "$PWD" +set fs_basepath /var/lib/games/unvanquished "$@" | exec ./unvanquished +set fs_libpath "$PWD" +set fs_basepath /var/lib/games/unvanquished "$@" |
Oops, something went wrong.