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-dpb
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-dpb')
-rw-r--r--games-server/halflife-dpb/ChangeLog8
-rw-r--r--games-server/halflife-dpb/Manifest6
-rw-r--r--games-server/halflife-dpb/files/digest-halflife-dpb-2.12
-rw-r--r--games-server/halflife-dpb/files/hlds-dpb3
-rw-r--r--games-server/halflife-dpb/files/hlds-dpb.conf.d8
-rw-r--r--games-server/halflife-dpb/files/hlds-dpb.rc26
-rw-r--r--games-server/halflife-dpb/halflife-dpb-2.1.ebuild81
7 files changed, 134 insertions, 0 deletions
diff --git a/games-server/halflife-dpb/ChangeLog b/games-server/halflife-dpb/ChangeLog
new file mode 100644
index 000000000000..b00e6b3a6c1f
--- /dev/null
+++ b/games-server/halflife-dpb/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-games/halflife-dpb
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-dpb/ChangeLog,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+*halflife-dpb-2.1 (09 Jul 2003)
+
+ 09 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me for Dejenerat.
diff --git a/games-server/halflife-dpb/Manifest b/games-server/halflife-dpb/Manifest
new file mode 100644
index 000000000000..9bd7f461e6e4
--- /dev/null
+++ b/games-server/halflife-dpb/Manifest
@@ -0,0 +1,6 @@
+MD5 342e2e156ab6dab5c54a8cd80c1b17c9 files/hlds-dpb 55
+MD5 3f6bc605cdb6f8fedd3b205541445cd9 files/hlds-dpb.conf.d 385
+MD5 f987f75ab4ff097e13ecdc0f2f9d18a1 files/hlds-dpb.rc 770
+MD5 90a0e37509b36d1610f45b2ce425a874 files/digest-halflife-dpb-2.1 123
+MD5 e8d8b4ddd463ae7188629f6fd28ed692 ChangeLog 368
+MD5 6fe02113d69b673859e5a5bae6f457bd halflife-dpb-2.1.ebuild 2539
diff --git a/games-server/halflife-dpb/files/digest-halflife-dpb-2.1 b/games-server/halflife-dpb/files/digest-halflife-dpb-2.1
new file mode 100644
index 000000000000..06735074dd85
--- /dev/null
+++ b/games-server/halflife-dpb/files/digest-halflife-dpb-2.1
@@ -0,0 +1,2 @@
+MD5 f979cecdbe54f8fafc6f57fae4c31df0 dpb_v20.tar.gz 53182073
+MD5 0c95b285092a8698a7ee94392d7b37c0 dpb_v2021.tar.gz 6650597
diff --git a/games-server/halflife-dpb/files/hlds-dpb b/games-server/halflife-dpb/files/hlds-dpb
new file mode 100644
index 000000000000..a558f208468d
--- /dev/null
+++ b/games-server/halflife-dpb/files/hlds-dpb
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_DIR
+exec ./hlds_run -game dpb ${@}
diff --git a/games-server/halflife-dpb/files/hlds-dpb.conf.d b/games-server/halflife-dpb/files/hlds-dpb.conf.d
new file mode 100644
index 000000000000..e8d1136168b6
--- /dev/null
+++ b/games-server/halflife-dpb/files/hlds-dpb.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-dpb/files/hlds-dpb.conf.d,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+# to find out more options, read these 2 files:
+# GENTOO_DIR/dpb/readme.txt
+
+HLDS_OPTS="+sv_lan 1 -nomaster -insecure +maxplayers 16 +map dpb_splat"
diff --git a/games-server/halflife-dpb/files/hlds-dpb.rc b/games-server/halflife-dpb/files/hlds-dpb.rc
new file mode 100644
index 000000000000..fe84dd95af29
--- /dev/null
+++ b/games-server/halflife-dpb/files/hlds-dpb.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-dpb/files/hlds-dpb.rc,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting halflife dpb dedicated"
+ screen -A -m -d -S hlds-dpb su - GENTOO_GAMES_USER -c "GENTOO_DIR/hlds-dpb ${HLDS_OPTS}" &
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping halflife dpb dedicated"
+ local ppid=`screen -list | grep hlds-dpb | 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-dpb"
+ fi
+}
diff --git a/games-server/halflife-dpb/halflife-dpb-2.1.ebuild b/games-server/halflife-dpb/halflife-dpb-2.1.ebuild
new file mode 100644
index 000000000000..7bc74e1f793c
--- /dev/null
+++ b/games-server/halflife-dpb/halflife-dpb-2.1.ebuild
@@ -0,0 +1,81 @@
+# 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-dpb/halflife-dpb-2.1.ebuild,v 1.1 2003/09/10 05:51:11 vapier Exp $
+
+inherit games
+
+DESCRIPTION="Halflife Digital Paintball mod"
+HOMEPAGE="http://www.digitalpaintball.net/"
+SRC_URI="http://www.linuxatron.com/dpb/dpb_v20.tar.gz
+ http://philes.gamedaemons.net/halflife/digitalpaintball/dpb_v20.tar.gz
+ http://www.elitethinking.net/files/dpb/patches/server/dpb_v20.tar.gz
+ http://philes.gamedaemons.net/halflife/digitalpaintball/dpb_v2021.tar.gz
+ http://www.zero-temptation.com/dpb_v2021.tar.gz"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="-* x86"
+IUSE="dedicated"
+RESTRICT="nostrip"
+
+RDEPEND="app-games/halflife-server
+ dedicated? ( app-misc/screen )"
+
+S=${WORKDIR}/dpb
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/halflife
+ dodir ${dir}
+
+ mv ${S} ${D}/${dir}/ || die "moving dpb"
+
+ dogamesbin ${FILESDIR}/hlds-dpb
+ dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/hlds-dpb
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/hlds-dpb.rc hlds-dpb
+ dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/hlds-dpb
+ dosed "s:GENTOO_GAMES_USER:${GAMES_USER_DED}:" /etc/init.d/hlds-dpb
+ insinto /etc/conf.d ; newins ${FILESDIR}/hlds-dpb.conf.d hlds-dpb
+ dosed "s:GENTOO_DIR:${dir}:" /etc/conf.d/hlds-dpb
+
+ # now set the gamedll
+ local gamedll_linux=""
+ if has_version =sys-libs/glibc-2.2* ; then
+ gamedll_linux="2.2"
+ elif has_version =sys-devel/gcc-2* ; then
+ gamedll_linux="2.3-libstdc++5"
+ else
+ gamedll_linux="2.3"
+ fi
+ dosed "/gamedll_linux/s:\".*\":\"dlls/pb-i686-glibc${gamedll_linux}.so\":" ${dir}/dpb/liblist.gam
+
+ local cdir=${GAMES_SYSCONFDIR}/halflife/dpb
+ dodir ${cdir}
+ # this allows users to upgrade w/out losing their previous settings
+ dir=${dir}/dpb
+ 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/dpb
+ touch ${dir}/{server.cfg,liblist.gam,mapcycle.txt,motd.txt}
+
+ einfo "To start the dedicated server, just run"
+ einfo "/etc/init.d/hlds-dpb start"
+ echo
+ einfo "The server utilizes screen so you can get to"
+ einfo "the console by typing:"
+ einfo " screen -r hlds-dpb"
+ echo
+ einfo "To configure your server, just edit the file:"
+ einfo "${GAMES_PREFIX_OPT}/halflife/dpb/server.cfg"
+ einfo "For an example config file, use"
+ einfo "/opt/halflife/dpb/server.cfg.sample"
+
+ games_pkg_postinst
+}