blob: 2c69187d6f3b3667b07f8477ccf270aab19ac5d1 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-adminmod/halflife-adminmod-2.50.56a.ebuild,v 1.3 2003/09/15 15:14:42 vapier Exp $
inherit games eutils
MY_P=${P/mod/}
DESCRIPTION="give people admin access (and a looooooot more)"
HOMEPAGE="http://www.adminmod.org/"
SRC_URI="mirror://sourceforge/halflifeadmin/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* x86"
RDEPEND="games-server/halflife-metamod"
PDEPEND="games-server/halflife-modsetup"
S=${WORKDIR}/Adminmod
src_unpack() {
unpack ${A}
cd ${S}
# fix default values
sed -i "s:addons:../addons:" config/{metamod,plugin}.ini
sed -i "/^[^/]/s:^://:" config/Samples/{ips,users}.ini
sed -i "/^[^/h]/s:^://:" config/Samples/models.ini
epatch ${FILESDIR}/${PV}-adminmod.cfg
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/halflife/addons/adminmod
dodoc CHANGES README docs/*
dohtml -r docs/html/*
rm -rf LICENSE CHANGES README docs dlls/metamod_i386.so
dodir ${dir}
cp -rf ${S}/* ${FILESDIR}/modsetup ${D}/${dir}/
dosym /usr/share/doc/${PF} ${dir}/docs
prepgamesdirs
}
|