diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-04-16 17:47:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-04-16 17:47:58 +0000 |
commit | 1ca4589ae2ef77014e53dd96dfd4c50b60d2f7c8 (patch) | |
tree | d6064dbb0299d68ae765bd40ff86d093a5008b2f /games-server | |
parent | Pulling obsolete (and buggy) package (Manifest recommit) (diff) | |
download | gentoo-2-1ca4589ae2ef77014e53dd96dfd4c50b60d2f7c8.tar.gz gentoo-2-1ca4589ae2ef77014e53dd96dfd4c50b60d2f7c8.tar.bz2 gentoo-2-1ca4589ae2ef77014e53dd96dfd4c50b60d2f7c8.zip |
ver bump #46535
Diffstat (limited to 'games-server')
-rw-r--r-- | games-server/halflife-ns/ChangeLog | 7 | ||||
-rw-r--r-- | games-server/halflife-ns/files/digest-halflife-ns-2.01 | 2 | ||||
-rw-r--r-- | games-server/halflife-ns/halflife-ns-2.01.ebuild | 75 |
3 files changed, 83 insertions, 1 deletions
diff --git a/games-server/halflife-ns/ChangeLog b/games-server/halflife-ns/ChangeLog index f76eed076b8d..61ecad59d4da 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.2 2003/09/10 15:48:55 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-ns/ChangeLog,v 1.3 2004/04/16 17:47:34 vapier Exp $ + +*halflife-ns-2.01 (16 Aug 2004) + + 16 Aug 2004; Mike Frysinger <vapier@gentoo.org> : + Version bump #46535 by Daniel Fullmer. *halflife-ns-2.0 (03 Aug 2003) diff --git a/games-server/halflife-ns/files/digest-halflife-ns-2.01 b/games-server/halflife-ns/files/digest-halflife-ns-2.01 new file mode 100644 index 000000000000..ebf223caa4d8 --- /dev/null +++ b/games-server/halflife-ns/files/digest-halflife-ns-2.01 @@ -0,0 +1,2 @@ +MD5 6fd11703656924ad50b69505cd027197 ns_v2_dedicated_server.zip 91860927 +MD5 7d09893844b8fef158401acb3c778a27 ns-v201.zip 1690991 diff --git a/games-server/halflife-ns/halflife-ns-2.01.ebuild b/games-server/halflife-ns/halflife-ns-2.01.ebuild new file mode 100644 index 000000000000..e463d80386cf --- /dev/null +++ b/games-server/halflife-ns/halflife-ns-2.01.ebuild @@ -0,0 +1,75 @@ +# 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-2.01.ebuild,v 1.1 2004/04/16 17:47:58 vapier Exp $ + +inherit games eutils + +BASE=ns_v2_dedicated_server.zip +PATCH=ns-v201.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} + http://files.redphive.org/ns/${PATCH}" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="-* x86" +IUSE="dedicated" + +RDEPEND="games-server/halflife-server + dedicated? ( app-misc/screen )" + +S=${WORKDIR}/ns + +src_unpack() { + unpack ${BASE} + cd ${S} + unpack ${PATCH} + 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" +} |