blob: 202be10cfa3af89f05b0d3720076146dcaad8b99 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/jedioutcast-ded/jedioutcast-ded-1.04.ebuild,v 1.3 2004/06/01 20:15:06 mr_bones_ Exp $
inherit games eutils
DESCRIPTION="Jedi Outcast Linux Dedicated Server"
HOMEPAGE="http://www.lucasarts.com/products/jediacademy/"
SRC_URI="jk2linuxded104.zip"
LICENSE="jedioutcast-ded"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RESTRICT="fetch"
S="${WORKDIR}"
pkg_nofetch() {
einfo "Please download ${A} from"
einfo "http://www.jk2files.com/file.info?ID=3826"
einfo "and put into ${DISTDIR}"
}
src_unpack() {
unpack ${A}
edos2unix readme.txt "server options.txt" base/server.cfg
rm "Disclaimer-Jedi Outcast-Linux Dedicated Server Binary.doc"
chmod a+x jk2ded
chmod -R og-w *
mv base/{server,jk2mpserver}.cfg
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/${PN}
dodir ${dir}
cp -r * ${D}/${dir}/
dogamesbin ${FILESDIR}/jk2ded
dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/jk2ded
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
ewarn "NOTE: You must copy over the .pak files from a previously"
ewarn " installed and patched windows installation for this"
ewarn " to run properly."
}
|