summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-04-16 18:21:34 +0000
committerMike Frysinger <vapier@gentoo.org>2004-04-16 18:21:34 +0000
commitb6c24655c6ddfe8b5b23801065f25f816a0b9b08 (patch)
tree1dc176d392fa7640ccc88c9058bd2bc53e553b54 /games-server
parentAdded in johnm's changes to fix issues with development Portage versions. (diff)
downloadgentoo-2-b6c24655c6ddfe8b5b23801065f25f816a0b9b08.tar.gz
gentoo-2-b6c24655c6ddfe8b5b23801065f25f816a0b9b08.tar.bz2
gentoo-2-b6c24655c6ddfe8b5b23801065f25f816a0b9b08.zip
ver bump #46535
Diffstat (limited to 'games-server')
-rw-r--r--games-server/halflife-ns/ChangeLog7
-rw-r--r--games-server/halflife-ns/files/digest-halflife-ns-3.0_beta32
-rw-r--r--games-server/halflife-ns/halflife-ns-3.0_beta3.ebuild77
3 files changed, 85 insertions, 1 deletions
diff --git a/games-server/halflife-ns/ChangeLog b/games-server/halflife-ns/ChangeLog
index 61ecad59d4da..1c6a204aa40a 100644
--- a/games-server/halflife-ns/ChangeLog
+++ b/games-server/halflife-ns/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-server/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.3 2004/04/16 17:47:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-ns/ChangeLog,v 1.4 2004/04/16 18:21:34 vapier Exp $
+
+*halflife-ns-3.0_beta3 (16 Aug 2004)
+
+ 16 Aug 2004; Mike Frysinger <vapier@gentoo.org> :
+ Version bump #46535 by Daniel Fullmer.
*halflife-ns-2.01 (16 Aug 2004)
diff --git a/games-server/halflife-ns/files/digest-halflife-ns-3.0_beta3 b/games-server/halflife-ns/files/digest-halflife-ns-3.0_beta3
new file mode 100644
index 000000000000..b3a6109e3a9f
--- /dev/null
+++ b/games-server/halflife-ns/files/digest-halflife-ns-3.0_beta3
@@ -0,0 +1,2 @@
+MD5 3c1c8d2022395ca9070133536475b4a5 ns_v3_b1_dedicated_server.zip 135242626
+MD5 8125897b7b62353ada2e20e31be754d4 ns_v30_b3_patch_dedicated_server.zip 26243313
diff --git a/games-server/halflife-ns/halflife-ns-3.0_beta3.ebuild b/games-server/halflife-ns/halflife-ns-3.0_beta3.ebuild
new file mode 100644
index 000000000000..30bda078528a
--- /dev/null
+++ b/games-server/halflife-ns/halflife-ns-3.0_beta3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2004 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-3.0_beta3.ebuild,v 1.1 2004/04/16 18:21:34 vapier Exp $
+
+inherit games eutils
+
+BASE=ns_v3_b1_dedicated_server.zip
+PATCH=ns_v30_b3_patch_dedicated_server.zip
+DESCRIPTION="Halflife Natural Selection mod ... kill aliens or marines"
+HOMEPAGE="http://www.natural-selection.org/"
+SRC_URI="http://download.jarhedz.com/ns_beta/${BASE}
+ ftp://ftp.snt.utwente.nl/pub/games/halflife/steam/natural-selection/server/${BASE}
+ ftp://games.surftown.dk/ns/beta-3.0/${PATCH}
+ http://ftp.club-internet.fr/pub/games/nofrag/ns-fr.com/server/${PATCH}"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="-* x86"
+IUSE="dedicated"
+
+RDEPEND="games-server/halflife-server
+ dedicated? ( app-misc/screen )"
+
+S=${WORKDIR}/nsp
+
+src_unpack() {
+ unpack ${BASE}
+ unpack ${PATCH}
+ cd ${S}
+ edos2unix *.txt *.cfg *.gam *.lst
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/halflife
+ dodir ${dir}
+
+ mv ${S} ${D}/${dir}/ || die "moving nsp"
+
+ newgamesbin ${FILESDIR}/hlds-ns hlds-nsp
+ dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/hlds-nsp
+ dosed "s:-game ns:-game nsp:" ${GAMES_BINDIR}/hlds-nsp
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/hlds-ns.rc hlds-nsp
+ dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/hlds-nsp
+ dosed "s:GENTOO_GAMES_USER:${GAMES_USER_DED}:" /etc/init.d/hlds-nsp
+ dosed "s:hlds-ns:hlds-nsp:" /etc/init.d/hlds-nsp
+ insinto /etc/conf.d ; newins ${FILESDIR}/hlds-ns.conf.d hlds-nsp
+ dosed "s:GENTOO_DIR:${dir}:" /etc/conf.d/hlds-nsp
+
+ local cdir=${GAMES_SYSCONFDIR}/halflife/nsp
+ dodir ${cdir}
+ # this allows users to upgrade w/out losing their previous settings
+ dir=${dir}/nsp
+ for cfg in *.cfg mapcycle.txt motd.txt titles.txt ; do
+ [ -e ${dir}/nsp/${cfg} ] && mv ${cfg}{,.sample}
+ dosym {${dir},${cdir}}/${cfg}
+ done
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ local dir=${GAMES_PREFIX_OPT}/halflife/nsp
+ touch ${dir}/{*.cfg,mapcycle.txt,motd.txt,titles.txt}
+
+ einfo "To start the dedicated server, just run"
+ einfo "/etc/init.d/hlds-nsp start"
+ echo
+ einfo "The server utilizes screen so you can get to"
+ einfo "the console by typing:"
+ einfo " screen -r hlds-nsp"
+ echo
+ einfo "To configure your server, just edit the file:"
+ einfo "${GAMES_PREFIX_OPT}/halflife/nsp/server.cfg"
+}