diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-02-12 18:11:16 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-02-12 18:11:16 +0000 |
commit | 91dd91f5b6ab5c4a33839b6b734c15aa13f0150c (patch) | |
tree | e752ef707f3db1c4ecae7525695719325dc4f545 /games-fps | |
parent | New package. (diff) | |
download | historical-91dd91f5b6ab5c4a33839b6b734c15aa13f0150c.tar.gz historical-91dd91f5b6ab5c4a33839b6b734c15aa13f0150c.tar.bz2 historical-91dd91f5b6ab5c4a33839b6b734c15aa13f0150c.zip |
Updated init scripts to use screen for dedicated server and closing bug #79833.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/americas-army/ChangeLog | 9 | ||||
-rw-r--r-- | games-fps/americas-army/Manifest | 6 | ||||
-rw-r--r-- | games-fps/americas-army/americas-army-221-r1.ebuild | 84 | ||||
-rw-r--r-- | games-fps/americas-army/files/armyops-ded.conf | 1 | ||||
-rw-r--r-- | games-fps/americas-army/files/armyops-ded.init | 35 | ||||
-rw-r--r-- | games-fps/americas-army/files/digest-americas-army-221-r1 | 1 |
6 files changed, 134 insertions, 2 deletions
diff --git a/games-fps/americas-army/ChangeLog b/games-fps/americas-army/ChangeLog index 2e4dd21afc06..187aac1f4b30 100644 --- a/games-fps/americas-army/ChangeLog +++ b/games-fps/americas-army/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-fps/americas-army # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/americas-army/ChangeLog,v 1.26 2005/02/08 22:30:21 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/americas-army/ChangeLog,v 1.27 2005/02/12 18:11:16 wolf31o2 Exp $ + +*americas-army-221-r1 (12 Feb 2005) + + 12 Feb 2005; Chris Gianelloni <wolf31o2@gentoo.org> + +files/armyops-ded.conf, +files/armyops-ded.init, + +americas-army-221-r1.ebuild: + Updated init scripts to use screen for dedicated server and closing bug #79833. 08 Feb 2005; Chris Gianelloni <wolf31o2@gentoo.org> americas-army-221.ebuild: diff --git a/games-fps/americas-army/Manifest b/games-fps/americas-army/Manifest index 190374a1756e..71c78367dd1e 100644 --- a/games-fps/americas-army/Manifest +++ b/games-fps/americas-army/Manifest @@ -1,6 +1,10 @@ +MD5 d1f1661a6a9e5e20107ed6a52aad2d5d americas-army-221-r1.ebuild 2373 MD5 8b540520149bebd8a8d94ede3b479300 americas-army-221.ebuild 2248 -MD5 03b2044c278b04545855accc26dd77dd ChangeLog 5107 +MD5 a71bc7eb02810ec4b317ba3081bfaaaa ChangeLog 5365 MD5 f1a9a44e85e58296a3710c291666ab78 metadata.xml 672 +MD5 e80c54a495f211b7859a34ee141d8796 files/armyops-ded.conf 40 +MD5 49e2949b3607add5b674fe937dfa74d1 files/armyops-ded.init 983 MD5 1cdb6be5554b260130911d262aff1b6c files/armyops-ded.rc 716 +MD5 f848ad0ed8735271e05960f537a300a7 files/digest-americas-army-221-r1 68 MD5 237d02b1f54647192d254d7ac21ec7ba files/armyops-ded.conf.d 671 MD5 f848ad0ed8735271e05960f537a300a7 files/digest-americas-army-221 68 diff --git a/games-fps/americas-army/americas-army-221-r1.ebuild b/games-fps/americas-army/americas-army-221-r1.ebuild new file mode 100644 index 000000000000..a40cab8697a3 --- /dev/null +++ b/games-fps/americas-army/americas-army-221-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/americas-army/americas-army-221-r1.ebuild,v 1.1 2005/02/12 18:11:16 wolf31o2 Exp $ + +inherit games + +MY_P="armyops${PV}-linux.run" +DESCRIPTION="America's Army: Operations - military simulations by the U.S. Army to provide civilians with insights on soldiering" +HOMEPAGE="http://www.americasarmy.com/" +SRC_URI="mirror://3dgamers/pub/3dgamers5/games/${PN/-/}/${MY_P} + mirror://3dgamers/pub/3dgamers/games/${PN/-/}/${MY_P}" + +LICENSE="Army-EULA" +SLOT="0" +KEYWORDS="~x86 ~amd64" +RESTRICT="nostrip nomirror" + +IUSE="opengl dedicated" + +DEPEND="virtual/libc + app-arch/unzip" +RDEPEND="virtual/libc + opengl? ( virtual/opengl ) + amd64? ( app-emulation/emul-linux-x86-xlibs + || ( >=media-video/nvidia-glx-1.0.6629-r3 + >=media-video/ati-drivers-8.8.25-r1 + app-emulation/emul-linux-x86-nvidia ) ) + dedicated? ( app-misc/screen )" + +S=${WORKDIR} +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +pkg_setup() { + games_pkg_setup + ewarn "The installed game takes about 1.6GB of space when installed and 2.4GB of space in ${PORTAGE_TMPDIR} to build!" +} + +src_unpack() { + unpack_makeself ${DISTDIR}/${MY_P} || die "unpacking game" + tar -zxf setupstuff.tar.gz || die +} + +src_install() { + einfo "This will take a while ... go get a pizza or something" + + dodir ${dir} + + tar -jxf armyops${PV}.tar.bz2 -C ${Ddir}/ || die "armyops untar failed" + tar -jxf binaries.tar.bz2 -C ${Ddir}/ || die "binaries untar failed" + + dodoc README.linux + insinto ${dir} + doins ArmyOps.xpm README.linux ArmyOps${PV}_EULA.txt || die "doins failed" + insinto /usr/share/pixmaps + doins ArmyOps.xpm || die "doins failed" + exeinto ${dir} + doexe bin/armyops || die "doexe failed" + + if use dedicated; then + exeinto /etc/init.d ; newexe ${FILESDIR}/armyops-ded.init armyops-ded + insinto /etc/conf.d ; newins ${FILESDIR}/armyops-ded.conf armyops-ded + games_make_wrapper armyops-ded ./server-bin ${dir}/System + fi + + games_make_wrapper armyops ./armyops ${dir} + + prepgamesdirs + make_desktop_entry armyops "America's Army" ArmyOps.xpm +} + +pkg_postinst() { + games_pkg_postinst + if use dedicated; then + einfo "To start a dedicated server, run" + einfo " /etc/init.d/armyops-ded start" + echo + fi + if use opengl; then + einfo "To play the game run:" + einfo " armyops" + echo + fi +} diff --git a/games-fps/americas-army/files/armyops-ded.conf b/games-fps/americas-army/files/armyops-ded.conf new file mode 100644 index 000000000000..680562878e4d --- /dev/null +++ b/games-fps/americas-army/files/armyops-ded.conf @@ -0,0 +1 @@ +aa_OPTS="global bridge.aao ini=ctc.ini" diff --git a/games-fps/americas-army/files/armyops-ded.init b/games-fps/americas-army/files/armyops-ded.init new file mode 100644 index 000000000000..a19d6c682ec3 --- /dev/null +++ b/games-fps/americas-army/files/armyops-ded.init @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting Americas Army dedicated server" + screen -A -m -d -S armyops-ded su - games -c "/usr/games/bin/armyops-ded ${aa_OPTS}" + eend $? +} + +stop() { + ebegin "Stopping Americas Army dedicated server" + local pid=`screen -list | grep armyops-ded | awk -F . '{print $1}' | sed -e s/.//` + if [ -z "${pid}" ] ; then + eend 1 "Lost screen session" + else + pid=`pstree -p ${pid} | sed -e 's:^.*server-bin::'` + pid=${pid:1:${#pid}-2} + if [ -z "${pid}" ] ; then + eend 1 "Lost armyops-ded session" + else + kill ${pid} + eend $? "Could not kill armyops-ded" + fi + fi +} + +status() { + screen -list | grep armyops-ded +} + diff --git a/games-fps/americas-army/files/digest-americas-army-221-r1 b/games-fps/americas-army/files/digest-americas-army-221-r1 new file mode 100644 index 000000000000..c1ca76a63f3c --- /dev/null +++ b/games-fps/americas-army/files/digest-americas-army-221-r1 @@ -0,0 +1 @@ +MD5 df8b886a7f2f9f06afbbd4c00298f003 armyops221-linux.run 771480200 |