summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2003-10-03 22:35:21 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2003-10-03 22:35:21 +0000
commitdbc3eac64a9f06cd3f5c4acf3b4ab02c68bf78c2 (patch)
treec27ae8256871724044a6da53a307b91fbcf1e6cd /games-fps/rtcw
parentAdding check_license (missed it earlier). (diff)
downloadgentoo-2-dbc3eac64a9f06cd3f5c4acf3b4ab02c68bf78c2.tar.gz
gentoo-2-dbc3eac64a9f06cd3f5c4acf3b4ab02c68bf78c2.tar.bz2
gentoo-2-dbc3eac64a9f06cd3f5c4acf3b4ab02c68bf78c2.zip
Adding check_license (missed it earlier).
Diffstat (limited to 'games-fps/rtcw')
-rw-r--r--games-fps/rtcw/ChangeLog33
-rw-r--r--games-fps/rtcw/Manifest8
-rw-r--r--games-fps/rtcw/files/digest-rtcw-1.412
-rw-r--r--games-fps/rtcw/files/wolf3
-rw-r--r--games-fps/rtcw/files/wolf-ded3
-rw-r--r--games-fps/rtcw/files/wolf-ded.rc25
-rw-r--r--games-fps/rtcw/metadata.xml12
-rw-r--r--games-fps/rtcw/rtcw-1.41.ebuild81
8 files changed, 163 insertions, 4 deletions
diff --git a/games-fps/rtcw/ChangeLog b/games-fps/rtcw/ChangeLog
new file mode 100644
index 000000000000..f037b7f35251
--- /dev/null
+++ b/games-fps/rtcw/ChangeLog
@@ -0,0 +1,33 @@
+# ChangeLog for games-fps/rtcw
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcw/ChangeLog,v 1.4 2003/10/03 22:35:17 wolf31o2 Exp $
+
+*rtcw-1.41 (03 Oct 2003)
+
+ 03 Oct 2003; Chris Gianelloni <wolf31o2@gentoo.org> metadata.xml,
+ rtcw-1.41.ebuild, files/wolf, files/wolf-ded, files/wolf-ded.rc:
+ Adding check_license (missed it earlier).
+
+ 03 Oct 2003; Chris Gianelloni <wolf31o2@gentoo.org> files/wolf,
+ files/wolf-ded, files/wolf-ded.rc:
+ Add back into portage. Add check_license function.
+
+ 06 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> rtcw-1.41.ebuild:
+ Making sure icon pixmap is put in /usr/share/pixmaps for the .desktop entry
+
+ 05 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> rtcw-1.41.ebuild:
+ Fixed my bad spelling
+
+ 16 Jul 2003; Chris Gianelloni <wolf31o2@gentoo.org> rtcw-1.41.ebuild,
+ files/wolf-ded, files/wolf-ded.rc, files/wolfded, files/wolfded.rc,
+ files/wolfmp, files/wolfsp:
+ Add support for unpack_makeself, USE=dedicated, Gnome/KDE .desktop entries,
+ and rename dedicated files to match dedicated scheme
+
+*rtcw-1.41 (07 Jul 2003)
+
+ 07 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by
+ Chris Gianelloni <wolf31o2@hotmail.com>
+ Frederic Mangeant <frederic.mangeant@free.fr>
+ #22151 #22626.
diff --git a/games-fps/rtcw/Manifest b/games-fps/rtcw/Manifest
index 22757815d1c4..421b67a5a7e0 100644
--- a/games-fps/rtcw/Manifest
+++ b/games-fps/rtcw/Manifest
@@ -1,7 +1,7 @@
+MD5 3df4dfda25e422940f39b6ffb20cc535 rtcw-1.41.ebuild 2361
+MD5 5f2875dd04920c69fe1d76d09649230c ChangeLog 1354
+MD5 1a77de647b19faf58f4561b4b22e675d metadata.xml 1053
MD5 3d58eca1ff127b6845b7aa8c1ec0f0bc files/wolf 43
MD5 1dd73682e5f57e52fdb60c26854ba13e files/digest-rtcw-1.41 150
-MD5 d2128feebbed40cc7084075af421e241 files/wolf-ded.rc 581
+MD5 25b7486541e3311209ee1f10511aac37 files/wolf-ded.rc 583
MD5 4a1d56772b4785b78b72797a2aa67167 files/wolf-ded 46
-MD5 ca2393719b8688e04899382660b61aa5 rtcw-1.41.ebuild 2299
-MD5 003ec3249c28329ad2edaa07f90e9271 ChangeLog 988
-MD5 1a77de647b19faf58f4561b4b22e675d metadata.xml 1053
diff --git a/games-fps/rtcw/files/digest-rtcw-1.41 b/games-fps/rtcw/files/digest-rtcw-1.41
new file mode 100644
index 000000000000..c47e06895b3e
--- /dev/null
+++ b/games-fps/rtcw/files/digest-rtcw-1.41
@@ -0,0 +1,2 @@
+MD5 87c3ebf106b107b60b472863aeec20c4 wolf-linux-1.4-full.x86.run 73536309
+MD5 df2997a5bbf66ee5a6c552f9624f6770 wolf-linux-update-1.41.x86.run 5015509
diff --git a/games-fps/rtcw/files/wolf b/games-fps/rtcw/files/wolf
new file mode 100644
index 000000000000..4022f75261f4
--- /dev/null
+++ b/games-fps/rtcw/files/wolf
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_DIR
+exec ./wolf.x86 $*
diff --git a/games-fps/rtcw/files/wolf-ded b/games-fps/rtcw/files/wolf-ded
new file mode 100644
index 000000000000..fafa1c464703
--- /dev/null
+++ b/games-fps/rtcw/files/wolf-ded
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_DIR
+exec ./wolfded.x86 $*
diff --git a/games-fps/rtcw/files/wolf-ded.rc b/games-fps/rtcw/files/wolf-ded.rc
new file mode 100644
index 000000000000..67157bfc4030
--- /dev/null
+++ b/games-fps/rtcw/files/wolf-ded.rc
@@ -0,0 +1,25 @@
+#!/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-fps/rtcw/files/wolf-ded.rc,v 1.3 2003/10/03 22:35:17 wolf31o2 Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting RTCW dedicated server..."
+ screen -A -m -d -S rtcw su - dedicated -c GENTOO_DIR/startwolfded
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping RTCW dedicated server..."
+ kill `screen -list | grep rtcw | awk -F . '{ print $1 }' | sed -e s/.//`
+ eend $?
+
+}
+
+status() {
+ screen -list | grep rtcwded
+}
diff --git a/games-fps/rtcw/metadata.xml b/games-fps/rtcw/metadata.xml
new file mode 100644
index 000000000000..40060ace7726
--- /dev/null
+++ b/games-fps/rtcw/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+ <email>wolf31o2@gentoo.org</email>
+ <name>Chris Gianelloni</name>
+</maintainer>
+<longdescription>
+Return to Castle Wolfenstein is a first-person 3-D shooter based loosely on the original Wolfenstein series by id software. The game takes place in Europe during World War II. In the single player game, you play as a US military special operative sent behind enemy lines to stop the Nazi studies into the supernatural and the occult. The multi-player game is a team-based, goal-oriented series of missions and allows you to play as either the Axis or the Allies. There are several classes of characters you can play, each with their own special abilities and weapon choices. The port to Linux was done by TTimo of id software and is an unsupported binary release. This game is commercial software and requires data from the retail Windows version to play.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/rtcw/rtcw-1.41.ebuild b/games-fps/rtcw/rtcw-1.41.ebuild
new file mode 100644
index 000000000000..adeea812c43c
--- /dev/null
+++ b/games-fps/rtcw/rtcw-1.41.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+
+inherit games
+
+DESCRIPTION="Return to Castle Wolfenstein - Long awaited sequel to Wolfenstein 3D"
+SRC_URI="ftp://ftp.idsoftware.com/idstuff/wolf/linux/wolf-linux-1.4-full.x86.run
+ ftp://3dgamers.in-span.net/pub/3dgamers3/games/returnwolfenstein/wolf-linux-1.4-full.x86.run
+ ftp://ftp.idsoftware.com/idstuff/wolf/linux/wolf-linux-update-${PV}.x86.run
+ ftp://3dgamers.in-span.net/pub/3dgamers3/games/returnwolfenstein/wolf-linux-update-${PV}.x86.run"
+
+HOMEPAGE="http://games.activision.com/games/wolfenstein/"
+
+LICENSE="RTCW"
+SLOT="0"
+KEYWORDS="x86"
+RESTRICT="nostrip"
+IUSE="opengl dedicated"
+
+DEPEND="virtual/glibc"
+RDEPEND="dedicated? ( app-misc/screen )
+ !dedicated? ( virtual/opengl )
+ opengl? ( virtual/opengl )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ check_license || die "License check failed"
+}
+
+src_unpack() {
+ unpack_makeself wolf-linux-1.4-full.x86.run
+ unpack_makeself wolf-linux-update-${PV}.x86.run
+# tail +179 ${DISTDIR}/wolf-linux-1.4-full.x86.run | gzip -cd | tar xf - || die "full"
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ dodir ${dir}
+
+ cp -r main Docs pb ${D}/${dir}/
+
+ exeinto ${dir}
+ doexe bin/x86/*.x86 ${FILESDIR}/wolf-ded openurl.sh
+ dosed "s:GENTOO_DIR:${dir}:" ${dir}/wolf-ded
+ dogamesbin ${FILESDIR}/wolf ${FILESDIR}/wolf-ded
+ dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/wolf
+ dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/wolf-ded
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/wolf-ded.rc wolf-ded
+ dosed "s:GENTOO_DIR:${dir}:" /etc/init.d/wolf-ded
+
+ insinto ${dir}
+ doins WolfMP.xpm WolfSP.xpm INSTALL QUICKSTART CHANGES RTCW-README-1.4.txt
+ insinto /usr/share/pixmaps
+ doins WolfMP.xpm
+
+ prepgamesdirs
+ make_desktop_entry wolf "RtCW" WolfMP.xpm
+}
+
+pkg_postinst() {
+ einfo "You need to copy pak0.pk3, mp_pak0.pk3, mp_pak1.pk3, mp_pak2.pk3,"
+ einfo "sp_pak1.pk3 and sp_pak2.pk3 from a Window installation into ${dir}/main/"
+ echo
+ einfo "To play the game run:"
+ einfo " wolf"
+ if [ "`use dedicated`" ];
+ then
+ echo
+ einfo "To start a dedicated server run:"
+ einfo " /etc/init.d/wolf-ded start"
+ echo
+ einfo "To run the dedicated server at boot, type:"
+ einfo " rc-update add wolf-ded default"
+ echo
+ einfo "The dedicated server is started under the ${GAMES_USER_DED} user account"
+ fi
+ games_pkg_postinst
+}