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-server | |
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-server')
11 files changed, 347 insertions, 0 deletions
diff --git a/games-server/halflife-server/ChangeLog b/games-server/halflife-server/ChangeLog new file mode 100644 index 000000000000..a01c33bcc763 --- /dev/null +++ b/games-server/halflife-server/ChangeLog @@ -0,0 +1,31 @@ +# ChangeLog for app-games/halflife-server +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# Author: Alexander Gretencord <arutha@gmx.de> +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/ChangeLog,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +*halflife-server-3.1.1.1d (10 Jul 2003) + + 30 Jul 2003; Mike Frysinger <vapier@gentoo.org> : + Version bump ... and i think this one likes new glibc :) + +*halflife-server-3.1.1.1.1c (10 Jul 2003) + + 10 Jul 2003; Mike Frysinger <vapier@gentoo.org> : + I like patches, dont you ? + +*halflife-server-3.1.1.1 (08 Jul 2003) + + 08 Jul 2003; Mike Frysinger <vapier@gentoo.org> : + Ah, about time this guy was updated. Only took mmmmmmmm a year ... + +*halflife-server-1.1.1.0 (25 July 2002) + + 25 July 2002; Seemant Kulleen <seemant@gentoo.org> + halflife-server-1.1.1.0.ebuild : + Added LICENSE and also put RESTRICT="nostrip" and export DEBUG=yes so that + it compiles and _runs_ + +*halflife-server-1.1.1.0 (5 July 2002) + + 05 Jul 2002; Bart Verwilst <verwilst@gentoo.org> : + Initial ebuild diff --git a/games-server/halflife-server/Manifest b/games-server/halflife-server/Manifest new file mode 100644 index 000000000000..04f438c37579 --- /dev/null +++ b/games-server/halflife-server/Manifest @@ -0,0 +1,10 @@ +MD5 46c849fb0d6c28378fa45a885809634e ChangeLog 1063 +MD5 e3450c612c3b4c1fc74f459a7ab6fb27 halflife-server-3.1.1.1d.ebuild 2842 +MD5 b3225560bc5d00b932b3a2b71829181f halflife-server-3.1.1.1.ebuild 2635 +MD5 24f59d98e93c91c0f7ed20f7924db21d halflife-server-3.1.1.0.ebuild 2557 +MD5 44f3ab1b21f0c77083d95b7797622c4d files/hlds 45 +MD5 b84bb710f763eb38824f577fb34be5d1 files/hlds.conf.d 409 +MD5 addce9f2892d449fe6b31b71f0e82f5e files/hlds.rc 751 +MD5 2f3ed54e0214379756815ec6e47c7660 files/digest-halflife-server-3.1.1.1d 140 +MD5 33aa6e9a8329c0496b14c7fe325bd710 files/digest-halflife-server-3.1.1.1 68 +MD5 78ca89528f5a1368fc86d219d211603b files/digest-halflife-server-3.1.1.0 68 diff --git a/games-server/halflife-server/files/digest-halflife-server-3.1.1.0 b/games-server/halflife-server/files/digest-halflife-server-3.1.1.0 new file mode 100644 index 000000000000..37fcdefba356 --- /dev/null +++ b/games-server/halflife-server/files/digest-halflife-server-3.1.1.0 @@ -0,0 +1 @@ +MD5 4bf86966424dedc686cdf63c72c1913d hlds_l_3110_full.bin 120884265 diff --git a/games-server/halflife-server/files/digest-halflife-server-3.1.1.1 b/games-server/halflife-server/files/digest-halflife-server-3.1.1.1 new file mode 100644 index 000000000000..050a05100457 --- /dev/null +++ b/games-server/halflife-server/files/digest-halflife-server-3.1.1.1 @@ -0,0 +1 @@ +MD5 d9c9cb32a55a814ae6fd6e36568ea9c8 hlds_l_3111_full.bin 121936616 diff --git a/games-server/halflife-server/files/digest-halflife-server-3.1.1.1d b/games-server/halflife-server/files/digest-halflife-server-3.1.1.1d new file mode 100644 index 000000000000..07488d2b293b --- /dev/null +++ b/games-server/halflife-server/files/digest-halflife-server-3.1.1.1d @@ -0,0 +1,2 @@ +MD5 d9c9cb32a55a814ae6fd6e36568ea9c8 hlds_l_3111_full.bin 121936616 +MD5 fb45a812d4940b1603d894a25b961ec8 hlds_l_3111d_update.tar.gz 3587195 diff --git a/games-server/halflife-server/files/hlds b/games-server/halflife-server/files/hlds new file mode 100644 index 000000000000..7870602e72e9 --- /dev/null +++ b/games-server/halflife-server/files/hlds @@ -0,0 +1,3 @@ +#!/bin/sh +cd GENTOO_DIR +exec ./hlds_run ${@} diff --git a/games-server/halflife-server/files/hlds.conf.d b/games-server/halflife-server/files/hlds.conf.d new file mode 100644 index 000000000000..1964df4403e0 --- /dev/null +++ b/games-server/halflife-server/files/hlds.conf.d @@ -0,0 +1,9 @@ +# 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-server/files/hlds.conf.d,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +# to find out more options, read these 2 files: +# GENTOO_DIR/readme.txt +# GENTOO_DIR/linuxreadme.txt + +HLDS_OPTS="+sv_lan 1 -nomaster -insecure +maxplayers 16 +map crossfire" diff --git a/games-server/halflife-server/files/hlds.rc b/games-server/halflife-server/files/hlds.rc new file mode 100644 index 000000000000..99cfc8e770d6 --- /dev/null +++ b/games-server/halflife-server/files/hlds.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-server/files/hlds.rc,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting halflife dedicated..." + screen -A -m -d -S hlds su - GENTOO_GAMES_USER -c "GENTOO_DIR/hlds ${HLDS_OPTS}" & + eend $? +} + +stop() { + ebegin "Stopping halflife dedicated..." + local ppid=`screen -list | grep hlds | 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" + fi +} diff --git a/games-server/halflife-server/halflife-server-3.1.1.0.ebuild b/games-server/halflife-server/halflife-server-3.1.1.0.ebuild new file mode 100644 index 000000000000..56fc57778da1 --- /dev/null +++ b/games-server/halflife-server/halflife-server-3.1.1.0.ebuild @@ -0,0 +1,85 @@ +# 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-server/halflife-server-3.1.1.0.ebuild,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +inherit games + +MY_PN=hlds_l_3110_full +DESCRIPTION="Halflife Linux Server" +SRC_URI="gentoo://mirror/${MY_PN}.bin" +HOMEPAGE="http://www.valve.com/" + +LICENSE="ValveServer" +SLOT="0" +KEYWORDS="x86" +RESTRICT="nostrip" # fetch + +DEPEND="sys-apps/util-linux" +RDEPEND="dedicated? ( app-misc/screen )" + +S=${WORKDIR}/hlds_l + +#pkg_nofetch() { +# einfo "Please goto fileplanet and d/l ${MY_BIN}" +# einfo "http://www.fileplanet.com/files/50000/58368.shtml" +#} + +src_unpack() { + local metastart=`tail -c 8 ${DISTDIR}/${MY_PN}.bin | head -c 4 | hexdump -e \"%i\"` + local newsize=$(expr $(ls -al ${DISTDIR}/${MY_PN}.bin | awk '{print $5}') - $metastart) + tail -c ${newsize} ${DISTDIR}/${MY_PN}.bin > ${MY_PN}.bin + echo ">>> Unpacking ${MY_PN}.bin to ${S}" + tar -zxf ${MY_PN}.bin + rm ${MY_PN}.bin +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/halflife + dodir ${dir} + + mv ${S}/* ${D}/${dir}/ || die + dodir ${dir}/valve/logs + + dogamesbin ${FILESDIR}/hlds + dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/hlds + + exeinto /etc/init.d ; newexe ${FILESDIR}/hlds.rc hlds + dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/hlds + dosed "s:GENTOO_GAMES_USER:${GAMES_USER_DED}:" /etc/init.d/hlds + insinto /etc/conf.d ; newins ${FILESDIR}/hlds.conf.d hlds + dosed "s:GENTOO_DIR:${dir}:" /etc/conf.d/hlds + + local cdir=${GAMES_SYSCONFDIR}/halflife + dodir ${cdir} + # this allows users to upgrade w/out losing their previous settings + [ -e ${dir}/hltv.cfg ] && mv ${D}/${dir}/hltv.cfg{,.sample} + dosym {${dir},${cdir}}/hltv.cfg + for mod in tfc valve dmc ricochet ; do + dodir ${cdir}/${mod} + for cfg in server.cfg liblist.gam mapcycle.txt motd.txt ; do + [ -e ${dir}/${mod}/${cfg} ] && [ -e ${D}/${dir}/${mod}/${cfg} ] && \ + mv ${D}/${dir}/${mod}/${cfg}{,.sample} + dosym {${dir},${cdir}}/${mod}/${cfg} + done + done + + prepgamesdirs +} + +pkg_postinst() { + local dir=${GAMES_PREFIX_OPT}/halflife + touch ${dir}/hltv.cfg + touch ${dir}/{dmc,ricochet,tfc,valve}/{server.cfg,liblist.gam,mapcycle.txt,motd.txt} + + einfo "To start the dedicated server, just run" + einfo "/etc/init.d/hlds start" + echo + einfo "The server utilizes screen so you can get to" + einfo "the console by typing:" + einfo " screen -r hlds" + echo + einfo "To configure your server, just edit the file:" + einfo "${GAMES_PREFIX_OPT}/halflife/valve/server.cfg" + + games_pkg_postinst +} diff --git a/games-server/halflife-server/halflife-server-3.1.1.1.ebuild b/games-server/halflife-server/halflife-server-3.1.1.1.ebuild new file mode 100644 index 000000000000..fa66badba44b --- /dev/null +++ b/games-server/halflife-server/halflife-server-3.1.1.1.ebuild @@ -0,0 +1,86 @@ +# 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-server/halflife-server-3.1.1.1.ebuild,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +inherit games + +MY_PN=hlds_l_3111_full +DESCRIPTION="Halflife Linux Server" +SRC_URI="${MY_PN}.bin" +HOMEPAGE="http://www.valve.com/ http://www.fileplanet.com/files/50000/58368.shtml" + +LICENSE="ValveServer" +SLOT="0" +KEYWORDS="-* ~x86" +RESTRICT="nostrip fetch" + +DEPEND="sys-apps/util-linux" +RDEPEND="dedicated? ( app-misc/screen )" + +S=${WORKDIR}/hlds_l + +pkg_nofetch() { + einfo "Please goto fileplanet and d/l ${MY_BIN}" + einfo "http://www.fileplanet.com/files/50000/58368.shtml" +} + +src_unpack() { + local metastart=`tail -c 8 ${DISTDIR}/${MY_PN}.bin | head -c 4 | hexdump -e \"%i\"` + local newsize=$(expr $(ls -al ${DISTDIR}/${MY_PN}.bin | awk '{print $5}') - $metastart) + tail -c ${newsize} ${DISTDIR}/${MY_PN}.bin > ${MY_PN}.bin + tar -xf ${MY_PN}.bin + echo ">>> Unpacking ${MY_PN}.tar.gz to ${S}" + tar -zxf ${MY_PN}.tar.gz + unpack hlds_l_3111d_update.tar.gz +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/halflife + dodir ${dir} + + mv ${S}/* ${D}/${dir}/ || die + dodir ${dir}/valve/logs + + dogamesbin ${FILESDIR}/hlds + dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/hlds + + exeinto /etc/init.d ; newexe ${FILESDIR}/hlds.rc hlds + dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/hlds + dosed "s:GENTOO_GAMES_USER:${GAMES_USER_DED}:" /etc/init.d/hlds + insinto /etc/conf.d ; newins ${FILESDIR}/hlds.conf.d hlds + dosed "s:GENTOO_DIR:${dir}:" /etc/conf.d/hlds + + local cdir=${GAMES_SYSCONFDIR}/halflife + dodir ${cdir} + # this allows users to upgrade w/out losing their previous settings + [ -e ${dir}/hltv.cfg ] && mv ${D}/${dir}/hltv.cfg{,.sample} + dosym {${dir},${cdir}}/hltv.cfg + for mod in tfc valve dmc ricochet ; do + dodir ${cdir}/${mod} + for cfg in server.cfg liblist.gam mapcycle.txt motd.txt ; do + [ -e ${dir}/${mod}/${cfg} ] && [ -e ${D}/${dir}/${mod}/${cfg} ] && \ + mv ${D}/${dir}/${mod}/${cfg}{,.sample} + dosym {${dir},${cdir}}/${mod}/${cfg} + done + done + + prepgamesdirs +} + +pkg_postinst() { + local dir=${GAMES_PREFIX_OPT}/halflife + touch ${dir}/hltv.cfg + touch ${dir}/{dmc,ricochet,tfc,valve}/{server.cfg,liblist.gam,mapcycle.txt,motd.txt} + + einfo "To start the dedicated server, just run" + einfo "/etc/init.d/hlds start" + echo + einfo "The server utilizes screen so you can get to" + einfo "the console by typing:" + einfo " screen -r hlds" + echo + einfo "To configure your server, just edit the file:" + einfo "${GAMES_PREFIX_OPT}/halflife/valve/server.cfg" + + games_pkg_postinst +} diff --git a/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild b/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild new file mode 100644 index 000000000000..1a37852e7189 --- /dev/null +++ b/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild @@ -0,0 +1,93 @@ +# 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-server/halflife-server-3.1.1.1d.ebuild,v 1.1 2003/09/10 05:51:11 vapier Exp $ + +inherit games + +MY_PN=hlds_l_3111_full +DESCRIPTION="Halflife Linux Server" +SRC_URI="${MY_PN}.bin + hlds_l_3111d_update.tar.gz" +HOMEPAGE="http://www.valve.com/ http://www.fileplanet.com/files/50000/58368.shtml" + +LICENSE="ValveServer" +SLOT="0" +KEYWORDS="-* ~x86" +RESTRICT="nostrip fetch" + +DEPEND="sys-apps/util-linux" +RDEPEND="dedicated? ( app-misc/screen )" + +S=${WORKDIR}/hlds_l + +pkg_nofetch() { + einfo "Please goto fileplanet and d/l ${MY_BIN}" + einfo "http://www.fileplanet.com/files/50000/58368.shtml" + echo + einfo "And then download hlds_l_3111d_update.tar.gz" + einfo "server: ftp.valvesoftware.com" + einfo "user: hlserver" + einfo "password: hlserver" + einfo "directory: Linux/" +} + +src_unpack() { + local metastart=`tail -c 8 ${DISTDIR}/${MY_PN}.bin | head -c 4 | hexdump -e \"%i\"` + local newsize=$(expr $(ls -al ${DISTDIR}/${MY_PN}.bin | awk '{print $5}') - $metastart) + tail -c ${newsize} ${DISTDIR}/${MY_PN}.bin > ${MY_PN}.bin + tar -xf ${MY_PN}.bin + echo ">>> Unpacking ${MY_PN}.tar.gz to ${S}" + tar -zxf ${MY_PN}.tar.gz + unpack hlds_l_3111d_update.tar.gz +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/halflife + dodir ${dir} + + mv ${S}/* ${D}/${dir}/ || die + dodir ${dir}/valve/logs + + dogamesbin ${FILESDIR}/hlds + dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/hlds + + exeinto /etc/init.d ; newexe ${FILESDIR}/hlds.rc hlds + dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/hlds + dosed "s:GENTOO_GAMES_USER:${GAMES_USER_DED}:" /etc/init.d/hlds + insinto /etc/conf.d ; newins ${FILESDIR}/hlds.conf.d hlds + dosed "s:GENTOO_DIR:${dir}:" /etc/conf.d/hlds + + local cdir=${GAMES_SYSCONFDIR}/halflife + dodir ${cdir} + # this allows users to upgrade w/out losing their previous settings + [ -e ${dir}/hltv.cfg ] && mv ${D}/${dir}/hltv.cfg{,.sample} + dosym {${dir},${cdir}}/hltv.cfg + for mod in tfc valve dmc ricochet ; do + dodir ${cdir}/${mod} + for cfg in server.cfg liblist.gam mapcycle.txt motd.txt ; do + [ -e ${dir}/${mod}/${cfg} ] && [ -e ${D}/${dir}/${mod}/${cfg} ] && \ + mv ${D}/${dir}/${mod}/${cfg}{,.sample} + dosym {${dir},${cdir}}/${mod}/${cfg} + done + done + + prepgamesdirs +} + +pkg_postinst() { + local dir=${GAMES_PREFIX_OPT}/halflife + touch ${dir}/hltv.cfg + touch ${dir}/{dmc,ricochet,tfc,valve}/{server.cfg,liblist.gam,mapcycle.txt,motd.txt} + + einfo "To start the dedicated server, just run" + einfo "/etc/init.d/hlds start" + echo + einfo "The server utilizes screen so you can get to" + einfo "the console by typing:" + einfo " screen -r hlds" + echo + einfo "To configure your server, just edit the file:" + einfo "${GAMES_PREFIX_OPT}/halflife/valve/server.cfg" + + games_pkg_postinst +} |