summaryrefslogtreecommitdiff
path: root/games-fps/rtcwmp-demo
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps/rtcwmp-demo')
-rw-r--r--games-fps/rtcwmp-demo/Manifest7
-rw-r--r--games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc24
-rw-r--r--games-fps/rtcwmp-demo/metadata.xml11
-rw-r--r--games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r1.ebuild73
-rw-r--r--games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r2.ebuild69
5 files changed, 184 insertions, 0 deletions
diff --git a/games-fps/rtcwmp-demo/Manifest b/games-fps/rtcwmp-demo/Manifest
new file mode 100644
index 000000000000..46924108bc59
--- /dev/null
+++ b/games-fps/rtcwmp-demo/Manifest
@@ -0,0 +1,7 @@
+AUX rtcwmp-demo-ded.rc 488 SHA256 38e0b1bef0c3209a15b447555fdc1fc8a7e183fcbaed4606edfb45237ba1fa26 SHA512 e05da90a615a505fc921caf080e32895dcfd828ca584cbd9bdab3e927eb174c3c9c6cfbed3a5fe0bc3b93851eb2085b1dfc49073ce1858c7954ad1a0c8fa456a WHIRLPOOL 34b996534fdb5a6f5a03b532d9d15fceba388b847d001fb4c4100489361910d87fba40b7085dd8f120875bfe12ffb13945f55b1c223f032787eab0af1e6da47a
+DIST wolfmpdemo-linux-1.1-MP.x86.run 69650634 SHA256 44638cf2d98db4ac583aa4878645e171a7c4b462b44961629aeb8d8d78188da8 SHA512 2e497ca8cb0552dfbc90bfd10544b44f0dca2b7dc74ad6428041fd9885926a03cfdae72d6e5ccbd61b0d0c5b051355c567a9101746838110ebeb0f3fdcaf3ad5 WHIRLPOOL 6087920c0d63f5060292adcb575fafb1113b82e9e8e1a557cf740c649dad7b54ae4fae44ce698ccdcfafa4749964ad174cd3731634235fa0f27ece375a67a5ca
+EBUILD rtcwmp-demo-1.1-r1.ebuild 1823 SHA256 d8f1f908b54ed9f5d1fe622222f641e9d5c305432fb18d2da608b003234e7430 SHA512 1968c303e02b815977fbc877fa39e0403cb551e9ac7b2c23ac36482af7ef3950a83691f9c757fbeea5ec8a90a0e15a6f438c0d71ffe587a9ccfb44eb3db108cb WHIRLPOOL 089075cda01edd216f3ef4bcc3bd1d40a2f5cd14238a61d36f7ee5594c708c991841a128dfb36d139d2b0e75e12daa60c2ea7a134e535d3b861a729bde64854c
+EBUILD rtcwmp-demo-1.1-r2.ebuild 1709 SHA256 ca1378201d9f1b2ee6f2f23a25f8898f68d905e4f093084671ac224539906306 SHA512 c148774dc69368f518e6ca0c26c2d14b0ac040b38c0e8d4b1accadde4f2f461319a746e3b143539043a29edaebde11fe38a772f555bd709ef7ea11019dbffecb WHIRLPOOL 72f1c74f39c0e690a27be8b008eab732a173f76763593b207d060f48c60fcaed2ad5eece665f09dac649890d77b332b1134c095d6129e68539c82796630683d2
+MISC ChangeLog 2606 SHA256 d4f7e0587703819ceb71b51943e5f50fbae94e018d5547dd6898ad6be05d9469 SHA512 79e5d58ce9942eb840a20b23844bea95d3a4173934cbf5901beec7e9896f19f6f7694e5d8e4fdad700272cc04a6c3efbd987b5c55a903dc7477a83c7bd9cb9bd WHIRLPOOL f612955f8a704c1ac606d7844569fafe18b3ee8c804000b8317a556b6e3e5f67c6211883884fa44072f87decc6b4cb06063fef7e90208995e03f108cfbbe62ca
+MISC ChangeLog-2015 2785 SHA256 b3680d58adf95d5365f31eb967df34e167d921b47f49525a7c5d03af37c314dc SHA512 9b3a57e64b1a7a80fa3f37b856cdb76b9f26dbd3debe24ebc8af74331284e03a7c12ef87daec6be97a972293a3223e29354120d726da6a37fee7e5af38b68aed WHIRLPOOL 8f61dc34afbc37b9b5acc7fae80431fd00397c6bba6a1ea2af4a72eeb435470b7c182a5df69f4bf8fee85f56633e2a805b052594c4692eeddb35b647732a7472
+MISC metadata.xml 391 SHA256 6395ec459ba334f13641ef732477ef8492d324dd86e3a90ce1ed7569efbc51e6 SHA512 7c19f0975d4df1c3f116d4563400b9e9028d3f7c70c2fa4f1fa6612d1d76141e0f157eba97804640aed191a59715869f4ac325ab32818433cff6e99e74579257 WHIRLPOOL bfac51435d9f5f4e34930e127bf3a4cbeae199e3ac8d5eaed394a4341e055f93037ffa1871c28bf1ccc3e4a34d2f7241edce7a5aea95a288229df608f152b535
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..7d711d08acee
--- /dev/null
+++ b/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..d1a52b2afdce
--- /dev/null
+++ b/games-fps/rtcwmp-demo/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<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-r1.ebuild b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r1.ebuild
new file mode 100644
index 000000000000..ea27e64a53f7
--- /dev/null
+++ b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker 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="mirror://idsoftware/wolf/linux/old/${MY_P}
+ mirror://3dgamers/returnwolfenstein/${MY_P}"
+
+LICENSE="RTCW GPL-2" # gpl for init script bug #425946
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="dedicated"
+RESTRICT="strip mirror"
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXext
+ )"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT:1}/{PN}/*
+ ${GAMES_PREFIX_OPT:1}/{PN}/demomain/*"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+src_install() {
+ insinto "${dir}"
+ doins -r demomain Docs
+ doins WolfMP.xpm
+ dodoc CHANGES QUICKSTART
+
+ exeinto "${dir}"
+ doexe bin/x86/wolfded.x86 openurl.sh
+ games_make_wrapper rtcwmp-demo-ded ./wolfded.x86 "${dir}" "${dir}"
+ newinitd "${FILESDIR}"/rtcwmp-demo-ded.rc rtcwmp-demo-ded
+ sed "s:GENTOO_DIR:${dir}:" "${ED}"/etc/init.d/rtcwmp-demo-ded || die
+
+ if ! use dedicated; then
+ doexe bin/x86/wolf.x86
+ games_make_wrapper rtcwmp-demo ./wolf.x86 "${dir}" "${dir}"
+ newicon WolfMP.xpm rtcwmp-demo.xpm
+ make_desktop_entry rtcwmp-demo "Return to Castle Wolfenstein (MP demo)" \
+ rtcwmp-demo.xpm
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Install 'rtcwsp-demo' for single-player"
+ elog
+ if ! use dedicated; then
+ elog "Run 'rtcwmp-demo' for multi-player"
+ elog
+ fi
+ elog "Start a dedicated server with"
+ elog "'/etc/init.d/rtcwmp-demo-ded start'"
+ elog
+ elog "Start the server at boot with"
+ elog "'rc-update add rtcwmp-demo-ded default'"
+}
diff --git a/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r2.ebuild b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r2.ebuild
new file mode 100644
index 000000000000..a62dd413ecd7
--- /dev/null
+++ b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils unpacker
+
+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="mirror://idsoftware/wolf/linux/old/${MY_P}
+ mirror://3dgamers/returnwolfenstein/${MY_P}"
+
+LICENSE="RTCW GPL-2" # gpl for init script bug #425946
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="dedicated"
+RESTRICT="strip mirror"
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXext
+ )"
+
+QA_PREBUILT="/opt/${PN}/*
+ /opt/${PN}/demomain/*"
+
+S=${WORKDIR}
+
+dir="/opt/${PN}"
+
+src_install() {
+ insinto "${dir}"
+ doins -r demomain Docs
+ doins WolfMP.xpm
+ dodoc CHANGES QUICKSTART
+
+ exeinto "${dir}"
+ doexe bin/x86/wolfded.x86 openurl.sh
+ make_wrapper rtcwmp-demo-ded ./wolfded.x86 "${dir}" "${dir}"
+ newinitd "${FILESDIR}"/rtcwmp-demo-ded.rc rtcwmp-demo-ded
+ sed "s:GENTOO_DIR:${dir}:" "${ED}"/etc/init.d/rtcwmp-demo-ded || die
+
+ if ! use dedicated; then
+ doexe bin/x86/wolf.x86
+ make_wrapper rtcwmp-demo ./wolf.x86 "${dir}" "${dir}"
+ newicon WolfMP.xpm rtcwmp-demo.xpm
+ make_desktop_entry rtcwmp-demo "Return to Castle Wolfenstein (MP demo)" \
+ rtcwmp-demo.xpm
+ fi
+}
+
+pkg_postinst() {
+ elog "Install 'rtcwsp-demo' for single-player"
+ elog
+ if ! use dedicated; then
+ elog "Run 'rtcwmp-demo' for multi-player"
+ elog
+ fi
+ elog "Start a dedicated server with"
+ elog "'/etc/init.d/rtcwmp-demo-ded start'"
+ elog
+ elog "Start the server at boot with"
+ elog "'rc-update add rtcwmp-demo-ded default'"
+}