summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 05:51:11 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 05:51:11 +0000
commitedbc06b08e95c97e2012a831adcf93b9652b0be0 (patch)
treedebef26d9299fcdb4a69696d45a8fc8d27d36722 /games-server/halflife-server/files
parentgames-server (diff)
downloadgentoo-2-edbc06b08e95c97e2012a831adcf93b9652b0be0.tar.gz
gentoo-2-edbc06b08e95c97e2012a831adcf93b9652b0be0.tar.bz2
gentoo-2-edbc06b08e95c97e2012a831adcf93b9652b0be0.zip
games-servers !
Diffstat (limited to 'games-server/halflife-server/files')
-rw-r--r--games-server/halflife-server/files/digest-halflife-server-3.1.1.01
-rw-r--r--games-server/halflife-server/files/digest-halflife-server-3.1.1.11
-rw-r--r--games-server/halflife-server/files/digest-halflife-server-3.1.1.1d2
-rw-r--r--games-server/halflife-server/files/hlds3
-rw-r--r--games-server/halflife-server/files/hlds.conf.d9
-rw-r--r--games-server/halflife-server/files/hlds.rc26
6 files changed, 42 insertions, 0 deletions
diff --git a/games-server/halflife-server/files/digest-halflife-server-3.1.1.0 b/games-server/halflife-server/files/digest-halflife-server-3.1.1.0
new file mode 100644
index 000000000000..37fcdefba356
--- /dev/null
+++ b/games-server/halflife-server/files/digest-halflife-server-3.1.1.0
@@ -0,0 +1 @@
+MD5 4bf86966424dedc686cdf63c72c1913d hlds_l_3110_full.bin 120884265
diff --git a/games-server/halflife-server/files/digest-halflife-server-3.1.1.1 b/games-server/halflife-server/files/digest-halflife-server-3.1.1.1
new file mode 100644
index 000000000000..050a05100457
--- /dev/null
+++ b/games-server/halflife-server/files/digest-halflife-server-3.1.1.1
@@ -0,0 +1 @@
+MD5 d9c9cb32a55a814ae6fd6e36568ea9c8 hlds_l_3111_full.bin 121936616
diff --git a/games-server/halflife-server/files/digest-halflife-server-3.1.1.1d b/games-server/halflife-server/files/digest-halflife-server-3.1.1.1d
new file mode 100644
index 000000000000..07488d2b293b
--- /dev/null
+++ b/games-server/halflife-server/files/digest-halflife-server-3.1.1.1d
@@ -0,0 +1,2 @@
+MD5 d9c9cb32a55a814ae6fd6e36568ea9c8 hlds_l_3111_full.bin 121936616
+MD5 fb45a812d4940b1603d894a25b961ec8 hlds_l_3111d_update.tar.gz 3587195
diff --git a/games-server/halflife-server/files/hlds b/games-server/halflife-server/files/hlds
new file mode 100644
index 000000000000..7870602e72e9
--- /dev/null
+++ b/games-server/halflife-server/files/hlds
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_DIR
+exec ./hlds_run ${@}
diff --git a/games-server/halflife-server/files/hlds.conf.d b/games-server/halflife-server/files/hlds.conf.d
new file mode 100644
index 000000000000..1964df4403e0
--- /dev/null
+++ b/games-server/halflife-server/files/hlds.conf.d
@@ -0,0 +1,9 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/files/hlds.conf.d,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+# to find out more options, read these 2 files:
+# GENTOO_DIR/readme.txt
+# GENTOO_DIR/linuxreadme.txt
+
+HLDS_OPTS="+sv_lan 1 -nomaster -insecure +maxplayers 16 +map crossfire"
diff --git a/games-server/halflife-server/files/hlds.rc b/games-server/halflife-server/files/hlds.rc
new file mode 100644
index 000000000000..99cfc8e770d6
--- /dev/null
+++ b/games-server/halflife-server/files/hlds.rc
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/files/hlds.rc,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting halflife dedicated..."
+ screen -A -m -d -S hlds su - GENTOO_GAMES_USER -c "GENTOO_DIR/hlds ${HLDS_OPTS}" &
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping halflife dedicated..."
+ local ppid=`screen -list | grep hlds | awk -F . '{ print $1 }' | sed -e s/.//`
+ if [ -z "${ppid}" ] ; then
+ eend 1 "Lost screen session"
+ else
+ local cpid=`pstree -p ${ppid} | sed -e 's:^.*hlds_run(::' -e 's:).*$::'`
+ kill ${ppid} ${cpid}
+ eend $? "Could not kill hlds"
+ fi
+}