blob: 2214bc3590242fdef030ac04c6c5f9eb88a9a917 (
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
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/uglygs/uglygs-0_rc11.ebuild,v 1.7 2006/03/27 14:25:07 wolf31o2 Exp $
inherit eutils games
MY_P=${P/0_/}
DESCRIPTION="quickly searches the network for game servers"
HOMEPAGE="http://uglygs.uglypunk.com/"
SRC_URI="ftp://ftp.uglypunk.com/uglygs/current/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha hppa"
IUSE=""
DEPEND=">=sys-apps/sed-4"
RDEPEND="net-analyzer/rrdtool
dev-lang/perl"
S=${WORKDIR}/${MY_P}
UGLY_BASEDIR=${GAMES_LIBDIR}/${PN}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-uglygs.conf.patch
sed -i "s:GENTOO_DIR:${UGLY_BASEDIR}:" uglygs.conf
epatch ${FILESDIR}/${PV}-uglygs.pl.patch
sed -i "s:GENTOO_DIR:${GAMES_SYSCONFDIR}:" uglygs.pl
}
src_compile() {
cd qstat
make CFLAGS="${CFLAGS}" || die
}
src_install() {
insinto ${GAMES_SYSCONFDIR}
doins uglygs.conf qstat/qstat.cfg
dogamesbin uglygs.pl || die
dodir ${UGLY_BASEDIR}
cp -rf data images templates tmp ${D}/${UGLY_BASEDIR}
keepdir ${UGLY_BASEDIR}/tmp
exeinto ${UGLY_BASEDIR}
doexe qstat/qstat
dodoc CHANGES README
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
einfo "Dont forget to setup ${GAMES_SYSCONFDIR}/uglygs.conf and ${GAMES_SYSCONFDIR}/qstat.cfg"
}
|