diff options
author | Tristan Heaven <tristan@gentoo.org> | 2009-09-03 12:37:39 +0000 |
---|---|---|
committer | Tristan Heaven <tristan@gentoo.org> | 2009-09-03 12:37:39 +0000 |
commit | 9732eb1eec276da1fc3d2180b0300004b7f25f28 (patch) | |
tree | 9e5a54c78bc0782fd46dc36233668a2ee8eac0ae /games-server | |
parent | Small set of fixes, thanks to RB. Closes #277811 (diff) | |
download | historical-9732eb1eec276da1fc3d2180b0300004b7f25f28.tar.gz historical-9732eb1eec276da1fc3d2180b0300004b7f25f28.tar.bz2 historical-9732eb1eec276da1fc3d2180b0300004b7f25f28.zip |
Apply patch to fix remote DOS, bug #239557; new init script, bug #161019
Package-Manager: portage-2.2_rc40/cvs/Linux x86_64
Diffstat (limited to 'games-server')
-rw-r--r-- | games-server/ut2004-ded/ChangeLog | 10 | ||||
-rw-r--r-- | games-server/ut2004-ded/Manifest | 16 | ||||
-rw-r--r-- | games-server/ut2004-ded/files/ut2004-ded.confd | 6 | ||||
-rw-r--r-- | games-server/ut2004-ded/files/ut2004-ded.initd | 23 | ||||
-rw-r--r-- | games-server/ut2004-ded/ut2004-ded-3369.3.ebuild | 84 |
5 files changed, 136 insertions, 3 deletions
diff --git a/games-server/ut2004-ded/ChangeLog b/games-server/ut2004-ded/ChangeLog index 7134874fadbd..3caf582f364e 100644 --- a/games-server/ut2004-ded/ChangeLog +++ b/games-server/ut2004-ded/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-server/ut2004-ded -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ChangeLog,v 1.21 2007/04/28 16:06:50 tove Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ChangeLog,v 1.22 2009/09/03 12:37:38 nyhm Exp $ + +*ut2004-ded-3369.3 (03 Sep 2009) + + 03 Sep 2009; Tristan Heaven <nyhm@gentoo.org> +files/ut2004-ded.confd, + +ut2004-ded-3369.3.ebuild, +files/ut2004-ded.initd: + Apply patch to fix remote DOS, bug #239557; new init script, bug #161019 28 Apr 2007; Torsten Veller <tove@gentoo.org> ut2004-ded-3369.ebuild: Use newinitd diff --git a/games-server/ut2004-ded/Manifest b/games-server/ut2004-ded/Manifest index cb03f1bd80f4..036bf5b0f7ca 100644 --- a/games-server/ut2004-ded/Manifest +++ b/games-server/ut2004-ded/Manifest @@ -1,6 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX ut2004-ded.confd 217 RMD160 85a1e3b46961e22828625b3c79e32a3ae94275be SHA1 4e0327500e6d100ac76846b7b43ec4109a53776d SHA256 c654e7db5b4ed49da22b61113cbd34e514d07dc077277ac5934bdf30126e1f9a +AUX ut2004-ded.initd 603 RMD160 325a5e253af6d3a79245ba2bff95400b94f89aed SHA1 3a07775ff5b313a40afc5d47f31cc05f99c63f52 SHA256 57e05a55fd30bcb0f73dd6a530a9102f5d6f0c959154a865e005f20eeac0782a AUX ut2004-ded.rc 1189 RMD160 60bd5fc61968be5d07e7f35b8dfbf9c6d824b781 SHA1 534dba533d46e1ba632cef4bdde594025ed4ba35 SHA256 6ef5c7b45ddd3a6876e2ccbc1314284115cfae1b56dc6a4e3bd76579783cb64f DIST dedicatedserver3339-bonuspack.zip 914213907 RMD160 e31cdb4f1ecfd31e51b4caea76db4ea7b522a4ca SHA1 e1eda562d99e66a7e5972f05bbf0de8733bf60c9 SHA256 b8fc94fc843483b18c225e100736d10cb2690ba8666d6abbb274ea6ad718b18e DIST ut2004-lnxpatch3369-2.tar.bz2 22465217 RMD160 af632d8cd1f05e36e861eb3fab927ffc8ae3f59d SHA1 a8cc33877a02a0a09c288b5fc248efde282f7bdf SHA256 438b9b13a367d46f23cce12b065382a55afa2fc68add1f1dd3db03b015f60bb3 +DIST ut2004-v3369-3-linux-dedicated.7z 5013927 RMD160 4326acaeca0e40185a5f8321330188fc34ab7920 SHA1 db5cccc4b08e6314f203e8f036adf8421861c501 SHA256 799f00deccb7ee1e3db3963deeb50a41b05a262e6f7363654c4f0438e06d7192 +EBUILD ut2004-ded-3369.3.ebuild 2644 RMD160 e3ea21c5600290881263d2ccb9394fd25a97858e SHA1 b1abb11d52f1f94a0d55eaeec3254671fde8ddee SHA256 943d284dab2d991b3e9d542f0a9585983c169109483961ba7304c6226293e884 EBUILD ut2004-ded-3369.ebuild 2543 RMD160 1823ef358fa4713d670f7cefa070877a62e7fc81 SHA1 9b7e2b417140ac05774dedd0836c4f27f9f64be2 SHA256 998a82624955717ac2f1e69386cf7e0e4cefb8bef4f893284761c1231c337f9f -MISC ChangeLog 3570 RMD160 98f75ab5b27d70ef7f61c5fb15c067c37198a5f1 SHA1 3d907a34ca0e09005d3ce3c5f10dc39705a1e041 SHA256 c258d3a47830ee0fd43d555789d50618a4563d58d165f24a955bbed0e15f64d0 +MISC ChangeLog 3807 RMD160 a088475a9f69a1cd63c7b1273f95d2b12bd56a04 SHA1 e5be323ed033d9468591c24f7d64417eef78f607 SHA256 dee7d32f61bea48f787b47c88f0eedee08f199f5feb543d64101057cf6ef4f9b MISC metadata.xml 550 RMD160 b35b723becaa39dee17032302d479668a37e5ca9 SHA1 b8fd648a442d8b0c4a452bd1956b2983ce3e9bc0 SHA256 183771c406473976c7b2e16fae6309a0af81b9a809a6170d382171c025003617 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEUEARECAAYFAkqfuJgACgkQdz7hIScOURE3AgCeMsQRSNlRFyhtLNAxk+KlsSHj +Or8AmOuJ+niZjTnIFby802WQpA9eGHI= +=xKll +-----END PGP SIGNATURE----- diff --git a/games-server/ut2004-ded/files/ut2004-ded.confd b/games-server/ut2004-ded/files/ut2004-ded.confd new file mode 100644 index 000000000000..5ae995e94ddc --- /dev/null +++ b/games-server/ut2004-ded/files/ut2004-ded.confd @@ -0,0 +1,6 @@ +# User and group the server should run as +UT2004_DED_USER="@USER@" +UT2004_DED_GROUP="@GROUP@" + +# Any extra options you want to pass to the server +UT2004_DED_OPTS="DM-Deck17 -nohomedir -ini=Default.ini -log=/dev/null" diff --git a/games-server/ut2004-ded/files/ut2004-ded.initd b/games-server/ut2004-ded/files/ut2004-ded.initd new file mode 100644 index 000000000000..c7c08fa0d1fb --- /dev/null +++ b/games-server/ut2004-ded/files/ut2004-ded.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/files/ut2004-ded.initd,v 1.1 2009/09/03 12:37:39 nyhm Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting ut2004-ded" + start-stop-daemon --start --quiet --background \ + --chuid ${UT2004_DED_USER}:${UT2004_DED_GROUP} \ + --chdir "@DIR@" --exec "@DIR@/ucc-bin" -- \ + server ${UT2004_DED_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ut2004-ded" + start-stop-daemon --stop --quiet --exec "@DIR@/ucc-bin" + eend $? +} diff --git a/games-server/ut2004-ded/ut2004-ded-3369.3.ebuild b/games-server/ut2004-ded/ut2004-ded-3369.3.ebuild new file mode 100644 index 000000000000..d9325f0930c0 --- /dev/null +++ b/games-server/ut2004-ded/ut2004-ded-3369.3.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ut2004-ded-3369.3.ebuild,v 1.1 2009/09/03 12:37:38 nyhm Exp $ + +inherit games + +BONUSPACK_P="dedicatedserver3339-bonuspack.zip" +PATCH_P="ut2004-lnxpatch${PV%.*}-2.tar.bz2" +DESCRIPTION="Unreal Tournament 2004 Linux Dedicated Server" +HOMEPAGE="http://www.unrealtournament.com/" +SRC_URI="mirror://3dgamers/unrealtourn2k4/${BONUSPACK_P} + http://downloads.unrealadmin.org/UT2004/Patches/Linux/${BONUSPACK_P} + http://sonic-lux.net/data/mirror/ut2004/${BONUSPACK_P} + mirror://3dgamers/unrealtourn2k4/${PATCH_P} + http://downloads.unrealadmin.org/UT2004/Server/${PATCH_P} + http://sonic-lux.net/data/mirror/ut2004/${PATCH_P} + mirror://gentoo/ut2004-v${PV/./-}-linux-dedicated.7z" + +LICENSE="ut2003" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="mirror strip" +PROPERTIES="interactive" + +DEPEND="app-arch/unzip + app-arch/p7zip" +RDEPEND="sys-libs/glibc" + +S=${WORKDIR} + +GAMES_CHECK_LICENSE="yes" +dir=${GAMES_PREFIX_OPT}/${PN} + +src_unpack() { + unpack ${A} + cp -rf UT2004-Patch/* . || die + rm -rf System/{ucc-bin*,ut2004-bin*,*.dll,*.exe} UT2004-Patch + if use amd64 ; then + mv -f ut2004-ucc-bin-09192008/ucc-bin-linux-amd64 System/ucc-bin || die + else + mv -f ut2004-ucc-bin-09192008/ucc-bin System/ || die + fi + rm -rf ut2004-ucc-bin-09192008 +} + +src_install() { + einfo "This will take a while... go get a pizza or something" + + insinto "${dir}" + doins -r * || die "doins failed" + fperms +x "${dir}"/System/ucc-bin || die "fperms failed" + + sed \ + -e "s:@USER@:${GAMES_USER_DED}:" \ + -e "s:@GROUP@:${GAMES_GROUP}:" \ + "${FILESDIR}"/${PN}.confd > "${T}"/${PN}.confd \ + || die "sed confd failed" + newconfd "${T}"/${PN}.confd ${PN} || die "newconfd failed" + + sed \ + -e "s:@DIR@:${dir}/System:g" \ + "${FILESDIR}"/${PN}.initd > "${T}"/${PN}.initd \ + || die "sed initd failed" + newinitd "${T}"/${PN}.initd ${PN} || die "initd failed" + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "The server can be started using the /etc/init.d/ut2004-ded script." + ewarn "You should take the time to edit the default server INI." + ewarn "Consult the INI Reference at http://unrealadmin.org/" + ewarn "for assistance in adjusting the following file:" + ewarn "${dir}/System/Default.ini" + ewarn + ewarn "To have your server authenticate properly to the" + ewarn "central server, you MUST visit the following site" + ewarn "and request a key. This is not required if you" + ewarn "want an unfindable private server. [DoUplink=False]" + ewarn + ewarn "http://unreal.epicgames.com/ut2004server/cdkey.php" +} |