diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-01-24 17:51:36 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-01-24 17:51:36 +0000 |
commit | 0db0d961d583502312833d562515db47c86dabf7 (patch) | |
tree | 9ac5dd5eee4620669b3b12a21c11694f76eb93c0 /games-fps | |
parent | Initial import. Ebuild by Alexander Nicolaysen Sornes <alex@thehandofagony.c... (diff) | |
download | gentoo-2-0db0d961d583502312833d562515db47c86dabf7.tar.gz gentoo-2-0db0d961d583502312833d562515db47c86dabf7.tar.bz2 gentoo-2-0db0d961d583502312833d562515db47c86dabf7.zip |
Initial import. Ebuild by Alexander Nicolaysen Sornes <alex@thehandofagony.com>. Closing bug #115712.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/rtcwmp-demo/ChangeLog | 11 | ||||
-rw-r--r-- | games-fps/rtcwmp-demo/Manifest | 4 | ||||
-rw-r--r-- | games-fps/rtcwmp-demo/files/digest-rtcwmp-demo-1.1 | 1 | ||||
-rw-r--r-- | games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc | 25 | ||||
-rw-r--r-- | games-fps/rtcwmp-demo/metadata.xml | 8 | ||||
-rw-r--r-- | games-fps/rtcwmp-demo/rtcwmp-demo-1.1.ebuild | 91 |
6 files changed, 140 insertions, 0 deletions
diff --git a/games-fps/rtcwmp-demo/ChangeLog b/games-fps/rtcwmp-demo/ChangeLog new file mode 100644 index 000000000000..39982f8992bf --- /dev/null +++ b/games-fps/rtcwmp-demo/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-fps/rtcwmp-demo +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcwmp-demo/ChangeLog,v 1.1 2006/01/24 17:51:36 wolf31o2 Exp $ + +*rtcwmp-demo-1.1 (24 Jan 2006) + + 24 Jan 2006; Chris Gianelloni <wolf31o2@gentoo.org> + +files/rtcwmp-demo-ded.rc, +metadata.xml, +rtcwmp-demo-1.1.ebuild: + Initial import. Ebuild by Alexander Nicolaysen Sornes + <alex@thehandofagony.com>. Closing bug #115712. + diff --git a/games-fps/rtcwmp-demo/Manifest b/games-fps/rtcwmp-demo/Manifest new file mode 100644 index 000000000000..ce192d2fdb1f --- /dev/null +++ b/games-fps/rtcwmp-demo/Manifest @@ -0,0 +1,4 @@ +MD5 184a873f700ba8c8d299255fd53dad87 files/digest-rtcwmp-demo-1.1 78 +MD5 b373bc49fcf11a7e4e65141ad84bbe43 files/rtcwmp-demo-ded.rc 500 +MD5 58573034ad065cf36d097c6249c8e977 metadata.xml 300 +MD5 618f9a33f754e7e410ac0f35d41b6b4c rtcwmp-demo-1.1.ebuild 2038 diff --git a/games-fps/rtcwmp-demo/files/digest-rtcwmp-demo-1.1 b/games-fps/rtcwmp-demo/files/digest-rtcwmp-demo-1.1 new file mode 100644 index 000000000000..65f1ad1d9275 --- /dev/null +++ b/games-fps/rtcwmp-demo/files/digest-rtcwmp-demo-1.1 @@ -0,0 +1 @@ +MD5 5de42da0c2ea4ef123787ad9fcd06ba5 wolfmpdemo-linux-1.1-MP.x86.run 69650634 diff --git a/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc b/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc new file mode 100644 index 000000000000..6e69c06c400f --- /dev/null +++ b/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc,v 1.1 2006/01/24 17:51:36 wolf31o2 Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting RTCW demo dedicated server..." + screen -A -m -d -S rtcwdemo su - dedicated -c GENTOO_DIR/startrtcwded + eend $? +} + +stop() { + ebegin "Stopping RTCW demo dedicated server..." + kill `screen -list | grep rtcwdemo | awk -F . '{ print $1 }' | sed -e s/.//` + eend $? + +} + +status() { + screen -list | grep rtcwdemoded +} diff --git a/games-fps/rtcwmp-demo/metadata.xml b/games-fps/rtcwmp-demo/metadata.xml new file mode 100644 index 000000000000..bf237e2b6f2e --- /dev/null +++ b/games-fps/rtcwmp-demo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +The sequel to id Software's classic Wolfenstein 3-D. This version of the demo is only for multi-player. +</longdescription> +</pkgmetadata> diff --git a/games-fps/rtcwmp-demo/rtcwmp-demo-1.1.ebuild b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1.ebuild new file mode 100644 index 000000000000..6cdaa5e2827f --- /dev/null +++ b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Header: $ + +inherit eutils games + +MY_P="wolfmpdemo-linux-${PV}-MP.x86.run" + +DESCRIPTION="Return to Castle Wolfenstein - Multi-player demo" +HOMEPAGE="http://games.activision.com/games/wolfenstein/" +SRC_URI="ftp://ftp.idsoftware.com/idstuff/wolf/linux/old/${MY_P} + mirror://3dgamers/returnwolfenstein/${MY_P}" + +LICENSE="RTCW" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="dedicated opengl" +RESTRICT="nostrip nomirror" + +RDEPEND="sys-libs/glibc + dedicated? ( + app-misc/screen ) + !dedicated? ( + virtual/opengl + || ( + ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXau + x11-libs/libXdmcp ) + virtual/x11 ) ) + opengl? ( + virtual/opengl + || ( + ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXau + x11-libs/libXdmcp ) + virtual/x11 ) ) + amd64? ( + app-emulation/emul-linux-x86-xlibs )" + +S=${WORKDIR} + +GAMES_CHECK_LICENSE="yes" +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +src_unpack() { + unpack_makeself ${A} || die "Unpacking files" +} + +src_install() { + insinto "${dir}" + doins -r demomain Docs + + exeinto "${dir}" + doexe bin/x86/*.x86 openurl.sh || die "copying exe" + + games_make_wrapper rtcwmp-demo ./wolf.x86 "${dir}" "${dir}" + + if use dedicated; then + games_make_wrapper rtcwmp-demo-ded ./wolfded.x86 ${dir} + exeinto /etc/init.d + newexe ${FILESDIR}/rtcwmp-demo-ded.rc rtcwmp-demo-ded + dosed "s:GENTOO_DIR:${dir}:" /etc/init.d/rtcwmp-demo-ded + fi + + doins WolfMP.xpm CHANGES QUICKSTART + newicon WolfMP.xpm rtcwmp-demo.xpm + + prepgamesdirs + make_desktop_entry rtcwmp-demo "Return to Castle Wolfenstein (MP demo)" \ + rtcwmp-demo.xpm +} + +pkg_postinst() { + games_pkg_postinst + einfo "Install 'rtcwsp-demo' for single-player" + echo + einfo "Run 'rtcwmp-demo' for multi-player" + if use dedicated; then + echo + einfo "Start a dedicated server with" + einfo "'/etc/init.d/rtcwmp-demo-ded start'" + echo + einfo "Start the server at boot with" + einfo "'rc-update add rtcwmp-demo-ded default'" + fi +} |