summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-21 04:46:51 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-21 04:46:51 +0000
commit9addac530fe490a505cd4d4d2efb1d982fd34304 (patch)
tree3ec60ecc3509365c0567fbbadb6ff0066141a8d0 /games-server/gta3mta/gta3mta-0.3b.ebuild
parentmove config files to /etc/games (diff)
downloadhistorical-9addac530fe490a505cd4d4d2efb1d982fd34304.tar.gz
historical-9addac530fe490a505cd4d4d2efb1d982fd34304.tar.bz2
historical-9addac530fe490a505cd4d4d2efb1d982fd34304.zip
initial ebuild
Diffstat (limited to 'games-server/gta3mta/gta3mta-0.3b.ebuild')
-rw-r--r--games-server/gta3mta/gta3mta-0.3b.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/games-server/gta3mta/gta3mta-0.3b.ebuild b/games-server/gta3mta/gta3mta-0.3b.ebuild
new file mode 100644
index 000000000000..7db313932971
--- /dev/null
+++ b/games-server/gta3mta/gta3mta-0.3b.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-server/gta3mta/gta3mta-0.3b.ebuild,v 1.1 2003/09/21 04:46:51 vapier Exp $
+
+inherit games eutils
+
+DESCRIPTION="dedicated server for GTA3 multiplayer"
+HOMEPAGE="http://mtavc.com/"
+SRC_URI="dedlinux.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="-* x86"
+RESTRICT="fetch"
+
+DEPEND="virtual/glibc
+ sys-libs/lib-compat"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo "Please download ${A} from"
+ einfo "${HOMEPAGE}downloads.php?file_id=12"
+ einfo "and put it in ${DISTDIR}"
+}
+
+src_unpack() {
+ unpack ${A}
+ edos2unix server.cfg
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ dogamesbin ${FILESDIR}/gta3mta
+ dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/gta3mta
+
+ exeinto ${dir}
+ doexe MTAServer
+ insinto ${GAMES_SYSCONFDIR}/${PN}
+ local files="banned.lst server.cfg"
+ doins ${files}
+ for f in ${files} ; do
+ dosym ${GAMES_SYSCONFDIR}/${PN}/${f} ${dir}/${f}
+ done
+
+ prepgamesdirs
+}