From 23eddbf98448dbfffd90a43cb0869e3d2de14a9d Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Fri, 15 Sep 2006 19:44:31 +0000 Subject: Change hard-coded /opt to GAMES_PREFIX_OPT. (Portage version: 2.1.1) --- games-server/ut2004-ded/ChangeLog | 6 +++++- games-server/ut2004-ded/files/ut2004-ded.rc | 2 +- games-server/ut2004-ded/ut2004-ded-3369.ebuild | 10 ++++++---- 3 files changed, 12 insertions(+), 6 deletions(-) (limited to 'games-server') diff --git a/games-server/ut2004-ded/ChangeLog b/games-server/ut2004-ded/ChangeLog index a08bf0b137b5..df10dba0f40d 100644 --- a/games-server/ut2004-ded/ChangeLog +++ b/games-server/ut2004-ded/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-server/ut2004-ded # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ChangeLog,v 1.14 2006/06/14 18:43:28 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ChangeLog,v 1.15 2006/09/15 19:44:31 wolf31o2 Exp $ + + 15 Sep 2006; Chris Gianelloni files/ut2004-ded.rc, + ut2004-ded-3369.ebuild: + Change hard-coded /opt to GAMES_PREFIX_OPT. 14 Jun 2006; Chris Gianelloni files/ut2004-ded.rc: Rewrote the init script, since it was in need of it. Also fixed bug #136727. diff --git a/games-server/ut2004-ded/files/ut2004-ded.rc b/games-server/ut2004-ded/files/ut2004-ded.rc index f6d4af745acc..92c7ff9bac63 100644 --- a/games-server/ut2004-ded/files/ut2004-ded.rc +++ b/games-server/ut2004-ded/files/ut2004-ded.rc @@ -6,7 +6,7 @@ # script starts up a Onslaught Server. # Goto http://www.unrealadmin.org to learn how to edit your options -UCCDIR="/opt/ut2004-ded/System" +UCCDIR="GAMES_PREFIX_OPT/ut2004-ded/System" OPTIONS="server ONS-Torlan?game=Onslaught.ONSOnslaughtGame ini=Default.ini log=server.log -nohomedir" ### Do not edit below here or the world will explode ### diff --git a/games-server/ut2004-ded/ut2004-ded-3369.ebuild b/games-server/ut2004-ded/ut2004-ded-3369.ebuild index 40daf1c69607..c9fffa4480b9 100644 --- a/games-server/ut2004-ded/ut2004-ded-3369.ebuild +++ b/games-server/ut2004-ded/ut2004-ded-3369.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 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.ebuild,v 1.5 2006/03/31 21:49:41 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ut2004-ded-3369.ebuild,v 1.6 2006/09/15 19:44:31 wolf31o2 Exp $ inherit games @@ -52,10 +52,12 @@ src_install() { rm -f ${Ddir}/System/*.dll || die "removing windows dlls" rm -f ${Ddir}/System/*.exe || die "removing windows exes" - prepgamesdirs - exeinto /etc/init.d newexe ${FILESDIR}/ut2004-ded.rc ut2004-ded + dosed ":GAMES_PREFIX_OPT:${GAMES_PREFIX_OPT}:" \ + /etc/init.d/ut2004-ded || die "sed" + + prepgamesdirs } pkg_postinst() { @@ -65,7 +67,7 @@ pkg_postinst() { 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 " /opt/ut2004-ded/System/Default.ini" + ewarn " ${GAMES_PREFIX_OPT}/ut2004-ded/System/Default.ini" echo ewarn "NOTE: To have your server authenticate properly to the" ewarn " central server, you MUST visit the following site" -- cgit v1.2.3-65-gdbad