diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 05:51:11 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 05:51:11 +0000 |
commit | edbc06b08e95c97e2012a831adcf93b9652b0be0 (patch) | |
tree | debef26d9299fcdb4a69696d45a8fc8d27d36722 /games-server/halflife-ns | |
parent | games-server (diff) | |
download | gentoo-2-edbc06b08e95c97e2012a831adcf93b9652b0be0.tar.gz gentoo-2-edbc06b08e95c97e2012a831adcf93b9652b0be0.tar.bz2 gentoo-2-edbc06b08e95c97e2012a831adcf93b9652b0be0.zip |
games-servers !
Diffstat (limited to 'games-server/halflife-ns')
-rw-r--r-- | games-server/halflife-ns/ChangeLog | 13 | ||||
-rw-r--r-- | games-server/halflife-ns/Manifest | 8 | ||||
-rw-r--r-- | games-server/halflife-ns/files/digest-halflife-ns-1.04 | 2 | ||||
-rw-r--r-- | games-server/halflife-ns/files/digest-halflife-ns-2.0 | 1 | ||||
-rw-r--r-- | games-server/halflife-ns/files/hlds-ns | 3 | ||||
-rw-r--r-- | games-server/halflife-ns/files/hlds-ns.conf.d | 8 | ||||
-rw-r--r-- | games-server/halflife-ns/files/hlds-ns.rc | 26 | ||||
-rw-r--r-- | games-server/halflife-ns/halflife-ns-1.04.ebuild | 73 | ||||
-rw-r--r-- | games-server/halflife-ns/halflife-ns-2.0.ebuild | 72 |
9 files changed, 206 insertions, 0 deletions
diff --git a/games-server/halflife-ns/ChangeLog b/games-server/halflife-ns/ChangeLog new file mode 100644 index 000000000000..64547365607e --- /dev/null +++ b/games-server/halflife-ns/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for app-games/halflife-ns +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-ns/ChangeLog,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +*halflife-ns-2.0 (03 Aug 2003) + + 03 Aug 2003; Mike Frysinger <vapier@gentoo.org> : + Version bump #25712. + +*halflife-ns-1.04 (08 Jul 2003) + + 08 Jul 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/games-server/halflife-ns/Manifest b/games-server/halflife-ns/Manifest new file mode 100644 index 000000000000..881b7cbf0c44 --- /dev/null +++ b/games-server/halflife-ns/Manifest @@ -0,0 +1,8 @@ +MD5 a15626d4baff256269cd997f5dc600b6 files/digest-halflife-ns-1.04 139 +MD5 6c40b510bc9f395ff8f5b2b4d83cbf1e files/hlds-ns.rc 762 +MD5 b4f1a99e48f7d511ee08db16f700ac5e files/hlds-ns.conf.d 387 +MD5 c66877a7e84218012527f6f8ce3af59c files/hlds-ns 56 +MD5 75b63cf2942acc8e30a8d81ad7b6067a files/digest-halflife-ns-2.0 73 +MD5 3ac10f520e86e399de0200631b991720 halflife-ns-1.04.ebuild 2031 +MD5 657d4970bc5f198ce2e181db0c33ac86 ChangeLog 460 +MD5 493798acef6b57fed498b8ffe30832e8 halflife-ns-2.0.ebuild 2188 diff --git a/games-server/halflife-ns/files/digest-halflife-ns-1.04 b/games-server/halflife-ns/files/digest-halflife-ns-1.04 new file mode 100644 index 000000000000..430363975fdd --- /dev/null +++ b/games-server/halflife-ns/files/digest-halflife-ns-1.04 @@ -0,0 +1,2 @@ +MD5 e221ffe39e5d7ad0b5d0d7b2f1c890b3 ns-v104.zip 2725609 +MD5 d66f75402060685265f68f314bf8d3a8 ns_v1_linux_dedicated_server.tar.gz 85252204 diff --git a/games-server/halflife-ns/files/digest-halflife-ns-2.0 b/games-server/halflife-ns/files/digest-halflife-ns-2.0 new file mode 100644 index 000000000000..2ec039a07edf --- /dev/null +++ b/games-server/halflife-ns/files/digest-halflife-ns-2.0 @@ -0,0 +1 @@ +MD5 6fd11703656924ad50b69505cd027197 ns_v2_dedicated_server.zip 91860927 diff --git a/games-server/halflife-ns/files/hlds-ns b/games-server/halflife-ns/files/hlds-ns new file mode 100644 index 000000000000..d50b2b46845e --- /dev/null +++ b/games-server/halflife-ns/files/hlds-ns @@ -0,0 +1,3 @@ +#!/bin/sh +cd GENTOO_DIR +exec ./hlds_run -game ns "${@}" diff --git a/games-server/halflife-ns/files/hlds-ns.conf.d b/games-server/halflife-ns/files/hlds-ns.conf.d new file mode 100644 index 000000000000..815fcb31ff78 --- /dev/null +++ b/games-server/halflife-ns/files/hlds-ns.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-ns/files/hlds-ns.conf.d,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +# to find out more options, read these 2 files: +# GENTOO_DIR/ns/readme.txt + +HLDS_OPTS="+sv_lan 1 -nomaster -insecure +maxplayers 16 +map ns_eclipse.bsp" diff --git a/games-server/halflife-ns/files/hlds-ns.rc b/games-server/halflife-ns/files/hlds-ns.rc new file mode 100644 index 000000000000..67ee7bedca51 --- /dev/null +++ b/games-server/halflife-ns/files/hlds-ns.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-ns/files/hlds-ns.rc,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting halflife ns dedicated" + screen -A -m -d -S hlds-ns su - GENTOO_GAMES_USER -c "GENTOO_DIR/hlds-ns ${HLDS_OPTS}" & + eend $? +} + +stop() { + ebegin "Stopping halflife ns dedicated" + local ppid=`screen -list | grep hlds-ns | 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-ns" + fi +} diff --git a/games-server/halflife-ns/halflife-ns-1.04.ebuild b/games-server/halflife-ns/halflife-ns-1.04.ebuild new file mode 100644 index 000000000000..db174e6f976d --- /dev/null +++ b/games-server/halflife-ns/halflife-ns-1.04.ebuild @@ -0,0 +1,73 @@ +# 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-ns/halflife-ns-1.04.ebuild,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +inherit games eutils + +BASE=ns_v1_linux_dedicated_server.tar.gz +UPDATE=ns-v${PV/./}.zip +DESCRIPTION="Halflife Natural Selection mod ... kill aliens or marines" +HOMEPAGE="http://www.natural-selection.org/" +SRC_URI="http://files.redphive.org/${UPDATE} + http://files.redphive.org/${BASE}" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="-* x86" +IUSE="dedicated" + +RDEPEND="app-games/halflife-server + dedicated? ( app-misc/screen )" + +S=${WORKDIR}/ns + +src_unpack() { + unpack ${BASE} + cd ${S} + unpack ${UPDATE} + edos2unix *.txt *.cfg *.gam *.lst +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/halflife + dodir ${dir} + + mv ${S} ${D}/${dir}/ || die "moving ns" + + dogamesbin ${FILESDIR}/hlds-ns + dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/hlds-ns + + exeinto /etc/init.d ; newexe ${FILESDIR}/hlds-ns.rc hlds-ns + dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/hlds-ns + dosed "s:GENTOO_GAMES_USER:${GAMES_USER_DED}:" /etc/init.d/hlds-ns + insinto /etc/conf.d ; newins ${FILESDIR}/hlds-ns.conf.d hlds-ns + dosed "s:GENTOO_DIR:${dir}:" /etc/conf.d/hlds-ns + + local cdir=${GAMES_SYSCONFDIR}/halflife/ns + dodir ${cdir} + # this allows users to upgrade w/out losing their previous settings + dir=${dir}/ns + for cfg in *.cfg mapcycle.txt motd.txt titles.txt ; do + [ -e ${dir}/ns/${cfg} ] && mv ${cfg}{,.sample} + dosym {${dir},${cdir}}/${cfg} + done + + prepgamesdirs +} + +pkg_postinst() { + local dir=${GAMES_PREFIX_OPT}/halflife/ns + touch ${dir}/{*.cfg,mapcycle.txt,motd.txt,titles.txt} + + einfo "To start the dedicated server, just run" + einfo "/etc/init.d/hlds-ns start" + echo + einfo "The server utilizes screen so you can get to" + einfo "the console by typing:" + einfo " screen -r hlds-ns" + echo + einfo "To configure your server, just edit the file:" + einfo "${GAMES_PREFIX_OPT}/halflife/ns/server.cfg" + + games_pkg_postinst +} diff --git a/games-server/halflife-ns/halflife-ns-2.0.ebuild b/games-server/halflife-ns/halflife-ns-2.0.ebuild new file mode 100644 index 000000000000..0d7304109a9f --- /dev/null +++ b/games-server/halflife-ns/halflife-ns-2.0.ebuild @@ -0,0 +1,72 @@ +# 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-ns/halflife-ns-2.0.ebuild,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +inherit games eutils + +BASE=ns_v2_dedicated_server.zip +DESCRIPTION="Halflife Natural Selection mod ... kill aliens or marines" +HOMEPAGE="http://www.natural-selection.org/" +SRC_URI="http://gamefiles.blueyonder.co.uk/blueyondergames/halflife/modifications/naturalselection/server/win32/${BASE} + http://gamefiles.blueyonder.co.uk/blueyondergames/halflife/modifications/naturalselection/server/win32/${BASE} + http://www.clansin.com/Downloads/patches/server/${BASE}" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="-* x86" +IUSE="dedicated" + +RDEPEND="app-games/halflife-server + dedicated? ( app-misc/screen )" + +S=${WORKDIR}/ns + +src_unpack() { + unpack ${BASE} + cd ${S} + edos2unix *.txt *.cfg *.gam *.lst +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/halflife + dodir ${dir} + + mv ${S} ${D}/${dir}/ || die "moving ns" + + dogamesbin ${FILESDIR}/hlds-ns + dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/hlds-ns + + exeinto /etc/init.d ; newexe ${FILESDIR}/hlds-ns.rc hlds-ns + dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/hlds-ns + dosed "s:GENTOO_GAMES_USER:${GAMES_USER_DED}:" /etc/init.d/hlds-ns + insinto /etc/conf.d ; newins ${FILESDIR}/hlds-ns.conf.d hlds-ns + dosed "s:GENTOO_DIR:${dir}:" /etc/conf.d/hlds-ns + + local cdir=${GAMES_SYSCONFDIR}/halflife/ns + dodir ${cdir} + # this allows users to upgrade w/out losing their previous settings + dir=${dir}/ns + for cfg in *.cfg mapcycle.txt motd.txt titles.txt ; do + [ -e ${dir}/ns/${cfg} ] && mv ${cfg}{,.sample} + dosym {${dir},${cdir}}/${cfg} + done + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + local dir=${GAMES_PREFIX_OPT}/halflife/ns + touch ${dir}/{*.cfg,mapcycle.txt,motd.txt,titles.txt} + + einfo "To start the dedicated server, just run" + einfo "/etc/init.d/hlds-ns start" + echo + einfo "The server utilizes screen so you can get to" + einfo "the console by typing:" + einfo " screen -r hlds-ns" + echo + einfo "To configure your server, just edit the file:" + einfo "${GAMES_PREFIX_OPT}/halflife/ns/server.cfg" +} |