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-cstrike
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-cstrike')
-rw-r--r--games-server/halflife-cstrike/ChangeLog8
-rw-r--r--games-server/halflife-cstrike/Manifest7
-rw-r--r--games-server/halflife-cstrike/files/digest-halflife-cstrike-1.51
-rw-r--r--games-server/halflife-cstrike/files/hlds-cstrike3
-rw-r--r--games-server/halflife-cstrike/files/hlds-cstrike.conf.d8
-rw-r--r--games-server/halflife-cstrike/files/hlds-cstrike.rc26
-rw-r--r--games-server/halflife-cstrike/files/server.cfg78
-rw-r--r--games-server/halflife-cstrike/halflife-cstrike-1.5.ebuild68
8 files changed, 199 insertions, 0 deletions
diff --git a/games-server/halflife-cstrike/ChangeLog b/games-server/halflife-cstrike/ChangeLog
new file mode 100644
index 000000000000..a328b08a5408
--- /dev/null
+++ b/games-server/halflife-cstrike/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-games/halflife-cstrike
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-cstrike/ChangeLog,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+*halflife-cstrike-1.5 (08 Jul 2003)
+
+ 08 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/games-server/halflife-cstrike/Manifest b/games-server/halflife-cstrike/Manifest
new file mode 100644
index 000000000000..d294ff36fb22
--- /dev/null
+++ b/games-server/halflife-cstrike/Manifest
@@ -0,0 +1,7 @@
+MD5 30deb1d4743d67fe84fc00d02cb47050 files/hlds-cstrike 59
+MD5 97ea8306848e658c04b5c45d07387dd6 files/digest-halflife-cstrike-1.5 65
+MD5 108376d9c8b8f312c1469a7c42201042 files/server.cfg 1401
+MD5 8378161b06d52a4b5849b907f4a41b09 files/hlds-cstrike.rc 802
+MD5 c95a21f2584de1af71a81cd925ae360c files/hlds-cstrike.conf.d 396
+MD5 27fb768915150663177c60674fc6e94a ChangeLog 366
+MD5 ea371d3dff4d32c5bba38c96a980d08a halflife-cstrike-1.5.ebuild 2176
diff --git a/games-server/halflife-cstrike/files/digest-halflife-cstrike-1.5 b/games-server/halflife-cstrike/files/digest-halflife-cstrike-1.5
new file mode 100644
index 000000000000..87d87c25d977
--- /dev/null
+++ b/games-server/halflife-cstrike/files/digest-halflife-cstrike-1.5
@@ -0,0 +1 @@
+MD5 d688876fa2864ff69ff808432c9e6fe7 cs_15_full.tar.gz 112935519
diff --git a/games-server/halflife-cstrike/files/hlds-cstrike b/games-server/halflife-cstrike/files/hlds-cstrike
new file mode 100644
index 000000000000..aa3bdacaa97d
--- /dev/null
+++ b/games-server/halflife-cstrike/files/hlds-cstrike
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_DIR
+exec ./hlds_run -game cstrike ${@}
diff --git a/games-server/halflife-cstrike/files/hlds-cstrike.conf.d b/games-server/halflife-cstrike/files/hlds-cstrike.conf.d
new file mode 100644
index 000000000000..9eb3688acb84
--- /dev/null
+++ b/games-server/halflife-cstrike/files/hlds-cstrike.conf.d
@@ -0,0 +1,8 @@
+# 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-cstrike/files/hlds-cstrike.conf.d,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+# to find out more options, read these 2 files:
+# GENTOO_DIR/cstrike/readme.txt
+
+HLDS_OPTS="+sv_lan 1 -nomaster -insecure +maxplayers 16 +map cs_italy"
diff --git a/games-server/halflife-cstrike/files/hlds-cstrike.rc b/games-server/halflife-cstrike/files/hlds-cstrike.rc
new file mode 100644
index 000000000000..c3287e302df3
--- /dev/null
+++ b/games-server/halflife-cstrike/files/hlds-cstrike.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-cstrike/files/hlds-cstrike.rc,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting halflife cstrike dedicated"
+ screen -A -m -d -S hlds-cstrike su - GENTOO_GAMES_USER -c "GENTOO_DIR/hlds-cstrike ${HLDS_OPTS}" &
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping halflife cstrike dedicated"
+ local ppid=`screen -list | grep hlds-cstrike | 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-cstrike"
+ fi
+}
diff --git a/games-server/halflife-cstrike/files/server.cfg b/games-server/halflife-cstrike/files/server.cfg
new file mode 100644
index 000000000000..78dd595b4b87
--- /dev/null
+++ b/games-server/halflife-cstrike/files/server.cfg
@@ -0,0 +1,78 @@
+// Use this file to configure your DEDICATED server.
+// This config file is executed everytime the server changes levels.
+
+// disable autoaim
+sv_aim 0
+
+// disable clients' ability to pause the server
+pausable 0
+
+// default server name.
+hostname "Powered by Gentoo Linux"
+
+// maximum client movement speed
+sv_maxspeed 320
+
+// Timelimit for the map.
+mp_timelimit 30
+
+sv_cheats 0
+
+// force teambalance
+mp_autoteambalance 1
+// number of players before team is seen as unbalanced
+mp_limitteams 1
+
+// kick idle players
+mp_autokick 1
+
+// part of a minute in which you can buy
+mp_buytime 0.4
+
+mp_c4timer 45
+
+// only see your teams players
+mp_chasecam 1
+// force chasecam
+mp_forcechasecam 1
+// fade to black so dead players can't see anything
+mp_fadetoblack 0
+
+// allow flashlight to be used ?
+mp_flashlight 0
+
+// enable footsteps
+mp_footsteps 1
+
+mp_freezetime 3
+
+// be damaged by "friendly" grenades
+mp_friendly_grenade_damage 1
+// be damaged by your teammates' fire
+mp_friendlyfire 1
+
+// kill that many hostages and you're out
+mp_hostagepenalty 2
+
+// on round lasts:
+mp_roundtime 5
+
+// team killers can't play the next round
+mp_tkpunish 1
+
+// (dis)allow voicechat
+sv_enablevoice 1
+
+// realistic falling damage ?
+mp_falldamage 1
+
+// number of decals allowed
+mp_decals 250
+
+// rate settings, you might want to adjust for internet play
+sv_maxrate 40000
+sv_minrate 6000
+
+// rcon_password "gentoorulez"
+
+log on
diff --git a/games-server/halflife-cstrike/halflife-cstrike-1.5.ebuild b/games-server/halflife-cstrike/halflife-cstrike-1.5.ebuild
new file mode 100644
index 000000000000..1a82ca76237a
--- /dev/null
+++ b/games-server/halflife-cstrike/halflife-cstrike-1.5.ebuild
@@ -0,0 +1,68 @@
+# 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-cstrike/halflife-cstrike-1.5.ebuild,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+inherit games
+
+DESCRIPTION="Halflife Counterstrike mod (server only, client only works in wine)"
+HOMEPAGE="http://www.counter-strike.net/"
+SRC_URI="ftp://ftp.splatterworld.de/games/hl/mods/cs/server/cs_${PV//.}_full.tar.gz"
+
+SLOT="0"
+LICENSE="ValveServer"
+KEYWORDS="-* x86"
+IUSE="dedicated"
+RESTRICT="nostrip"
+
+RDEPEND="app-games/halflife-server
+ dedicated? ( app-misc/screen )"
+
+S=${WORKDIR}/cstrike
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/halflife
+ dodir ${dir}
+
+ mv server.cfg server.cfg.default
+ cp ${FILESDIR}/server.cfg server.cfg
+ mv ${S} ${D}/${dir}/ || die "moving cstrike"
+
+ dogamesbin ${FILESDIR}/hlds-cstrike
+ dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/hlds-cstrike
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/hlds-cstrike.rc hlds-cstrike
+ dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/hlds-cstrike
+ dosed "s:GENTOO_GAMES_USER:${GAMES_USER_DED}:" /etc/init.d/hlds-cstrike
+ insinto /etc/conf.d ; newins ${FILESDIR}/hlds-cstrike.conf.d hlds-cstrike
+ dosed "s:GENTOO_DIR:${dir}:" /etc/conf.d/hlds-cstrike
+
+ local cdir=${GAMES_SYSCONFDIR}/halflife/cstrike
+ dodir ${cdir}
+ # this allows users to upgrade w/out losing their previous settings
+ dir=${dir}/cstrike
+ for cfg in server.cfg liblist.gam mapcycle.txt motd.txt ; do
+ [ -e ${dir}/${cfg} ] && mv ${D}/${dir}/${cfg}{,.sample}
+ dosym {${dir},${cdir}}/${cfg}
+ done
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ local dir=${GAMES_PREFIX_OPT}/halflife/cstrike
+ touch ${dir}/{server.cfg,liblist.gam,mapcycle.txt,motd.txt}
+
+ einfo "To start the dedicated server, just run"
+ einfo "/etc/init.d/hlds-cstrike start"
+ echo
+ einfo "The server utilizes screen so you can get to"
+ einfo "the console by typing:"
+ einfo " screen -r hlds-cstrike"
+ echo
+ einfo "To configure your server, just edit the file:"
+ einfo "${GAMES_PREFIX_OPT}/halflife/cstrike/server.cfg"
+ einfo "For an example config file, use"
+ einfo "/opt/halflife/cstrike/server.cfg.sample"
+
+ games_pkg_postinst
+}