blob: 7ccb31444a4abe3b32af8dc9daa2dfa6a984f724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2004 Gentoo Foundation
# 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.5 2004/07/01 11:23:13 eradicator 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"
IUSE=""
RESTRICT="fetch"
DEPEND="virtual/libc
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
}
|