blob: 62c072d99b7b2bd1e0c0c790e33ad473cf56e4ac (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-adminmod/halflife-adminmod-2.50.59-r1.ebuild,v 1.2 2004/06/25 03:02:22 agriffis 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}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* x86"
IUSE=""
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 HISTORY NEWS README docs/*.txt
dohtml -r docs/html/*
rm -rf HISTORY LICENSE NEWS README docs dlls/metamod_i386.so
dodir ${dir}
cp -a ${S} ${D}/${dir}
cp ${FILESDIR}/modsetup ${D}/${dir}/
dosed "s:GENTOO_CFGDIR:${GAMES_SYSCONFDIR}:" ${dir}/modsetup
dosym /usr/share/doc/${PF} ${dir}/docs
prepgamesdirs
}
|